Joined: Jan 2007
Posts: 70
Power User
Power User
Joined: Jan 2007
Posts: 70
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?
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Joined: Jan 2003
Posts: 3,456
Likes: 2
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
Joined: Jan 2007
Posts: 70
Power User
Power User
Joined: Jan 2007
Posts: 70
Thanks Ian.
Joined: Jan 2007
Posts: 70
Power User
Power User
Joined: Jan 2007
Posts: 70
Hmmm
I input this:
<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
<?php include("/home/www/hosts/www.mydomain.co.uk/mydir/my.txt"); ?> What have I done wrong?
Attachments
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Joined: Jan 2003
Posts: 3,456
Likes: 2
You must use {php} and {/php} instead of
Joined: Jan 2007
Posts: 70
Power User
Power User
Joined: Jan 2007
Posts: 70
Aaaah
Once again, Thank You
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Posts:
808
Joined: July 2001
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166Sep 15th, 2019
Currently Online
Topics Created
Posts Made
Users Online
Birthdays