MyBB Community Forums

Full Version: i want to add a new thing on the portal
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi, i wanna add a new part on the portal... how can i do it?
Edit the portal template. I like things clean, so, what I did was...

For example:

Being a region-focused forum, I added a weather section. So, I created a new template "portal_weather".
<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>Richmond Weather</strong></td>
</tr>
<tr>
<td class="trow1" align="center">

<a href="http://www.weatherforyou.com/weather/Virginia/Richmond.html">
<img src="http://www.weatherforyou.net/fcgi-bin/hw3/hw3.cgi?config=png&forecast=zone&place=Richmond&state=va&alt=hwizonemicro&daysonly=3&hwvbg=&hwvtc=" border="0" width="140" height="65"></a>

</td>
</tr>
</table>
</td></tr></table>
<br />
In portal.php I added:
// Weather
{
	eval("\$weather = \"".$templates->get("portal_weather")."\";");
}
Then I placed $weather where I wanted it to show up on the portal.

Best of luck with it.

i have try this, ahm but nothing... Confused
Eh, worked perfectly for me.

If that doesn't work, just place the template code in the actual portal template where you want it to appear.

For example, if you want it to appear between stats and whosonline... well...

$stats
YOUR CODE
$whosonline

yeah, but that will make the things i wanna to add to appear outside, i mean, to not have borders like all the others things
MaRio Wrote:yeah, but that will make the things i wanna to add to appear outside, i mean, to not have borders like all the others things
One of two things...
I'm either not understandin you completely or you're not paying attention.

I already provided a sample code for the "new thing" you wish to add to your portal. Here it is again minus what I have in one of mine.
<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>[b]YOUR TITL[/b]E</strong></td>
</tr>
<tr>
<td class="trow1">

[b]***Put whatever you want to put in your custom section here[/b]

</td>
</tr>
</table>
</td></tr></table>
<br />
Place that in the portal template where you want it to appear.

Other than actually doing it for you, I can't be any more clear than that.
thanx, this is what i was looking for... sorry i didnt catch u at the first time Toungue