News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Global Headers and Footers

Started by SMFHacks.com Team, August 02, 2006, 10:39:07 PM

Previous topic - Next topic

Elysia

#60
I like this mod very much, thank you.  8)

Currently it displays the custom header below the tabbed menu (Home, Help, Search, Admin etc) but I would prefer to have it right up at the top of the board.

Looking at the way it's displaying and at the globalhf.template it appears to me to be applying the mod to the BoardIndex template (i.e the bit where the board index shows) and not to the index.template (i.e. the whole front page template). Is this correct?

vbgamer45

Its actually not touching the templates at in order to make it work on all themes.
It is editing Sources/Subs.php
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Elysia

Ah right, yes thank you, I found that as a changed file rather than the other two templates.  But how do I get the headers/footers to go at the very top /bottom of the page please?

vbgamer45

You can edit the location in Subs.php to be at the very top and bottom. The downside it will be before any <html> and after any </html> tags
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Elysia

#64
That's what I want (I think! ;))  - I'm trying to replace a frameset, where the topframe is a row of ad boxes and SMF is the bottom frame, with a fixed row of ads in the same position using this mod.  I want the mod to replace the frameset.. both are in place at the moment whilst I try and make it work!

So how would I need to modify Subs.php please?

Kestryll

Quote from: AnneN on January 13, 2007, 11:35:13 AM
So how would I need to modify Subs.php please?

I am going to ask this question myself as well.
I have found the Sub.php file but am not sure how to modify it to get the header to be at the very top.
Any input would be appreciated.

sparky33

Quote from: AnneN on January 13, 2007, 11:35:13 AM
That's what I want (I think! ;))  - I'm trying to replace a frameset, where the topframe is a row of ad boxes and SMF is the bottom frame, with a fixed row of ads in the same position using this mod. The place I'm testing this out is here: http://www.glassoholic.org.uk/smf/ and I want the mod to replace the frameset.. both are in place at the moment whilst I try and make it work!

I think ad manager is what you need, although I would like the header to be at the top to so I could use it to locate a banner.

So how would I need to modify Subs.php please?
www.dublinforums.org

www.renaultforums.co

beast24

#67
So can you explain exactly how we can make it show up at the very top?  And what do you mean by:

"The downside it will be before any <html> and after any </html> tags"

beast24

#68
BUMPAGE?  I really need help on this :(

EDIT:  Used the Ad Management mod instead...

TheWrath!


barcelona

So where do I upload these files to?? and where do I copy and paste my banner ads code??
thanks

sparky33

This isn't really suitable for ads, ad management is what you want for that
www.dublinforums.org

www.renaultforums.co

barcelona

I tired the ad management but my ads don't show

sparky33

www.dublinforums.org

www.renaultforums.co

webmistress

Apply Filter: Only show the errors with the same message
8: Undefined index: globalhf_title
File: /home/file/html/sitefile/Sources/Subs.php
Line: 2737


I downloaded this mod in January 2007 and I get this error code.

I see where others have gotten the error. I don't think I need to download a new File:/smf/Sources/globalhf.php file since I have the latest version. Any way I can resolve this error?

What is the globalf.php_title any way? What I mean is what does this refer to? Index page?

Can anyone tell me where the 'Ad Management mod" deposits the ads on a page?

Thank you.

perplexed

Quote from: webmistress on January 28, 2007, 09:43:40 AM
Apply Filter: Only show the errors with the same message
8: Undefined index: globalhf_title
File: /home/file/html/sitefile/Sources/Subs.php
Line: 2737


I downloaded this mod in January 2007 and I get this error code.

I see where others have gotten the error. I don't think I need to download a new File:/smf/Sources/globalhf.php file since I have the latest version. Any way I can resolve this error?

What is the globalf.php_title any way? What I mean is what does this refer to? Index page?

Can anyone tell me where the 'Ad Management mod" deposits the ads on a page?

Thank you.
off topic but it deposits the ads where you tell it to in features and options


VBGamer :
I just read the above posts about where the global header and footer appear.

I assumed (wrongly) that they would be at the top and bottom of the screen too.  Is there a site I can look at that is using the header and footer so I can get a better idea?

~thanks

vbgamer45

Global header and footer appears after template_above and before template_below functions in a theme.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

webmistress

Quote from: webmistress on January 28, 2007, 09:43:40 AM
Apply Filter: Only show the errors with the same message
8: Undefined index: globalhf_title
File: /home/file/html/sitefile/Sources/Subs.php
Line: 2737


I downloaded this mod in January 2007 and I get this error code.

I see where others have gotten the error. I don't think I need to download a new File:/smf/Sources/globalhf.php file since I have the latest version. Any way I can resolve this error?

What is the globalf.php_title any way? What I mean is what does this refer to? Index page?

vbgamer45, I posted this and it landed on the previous page. Any idea how I can resolve this error code?

vbgamer45

Make sure text strings from modificaitons.english.php are located in all modificaitons.english.php in all the themes and if you use other languages in the modifications.yourlanguage.php as well.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

webmistress

#79
I found that file but am not clear what I'm supposed to do? Sorry to be a nogginhead. But I should add a string to several files or add one to this? Mine is in english.

An example would probably do the trick if you have one.

Advertisement: