Custom menus in portal!?
#21
It will work if i use this code. But won't working trying the other way by making a new template and that's the way i want to do it...
<html>
<head>
<title>$settings[bbname]</title>
$headerinclude
</head>
<body>
$header
<table width="$theme[tablewidth]" cellspacing="0" cellpadding="$theme[tablespace]" border="0" align="center">
<tr><td valign="top" width="200">
$welcome
$pms
$search
$stats
$whosonline
$latestthreads
</td>
<td class="trow">&nbsp;</td>
<td width="*" valign="top">
$announcements
</td>
<td class="trow">&nbsp;</td>
<td width="200" valign="top">
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td class="tborder">
<table border="0" cellspacing="$theme[borderwidth]" cellpadding="$theme[tablespace]" width="100%">
<tr>
<td class="thead"><strong>Hosting</strong></td>
</tr>
<tr>
<td class="trow1">
</div><div align="center"><a href="http://www.soloymi.com?hosting_id=143" target="_blank"><img src="http://www.soloymi.com/markica.php?hosting_id=143" border="0"></div></a>
</td>
</tr>
</table></td></tr></table>
<br />
</td>
</tr>
</table>
$footer
</body>
</html>

I was trying to make a donations block so i went and added $donations in the portal template under $welcome and then i went and made a template call portal_donations added the code for it and nothing shows on the portal page...
#22
Yea!Thats the problem too!I didn't told that here because it worked when i put the whole code in portal template...
#23
well i dont know!! i have tried it here with templates and it works 100%

anyway what;s important that it workedWinkSmile

regards
#24
Fact is it not working they way it's suppose to im not doing that way everytime i want to add a block to the portal i should be able to add a new template we need to figure out the problem and fix it A.S.A.P...
#25
well make sure you are naming the new template as portal_adv . so it can appear under the portal templates, and make sure u are including the provided code in there. and in portal page template u should include $adv. butt dont put the prefix.


many regards
#26
zaher1988 Wrote:well make sure you are naming the new template as portal_adv . so it can appear under the portal templates, and make sure u are including the provided code in there. and in portal page template u should include $adv. butt dont put the prefix.


many regards
Yea that's how i done it doesn't work it doesn't show on the portal page...
#27
have u added
eval("\$adv = \"".$templates->get("portal_adv")."\";");

to portal.php

Regards
#28
zaher1988 Wrote:have u added
eval("\$adv = \"".$templates->get("portal_adv")."\";");

to portal.php

Regards
Where in the portal.php do i add that?
#29
in portal.php find

// Get the online users 
and just above it add it

regards
#30
Thanks dude works correctly now...


Forum Jump:


Users browsing this thread: 1 Guest(s)