php forum
php mysql forum
php mysql smarty
 
Topic Options
#314601 - 06/25/07 04:52 PM Modifying Portal
GEN Offline
Power User

Registered: 01/01/07
Posts: 52
Loc: UK
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?
_________________________
GEN
Give Yourself to the Dark Side @ http://www.galacticempire.net
Give Yourself to the Geek Side @ http://www.movingimagetoys.com
"Anakin, duck!"
"What's a duck?"

Top
#314602 - 06/25/07 05:16 PM Re: Modifying Portal [Re: GEN]
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
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
_________________________
Code monkey like Fritos

Top
#314607 - 06/26/07 04:10 AM Re: Modifying Portal [Re: Ian Spence]
GEN Offline
Power User

Registered: 01/01/07
Posts: 52
Loc: UK
Thanks Ian.

smile
_________________________
GEN
Give Yourself to the Dark Side @ http://www.galacticempire.net
Give Yourself to the Geek Side @ http://www.movingimagetoys.com
"Anakin, duck!"
"What's a duck?"

Top
#314614 - 06/26/07 05:32 PM Re: Modifying Portal [Re: GEN]
GEN Offline
Power User

Registered: 01/01/07
Posts: 52
Loc: UK
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 (71 downloads)

_________________________
GEN
Give Yourself to the Dark Side @ http://www.galacticempire.net
Give Yourself to the Geek Side @ http://www.movingimagetoys.com
"Anakin, duck!"
"What's a duck?"

Top
#314616 - 06/26/07 07:39 PM Re: Modifying Portal [Re: GEN]
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
You must use {php} and {/php} instead of <?php and ?>
_________________________
Code monkey like Fritos

Top
#314618 - 06/27/07 01:36 AM Re: Modifying Portal [Re: Ian Spence]
GEN Offline
Power User

Registered: 01/01/07
Posts: 52
Loc: UK
Aaaah

Once again, Thank You

smile
_________________________
GEN
Give Yourself to the Dark Side @ http://www.galacticempire.net
Give Yourself to the Geek Side @ http://www.movingimagetoys.com
"Anakin, duck!"
"What's a duck?"

Top


Who's Online
0 registered (), 20 Guests and 12 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Wisdom needed
by Gizmo
Yesterday at 10:54 AM
How to hide sub forums from summary page
by blaaskaak
12/03/08 09:54 AM
Spell Check [beta]
by Bill B
12/01/08 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
Truth, David DelMonte, nick1, Begbie, cenk
13364 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks