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 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)

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

I type Like navaho

Registered: 03/10/00
Posts: 25580
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 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 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 
Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks