Previous Thread
Next Thread
Print Thread
Rate Thread
#314601 06/25/2007 4:52 PM
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?

Sponsored Links
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
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.

smile

Joined: Jan 2007
Posts: 70
Power User
Power User
Joined: Jan 2007
Posts: 70
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?
Attachments
2433-Image1.jpg (66.05 KB, 120 downloads)

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
You must use {php} and {/php} instead of

Sponsored Links
Joined: Jan 2007
Posts: 70
Power User
Power User
Joined: Jan 2007
Posts: 70
Aaaah

Once again, Thank You

smile


Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 498
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 10
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)