php forum
php mysql forum
php mysql smarty
 
Topic Options
#314396 - 06/12/07 04:42 PM Ability to use custom headers outside of forum
Ian_W Global Moderator Offline
Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
Hi,

I am trying to find a way (and failing at the moment) to include custom headers and footers on pages outside of UBB.

At the moment I can pull in the default header and footer just fine, and of course forums can have their own custom headers/footers - but I cannot find a way to extend this outside of the forum.

Anyone have any suggestions, or maybe someone wishes to earn a few pennies wink

Many thanks.
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#314397 - 06/12/07 05:57 PM Re: Ability to use custom headers outside of forum [Re: Ian_W]
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
I would just cheat. Create a new page for ubb (based on sample.inc.php). in &page_***_run() just include the script, buffer the output and pass the output as the only variable in $smarty_data. [ $smarty_data = array('stuff'=>$output); ] Then create a template that consists soley of
Code:
{$stuff}


Upload that, call ?ubb=***


Edited by Ian Spence (06/12/07 05:57 PM)
_________________________
Code monkey like Fritos

Top
#314402 - 06/13/07 05:57 PM Re: Ability to use custom headers outside of forum [Re: Ian Spence]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
Loc: Texas
Or you could cheat even more and just include the custom header/footer in the files you want.
_________________________
- Allen wavey
- What Drives You?

Top
#314403 - 06/13/07 06:04 PM Re: Ability to use custom headers outside of forum [Re: AllenAyres]
Ian_W Global Moderator Offline
Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
Yes - but then it would show both the default header and the custom one, surely - bearing in mind I also wish to keep the side bars smile
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#315350 - 08/22/07 06:29 AM Re: Ability to use custom headers outside of forum [Re: Ian_W]
Ian_W Global Moderator Offline
Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
Still struggling with this - thought I was onto a method - but it didn't work frown LOL
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top


Moderator:  sirdude 
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