MyBB Community Forums

Full Version: Custom menus in portal!?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Is there a way to make a custom menu in portal to stand to the left with welcom menu,latest thread,etc...?I need it to put some banners...
ow yeah you can

in Admin CP > Templates > Modify / Delete > Expand > Portal Templates > Portal

Find this $welcome

above it add $adv

now go back to the list, find the button New Template at the top add a new template called portal_adv

and add this code to it

<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>Adv</strong></td>
</tr>
<tr>
<td class="trow1">
Your things here
</td>
</tr>
</table></td></tr></table>
<br />

or you may add the code directly above $welcome
and in portal.php just above // Get the online users add

eval("\$adv = \"".$templates->get("portal_adv")."\";");

Many regards
Thanks Zaher you were really helpful and polite to me!I ought you one Toungue

Just one more thing.How to set that menu to be on the right side of the portal?
ow alright Smile

again in Admin CP > Templates > Modify / Delete > Expand > Portal Templates > Portal

FInd this
$announcements
</td>

just below it add

<td class="trow">&nbsp;</td>
<td width="200" valign="top">
$adv
</td>

see !! the $adv which is the template we have made is here. so make sure to name it correct as u made it.

many regards
I have got this:

[attachment=2080]

"Hosting" menu needs to be on the right.I wrote the code as you said watching the menu name (adv)!
well no make sure you have put the code menitoned in my last post after

<td class="trow">&nbsp;</td>
<td width="*" valign="top">
$announcements
</td>

because it worked for me! and u may check it at my testing forum

It won't work Sad
Here is the whole code:

<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">
$adv
<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 />
$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">
$adv
</td>
</td>
</tr>
</table>
$footer
</body>
</html>
alright what u have done is that u have put the code for the new box in the same template above $welcome

this code i mean

<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 />

so what ur going to do now is

wheter to make the new template called adv with this code

or replace $adv with this code. but i prefer the new template oneSmile

anyway i will put the code below

<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>

best regards
Thanks Zaher!You are the best Wink
Ok zaher i can now create menus alone but there is one more thing i need to know.
I created main menu and there are some links like download,texts,etc...
My portal looks like this http://slackware-srbija.org but i don't know how to make it when i click download or texts link i get new page instead of news i have in the middle?
Pages: 1 2 3