UBB.Dev
Posted By: Stephen G Modifying Portal - 06/25/2007 11:52 PM
Okay,

I want to enable the portal but don't want to pull posts that appear on the portal from any forum but instead, where the posts would normally appear, I want to insert a custom island with headlines pulled from my news script.

What file(s) do need to edit so I can insert this on the portal only?
Posted By: Ian Spence Re: Modifying Portal - 06/26/2007 12:16 AM
I believe you'd be editing /templates/default/portal.tpl

You'd just scrap pretty much everything in there and replace it with your stuff.

The code that relates to that template is /scripts/portal.inc.php
Posted By: Stephen G Re: Modifying Portal - 06/26/2007 11:10 AM
Thanks Ian.

smile
Posted By: Stephen G Re: Modifying Portal - 06/27/2007 12:32 AM
Hmmm

I input this:

Code
<table border="0" cellspacing="0" cellpadding="0" align="center" width="100%">
<tr>
<td align="right" valign="bottom" width="15" height="15"><img src="/gifs/gen_r-panela.gif" width="15" height="15" alt="[i]" name="gen_r-panela.gif"></td>
<td background="/gifs/gen_r-panelb.gif" align="center" valign="bottom" height="15"></td>
<td width="15" align="left" valign="bottom" height="15"><img src="/gifs/gen_r-panelc.gif" width="15" height="15" alt="[i]" name="gen_r-panelc.gif"></td>
</tr>
<tr>
<td background="/gifs/gen_r-paneld.gif" width="15" align="right" valign="top"> </td>
<td align="left" valign="top" background="/gifs/gen_panelbg.gif">
<table width="100%" class="t_inner" cellpadding="0" cellspacing="1" bgcolor="#121218">
<tr>
<td class="tdheader"> Latest Headlines</td>
</tr>
<tr>
<td class="alt-1" valign="top">
<?php
include("/home/www/hosts/www.mydomain.co.uk/mydir/my.txt");
?>
</td>
</tr>
</table>
</td>
<td background="/gifs/gen_r-panele.gif" width="15" align="left" valign="top"> </td>
</tr>
<tr>
<td width="15" align="right" valign="top" height="15"><img src="/gifs/gen_r-panelf.gif" width="15" height="15" alt="[i]" name="gen_r-panelf.gif"></td>
<td background="/gifs/gen_r-panelg.gif" align="left" valign="top" height="15"> </td>
<td width="15" align="left" valign="top" height="15"><img src="/gifs/gen_r-panelh.gif" width="15" height="15" alt="[i]" name="gen_r-panelh.gif"></td>
</tr>
</table>

But get (see attached file) only the html and not

Code
<?php
include("/home/www/hosts/www.mydomain.co.uk/mydir/my.txt");
?>

What have I done wrong?

Attached picture 2433-Image1.jpg
Posted By: Ian Spence Re: Modifying Portal - 06/27/2007 2:39 AM
You must use {php} and {/php} instead of
Posted By: Stephen G Re: Modifying Portal - 06/27/2007 8:36 AM
Aaaah

Once again, Thank You

smile
© UBB.Developers