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: 51
Loc: UK

   Modifying Portal to Del.icio.us Add to del.icio.us
  Digg Modifying Portal Digg it
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: 51
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: 51
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 (70 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: 51
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


Top Posters Last 30 Days
AllenAyres 18
Gizmo 12
sirdude 6
GEN 3
tackaberry 2
Philipp 2
willing 2
Who's Online
0 Registered (), 39 Guests and 6 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Team UBBDev Rides Again!
by Gizmo
Yesterday at 11:45 PM
Multiple Identity Detector
by MattUK
Yesterday at 04:10 PM
[7.3.x] ubb.links
by AllenAyres
08/26/08 09:57 AM
Installing FlashChat with 7.3
by Gizmo
08/23/08 05:36 AM
[7.2.1] - Naked shoutbox
by Iann128
08/22/08 07:27 PM
Nice Ajax Chat
by M4D
08/21/08 10:02 PM
51-card NVIDIA folding rig cranks out 265,200 ppd
by AllenAyres
08/13/08 10:10 PM
New Mods
Installing FlashChat with 7.3
by Paug
08/23/08 12:14 AM
[7.x] AddThis - Social Networking
by Gizmo
08/01/08 01:30 AM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
[7.3] Dissallow quotes more then 3 levels deep
by blaaskaak
06/09/08 09:01 AM
[7.2.1] - Naked shoutbox
by sirdude
08/17/07 10:36 PM
Newest Members
welcomeback1, Paug, Tim Keating, anscers, Murphdog
13324 Registered Users

 

 

 
fusionbb message board php hacks