Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: SMFHacks.com Team on August 02, 2006, 10:39:07 PM

Title: Global Headers and Footers
Post by: SMFHacks.com Team on August 02, 2006, 10:39:07 PM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=351)

Brief Summary:

This modification allows you to add global content to three different parts of your forum.
With the ability to add HTML, or parse BBC for either field!


Compatibility:



Changelog:

v2.0.1 (r5.10.12):


SMFHacks.com:


Title: Re: Global Headers and Footers
Post by: Mujahid on August 16, 2006, 05:01:25 AM
but the problem is that we can`t edit our code again..it doesn`t allow us to modify it..there is no link to modify code..it just shows the text box to insert the code..i`m not using default theme.
Title: Re: Global Headers and Footers
Post by: Assistance on August 18, 2006, 07:40:34 PM
wtf

thats wacked man, cant edit after putting them

so if you put "testing" its stuck there
actually you can get rid of them by unistall
Title: Re: Global Headers and Footers
Post by: L.G.S on August 19, 2006, 09:00:43 AM
Yes I'm getting this problem too :(

Although apart from that this mod is cool
Title: Re: Global Headers and Footers
Post by: vbgamer45 on September 02, 2006, 01:21:23 PM
New version released!
Fixed quoting problems and previewing problems.

Thanks to Grudge for finding out the problem.
Title: Re: Global Headers and Footers
Post by: Gobo on September 28, 2006, 01:37:26 PM
still needs work

installing this completely made my layout go beyond the limit of the screen (width wise)

so i had to uninstall
Title: Re: Global Headers and Footers
Post by: vbgamer45 on September 28, 2006, 01:54:38 PM
Which part caused that?
Going to the admin section of global headers and footers? or the whole forum?
Title: Re: Global Headers and Footers
Post by: Gobo on September 28, 2006, 10:01:23 PM
well im using tiny portal as well so that could have been why it didnt work properly

the whole forum and admin section - every page grew like twice their width

so was forced to uninstall

eventhough its a good idea for a mod
Title: Re: Global Headers and Footers
Post by: mforum on October 22, 2006, 03:50:32 AM
Global Headers and Footers v 1.1
1.1.RC2 - Default theme

1.when i put code in headers box and save shows ok in forum but dissapears from headers box, i don't know if this is normal cause in my test forum code remains in box after submitting..

2.Can i have headers and footers show only in index.template and not globally ?

EDIT: I have noticed that headers show up in SMF Radio window, so it`s useless now ...lol
Title: Re: Global Headers and Footers
Post by: avenueb on October 24, 2006, 12:01:00 PM
I installed on rc3.   I don't see any add'l options about header and footer in my admin section... where is it that you are able to set these header and footer options????
Title: Re: Global Headers and Footers
Post by: vbgamer45 on October 24, 2006, 12:36:51 PM
Should be called Global Headers and Footers in your admin.
Title: Re: Global Headers and Footers
Post by: Assistance on October 25, 2006, 10:54:05 AM
Configuration
Features and Options
Arcade
Server Settings
Current Theme
Themes and Layout
Global Headers and Footers
Ad Management
Title: Re: Global Headers and Footers
Post by: ernomo98 on November 05, 2006, 07:25:38 PM
where can I edit the header and footer text later or when I wish to have a new text?
Title: Re: Global Headers and Footers
Post by: Panzer- on November 05, 2006, 07:34:05 PM
Nice mod dude :)
Title: Re: Global Headers and Footers
Post by: Assistance on November 05, 2006, 08:14:55 PM
where can I edit the header and footer text later or when I wish to have a new text?
the same place

when you back to edit tho, ur text is no longer there :(
Title: Re: Global Headers and Footers
Post by: vbgamer45 on November 06, 2006, 04:35:16 PM
Updated the mod tell me if it fixed that problem.
Title: Re: Global Headers and Footers
Post by: vik on November 28, 2006, 01:23:27 PM
well i m using rc3 plus tiny poral with thi global header and footer mod

and i want to add he site LOGO on the top of the theme when i add the code through global header it just get stuck above the forum index

but i want to add he logo on the very top o the board index
 can any one help where i have to place the code


thanks in advance
Title: Re: Global Headers and Footers
Post by: crazyg on November 28, 2006, 04:34:39 PM
this thing doesn't want to install on my forum .the forum says its corrupt. : (
Title: Re: Global Headers and Footers
Post by: @ngel on December 09, 2006, 06:38:37 AM
Tested on 1.1 Final Version

This mod doesn't works on other language only in English version.

It duplicates the header/footer like : "The quick brownThe quick Brown"
Title: Re: Global Headers and Footers
Post by: vbgamer45 on December 09, 2006, 01:09:03 PM
You need to copy the language strings from modifications.english.php to modifications.yourlanguage.php

The second error seems like the mod was installed twice.
Title: Re: Global Headers and Footers
Post by: Kirsten07734 on December 12, 2006, 01:58:09 AM
Installed fine on my 1.1 test forum, and runs fine.

A request....
It would be nice to be able to use BBC in the headers and footers for formatting.  Specifically, I tried to center my copywrite statement at the bottom, but BBC wasn't recognized.

I really appreciate your work on this mod.  I've wanted for a long time to add my own copywrite statement at the bottom which was only available in some themes. 
Title: Re: Global Headers and Footers
Post by: howlerckc on December 12, 2006, 03:57:45 PM
Installed fine on my 1.1 test forum, and runs fine.

A request....
It would be nice to be able to use BBC in the headers and footers for formatting.  Specifically, I tried to center my copywrite statement at the bottom, but BBC wasn't recognized.

I really appreciate your work on this mod.  I've wanted for a long time to add my own copywrite statement at the bottom which was only available in some themes. 

You can use html <center></center> to center what you want.
Title: Re: Global Headers and Footers
Post by: Kirsten07734 on December 13, 2006, 04:54:15 PM
Quote
You can use html <center></center> to center what you want.

Doh!  Thanks for reminding me.  I have no idea why I had it in my head it had to be bbc, mod overload I suppose (I'm a kid in a candy store).  But yes, you are right and it works perfectly.  Thanks.

Great mod.
Title: Re: Global Headers and Footers
Post by: Spike2 on December 14, 2006, 03:29:26 AM
I cant uninstall the mod :S

Help me!
Title: Re: Global Headers and Footers
Post by: KGIII on December 15, 2006, 02:09:10 AM
The link is in my signature.

Err... Header is at the top and footer is at the bottom. This isn't either.

Anyone got any good ideas?
Title: Re: Global Headers and Footers
Post by: vbgamer45 on December 15, 2006, 02:56:50 PM
What's the error? It sort of depends on the theme. It adds code  after the template_above function is code and before template_footer function is called.
Title: Re: Global Headers and Footers
Post by: KGIII on December 15, 2006, 03:31:42 PM
What's the error? It sort of depends on the theme. It adds code  after the template_above function is code and before template_footer function is called.

Oh no error really other than it isn't at the very top which is where a "header" would normally be. I've still found a use for it I suppose though if there's a way to get it to actually go to the top it would be better I guess.

The link in my signature shows the site in question. It is called "My Mess" at this point as I'm not entirely sure where it will go. It is where the news fader would normally be on the default theme and is indeed just using the default theme.

The footer follows suit. It isn't at the end of the page but, rather, is above the copyright information. That works just fine though. I'll find something to put there. ;)

I would, however, like to know if there is an easy way to get the header up to the absolute top that you're aware of?
Title: Re: Global Headers and Footers
Post by: Dirtrocker on December 18, 2006, 03:11:08 AM
The mod says it installed fine on 1.1, but when I had it on 1.1 RC3, there was a link on the administration menu to the global header and footers.
On the install of 1.1, when I installed the mod, there is no link on the admin menu.
Any ideas?
Where did it put the link to manage it?
Title: Re: Global Headers and Footers
Post by: bugpage on December 21, 2006, 11:51:08 AM
Where do I upload this Mod to?  What directory or path?
Title: Re: Global Headers and Footers
Post by: vbgamer45 on December 21, 2006, 11:56:01 AM
To the packages folder of your SMF Forum then you go to the package manager to install it.
Title: Re: Global Headers and Footers
Post by: bugpage on December 21, 2006, 12:35:20 PM
Got it installed through the package area.  no menu shows up on the left side to click on in the  "Configuration" area.  I'm running SMF version 1.1.1
Title: Re: Global Headers and Footers
Post by: vbgamer45 on December 21, 2006, 01:31:48 PM
Are you running on another language?
Title: Re: Global Headers and Footers
Post by: bugpage on December 21, 2006, 02:14:21 PM
English
Title: Re: Global Headers and Footers
Post by: vbgamer45 on December 21, 2006, 02:15:34 PM
Check if you can access http://www.yoursite.com/index.php?action=globalhf

If you can't access that page then the mod is not installed.
Title: Re: Global Headers and Footers
Post by: bugpage on December 21, 2006, 02:18:21 PM
That just pulls up our index page/ home page
Title: Re: Global Headers and Footers
Post by: vbgamer45 on December 21, 2006, 02:19:36 PM
Then the mod did not install.
Title: Re: Global Headers and Footers
Post by: bugpage on December 21, 2006, 02:20:25 PM
Should I uninstall then reinstall?
Title: Re: Global Headers and Footers
Post by: bugpage on December 21, 2006, 02:24:02 PM
 Type Action Description
1. Execute Modification ./Themes/default/languages/Modifications.english.php         Test successful
2. Execute Modification ./index.php                 Test successful
3. Execute Modification ./Sources/Subs.php           Test successful
4. Extract File ./Sources/globalhf.php 
5. Extract File ./Themes/default/globalhf.template.php 
6. Extract File ./smfheader.php 
7. Extract File ./smffooter.php

Looks like all the files are not installing properly in the package manager
Title: Re: Global Headers and Footers
Post by: vbgamer45 on December 21, 2006, 02:25:47 PM
I would check the permissions on the files to see it is allowed to edit and add files.
Title: Re: Global Headers and Footers
Post by: bugpage on December 21, 2006, 02:46:07 PM
This is to stressfull before the holidays..LOL  I have all permissions set to write.  Still no luck. bummer
Title: Re: Global Headers and Footers
Post by: bugpage on December 21, 2006, 02:47:36 PM
Could I manually FTP/upload these ?
Title: Re: Global Headers and Footers
Post by: vbgamer45 on December 21, 2006, 02:51:16 PM
Yes you can manually install it litttle bit complex though
Check out this article
http://docs.simplemachines.org/index.php?topic=400
Title: Re: Global Headers and Footers
Post by: bugpage on December 21, 2006, 02:53:22 PM
any other ideas why the Package Manager wont finish the job
Title: Re: Global Headers and Footers
Post by: L.G.S on December 22, 2006, 07:29:57 AM
Does the mod support php?

I entered this into the header box, and it messed up my layout:

Code: [Select]
<?php

if ($context['user']['is_guest'])
<
table class="tborder" style="margin-bottom: 0ex;"
 
border="0" cellpadding="0" cellspacing="1"
 
width="100%">
  <
tbody>
    <
tr>
      <
td class="catbg"R-I Forums Network</td>
    </
tr>
    <
tr>
      <
td class="windowbg2" align="left" height="60"
 
valign="middle">
R-I is short for Ruthless IntentThe name was not chosen for reference to violencebut for reference to how our loyal members help keep our forum aliveWe strive to offer interesting and funny topics, as well as special events in-forum.<br /><br />If you decide to join our forumsthen you will get all that is mentioned as well as access to our growing downloads area (at 20 posts), access to our 100 game strong arcadeaccess to our script library and access to our shopwhere you can buy email addresses and even webspace for posts.<br /><br />Still not convincedHave a click on the tabs below-right and take a look at what we can off you.
      </
td>
    </
tr>
  </
tbody>
</
table>
<
table style="margin-right: 10px;" border="0" cellpadding="0" cellspacing="0" align="right">
  <
tbody>
    <
tr>
      <
td class="maintab_first"> </td>
      <
td class="maintab_active_first"> </td>
      <
td class="maintab_active_back" valign="top">
      <
span style="text-decoration: underline;"><a href="/board/">Home</a></span></td>
      <
td class="maintab_active_last"> </td>
      <
td class="maintab_back" valign="top">
      <
span style="text-decoration: underline;">
      <
a href="/board/index.php?action=arcadeinfo">Arcade</a></span>
      </
td>
      <
td class="maintab_back" valign="top">
      <
span style="text-decoration: underline;">
      <
a href="/board/index.php?action=shopinfo">Shop</a></span>
      </
td>
      <
td class="maintab_back" valign="top">
      <
span style="text-decoration: underline;">
      <
a href="/board/index.php?action=downloadsinfo">Downloads</a></span>
      </
td>
      <
td class="maintab_back" valign="top">
      <
span style="text-decoration: underline;">
      <
a href="/board/index.php?action=ffinfo">Fantasy Football</a></span>
      </
td>
      <
td class="maintab_back" valign="top">
      <
span style="text-decoration: underline;"><a href="/board/index.php?action=privacy">Your Privacy</a></span></td>
      <
td class="maintab_back" valign="top">
      <
span style="text-decoration: underline;">
      <
a href="/board/index.php?action=about">About Us</a></td>
      <
td class="maintab_last"> </td>
    </
tr>
  </
tbody>
</
table>
<
table style="margin-bottom: 5px;" width="100%">
<
td>
<
tr>
<
br />
</
td>
</
tr>
</
table>

?>
Title: Re: Global Headers and Footers
Post by: vbgamer45 on December 22, 2006, 11:17:35 AM
It does not support PHP.
Title: Re: Global Headers and Footers
Post by: L.G.S on December 22, 2006, 11:31:59 AM
Someway I could change the code so it would ?
Title: Re: Global Headers and Footers
Post by: vbgamer45 on December 22, 2006, 11:37:14 AM
You would need to change it probalby to eval from file_get_contents in Sources/Subs.php and then it will just support php code.
Title: Re: Global Headers and Footers
Post by: L.G.S on December 22, 2006, 02:26:56 PM
So if I do this, I won't be able to use html? Hmm
Title: Re: Global Headers and Footers
Post by: vbgamer45 on December 22, 2006, 02:33:53 PM
I think so I haven't tested it.
Title: Re: Global Headers and Footers
Post by: L.G.S on December 22, 2006, 03:19:12 PM
Anyway I could have both?

Sorry to keep asking these questions, I just have some code I want only guests to see and not other members :)
Title: Re: Global Headers and Footers
Post by: KGIII on December 22, 2006, 06:47:34 PM
L.G.S.:

In an effort to have something similar I ended up using the Ads mod which does support PHP, that worked fairly well and enabled me to put a nifty little critter at the bottom of my forum that only shows for guests or people who have 0 posts.
Title: Re: Global Headers and Footers
Post by: L.G.S on December 22, 2006, 08:07:30 PM
Yeah I tried the ad mod, although when I added the code it changed the layout of my forum, just because of the php bit ???
Title: Re: Global Headers and Footers
Post by: KGIII on December 23, 2006, 02:09:53 AM
L.G.S.:

Did you put it in nice pretty template form with tables and the likes? I spent a long time learning to move beyond tables and to try to learn to position everything with style sheets but SMF is like a step backwards there.

(I think you're one of the folks who's PMed me?)

If you want you can PM me again, tell me where you want it, tell me what you want it to look like, and I just /might/ be able to answer or you can ask here or in a thread in the coding section. If you have both the ads mod and the global headers and footer MOD installed it will likely make it easier.

I'm, by no means, a guru but I've got a wee bit of time tomorrow, tomorrow night, and again after Monday so I'd happily poke at it. My entire week, coming up, is set to "off" and everything I do is going to be something that I do just to enjoy myself for a while. That and setting up/finalizing the blog hosting, I should surely enjoy myself. :)
Title: Re: Global Headers and Footers
Post by: veldfire on December 30, 2006, 10:24:51 PM
Any idea why it's throwing this error in the log constantly ?

Code: [Select]
8: Undefined index: sa
File:/smf/Sources/globalhf.php
Line: 28

TIA,
Veldfire
Title: Re: Global Headers and Footers
Post by: vbgamer45 on December 31, 2006, 10:01:16 AM
Any idea why it's throwing this error in the log constantly ?

Code: [Select]
8: Undefined index: sa
File:/smf/Sources/globalhf.php
Line: 28

TIA,
Veldfire
Fixed.
Title: Re: Global Headers and Footers
Post by: veldfire on December 31, 2006, 10:20:15 AM
Any idea why it's throwing this error in the log constantly ?

Code: [Select]
8: Undefined index: sa
File:/smf/Sources/globalhf.php
Line: 28

TIA,
Veldfire
Fixed.

Great ! And how can I fix it in mine without uninstalling and re-installing the whole hack and all the items in my header and footer ?
Title: Re: Global Headers and Footers
Post by: vbgamer45 on December 31, 2006, 10:22:17 AM
Download the file get the globalhf.php file and copy that to your sources folder.
Title: Re: Global Headers and Footers
Post by: veldfire on December 31, 2006, 10:30:00 AM
Download the file get the globalhf.php file and copy that to your sources folder.
Ok, thank you very much !
Title: Global Headers and Footers
Post by: sparky33 on January 11, 2007, 05:46:04 AM
Is there a way to set the header so it only appears on the board index rather than on every page?
Title: Re: Global Headers and Footers
Post by: vbgamer45 on January 11, 2007, 09:36:56 AM
Is there a way to set the header so it only appears on the board index rather than on every page?
No option for that.

If you wish to do that edit BoardIndex.template.php in your themes folder.
Title: Re: Global Headers and Footers
Post by: Elysia on January 13, 2007, 08:12:13 AM
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?
Title: Re: Global Headers and Footers
Post by: vbgamer45 on January 13, 2007, 11:07:03 AM
Its actually not touching the templates at in order to make it work on all themes.
It is editing Sources/Subs.php
Title: Re: Global Headers and Footers
Post by: Elysia on January 13, 2007, 11:23:38 AM
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?
Title: Re: Global Headers and Footers
Post by: vbgamer45 on January 13, 2007, 11:25:26 AM
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
Title: Re: Global Headers and Footers
Post by: Elysia 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.  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?
Title: Re: Global Headers and Footers
Post by: Kestryll on January 22, 2007, 02:55:18 PM
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.
Title: Re: Global Headers and Footers
Post by: sparky33 on January 22, 2007, 07:23:21 PM
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?
Title: Re: Global Headers and Footers
Post by: beast24 on January 23, 2007, 11:16:58 AM
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"
Title: Re: Global Headers and Footers
Post by: beast24 on January 23, 2007, 08:34:16 PM
BUMPAGE?  I really need help on this :(

EDIT:  Used the Ad Management mod instead...
Title: Re: Global Headers and Footers
Post by: TheWrath! on January 24, 2007, 10:27:03 AM
good mod. i love it
Title: Re: Global Headers and Footers
Post by: barcelona on January 25, 2007, 12:18:07 AM
So where do I upload these files to?? and where do I copy and paste my banner ads code??
thanks
Title: Re: Global Headers and Footers
Post by: sparky33 on January 25, 2007, 01:05:28 AM
This isn't really suitable for ads, ad management is what you want for that
Title: Re: Global Headers and Footers
Post by: barcelona on January 25, 2007, 09:08:18 PM
I tired the ad management but my ads don't show
Title: Re: Global Headers and Footers
Post by: sparky33 on January 25, 2007, 10:32:41 PM
You may need to modify your theme manually.

See here http://www.smfads.com/forums/index.php?topic=475.0
Title: Re: Global Headers and Footers
Post by: webmistress on January 28, 2007, 09:43:40 AM
Code: [Select]
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.
Title: Re: Global Headers and Footers
Post by: perplexed on January 28, 2007, 11:16:41 AM
Code: [Select]
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
Title: Re: Global Headers and Footers
Post by: vbgamer45 on January 28, 2007, 11:23:33 AM
Global header and footer appears after template_above and before template_below functions in a theme.
Title: Re: Global Headers and Footers
Post by: webmistress on January 28, 2007, 12:04:30 PM
Code: [Select]
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?
Title: Re: Global Headers and Footers
Post by: vbgamer45 on January 28, 2007, 12:17:49 PM
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.
Title: Re: Global Headers and Footers
Post by: webmistress on January 28, 2007, 12:28:08 PM
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.
Title: Re: Global Headers and Footers
Post by: perplexed on January 28, 2007, 06:57:25 PM
Global header and footer appears after template_above and before template_below functions in a theme.

so in the default template that is where exactly?   below the navigation bar and the start of the boards and at the bottom, after t he copyright info and xhtml /css/wai/sitemap links?
(sorry just a guess, dont know much about templates)
Title: Re: Global Headers and Footers
Post by: vbgamer45 on January 28, 2007, 07:50:52 PM
after the menu and navigation and before the copyright links
Title: Re: Global Headers and Footers
Post by: perplexed on January 28, 2007, 08:11:23 PM
ah ok, gotta thanks

and it can be as big as you want it to be?  and can you have a footer and not a header or you have to have both on?
Title: Re: Global Headers and Footers
Post by: vbgamer45 on January 28, 2007, 08:32:45 PM
Yes you can do that.
Title: Re: Global Headers and Footers
Post by: perplexed on January 28, 2007, 08:33:42 PM
cool thanks very much, I will go test it out on my testforum during the week :)
Title: Re: Global Headers and Footers
Post by: perplexed on January 29, 2007, 05:10:06 PM
one more question, this works with tiny portal installed, yes?
Title: Re: Global Headers and Footers
Post by: sparky33 on February 01, 2007, 12:46:36 PM
yes it does, I use it with TP
Title: Re: Global Headers and Footers
Post by: perplexed on February 01, 2007, 01:34:21 PM
cool thanks
Title: Re: Global Headers and Footers
Post by: caryb on February 05, 2007, 06:25:33 AM
It doubles up any text I put in :'(
Title: Re: Global Headers and Footers
Post by: babjusi on February 06, 2007, 11:28:05 PM
It doubles up any text I put in :'(

Maybe you installed the mod twice
Title: Re: Global Headers and Footers
Post by: babjusi on February 06, 2007, 11:30:28 PM
I read that some people above had problems when inserting the HTML code, they couldn''t change it. Is that fixed? Thank u

P.s. Is there a difference betwwen this mod and the add_mod?
Title: Re: Global Headers and Footers
Post by: perplexed on February 07, 2007, 07:59:08 AM
the add_mod?   
Title: Re: Global Headers and Footers
Post by: babjusi on February 07, 2007, 08:53:48 AM
the add_mod?  

yeas, the ad_mod. It works with both HTML and PHP. I just wanted to know what''s the difference between these 2 mods
Title: Re: Global Headers and Footers
Post by: perplexed on February 07, 2007, 10:09:32 AM
You mean the ad mgmt mod?  I was just talking about this with someone else as I use it, so some clarification or list of differences would be good  
Title: Re: Global Headers and Footers
Post by: sparky33 on February 08, 2007, 12:54:25 PM
I read that some people above had problems when inserting the HTML code, they couldn''t change it. Is that fixed? Thank u

P.s. Is there a difference betwwen this mod and the add_mod?
Ad management is totally different, and has it's own CP, you can choose where the ads go and even individual boards, global headers and footers just exactly that, i only use the footer myself to add my counter.

Take a look at my site for an example of ad management www.coupe-club.org.uk/smf
Title: Re: Global Headers and Footers
Post by: babjusi on February 08, 2007, 10:21:30 PM
I read that some people above had problems when inserting the HTML code, they couldn''t change it. Is that fixed? Thank u

P.s. Is there a difference betwwen this mod and the add_mod?
Ad management is totally different, and has it's own CP, you can choose where the ads go and even individual boards, global headers and footers just exactly that, i only use the footer myself to add my counter.

Take a look at my site for an example of ad management www.coupe-club.org.uk/smf

I saw it, it looked nice. So with this global headers and footers mod, u can place ads as well in your forum then,? Just copy/paste the HTML Code, right? The thing is, later on, could you take out the ads from your site? Cause, I read above that someone said that when u place the add you won''t be able to get rid of it later, or did I get it wrong? Thanks
Title: Re: Global Headers and Footers
Post by: sparky33 on February 08, 2007, 10:25:03 PM
I wouldn't use global headers and footers for ads, but yes, you can remove it any time you want.

See where my banner ads are on my board index? That is where the header goes, and it's always there, on every page, and you can't change it, where my counter is, is where the footer goes, and again, it's fixed.

For ads use the ad management mod.
Title: Re: Global Headers and Footers
Post by: babjusi on February 08, 2007, 10:36:38 PM
I wouldn't use global headers and footers for ads, but yes, you can remove it any time you want.

See where my banner ads are on my board index? That is where the header goes, and it's always there, on every page, and you can't change it, where my counter is, is where the footer goes, and again, it's fixed.

For ads use the ad management mod.

Yeah, that''s what I am using, the ad management mod, but thought to give this a try as it works with all themes, whereas the ad management mod works only with the default theme and I ain''t so good in that techinical stuff, to make it work with other themes.
Title: Re: Global Headers and Footers
Post by: sparky33 on February 08, 2007, 10:50:37 PM
If you follow the guide it's easy to modify the files needed, will take you about half an hr tops, maybe even only 10 min's
Title: Re: Global Headers and Footers
Post by: babjusi on February 08, 2007, 10:53:27 PM
If you follow the guide it's easy to modify the files needed, will take you about half an hr tops, maybe even only 10 min's

Yeah, I know that it ain''t that difficult, but the thing is, I tried once before to modify something similiar and ended up messing up my whole forum and now I kind of got a phobia about these things. So I try to stay as far away as possible from this techinical stuff
Title: Re: Global Headers and Footers
Post by: sparky33 on February 08, 2007, 10:53:53 PM
I know what you mean, but if you create a back up of each file before you modify it, you can't go wrong.

What I do, is sign into my ftp, then copy the file to my desktop, then rename the file on the ftp by adding a 1 to it, modify the file, upload it and test it, if there are no adverse changes all is well, then repeat the procedure for each file that needs modifying.

Bare in ind you may notice small changes on the way as you modify the files, this is normal.

Once you are happy that it all works ok, you can delete the renamed files.

see this topic here http://www.simplemachines.org/community/index.php?topic=149135.0
Title: Re: Global Headers and Footers
Post by: qubbah on February 11, 2007, 10:58:20 AM
when i install this mod,
this msg was appear in the top of my forum

//Global Announcements adminIndex text strings. $txt['global_announcements_admin'] = 'Global Announcements'; $txt['global_announcements_mods'] = 'Mods'; $txt['whoallow_globalAnnouncementsAdmin'] = 'Managing the Global Announcements.'; $txt['whoall_globalAnnouncements'] = 'Viewing a Global Announcement'; //Global Announcements adminIndex text strings. $txt['global_announcements_admin'] = 'Global Announcements'; $txt['global_announcements_mods'] = 'Mods'; $txt['whoallow_globalAnnouncementsAdmin'] = 'Managing the Global Announcements.'; $txt['whoall_globalAnnouncements'] = 'Viewing a Global Announcement'; //Global Announcements adminIndex text strings. $txt['global_announcements_admin'] = 'Global Announcements'; $txt['global_announcements_mods'] = 'Mods'; $txt['whoallow_globalAnnouncementsAdmin'] = 'Managing the Global Announcements.'; $txt['whoall_globalAnnouncements'] = 'Viewing a Global Announcement';


how can i resolved this?
Title: Re: Global Headers and Footers
Post by: babjusi on February 11, 2007, 12:44:22 PM
I know what you mean, but if you create a back up of each file before you modify it, you can't go wrong.

What I do, is sign into my ftp, then copy the file to my desktop, then rename the file on the ftp by adding a 1 to it, modify the file, upload it and test it, if there are no adverse changes all is well, then repeat the procedure for each file that needs modifying.

Bare in ind you may notice small changes on the way as you modify the files, this is normal.

Once you are happy that it all works ok, you can delete the renamed files.

see this topic here http://www.simplemachines.org/community/index.php?topic=149135.0

Thanks sparky33, I will give it a try. Hope I can get the hand of this
 
Title: Re: Global Headers and Footers
Post by: sparky33 on February 12, 2007, 12:47:37 PM
when i install this mod,
this msg was appear in the top of my forum

//Global Announcements adminIndex text strings. $txt['global_announcements_admin'] = 'Global Announcements'; $txt['global_announcements_mods'] = 'Mods'; $txt['whoallow_globalAnnouncementsAdmin'] = 'Managing the Global Announcements.'; $txt['whoall_globalAnnouncements'] = 'Viewing a Global Announcement'; //Global Announcements adminIndex text strings. $txt['global_announcements_admin'] = 'Global Announcements'; $txt['global_announcements_mods'] = 'Mods'; $txt['whoallow_globalAnnouncementsAdmin'] = 'Managing the Global Announcements.'; $txt['whoall_globalAnnouncements'] = 'Viewing a Global Announcement'; //Global Announcements adminIndex text strings. $txt['global_announcements_admin'] = 'Global Announcements'; $txt['global_announcements_mods'] = 'Mods'; $txt['whoallow_globalAnnouncementsAdmin'] = 'Managing the Global Announcements.'; $txt['whoall_globalAnnouncements'] = 'Viewing a Global Announcement';


how can i resolved this?

Uninstall the mod, see if it fixes the problem, if it does, then maybe it's incomatible with your set up. When you install, does it give you any errors before you finalize the installation?
Title: Re: Global Headers and Footers
Post by: affbld on February 17, 2007, 10:48:32 PM
awesome mod....you guys come up with the coolest ideas ever. thx!
Title: Re: Global Headers and Footers
Post by: Iron IC on February 18, 2007, 07:10:16 PM
This mod won`t install from the package manager. I got the zipfile uploaded and are asked to add the mod, but nothing happens after confirming to add it.

I run smf 1.1.2 and are on a unix server. I downloaded the latest version.

I gave chmodded all folders on my server, and I copied smffooter.php and smfheader.php into forum root. (should I?)

Any solutions? Is this mod compatible with smf 1.1.2?

Please respond. Thank you!  
Title: Re: Global Headers and Footers
Post by: Iron IC on February 19, 2007, 10:40:00 PM
Bump! :)
 
Title: Re: Global Headers and Footers
Post by: shaylor2005 on February 20, 2007, 03:20:11 PM
hi if im using html where do i put my css file and the images that i need to use
 
Title: Re: Global Headers and Footers
Post by: sparky33 on February 22, 2007, 04:44:26 AM
This mod won`t install from the package manager. I got the zipfile uploaded and are asked to add the mod, but nothing happens after confirming to add it.

I run smf 1.1.2 and are on a unix server. I downloaded the latest version.

I gave chmodded all folders on my server, and I copied smffooter.php and smfheader.php into forum root. (should I?)

Any solutions? Is this mod compatible with smf 1.1.2?

Please respond. Thank you! 

It may be that it's not compatible with 1.1.2, or that you didn't use the default theme for the installation.
Title: Re: Global Headers and Footers
Post by: sparky33 on February 22, 2007, 04:45:45 AM
hi if im using html where do i put my css file and the images that i need to use
 
CSS I don't know, but the images can be hosted where ever you like, just add the URL to where they are located, images on your own site, images within SMF or a seperate host.
Title: Re: Global Headers and Footers
Post by: harmsway on March 02, 2007, 01:19:03 AM
I install it, and it says its succesfull.. but there are no additional options. I can't find the headers/footers.
Title: Re: Global Headers and Footers
Post by: sparky33 on March 03, 2007, 12:30:54 PM
Admin>Configuration
Title: Re: Global Headers and Footers
Post by: harmsway on March 03, 2007, 05:23:10 PM
Its not under configuration. I don't think its installing right, even though it says it installed succesfully.  
Title: Re: Global Headers and Footers
Post by: harry_enfield on March 03, 2007, 05:26:52 PM
Hi Harmsway

Check your Forum Error Log, if you haven't already ;)
Title: Re: Global Headers and Footers
Post by: sparky33 on March 04, 2007, 03:33:43 PM
Did you install it whilst in the default theme?
Title: Re: Global Headers and Footers
Post by: babjusi on March 05, 2007, 01:04:23 PM
This mod won`t install from the package manager. I got the zipfile uploaded and are asked to add the mod, but nothing happens after confirming to add it.

I run smf 1.1.2 and are on a unix server. I downloaded the latest version.

I gave chmodded all folders on my server, and I copied smffooter.php and smfheader.php into forum root. (should I?)

Any solutions? Is this mod compatible with smf 1.1.2?

Please respond. Thank you! 

yes, this mod is compatible with 1.1.2
Title: Re: Global Headers and Footers
Post by: babjusi on March 05, 2007, 01:07:07 PM
Hello harmsway

It should be there under the configuration at the admin''s panel in your forum

Check out the image on the right

http://custom.simplemachines.org/mods/index.php?mod=351
Title: Re: Global Headers and Footers
Post by: dobuy on March 22, 2007, 04:59:08 AM
I get the same problem on one of my forums, the Global Headers and Footers prompt does not show on the menu.  I also get this error

Quote
8: Undefined index: globalhf_title
File: /home/xxxxxx/public_html/testforum/Sources/Subs.php
Line: 2737

Any thoughts, the mod works fine on my other forum
Title: Re: Global Headers and Footers
Post by: CuTe_MaN on April 10, 2007, 08:53:25 AM
i have TP installed on my forum and I have installed the global headers and footers mod but I am facing a problem that the code that I have added only adds what ever I want around the forum but not arround the side bars of tp.

I have tried to fix the problem by my self but I couldnt

can any body help me to put also TP bars inside my template?

(http://www.uaeuclub.com/upload/users/CuTe_MaN/left.JPG)


Thx

CuTe_MaN
Title: Re: Global Headers and Footers
Post by: CuTe_MaN on April 10, 2007, 09:00:58 AM
I have found a new problem as u can see in the pic:

(http://www.uaeuclub.com/upload/users/CuTe_MaN/admin.jpg)

the mod only adds the code arround the board body not arround every thing

any body can help?


Thx

CuTe_MaN
Title: Re: Global Headers and Footers
Post by: moon22 on April 16, 2007, 09:09:01 AM
Its not under configuration. I don't think its installing right, even though it says it installed succesfully.&nbsp;

I have the same problem...

Did you install it whilst in the default theme?

No, I install it while using the AA New Damage theme...

Can somebody help us with this problem... pls... :'(
Title: Re: Global Headers and Footers
Post by: LeddaBlue on April 18, 2007, 05:13:55 PM
Its not under configuration. I don't think its installing right, even though it says it installed succesfully.&nbsp;



Did you install it whilst in the default theme?

No, I install it while using the AA New Damage theme...

Can somebody help us with this problem... pls... :'(


I have the same problem...


I have this problem too? I don't see any thing different under configuration, is there a reason it would not show up? I have uninstalled and then reinstalled the mod and still nothing it was installed on the default theme nothing fancy, can anyone help me please? 
Title: Re: Global Headers and Footers
Post by: spottedhog on April 21, 2007, 12:26:53 AM
I found a great use for this Mod (nice job by the way!)....  You can use it to create inline CSS navigation buttons for any new actions or pages or whatever other link you may need.

Here is a test/demo code for the Inline CSS buttons:

Put this at the beginning of your themes style.css file.
Code: [Select]
/* Inline CSS Button Code */
.inline-button {
   width:12em;
   font: bold 65%/1 Verdana, sans-serif;
   margin: 0 0.2em; padding: 0.1em 0;
   border: 1px solid black;
   white-space:nowrap;
   text-decoration: none;
   vertical-align:middle;
   background: #ccc;
   color: black;
   }
.inline-button em {
   width:1em;
   font-style: normal;
   margin:0; padding: 0.1em 0.5em;
   background: white;
   color: black;
   }
.inline-button span {
   width:1em;
   margin:0; padding: 0.1em 0.5em 0.1em 0.3em;
   }
.inline-button:hover {
   background: #666;
   color: white;
   }
.inline-button:hover em {
   background: black;
   color: white;
   }
   
.orange span { background: orange; color: black }
.orange em { background: white; color: #c60 }

.blue span { background: #06c; color: white }
.blue em { background: white; color: #06c }

.green span { background: green; color: white }
.green em { background: white; color: green }
 

Put this in the Global Header.
Code: [Select]
<a class="inline-button orange" href="index.php?action=profile"><em>Your</em><span> Profile</span></a>
<a class="inline-button blue" href="index.php?action=calendar"><em>Open</em><span> Calendar</span></a>
<a class="inline-button green" href="index.php?action=search"><em>Forum</em><span> Search</span></a>

You should be able to fairly closely match your theme colors.
Title: Re: Global Headers and Footers
Post by: spottedhog on April 24, 2007, 04:19:20 PM
To the Global Headers/Footers Developer..... just a suggestion....

I had been having problems with the Header part of the Global Headers.  I am using it for some other link buttons for new actions I have created.  Anyway, the line of link buttons would be a problem whenever I was in the Profile and Admin sections.  Your code is not bound or is willing to stay in place.  I now know the issue is with where you have put the code in the Subs.php.  The issue is it should not be there, but instead, be in the index.template.php file immediately under template_menu......   This way the site/theme etc. is not broken up.  Also, of course put the global call to boarddir there.

.....  at least it is working very well for me this way.

...again..... just a recommendation.
Title: Re: Global Headers and Footers
Post by: vbgamer45 on April 24, 2007, 07:52:35 PM
If i move the code to index.template.php then it just affects one template. Purpose of this mod is to affect all templates without editing them.
Title: Re: Global Headers and Footers
Post by: folkandfaith on May 06, 2007, 10:16:11 PM
I am on 1.1.2 and it gives me this error when going to the link that says Global Header and Footer:
Quote
Fatal error: smf_main() [function.require]: Failed opening required '/home/ggallin/public_html/smf_forums/Sources/globalhf.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ggallin/public_html/smf_forums/index.php on line 349
Title: Re: Global Headers and Footers
Post by: folkandfaith on May 07, 2007, 01:44:52 PM
Is there some file or such that I need to alter to make this work right then? This "Line 349" do I do something to fix this?
Title: Re: Global Headers and Footers
Post by: folkandfaith on May 08, 2007, 01:06:11 AM
Tried un-installing it, deleting it, and then going back and downloading it and uploading it only to get the same "line 349" error. Any way to fix this to make it work?
Title: Re: Global Headers and Footers
Post by: icwater on May 08, 2007, 11:19:16 PM
was wondering if someone could help me here
(http://www.icwater.net/uploader/files/1/smf.jpg)
Global Headers and Footers has put my header below where i want it as you can see in the pic i would like to delete the section crossed out in red and move my header in it's place, i thought this is what Global Headers and Footers does but it seems i either messed up or i need to modify it, any ideas?
Title: Re: Global Headers and Footers
Post by: folkandfaith on May 09, 2007, 12:50:34 PM
I think that the problem with many of these mods is that the creator of them has already done us a service by making them, and then never is able to get back often enough to check on their creation to see if it is still alive and kicking... More often then not some issue arises due to whatever, and then no one can figure out how to fix it and its creator hasn't the time to stop back in and help others wishing to use their creation  :( This seems to be the case with this mod as well as others...
Title: Re: Global Headers and Footers
Post by: KGIII on May 09, 2007, 02:00:57 PM
was wondering if someone could help me here

Instead of using the mod just edit the index.template.php file for that. You would just add the code (from the looks of things in your picture) after the <body>'; code. You can probably get away with it pretty easily - I suspect it will be the very first "echo" after that where you could just put your code.

folkandfaith:

vbgamer is currently on hiatus but I am reasonably certain they'll return as rapidly as they can.
Title: Re: Global Headers and Footers
Post by: icwater on May 09, 2007, 05:52:08 PM
was wondering if someone could help me here

Instead of using the mod just edit the index.template.php file for that. You would just add the code (from the looks of things in your picture) after the <body>'; code. You can probably get away with it pretty easily - I suspect it will be the very first "echo" after that where you could just put your code.

folkandfaith:

vbgamer is currently on hiatus but I am reasonably certain they'll return as rapidly as they can.

i've seen your solution posted several times but i'm a bit php retarded and it seems theres more too it that just slappin my html in there because when i do it breaks the forum :(
could you tell me a little mor exactly where to put it, please?

this is what i want to toss in there
Code: [Select]
<html>
<head>
<title>Benedikt Dorsch Tennis - The New Face of German Tennis</title>

<meta name="keywords" content=" ATP, Tennis, Professional, Benedikt, Dorsch" />
<meta name="description" content="The official website for ATP Tennis Professional Benedikt Dorsch." />

<meta http-equiv="Content-Language" content="en-us">
<meta name="author" content="http://www.Bahamas2000.com">
<meta name="robots" content="index,follow,all">
<meta name="distribution" content="global">
<meta name="rating" content="general">
<link rel="stylesheet" href="../sIFR-screen.css" type="text/css" media="screen">
<link rel="stylesheet" href="../sIFR-print.css" type="text/css" media="print">
<script src="../sifr.js" type="text/javascript"></script>
<script src="../sifr-addons.js" type="text/javascript"></script>
<script src="../AC_RunActiveContent.js" type="text/javascript"></script>
<script language="javaScript" type="text/javascript" src="../menu.js"></script>
<link rel="stylesheet" type="text/css" href="../style.css" />

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">td img {display: block;}
.style3 {
text-align: left;
}
.style4 {
text-align: center;
}
.style5 {
text-align: left;
font-weight: bold;
}
</style>

</head>
<body bgcolor="#999999" onLoad="MM_preloadImages('../images/btn-home_f2.jpg','../images/btn-press_f2.jpg','../images/btn-about_f2.jpg','../images/btn-photo_f2.jpg','../images/btn-forum_f2.jpg','../images/btn-contact_f2.jpg');" topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0" background="../images/bg-grad.jpg">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="676" id="table2">
  <tr>
   <td colspan="8" valign="top">
<img name="ssheader725x75" src="../images/ss-header725x75.jpg" width="725" height="88" border="0" id="ssheader725x75" alt="" align="top" /></td>
  </tr>
  <tr>
   <td valign="top">
<img name="menubar" src="../images/menu-bar.jpg" width="13" height="49" border="0" id="menubar" alt="" align="top" /></td>
   <td valign="top">
<a href="../index.htm" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('btnhome','','../images/btn-home_f2.jpg',1);">
<img name="btnhome" src="../images/btn-home.jpg" width="79" height="49" border="0" id="btnhome" alt="Welcome" align="top" /></a></td>
   <td valign="top">
<a href="../news/index.htm" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('btnpress','','../images/btn-press_f2.jpg',1);">
<img name="btnpress" src="../images/btn-press.jpg" width="134" height="49" border="0" id="btnpress" alt="News and Press" align="top" /></a></td>
   <td valign="top">
<a href="../about.htm" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('btnabout','','../images/btn-about_f2.jpg',1);">
<img name="btnabout" src="../images/btn-about.jpg" width="131" height="49" border="0" id="btnabout" alt="About" align="top" /></a></td>
   <td valign="top">
<a href="../photos/index.htm" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('btnphoto','','../images/btn-photo_f2.jpg',1);">
<img name="btnphoto" src="../images/btn-photo.jpg" width="162" height="49" border="0" id="btnphoto" alt="Photos" align="top" /></a></td>
   <td valign="top">
<a href="index.htm" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('btnforum','','../images/btn-forum_f2.jpg',1);">
<img name="btnforum" src="../images/btn-forum.jpg" width="104" height="49" border="0" id="btnforum" alt="Forum" align="top" /></a></td>
   <td valign="top">
<a href="../contact.htm" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('btncontact','','../images/btn-contact_f2.jpg',1);">
<img name="btncontact" src="../images/btn-contact.jpg" width="94" height="49" border="0" id="btncontact" alt="Contact" align="top" /></a></td>
   <td valign="top">
<img name="menubar2" src="../images/menubar2.jpg" width="8" height="49" border="0" id="menubar2" alt="" align="top" /></td>
  </tr>
  </table></div>

and as i understand it this is where it needs to go
Code: [Select]
<body>';

//Display ads on the top of the page
if (function_exists("show_topofpageAds"))
{
$ads = show_topofpageAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}



echo '
<div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' : '', '>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="catbg" height="32">';

if (empty($settings['header_logo_url']))
echo '
<span style="font-family: Verdana, sans-serif; font-size: 140%; ">', $context['forum_name'], '</span>';
else
echo '
<img src="', $settings['header_logo_url'], '" style="margin: 4px;" alt="', $context['forum_name'], '" />';

echo '
</td>
<td align="right" class="catbg">
<img src="', $settings['images_url'], '/smflogo.gif" style="margin: 2px;" alt="" />
</td>
</tr>
</table>';


// display user name
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0" >
<tr>';

if($context['user']['is_logged'])
echo '
<td class="titlebg2" height="32">
<span style="font-size: 130%;"> ', $txt['hello_member_ndt'], ' <b>', $context['user']['name'] , '</b></span>
</td>';

// display the time
echo '
<td class="titlebg2" height="32" align="right">
<span class="smalltext">' , $context['current_time'], '</span>';

// this is the upshrink button for the user info section
echo '
<a href="#" onclick="shrinkHeader(!current_header); return false;"><img id="upshrink" src="', $settings['images_url'], '/', empty($options['collapse_header']) ? 'upshrink.gif' : 'upshrink2.gif', '" alt="*" title="', $txt['upshrink_description'], '" align="bottom" style="margin: 0 1ex;" /></a>
</td>
</tr>
<tr id="upshrinkHeader"', empty($options['collapse_header']) ? '' : ' style="display: none;"', '>
<td valign="top" colspan="2">
<table width="100%" class="bordercolor" cellpadding="8" cellspacing="1" border="0" style="margin-top: 1px;">
<tr>';

if (!empty($context['user']['avatar']))
echo '
<td class="windowbg" valign="middle">', $context['user']['avatar']['image'], '</td>';

echo '
<td colspan="2" width="100%" valign="top" class="windowbg2"><span class="middletext">';

// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '
<a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a> <br />
<a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a><br />';

}
// Otherwise they're a guest - send them a lovely greeting...
else
echo $txt['welcome_guest'];

// Now, onto our second set of info, are they logged in again?
if ($context['user']['is_logged'])
{
// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '
<b>', $txt[616], '</b><br />';

// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '
', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=viewmembers;sa=browse;type=approve">', $context['unapproved_members'] == 1 ? $txt['approve_member'] : $context['unapproved_members'] . ' ' . $txt['approve_members'], '</a> ', $txt['approve_members_waiting'], '<br />';

// Show the total time logged in?
if (!empty($context['user']['total_time_logged_in']))
{
echo '
', $txt['totalTimeLogged1'];

// If days is just zero, don't bother to show it.
if ($context['user']['total_time_logged_in']['days'] > 0)
echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];

// Same with hours - only show it if it's above zero.
if ($context['user']['total_time_logged_in']['hours'] > 0)
echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];

// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
echo ' </span>';
}
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
else
{
echo ' </span>
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script>

<form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" class="middletext" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
<input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" />
<select name="cookielength">
<option value="60">', $txt['smf53'], '</option>
<option value="1440">', $txt['smf47'], '</option>
<option value="10080">', $txt['smf48'], '</option>
<option value="43200">', $txt['smf49'], '</option>
<option value="-1" selected="selected">', $txt['smf50'], '</option>
</select>
<input type="submit" value="', $txt[34], '" /><br />
<span class="middletext">', $txt['smf52'], '</span>
<input type="hidden" name="hash_passwrd" value="" />
</form>';
}

echo '
</td>';
//Welcome Ads
if (function_exists("show_welcomeAds"))
{
$ads = show_welcomeAds();
if(!empty($ads))
{
echo '<td class="windowbg2">';
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
echo '</td>';
}
unset($ads);
}
echo '

</tr>
</table>
</td>
</tr>
</table>';

echo '
<table id="upshrinkHeader2"', empty($options['collapse_header']) ? '' : ' style="display: none;"', ' width="100%" cellpadding="4" cellspacing="0" border="0">
<tr>';

// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '
<td width="90%" class="titlebg2">
<span class="smalltext"><b>', $txt[102], '</b>: ', $context['random_news_line'], '</span>
</td>';
echo '
<td class="titlebg2" align="right" nowrap="nowrap" valign="top">
<form action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '" style="margin: 0;">
<a href="', $scripturl, '?action=search;advanced"><img src="'.$settings['images_url'].'/filter.gif" align="middle" style="margin: 0 1ex;" alt="" /></a>
<input type="text" name="search" value="" style="width: 190px;" />&nbsp;
<input type="submit" name="submit" value="', $txt[182], '" style="width: 11ex;" />
<input type="hidden" name="advanced" value="0" />';

// Search within current topic?
if (!empty($context['current_topic']))
echo '
<input type="hidden" name="topic" value="', $context['current_topic'], '" />';

// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="brd[', $context['current_board'], ']" value="', $context['current_board'], '" />';

echo '
</form>
</td>
</tr>
</table>
</div>';


// Show the menu here, according to the menu sub template.
template_menu();
//Below the menu ads
if (function_exists("show_indexAds") && function_exists("show_towerleftAds") && function_exists("show_towerrightAds"))
{
$ads = show_indexAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);

//Tower left Ads
$ads = show_towerleftAds();
if(!empty($ads))
echo '<table><tr><td valign="top">', $ads['type']==0 ? $ads['content'] : eval($ads['content']) ,'</td><td width="100%" valign="top">';

unset($ads);
//Tower Right Ads
$ads = show_towerrightAds();
if(!empty($ads))
echo '<table><tr><td width="100%" valign="top">';
unset($ads);
}




// The main content should go here.
echo '
<div id="bodyarea" style="padding: 1ex 0px 2ex 0px;">';
}

function template_main_below()
{
global $context, $settings, $options, $scripturl, $txt;

echo '
</div>';


//Close table for towerright ads
if (function_exists("show_towerrightAds") && function_exists("show_towerleftAds") && function_exists("show_bottomAds"))
{
$ads = show_towerrightAds();
if(!empty($ads))
echo '</td><td valign="top">', $ads['type']==0 ? $ads['content'] : eval($ads['content']) ,'</td></tr></table>';

unset($ads);
//Close table for towerleft ads
$ads = show_towerleftAds();
if(!empty($ads))
echo '</td></tr></table>';
unset($ads);

//Show ads on the bottom of the page
$ads = show_bottomAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}

// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '

<div id="footerarea" style="text-align: center; padding-bottom: 1ex;', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' : '', '">
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function smfFooterHighlight(element, value)
{
element.src = smf_images_url + "/" + (value ? "h_" : "") + element.id + ".gif";
}
// ]]></script>
<table cellspacing="0" cellpadding="3" border="0" align="center" width="100%">
<tr>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'right' : 'left', '">
<a href="http://www.mysql.com/" target="_blank"><img id="powered-mysql" src="', $settings['images_url'], '/powered-mysql.gif" alt="', $txt['powered_by_mysql'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://www.php.net/" target="_blank"><img id="powered-php" src="', $settings['images_url'], '/powered-php.gif" alt="', $txt['powered_by_php'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
<td valign="middle" align="center" style="white-space: nowrap;">
', theme_copyright(), '
</td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">
<a href="http://validator.w3.org/check/referer" target="_blank"><img id="valid-xhtml10" src="', $settings['images_url'], '/valid-xhtml10.gif" alt="', $txt['valid_xhtml'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank"><img id="valid-css" src="', $settings['images_url'], '/valid-css.gif" alt="', $txt['valid_css'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
</tr>
</table>';

// Show the load time?
if ($context['show_load_time'])
echo '
<span class="smalltext">', $txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';

// This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough.
if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'] || $context['browser']['is_firefox'])
{
// The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[';

// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
if ($context['browser']['is_safari'])
echo '
window.addEventListener("load", smf_codeFix, false);

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if ((codeFix[i].className == "code" || codeFix[i].className == "post" || codeFix[i].className == "signature") && codeFix[i].offsetHeight < 20)
codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + "px";
}
}';
elseif ($context['browser']['is_firefox'])
echo '
window.addEventListener("load", smf_codeFix, false);
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if (codeFix[i].className == "code" && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0))
codeFix[i].style.overflow = "scroll";
}
}';
else
echo '
var window_oldOnload = window.onload;
window.onload = smf_codeFix;

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = codeFix.length - 1; i > 0; i--)
{
if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0 || codeFix[i].className == "code"))
codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";
}

if (window_oldOnload)
{
window_oldOnload();
window_oldOnload = null;
}
}';

echo '
// ]]></script>';
}

echo '
</div>';

// The following will be used to let the user know that some AJAX process is running
echo '
<div id="ajax_in_progress" style="display: none;', $context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' : '', '">', $txt['ajax_in_progress'], '</div>
</body></html>';
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
global $context, $settings, $options;

echo '<div class="nav" style="font-size: smaller; margin-bottom: 2ex; margin-top: 2ex;">';

// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Show the link, including a URL if it should have one.
echo '<b>', $settings['linktree_link'] && isset($tree['url']) ? '<a href="' . $tree['url'] . '" class="nav">' . $tree['name'] . '</a>' : $tree['name'], '</b>';

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo '&nbsp;>&nbsp;';
}

echo '</div>';
}

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;

// Work out where we currently are.
$current_action = 'home';
if (in_array($context['current_action'], array('admin', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers')))
$current_action = 'admin';
if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))
$current_action = $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action = 'search';
if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';

// Are we using right-to-left orientation?
if ($context['right_to_left'])
{
$first = 'last';
$last = 'first';
}
else
{
$first = 'first';
$last = 'last';
}

// Show the start of the tab section.
echo '
<table cellpadding="0" cellspacing="0" border="0" style="margin-left: 10px;">
<tr>
<td class="maintab_' , $first , '">&nbsp;</td>';

// Show the [home] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'home' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '">' , $txt[103] , '</a>
</td>' , $current_action == 'home' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

// Show the [help] button.
echo ($current_action == 'help' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'help' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=help">' , $txt[119] , '</a>
</td>' , $current_action == 'help' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

// How about the [search] button?
if ($context['allow_search'])
echo ($current_action == 'search' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'search' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=search">' , $txt[182] , '</a>
</td>' , $current_action == 'search' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo ($current_action == 'admin' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'admin' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=admin">' , $txt[2] , '</a>
</td>' , $current_action == 'admin' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo ($current_action == 'profile' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'profile' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=profile">' , $txt[79] , '</a>
</td>' , $current_action == 'profile' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo ($current_action == 'pm' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'pm' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=pm">' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</a>
</td>' , $current_action == 'pm' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

// The [calendar]!
if ($context['allow_calendar'])
echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'calendar' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a>
</td>' , $current_action == 'calendar' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

// the [member] list button
if ($context['allow_memberlist'])
echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'mlist' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=mlist">' , $txt[331] , '</a>
</td>' , $current_action == 'mlist' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo ($current_action == 'login' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'login' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=login">' , $txt[34] , '</a>
</td>' , $current_action == 'login' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo ($current_action == 'register' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'register' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=register">' , $txt[97] , '</a>
</td>' , $current_action == 'register' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo ($current_action == 'logout' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'logout' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">' , $txt[108] , '</a>
</td>' , $current_action == 'logout' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

// The end of tab section.
echo '
<td class="maintab_' , $last , '">&nbsp;</td>
</tr>
</table>';

}

// Generate a strip of buttons.
function template_button_strip($button_strip, $direction = 'top', $force_reset = false, $custom_td = '')
{
global $settings, $buttons, $context, $txt, $scripturl;

// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' . $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' . $txt[$value['text']] . '</a>';

$button_strip[$key] = $buttons[$key];
}

if (empty($button_strip))
return '<td>&nbsp;</td>';

echo '
<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'last' : 'first' , '">&nbsp;</td>
<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_back">', implode(' &nbsp;|&nbsp; ', $button_strip) , '</td>
<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'first' : 'last' , '">&nbsp;</td>';
}

?>

i'm just a bit lost as to where to put it without breaking the forum code
Title: Re: Global Headers and Footers
Post by: icwater on May 09, 2007, 07:25:28 PM
never mind i'm beyond that, thanks KGIII
Title: Re: Global Headers and Footers
Post by: oldskool on May 10, 2007, 05:15:50 PM
there is a common problem with this , it installs , but is nowhere to be seen ?
Title: Re: Global Headers and Footers
Post by: folkandfaith on May 13, 2007, 11:15:50 PM
The creator is on hiatus... So apparently a "global header" is not possible until he comes back around. Sucks hu ... :(
Title: Re: Global Headers and Footers
Post by: folkandfaith on May 21, 2007, 08:46:39 PM
anyone...
Title: Re: Global Headers and Footers
Post by: SaltedWeb on June 03, 2007, 11:27:20 PM
Clean install smf, the headers fooeter mod doesnt show up on admin menu.
No mods or anything yet it wont show up.
Wierd, ideas ??

Cozmo
Title: Re: Global Headers and Footers
Post by: babjusi on June 04, 2007, 07:10:04 AM
What theme and language are using as a default in your forum?
Title: Re: Global Headers and Footers
Post by: SaltedWeb on June 05, 2007, 07:04:06 PM
Using English 1.1.2  and smf default theme.

No members no mods fresh install .
Title: Re: Global Headers and Footers
Post by: babjusi on June 05, 2007, 07:16:32 PM
What about the language?
Title: Re: Global Headers and Footers
Post by: SaltedWeb on June 05, 2007, 08:25:01 PM
Ummm English?

I installed 1.1.2 fresh no modification or other packs.

Title: Re: Global Headers and Footers
Post by: TrueSatan on June 06, 2007, 04:00:40 AM
Try making sure that you are using English and not English utf8 as that can mess up some mods.
Title: Re: Global Headers and Footers
Post by: SaltedWeb on June 07, 2007, 08:40:13 PM
how would I have got English utf8 ?

Title: Re: Global Headers and Footers
Post by: TrueSatan on June 07, 2007, 10:13:48 PM
It can be selected during installation of the forum or afterwards too...but a number of mods don't work with it hence my pointing it out.
Title: Re: Global Headers and Footers
Post by: babjusi on June 08, 2007, 02:09:52 AM
how would I have got English utf8 ?



How did you install smf, via fantastico? As TrueSatan pointed out, most mods seem to have a problem working properly when the default language of the forum is set to english-utf. To change it back to plain english, you have to go to server settings in the admin''s panel. Hope this helps
Title: Re: Global Headers and Footers
Post by: Robi052 on June 26, 2007, 01:13:17 PM
Hi all. After upgrade smf from 1.1.2 to 1.1.3 link Uninstall missing for this mod. Then I try install latest version (for 1.1.3). After that all banners is double!? Check in smffooter.php and smfheader.php but in this file is only one code for each banner. Whats wrong and how fix that?

Problem solved. Install script add double code in
$sourcedir/Subs.php
$boarddir/index.php

Now here just stay problem with uninstall link
Title: Re: Global Headers and Footers
Post by: folkandfaith on July 03, 2007, 03:27:44 AM
Tried un-installing it, deleting it, and then going back and downloading it and uploading it only to get the same "line 349" error. Any way to fix this to make it work?

Been awhile since I checked back in on this. Is this issue resolved now or still in the same 'limbo' world?
Title: Re: Global Headers and Footers
Post by: askepott on July 04, 2007, 04:32:15 AM
would like to know if this mod is workin well too. and if so, i'll gladly install it on my forum :)
Title: Re: Global Headers and Footers
Post by: TrueSatan on July 04, 2007, 04:59:16 AM
I have it running in SMF 1.1.3 with no issues.
Title: Re: Global Headers and Footers
Post by: askepott on July 04, 2007, 05:57:53 AM
great. I'll try ;D
Title: Re: Global Headers and Footers
Post by: Tommy Voodoo on July 11, 2007, 11:18:12 AM
This is running perfectly in my SMF 1.1.3 install.. Thanks!!
Title: Re: Global Headers and Footers
Post by: tu111 on July 15, 2007, 06:08:45 AM
This MOD work for me.  I use smf1.1.3 Thai language.
Title: Re: Global Headers and Footers
Post by: JOSHSKORN on July 17, 2007, 11:14:54 PM
I'm still understanding the concept of this mod.  Can someone post some screen shots of this mod in action?  The Link to Mod shows the screen to implement the Headers and Footers but I want to see them in use to get a clear vision as to what this mod does.
Title: Re: Global Headers and Footers
Post by: TrueSatan on July 18, 2007, 04:51:31 AM
You might be best to install a spare test forum and install this mod into it then you can play with it all you like and see what it does.
Title: Re: Global Headers and Footers
Post by: auspool on July 18, 2007, 06:45:02 PM
thats what i did to
i tend to do that with all my mods now
since i stuffed up a few times
and didnt know how to load backups properly
you can see my header and footer at its the fortress banner and norths pool banner as the footer
www.auspool.net if you want
Title: Re: Global Headers and Footers
Post by: TrueSatan on July 18, 2007, 08:43:22 PM
Thanks auspool...it's good of you to make that available.
Title: Re: Global Headers and Footers
Post by: tonzi on July 19, 2007, 12:13:53 PM
im having a forum error. anyone?

8: Undefined index: globalhf_title
File: /home/nothingb/public_html/forum/Sources/Subs.php
Line: 2789
Title: Re: Global Headers and Footers
Post by: kosher_travel on July 19, 2007, 12:46:37 PM
This is a simple but very good Mod. I tried for months to integrate my SMF forum into my site and this is the BEST and MOST SIMPLE solution. You don’t have to edit any PHP.

However, can somebody please help me. I wanted my header to be completely on top. See enclosed pic. The header is simple HTML and it is in the red border. I want it all the way on top. Can I maybe doing with a simple edit to the index.template.php file?
(http://koshertravelinfo.com/Header.gif)
My site...
http://www.koshertravelinfo.com (http://www.koshertravelinfo.com)
Title: Re: Global Headers and Footers
Post by: tonzi on July 20, 2007, 07:56:22 AM
and they are not showing up.
Title: Re: Global Headers and Footers
Post by: TrueSatan on July 20, 2007, 08:50:52 AM
@ kosher_travel

 You might be better asking in General English Support as your query doesn't appear to be related to this particular mod.
Title: Re: Global Headers and Footers
Post by: Elysia on July 21, 2007, 01:45:21 PM
kosher_travel, use the Ads_mod instead as this does what you want it to do. :)
Title: Re: Global Headers and Footers
Post by: bassbass on July 25, 2007, 01:54:05 AM
I am adding this code in the header section, and all i get is blank space, the right size for what i want to diplay but no flash comes up.  do i have anything in the code that is not right?  here is the code,



<html>
<head>
<body topmargin=0 leftmargin=0 rightmargin=0 bgcolor=#ffffff>
<P align=center>
<table width=100% height=100% cellpadding=0 cellspacing=0>
<tr>
<td valign=middle align=CENTER>
<P align=center>
<script src=http://www.greek-turkish-clarinet.com/tmp/site.js></script>
</p>
</td>
</tr>
</table>
</P>
</body>
</html>

Title: Re: Global Headers and Footers
Post by: TrueSatan on July 25, 2007, 04:31:50 AM
I'd stsrt by debugging what you have there by means of saving it to your server somewhere and browsing to it to see if it works.
Title: Re: Global Headers and Footers
Post by: writerrobert680 on July 25, 2007, 07:11:25 PM
Erm, I cannot view the link in my admin section... :-/


EDIT:

Problem solved. It was the language problem.
Title: Re: Global Headers and Footers
Post by: AdrenalineRider on July 26, 2007, 11:47:57 AM
Guys, somthing wrong here as after installing the Mod.. its working well but appears twice ...

More like a copy of the same HTML repeating itself...
Seems like the mod is displaying twice...
Title: Re: Global Headers and Footers
Post by: TrueSatan on July 26, 2007, 12:17:22 PM
Using the same process as a manual installation check to see that none of the files edits the mod makes have been duplicated and if any have edit accordingly.

 Official documentation for manual installation:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

You may also find this helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)
Title: Re: Global Headers and Footers
Post by: writerrobert680 on July 26, 2007, 06:22:39 PM
Guys, somthing wrong here as after installing the Mod.. its working well but appears twice ...

More like a copy of the same HTML repeating itself...
Seems like the mod is displaying twice...

That's what happened to mine too.
Title: Re: Global Headers and Footers
Post by: AdrenalineRider on July 27, 2007, 02:29:27 PM
Guys, somthing wrong here as after installing the Mod.. its working well but appears twice ...

More like a copy of the same HTML repeating itself...
Seems like the mod is displaying twice...

That's what happened to mine too.

I guess, somthing wrong with the index.php as it repeats the same process.

Can some one get the script for this mod as I think I might have the codes repeating ..
Title: Re: Global Headers and Footers
Post by: TrueSatan on July 27, 2007, 02:58:42 PM
Please see:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)
Title: Re: Global Headers and Footers
Post by: OZSlayer on August 01, 2007, 09:29:21 PM
Hi guys the mod works great with 1.1.3

Heres some basic code for a simple stretchy divider you can use in the header. just add your url for the gifs you use and then it works fine, it expands and shrinks as needed.


<table border="0" cellpadding="0" cellspacing="0" width="100%">
  <tr>
    <td width="1%" height="90"> <img src="/mirrortab_first.gif" width="20" height="90"> </td>
    <td width="50%" style=" background-image: url(/mirrortab_back.gif);  background-repeat: repeat-x;">  </td>
    <td width="0%"> <img src="/mirrortab_back.gif" width="6" height="90"> </td>
    <td width="50%" style=" background-image: url(mirrortab_back.gif);  background-repeat: repeat-x;"> </td>
    <td width="1%"> <img src="/mirrortab_last.gif" width="6" height="90"> </td>
  </tr>
</table>

I will add a link here to the site when it goes live so you can see for yourself

Title: Re: Global Headers and Footers
Post by: avidum on August 04, 2007, 09:38:04 AM
Guys, somthing wrong here as after installing the Mod.. its working well but appears twice ...

More like a copy of the same HTML repeating itself...
Seems like the mod is displaying twice...

That's what happened to mine too.

I am also getting double displays.
Title: Re: Global Headers and Footers
Post by: TrueSatan on August 04, 2007, 11:00:37 AM
To fix it check as per a manual installation and remove any duplicate code the mod may have added...it works properly in my testing BTW.

 Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)
Title: Re: Global Headers and Footers
Post by: avidum on August 04, 2007, 12:08:03 PM
To fix it check as per a manual installation and remove any duplicate code the mod may have added...it works properly in my testing BTW.

 Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

I did read this but I am a total dork so I wasn't sure what to check off on the smf parser. Do I uninstall the mod first or what?
Title: Re: Global Headers and Footers
Post by: TrueSatan on August 04, 2007, 01:11:19 PM
You would do best to allow the parser to show all edits and don't do any automatic uninstall... manually go through the edits and make sure that each edit is there in each file but once only...fix where needed to make this so.

 At the end of the above you should have the mod installed properly (if you got the edits right) and you can then either keep it or uninstall via the Package Manager as normal.
Title: Re: Global Headers and Footers
Post by: ViRo on August 10, 2007, 01:23:53 AM
Sorry I am very new when it comes to smf. I uploaded the zip and installed it via package manager. It doesnt show up in the admin panel. Possible help here?
Title: Re: Global Headers and Footers
Post by: TrueSatan on August 10, 2007, 04:33:50 AM
@ viro

 Please go to ACP>Server Settings and make sure that the language for your forum is set to English and not English utf8.

 If this doesn't fix it do you have a couple of lines of gap in the ACP configuration area or any mention of the mod there?
Title: Re: Global Headers and Footers
Post by: ComputerLady on August 21, 2007, 04:38:40 PM
Thanks to the help provided here, I was able to manually uninstall this mod for the most part. (No way to uninstall from within SMF.) The issue I have with it is the global header and footer are not appearing in the template where I want them. That is, at the top and bottom of the forum. Rather, they are coming up below the menu bar inside the forum itself.

What I want to do is have my universal header/footer - with links - that appear at the top of other web apps on my site appear in SMF. No, I don't want to 'wrap' SMF inside the CMS, as then everything gets squished and squeezed. Besides, that doesn't cover anything. Back to hunting for manual instructions on inserting header/footer code into template I guess...
Title: Re: Global Headers and Footers
Post by: ComputerLady on August 23, 2007, 07:40:07 AM
I should also add that using the Mod Parser suggested:
http://modparser.dev.dansoftaustralia.net/
Did not get rid of this mod completely. The menu option for it is still visible in the Admin section. I'm not sure how to correct that, short of a new install.
Title: Re: Global Headers and Footers
Post by: TrueSatan on August 23, 2007, 09:12:27 AM
@ ComputerLady,

 This mod is designed so that it will work in all themes without additional editing being needed so the code is in Subs.php not Display.template.php...the downside of this is that it can't, by default, display the images placed as you require them...the Ad Management mod might well suit you better if that is the placement you require though Subs.php could be edited to do what you want with this mod.

 You appear not to have removed all the edits this mod makes judging by the remaining ACP parts you mention. The editing of Subs.php is in three parts are you sure you reversed all of them?
Title: Re: Global Headers and Footers
Post by: ComputerLady on August 23, 2007, 03:14:57 PM
...the Ad Management mod might well suit you better if that is the placement you require though Subs.php could be edited to do what you want with this mod.
I can try this mod again, crossing fingers that it will do what I want. 

Quote
You appear not to have removed all the edits this mod makes judging by the remaining ACP parts you mention. The editing of Subs.php is in three parts are you sure you reversed all of them?

Yes, I did.
Title: Re: Global Headers and Footers
Post by: TrueSatan on August 23, 2007, 05:06:05 PM
The third of the three edits made to Subs.php is what gives the ACP link so it really doesn't look as though you have removed it.

 
Code: [Select]
<operation>
<search position="before"><![CDATA['manage_themes' => '<a href="' . $scripturl . '?action=theme;sa=admin;sesc=' . $sc . '">' . $txt['theme_admin'] . '</a>',]]></search>
<add><![CDATA[
'globalhf' => '<a href="' . $scripturl . '?action=globalhf;sesc=' . $sc . '">' . $txt['globalhf_title'] . '</a>',
]]></add>
</operation>
Title: Re: Global Headers and Footers
Post by: Modrod03 on August 24, 2007, 02:18:56 AM
This mod isn't working properly in 1.1.3. The global header link is missing from the admin panel.
Title: Re: Global Headers and Footers
Post by: TrueSatan on August 24, 2007, 04:24:53 AM
The mod does work properly in SMF 1.1.3; you have an issue on your installation. The probability is that you have yout forum language set wrongly...please go to ACP>Server Settings and chech that it is set to English and not English utf8.
Title: Re: Global Headers and Footers
Post by: Suby on August 24, 2007, 05:41:26 AM
Hello!

I get this when I try to install the package:

Type     Action     Description
1.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test failed
2.    Execute Modification    ./index.php    Test successful
3.    Execute Modification    ./Sources/Subs.php    Test successful
4.    Extract File    ./Sources/globalhf.php    
5.    Extract File    ./Themes/default/globalhf.template.php    
6.    Extract File    ./smfheader.php    
7.    Extract File    ./smffooter.php


Modifications that are installed are:

Mod Name     Version     
1.    Shop Item: Change Display Name CSS    0.1    [ Uninstall ] [ List Files ] [ Delete ]
2.    SMF 1.1.2 Update Package    1.1.2    [ List Files ] [ Delete ]
3.    Global Headers Footers    1.3    [ Apply Mod ] [ List Files ] [ Delete ]
4.    SMF Arcade    2.0.6    [ List Files ] [ Delete ]
5.    SMF 1.1.1 Update Package    1.1.1    [ List Files ] [ Delete ]
6.    Global Announcements    1.0    [ Uninstall ] [ List Files ] [ Delete ]
7.    SMFShop    3.0    [ Uninstall ] [ List Files ] [ Delete ]
8.    Sticky First Post (extends sticky topic)    1.3.0    [ Uninstall ] [ List Files ] [ Delete ]
9.    SMF 1.0.9 and 1.1 RC3-1 Security Patch    1.0.8/1.1 RC3    [ List Files ] [ Delete ]
10.    SMF 1.0.11 / 1.1.3 Update    1.1



What do you think can be causing this?
Title: Re: Global Headers and Footers
Post by: TrueSatan on August 24, 2007, 06:03:18 AM
Your error is a variant on the most common error of all those reported on these pages...it tells you that another mod you have installed has already edited the file in question and that you thus need to do a manual installation of this mod. Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)
Title: Re: Global Headers and Footers
Post by: Suby on August 28, 2007, 03:46:19 PM

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)


Thank you! This helped!
Title: Re: Global Headers and Footers
Post by: Modrod03 on August 30, 2007, 09:25:00 AM
The mod does work properly in SMF 1.1.3; you have an issue on your installation. The probability is that you have yout forum language set wrongly...please go to ACP>Server Settings and chech that it is set to English and not English utf8.
Everything is set right. It doesn't show.
Title: Re: Global Headers and Footers
Post by: TrueSatan on August 30, 2007, 10:21:13 AM
This mod is used by a great many other people and not only works but works well...therefore you can be quite certain that if it isn't working for you there must be something wrong with your installation.

 If your language settings are correct and you are using the SMF default theme then please check that all the edits the mod needs to make are in place and the files in needs to upload are in place too...in fact overwrite the additional files with new copies just to make sure that they are as they should be...follow the links I gave in reply 184 above to see what edits etc the mod makes.

 If you are using other than the SMF default theme then you cannot expect the mod to work unless you edit it into any custom theme...this is not a fault with the mod or with SMF 1.1.3 as mods only have to work in the SMF default theme...use any other and you can expect to have to edit to make things work (this is the case not just with this mod but with almost all mods.)
Title: Re: Global Headers and Footers
Post by: bork on September 20, 2007, 11:29:26 PM
When I install this mod, it appears to install ok, but when I try the link from the admin section, I get the following error:

An Error Has Occurred!
Unable to load the 'main' template.


Any idea what I need to do to fix this?
Title: Re: Global Headers and Footers
Post by: TrueSatan on September 21, 2007, 04:29:58 AM
The chances are that you have done a double installation of the mod...please go through the process of a manual installation and not only check to see that all the edits it makes are in place but that they aren't duplicated...if they are remove the extra code. While you are at it please check to see that the files it adds are also in place though I would think that they would be.

 The links I gave in reply 184 above should help you to do this process.
Title: Re: Global Headers and Footers
Post by: bork on September 21, 2007, 10:38:11 AM
edit: Problem solved  :)

The package manager had installed globalhf.php into the Sources directory, but it was file length 0.

Manually uploaded the file and the problem went away.
Title: Re: Global Headers and Footers
Post by: TrueSatan on September 21, 2007, 11:17:48 AM
Thanks for posting back...I was about to suggest that you re-uploaded all the files the mod added.
Title: Re: Global Headers and Footers
Post by: uksharon on September 23, 2007, 05:05:47 PM
i have installed this on my forum but its not showing in the admin area cannot find it. it says its installed but its not showing under Configuration whats wrong???
Title: Re: Global Headers and Footers
Post by: TrueSatan on September 23, 2007, 06:40:27 PM
The likely reasons are:

 You are using a custom theme...anything other than the SMF Default theme is a custom theme...you have to edit the mod into any custom theme as you do almost all mods.

You need to go to ACP>Server Settings and set your forum language to English and not English utf8 and to ACP>Features and Options>Basic Settings and uncheck Enable user-selectable language support.

You need to go to ACP>Packages>Options>Installation Options and set the fields according to your hosting details then on the same page go to Cleanup Permissions and select All files Writeable and run the cleanup...check via ftp that CHMOD of all your files is now 777 or 775 according to the peculiarities of your hosting and if not recheck the settings you made in Installation Options and run the cleanup again...continue as needed until you get the right settings.
Title: Re: Global Headers and Footers
Post by: iQEM on September 28, 2007, 11:01:03 AM
I cant uninstall the mod :S

Help me!

got the same proble, please help...i want to install the latest version but it cannot be uninstall from Installed Packages...
Title: Re: Global Headers and Footers
Post by: TrueSatan on September 28, 2007, 11:08:59 AM
It is likely that you have upgraded your forum from a previous core version and as a result a number of mods will lose the ability to uninstall...there is an easy way round it:

 When trying to uninstall the mod first uninstall the forum upgrade then uninstall the mod then reinstall the forum upgrade.
Title: Re: Global Headers and Footers
Post by: iQEM on September 28, 2007, 01:26:39 PM
ow, i c...thx, i test it right away and post the result here... ;)
Title: Re: Global Headers and Footers
Post by: netsavy006 on October 22, 2007, 01:57:21 PM
I'm having a problem.  I don't have a link to where I can edit the footer and header files.  It installed and I see a blank space for where the link should be but there is no link for it in my admin panel.  I'm using the theme black rain 2.  If i switch to the default theme, I still don't have the link to change the header/footer information.  I'm using SMF 1.1.4, and I'm using an english board.  Here's the link to my board if it helps any:  http://sonic-promotion.us/forum/index.php

Thanks,
Andy...
Title: Re: Global Headers and Footers
Post by: TrueSatan on October 22, 2007, 08:06:37 PM
Please see reply #193 above. I've already answered what is exactly the same problem on this very page.
Title: Re: Global Headers and Footers
Post by: SpoogeBeast on November 01, 2007, 10:01:01 PM
Very good mod. Did exactly what I wanted quickly and easily.

Title: Re: Global Headers and Footers
Post by: Alan S on November 09, 2007, 04:52:50 PM
Okay , Problem here

I created a forum , And copied that forum about 18 times to different domain names , This mod was on all of them , Now on the original forum the mod works fine. But on all the copied forums , I get the error when i try to save headers and footers

Quote
Can not open/home/xxxxxx/public_html/xxxxxxxxx/smfheader.php.


Any ideas on why this is happening , I used the repair settings and the rest of the forum works , The path is correct to the file , I chmodded it to 777 and i tried disabling mod_security and it still happens

Help would be appreciated.

- Alan
Title: Re: Global Headers and Footers
Post by: nick09 on November 09, 2007, 05:36:27 PM
thanks for the mod!

it helped me very much!
Title: Re: Global Headers and Footers
Post by: Scrambled Egg on November 15, 2007, 07:21:17 PM
I am having the exact same problem and error message, and have done what Alan S has done.

Please help asap.

thanks.

Okay , Problem here

I created a forum , And copied that forum about 18 times to different domain names , This mod was on all of them , Now on the original forum the mod works fine. But on all the copied forums , I get the error when i try to save headers and footers

Quote
Can not open/home/xxxxxx/public_html/xxxxxxxxx/smfheader.php.


Any ideas on why this is happening , I used the repair settings and the rest of the forum works , The path is correct to the file , I chmodded it to 777 and i tried disabling mod_security and it still happens

Help would be appreciated.

- Alan
Title: Re: Global Headers and Footers
Post by: vbgamer45 on November 16, 2007, 12:43:35 AM
Check the path and check that smfheader.php exists in that path if not create the file and make it writable.
Title: Re: Global Headers and Footers
Post by: Alan S on November 17, 2007, 07:51:03 AM
The path is fine.

This is what i've so far established.

1) Trying to uninstall the mod doesnt work...at all , The mod still is there and appears as installed.
2) On manualy removing the mod and trying to reinstall it the mod wont install , it says it installs but none of its funtions work.
3) On trying manual install , None of the functions work.
4) On uninstalling it on pinoycartalk , Copying the database again and using it on pinoybeautytalk , Then reinstalling the mod still doesnt work. No feature functions.
5) On doing No4. and manualy install the mod it comes up , you can access the screens but on trying to save the headers and footers you get a white blank page.

So now

I go to the global headers and footers page , type my text in click save. A Blank white page appears. I click the "Go" button ( Firefox toolbar buton ) , Now the page reloads and its a white page but the text i typed into the Box for the header appears. , When i go back to the index everythings the same and when i go back to the global headers and footers screen no saved text comes up.

Any ideas on the problem?
Title: Re: Global Headers and Footers
Post by: LVGaryD on November 27, 2007, 03:46:37 AM
Having problems with this mod. Installed it, then when I used it, I got double everything. Uninstalled the mod, but it remained partially installed. Removed mod from my smf file on the server, but still the mod was there on my admin panel.

I tried to reinstall the mod to no avail, every thing is showing up double. Any ideas?
Title: Re: Global Headers and Footers
Post by: Ol' Wombat on November 27, 2007, 04:03:54 AM
Having problems with this mod. Installed it, then when I used it, I got double everything. Uninstalled the mod, but it remained partially installed. Removed mod from my smf file on the server, but still the mod was there on my admin panel.

I tried to reinstall the mod to no avail, every thing is showing up double. Any ideas?

yep, was the same for me - if you have a forum backup restore the sources folder but you may want to delete the forum and completely restore from a backup. I marked vbgamer as adventures to install.
Title: Re: Global Headers and Footers
Post by: TrueSatan on November 27, 2007, 04:07:35 AM
Yes...your initial problem occured because you had double installs of the mod, your uninstall removed only one of them and deleting the package wouldn't help with that at all. Reinstalling it after that would also not improve the situation.

 You will need to check through all the files this mod edits manually removing duplicate or multiple instances of the edits it makes. The following may help:

Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

Mirror of the last link:

http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)

 There should be no need for the action advised by Ol' Wombat.
Title: Re: Global Headers and Footers
Post by: LVGaryD on November 27, 2007, 04:49:12 AM
Thank you guys. I am real new to this stuff, but it looks to me like the parser program might do the trick.

Will try that before embarking on getting into something I know nearly nothing about: code!

One other thing TrueSatan, how and where do I look for the files? Theparser said in a text editor. I might be completely dumb, but can't you modify the theme in the admin? I have no idea how to get my stuff into a text editor, like Dreamweaver or Front Page.

Thank you for any info!  ;)
Title: Re: Global Headers and Footers
Post by: TrueSatan on November 27, 2007, 05:10:57 AM
@ LVGaryD

 Your files are on your server and are all the additional parts of your forum other than your forum database...they are mostly .php files but not entirely. You would get to them via a good ftp programme (filezilla (free) would be ideal) or if you have CPanel on your hosting you could use the File Manager in that.

 The theme changer in your ACP has nothing to do with such file editing.

 For a text editor I would suggest either making do with notepad or getting a proper (free) programming editor...PHP designer 2007 or ConTEXT would suit admirably.

 You would use File Manager or an ftp programme to download the relevant files to your local machine then edit them with notepad or a proper programming editor prior to using the same systems to upload the edited versions to your hosting...N.B. keep the old copies by renaming them on your server...change, for instance, .php to .phpold in each one.

 The simply awful Front Page has been abandoned even by MS themselves and I would not consider Dreamweaver for such a task.
Title: Re: Global Headers and Footers
Post by: LVGaryD on November 27, 2007, 12:06:13 PM
Thank you TrueSatan! Your knowledege is truly heavenly! This stuff suddenly makes sense to me now....well a little sense to me now.  :-\

I too have not used Front Page to do anyything for about 8-10 years. I bought it in 1997, built a few simple sites with it, then lent it to my ex-girlfriend's sister and never saw it again until a friend let me use his copy. I hate the program!

Now building sites with a real simple prgram called easyweb editor and editing them with Macromedia Contribute. It's gotten so easy I never needed to learn any code other than plain old html. Now after delving into this mess, I wish I'd studied code and such a bit harder.

Still a bit hesitant, but after changing some things, it is simple. Now you are putting me to work that might actually get something accomplished!

Thank you very much! (http://inthesulky.com/smf/Smileys/classic/you_da_man.gif)
Title: Re: Global Headers and Footers
Post by: TrueSatan on November 28, 2007, 05:07:02 AM
My pleasure and thank you for your kind words. Doing such things on SMF is an excellent way to learn and gives a purpose to the learning which makes it much easier...actually the most important tool of all is a willingness to learn and you already seem to have that one.
Title: Re: Global Headers and Footers
Post by: LVGaryD on November 30, 2007, 05:56:08 PM
My pleasure and thank you for your kind words. Doing such things on SMF is an excellent way to learn and gives a purpose to the learning which makes it much easier...actually the most important tool of all is a willingness to learn and you already seem to have that one.
You know, it was funny. When I used the parser to remove the headers and footers, it still did not totally remove the mod. When I reinstalled the mod, it said there were still portions of it still installed from the previous installation. Regardless, it works real good now.

Also, it is a very good thing I followed all of the instructions. I totally blew the forum out by deleting one too many lines of code. Fortunately, I copied the filed and named it like you said, then when the forum was not able to load, I deleted my work and reinstalled the old file and repeated my steps correctly to delete the mod.

Works like a dream!

Now I just need to figure out how to put another tab or two on my navigation menu, get the forum compliant to XTML standars, and I will be nearly set....for the time being.

Thanks again!
Title: Re: Global Headers and Footers
Post by: TrueSatan on November 30, 2007, 06:13:52 PM
In the Package Parser you need to set to show all edits and each file mentioned may have multiple edits in it...

 Adding new tabs is covered on the following link:

http://docs.simplemachines.org/index.php?topic=564.0 (http://docs.simplemachines.org/index.php?topic=564.0)

Hope that gets you a step further along the way.
Title: Re: Global Headers and Footers
Post by: afternoonalarm on December 16, 2007, 08:04:30 PM
Hey guys this is a great mod addon IMHO but I have a problem. I was using this program and tried to center align the ads I was placing in the header and footer boxes, but it aligned all of my content to center as well(which is not what I wanted. Anyways when I went back to change it, somehthing happened and all that shows on my forum now is the header and footer. No Boards, I can;t even view admin sections such as modify theme. So I have no way of changing anything on my forum and am stuck. I have no clue what to do the site is www.afternoonalarm.com/smf if you would llook at it and give me some advice I would be very very appreciative. Thanks.
Title: Re: Global Headers and Footers
Post by: vbgamer45 on December 16, 2007, 08:26:57 PM
You can edit the smfheader.php and smffooter.php files directly to fix the issue with html
Title: Re: Global Headers and Footers
Post by: afternoonalarm on December 17, 2007, 01:31:38 PM
hey vbgamer I have another question whenever you get a chance. I deleted the smfheader and footer php and that fixed the problem of showing everything on my forum and I tried to delete everything else of the program from my server and uninstall the globalheadersfooters program so I could reinstall it clean but it seems that there is still something on there because when I reinstall it there is double everything. I checked the other posts on this thread but can't come up with an answer. I really like this mod and want to use it but I can't fix these probably simple fix problems. Thanks
Title: Re: Global Headers and Footers
Post by: TrueSatan on December 17, 2007, 04:38:11 PM
If you will use the Package Parser to output the edits the mod makes you can check through them to remove the code added by the mod.



http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

Mirror of the last link:

http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)
Title: Re: Global Headers and Footers
Post by: Jameel225 on December 23, 2007, 02:38:46 PM
thanks nice mod

but when i adding a ad its show bauble 

plz help me
Title: Re: Global Headers and Footers
Post by: TrueSatan on December 23, 2007, 06:17:31 PM
Whatever code you are adding would seem to be incorrect...please double check it.
Title: Re: Global Headers and Footers
Post by: Jameel225 on December 24, 2007, 12:32:37 PM
Whatever code you are adding would seem to be incorrect...please double check it.

code is correct

i have checked it

thanks
Title: Re: Global Headers and Footers
Post by: coretj on February 01, 2008, 12:01:56 AM
Does Anyone know what code gets doubled up?

I finally got the thing to show up on the left side of the page.. the weird thing is I gave up on it a week ago and uninstalled and deleted it... it is just now showing up.. I can't uninstall and it is doubling header and footer.. 

Can someone please post the CORRECT code and what php file it goes into... I don't want to install again and have it triple on me... I have other mods in play as well so I don't want to just go deleting stuff ..

Thx
Title: Re: Global Headers and Footers
Post by: TrueSatan on February 01, 2008, 07:03:25 AM
First backup your files.

Please use the Package Parser on the following link to check all the files the mod affects then manually edit the files to remove it prior to doing a new install:

http://www.smfhelper.info/forum/package.php5 (http://www.smfhelper.info/forum/package.php5)

Title: Re: Global Headers and Footers
Post by: Chopper on February 07, 2008, 03:08:42 PM
Does Anyone know what code gets doubled up?

I finally got the thing to show up on the left side of the page.. the weird thing is I gave up on it a week ago and uninstalled and deleted it... it is just now showing up.. I can't uninstall and it is doubling header and footer.. 

Can someone please post the CORRECT code and what php file it goes into... I don't want to install again and have it triple on me... I have other mods in play as well so I don't want to just go deleting stuff ..

Thx

I have the same problem when entering html code it appears twice?? How can we fix this?
Thanks
Title: Re: Global Headers and Footers
Post by: TrueSatan on February 09, 2008, 08:39:54 AM
You would appear to have installed the mod more than once thus at least doubling the edits is makes...hence your problems with it.

 Please use the Package Parser on the following link to output the edits the mod makes and manually edit your files to remove the mod:

http://www.smfhelper.info/forum/package.php5 (http://www.smfhelper.info/forum/package.php5)
Title: Re: Global Headers and Footers
Post by: Chopper on February 09, 2008, 12:34:41 PM
You would appear to have installed the mod more than once thus at least doubling the edits is makes...hence your problems with it.

 Please use the Package Parser on the following link to output the edits the mod makes and manually edit your files to remove the mod:

http://www.smfhelper.info/forum/package.php5 (http://www.smfhelper.info/forum/package.php5)

How could i have installed twice when i have only installed once?
Title: Re: Global Headers and Footers
Post by: vbgamer45 on February 09, 2008, 02:14:23 PM
Sometimes the package manager may goofed or if the page is refreshed or the link is clicked twice it could install mutiple times.
Title: Re: Global Headers and Footers
Post by: fkarim on February 14, 2008, 11:55:01 PM
Hi,

I installed the mod successfully and I can access the global headers and footers section in the admin. When I type in the html and save, I get no problems. I do a simple anchor link. The only problem is that nothing shows up. Maybe I have misunderstood what the mod is supposed to do. Please let me know if anyone can help me.
Title: Re: Global Headers and Footers
Post by: fkarim on February 15, 2008, 04:33:55 PM
I keep on trying different html codes but nothing seems to work. I used the parser to tell me what to put when I installed it but I nothing is showing....
Title: Re: Global Headers and Footers
Post by: vbgamer45 on February 15, 2008, 08:23:32 PM
Are you using a custom theme/language?

Normally there is al ink in the admin section access headers and footers
Title: Re: Global Headers and Footers
Post by: marylina on February 26, 2008, 06:14:00 PM
I installed the module into my forum but its not showing up in my configurations. Why is that? And I have ad management installed as well and that is not showing up anymore either after I installed the password protect board module.

Help.
Title: Re: Global Headers and Footers
Post by: vbgamer45 on February 26, 2008, 09:10:59 PM
Check your language under Server Settings should be set to english only not english utf8
Title: Re: Global Headers and Footers
Post by: marylina on February 26, 2008, 09:19:41 PM
Check your language under Server Settings should be set to english only not english utf8

It is. But nothing came up and my ad management is still not showing up. The description Headers and Footers isn't either and its installed.
Title: Re: Global Headers and Footers
Post by: vbgamer45 on February 26, 2008, 09:49:02 PM
Are you using a custom theme? Other than default if so you might need to copy some language files.
Title: Re: Global Headers and Footers
Post by: marylina on February 26, 2008, 10:06:17 PM
Are you using a custom theme? Other than default if so you might need to copy some language files.

Yeah I am. I am using Saf-Multicolor. What files do I need to copy over to make it work? Also, I want to add the neat board module but got an error message. It is conflicting with another module which I had to put in an additional script in the manageboard template in order for the password module to work. Is there a way to fix this?
Title: Re: Global Headers and Footers
Post by: vbgamer45 on February 26, 2008, 10:23:18 PM
Most likely you need to copy the themes/default/languages/modifications.english.php
to
themes/customtheme/languages/modifications.english.php
Title: Re: Global Headers and Footers
Post by: marylina on February 26, 2008, 10:28:51 PM
<br />Most likely you need to copy the themes/default/languages/modifications.english.php<br />to<br />themes/customtheme/languages/modifications.english.php<br />

I just made a modification to the english.php for the password module. Do I have to renter it once again in order for the neat module to work?
Title: Re: Global Headers and Footers
Post by: vbgamer45 on February 26, 2008, 10:43:36 PM
Might depends what file you edited if it was your themes default folder or custom theme
Title: Re: Global Headers and Footers
Post by: marylina on February 26, 2008, 10:46:15 PM
Might depends what file you edited if it was your themes default folder or custom theme

It was my custom theme that I edited the file in. Is there something else that I should do?
Title: Re: Global Headers and Footers
Post by: Sabre™ on April 10, 2008, 05:13:32 PM
Ok.
I am officially blind.

Could someone please give me the line to the $boarddir

Im manually installing this, but just cannot find that directory. lol

ThankYou in advance, from sillyville :)
Title: Re: Global Headers and Footers
Post by: vbgamer45 on April 10, 2008, 07:55:46 PM
board directory is the root directory of your forum where SSI.php is located.
Title: Re: Global Headers and Footers
Post by: coldy316 on April 14, 2008, 10:50:33 PM
Configuration
Features and Options
Arcade
Server Settings
Current Theme
Themes and Layout
Global Headers and Footers
Ad Management

I do not see it in that section at all, I installed it via the parser and still
cannot see it. this is the very first time I did it and said it was successfully installed
but its not showing up... doesnt matter now. If mods dont work I just uninstall them.
Title: Re: Global Headers and Footers
Post by: vbgamer45 on April 14, 2008, 10:58:51 PM
Check what language your system is set to under Admin -> Server Settings it should be English and not english utf8
Title: Re: Global Headers and Footers
Post by: Sabre™ on April 15, 2008, 07:56:31 PM
board directory is the root directory of your forum where SSI.php is located.
Thanks mate :)
Title: Re: Global Headers and Footers
Post by: coldy316 on April 17, 2008, 06:32:03 AM
Check what language your system is set to under Admin -> Server Settings it should be English and not english utf8

I dont if you was directing the comments at me, but i double check it and it is on english, not english-utf8 also
how do I stop all the mods going to the smf default core theme. this is what is causing the problem
I reckon...
Title: Re: Global Headers and Footers
Post by: vbgamer45 on April 17, 2008, 08:37:25 AM
By default all mods can only install on the default theme. For other themes you have to manually install the mod on that theme.

SMF 2 will allow you to try install mods on other themes.
Title: Re: Global Headers and Footers
Post by: coldy316 on April 18, 2008, 07:16:48 AM
got it working now, thanks in regards to the info.
Title: Re: Global Headers and Footers
Post by: cleanfiles on April 19, 2008, 05:55:02 PM
Hello I posted a question about this mod in the support board...I'm thinking I must have posted in the wrong section because I am not getting any answers over there. This is the same question here.

Hello everybody, I am building a forum and I have some buttons in the global header that I would like to hide from guests.
All I need is a bit of code to add before and after the button code to hide it from guests.
ie. This code works in the same situation when using wordpress:
Code: [Select]
<?php if ( is_user_logged_in() ) : ?>

~ button code goes here ~

<?php endif; ?>

Screen shot of buttons in global header.
(http://cp72.org/hostit/images/p7ewqkdlf5la2lnxwe.jpg)

Here is the code I use for my buttons.
Code: [Select]
<center>
<SCRIPT TYPE="text/javascript">
<!--
var rollOverArr=new Array();
function setrollover(OverImgSrc,pageImageName)
{
if (! document.images)return;
if (pageImageName == null)
    pageImageName = document.images[document.images.length-1].name;
rollOverArr[pageImageName]=new Object;
rollOverArr[pageImageName].overImg = new Image;
rollOverArr[pageImageName].overImg.src=OverImgSrc;
}

function rollover(pageImageName)
{
if (! document.images)return;
if (! rollOverArr[pageImageName])return;
if (! rollOverArr[pageImageName].outImg)
    {
    rollOverArr[pageImageName].outImg = new Image;
    rollOverArr[pageImageName].outImg.src = document.images[pageImageName].src;
    }
document.images[pageImageName].src=rollOverArr[pageImageName].overImg.src;
}

function rollout(pageImageName)
{
if (! document.images)return;
if (! rollOverArr[pageImageName])return;
document.images[pageImageName].src=rollOverArr[pageImageName].outImg.src;
}
//-->
</SCRIPT>
<A
    HREF="http://nqpipes-drums.cp72.org/forum/index.php?action=gallery"
    onMouseOver = "rollover('Gallery')"
    onMouseOut  = "rollout('Gallery')"
    ><IMG
    SRC="http://cp72.org/NQpipes-drums/forum/Themes/default/images/buttons/gallery.png"
    NAME="Gallery"
    ALT="Gallery" BORDER=0
    HEIGHT=33 WIDTH=128
    ></A>
<SCRIPT TYPE="text/javascript">
<!--
setrollover("http://cp72.org/NQpipes-drums/forum/Themes/default/images/buttons/gallery_over.png");
//-->
</SCRIPT>
<A
    HREF="http://nqpipes-drums.cp72.org/forum/index.php?action=Chat%20Room"
    onMouseOver = "rollover('Chat Room')"
    onMouseOut  = "rollout('Chat Room')"
    ><IMG
    SRC="http://cp72.org/NQpipes-drums/forum/Themes/default/images/buttons/chat.png"
    NAME="Chat Room"
    ALT="Chat Room" BORDER=0
    HEIGHT=33 WIDTH=128
    ></A>
<SCRIPT TYPE="text/javascript">
<!--
setrollover("http://cp72.org/NQpipes-drums/forum/Themes/default/images/buttons/chat_over.png");
//-->
</SCRIPT>
<A
    HREF="http://nqpipes-drums.cp72.org/forum/index.php?action=Contact%20List"
    onMouseOver = "rollover('Contact List')"
    onMouseOut  = "rollout('Contact List')"
    ><IMG
    SRC="http://cp72.org/NQpipes-drums/forum/Themes/default/images/buttons/contact.png"
    NAME="Contact List"
    ALT="Contact List" BORDER=0
    HEIGHT=33 WIDTH=128
    ></A>
<SCRIPT TYPE="text/javascript">
<!--
setrollover("http://cp72.org/NQpipes-drums/forum/Themes/default/images/buttons/contact_over.png");
//-->
</SCRIPT>
</center>

Any help with this would be appreciated.
Temporary forum url.
Code: [Select]
http://nqpipes-drums.cp72.org/forum/index.php
Title: Re: Global Headers and Footers
Post by: vbgamer45 on April 20, 2008, 02:48:38 PM
The global headers and footers mod does not support php code to be executed so that code would not work.
Title: Re: Global Headers and Footers
Post by: cleanfiles on April 20, 2008, 04:23:14 PM
Ok thanks, I was able to use php on the custom pages so it doesn't matter to much now anyway.
Thanks for the reply anyways.
Title: Re: Global Headers and Footers
Post by: PrizeLive.com on April 21, 2008, 07:47:41 PM
Just installed this mod and it said it was successfully installed but I see no changes.

Using Version 1.1.4.
Title: Re: Global Headers and Footers
Post by: vbgamer45 on April 21, 2008, 08:11:08 PM
Should add Headers and Footers section in the Admin Section.

If you are using another language check under Server Settings the language is set to english and not english utf8
Title: Re: Global Headers and Footers
Post by: PrizeLive.com on April 21, 2008, 08:12:00 PM
I'm using the Default theme and language is set to English.
Title: Re: Global Headers and Footers
Post by: vbgamer45 on April 21, 2008, 08:17:29 PM
You may have to install the mod manually then it sees like it is getting stuck. Check your forum's error log and check if other mods install ok.
Title: Re: Global Headers and Footers
Post by: PrizeLive.com on April 21, 2008, 08:19:54 PM
You may have to install the mod manually then it sees like it is getting stuck. Check your forum's error log and check if other mods install ok.

Where is the error log?
Title: Re: Global Headers and Footers
Post by: vbgamer45 on April 21, 2008, 08:21:43 PM
Admin -> Forum Error Log
Title: Re: Global Headers and Footers
Post by: PrizeLive.com on April 21, 2008, 08:26:10 PM
Admin -> Forum Error Log

I see a lot of:

[<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied

Does that have anything to do with this? How can I fix that?
Title: Re: Global Headers and Footers
Post by: vbgamer45 on April 21, 2008, 08:28:44 PM
That's file permissions. Issue I would post in the General SMF Support you will need to be able to change the file permissions for the files or contact your host on how to do.
Title: Re: Global Headers and Footers
Post by: PrizeLive.com on April 21, 2008, 08:30:48 PM
That's file permissions. Issue I would post in the General SMF Support you will need to be able to change the file permissions for the files or contact your host on how to do.

All files have 777 permissions.
Title: Re: Global Headers and Footers
Post by: vbgamer45 on April 21, 2008, 08:33:08 PM
In  that case I would contact your host for more information and help.
Title: Re: Global Headers and Footers
Post by: PrizeLive.com on April 21, 2008, 08:35:12 PM
In  that case I would contact your host for more information and help.

I doubt the host has anything to do with it. I've been using this same host for 2+ years with my SMF forum. Just now had issues with mods since I upgraded to version 1.1.4.
Title: Re: Global Headers and Footers
Post by: vbgamer45 on April 21, 2008, 08:43:14 PM
Then post in the General SMF Support forums since it seems you posted in many mod topics that is the forum where you would get the best support.
Title: Re: Global Headers and Footers
Post by: PrizeLive.com on April 21, 2008, 08:47:39 PM
Then post in the General SMF Support forums since it seems you posted in many mod topics that is the forum where you would get the best support.

Thanks, but some mods work fine, this one and a few others didn't.
Title: Re: Global Headers and Footers
Post by: holly.celeb.fan on April 26, 2008, 07:54:45 AM
Footer check and that working find to me..
Title: Re: Global Headers and Footers
Post by: Ikhsan4488 on May 01, 2008, 02:22:40 PM
can i use this mod for smf 1.1.5?
Title: Re: Global Headers and Footers
Post by: vbgamer45 on May 01, 2008, 07:37:59 PM
Yes you can
Title: Re: Global Headers and Footers
Post by: lightart on May 05, 2008, 01:07:32 AM
Hello,
Installed this mod on 1.1.5 (copy of deafult template with only minor graphic and background image changes)
at www.lightartforum.com
All worked well, but I find now that all 'help' windows within the admin area and main site open with the context-related help text replaced by the current header text.
When I romove the header text and save, help files re-appear. Reinsert and save problem back again.
Any wotk around for this
I also have the following previously loaded mods: 
1. SMF Links 1.6.7 
2. Simple Award System 1.3.1
3. Global Headers Footers 1.3
4. Easy Edit Meta Data 1.0
5. SMF 1.0.13 / 1.1.5 / 2.0 b3.1 Update 1.0
6. Divine Smilies 1.0
7. SMF Gallery Pro 1.3.21
8. Integrate Lightbox 1.5
9. Ad Managment 2.3

Also as an additional feature, as with banner ad manager, it would be great if we could select where the header appears.
I wanted to use the header area for intro tex on the home page, and the footer to carry Google analytics urchin code.
Title: Re: Global Headers and Footers
Post by: chrisL on May 07, 2008, 04:48:48 PM
Sorry if this is a repeat, but I couldn't find it in this topic...

I got this mod installed and showing up in my Admin section, however, after entering something in the footer section and saving, I can no longer edit the header or footer? Did I miss something?
Title: Re: Global Headers and Footers
Post by: vbgamer45 on May 07, 2008, 07:41:12 PM
You should be able to edit it again what is having when you try to edit it?
Title: Re: Global Headers and Footers
Post by: SantaClaws on May 08, 2008, 01:21:39 PM
What kind of codes can i put in here??
Title: Re: Global Headers and Footers
Post by: vbgamer45 on May 08, 2008, 08:27:29 PM
Html codes
Title: Re: Global Headers and Footers
Post by: AlkseeyaKC on May 08, 2008, 11:48:28 PM
I would really love to have this feature but I can't get it to work. I have the newest 1.1.5 and it says that there is an error:
    ./Themes/default/languages/Modifications.english.php     Test failed

Then when I installed it I the thing for it under Configuration did not appear, so I don't know how to get to it to customize.
Title: Re: Global Headers and Footers
Post by: vbgamer45 on May 08, 2008, 11:53:30 PM
Open up this file
/Themes/default/languages/Modifications.english.php
Find
Code: [Select]
?>
Change to
Code: [Select]
?>
Uninstall the old mod then reinstall the mod again and the option should be there.
Title: Re: Global Headers and Footers
Post by: AlkseeyaKC on May 09, 2008, 12:02:34 AM
I did what you said and the same things are happening.
Title: Re: Global Headers and Footers
Post by: vbgamer45 on May 09, 2008, 12:10:41 AM
For that file?

The key point is to get ?> on its own line so the mod can pass the install.
Title: Re: Global Headers and Footers
Post by: AlkseeyaKC on May 09, 2008, 12:12:58 AM
yeah its on its own line.
(http://i6.photobucket.com/albums/y212/AlkseeyaKC/Boards/Picture9-2.png)
Title: Re: Global Headers and Footers
Post by: vbgamer45 on May 09, 2008, 12:15:42 AM
hmm that it should install ok

Try this
Find
Code: [Select]
?>Change to
Code: [Select]
//Begin Global Headers and Footers Text Strings
$txt['globalhf_title'] = 'Global Headers and Footers';
//END Global Headers and Footers Text Strings
?>
Title: Re: Global Headers and Footers
Post by: AlkseeyaKC on May 09, 2008, 12:32:24 AM
It looks like It is working now! =3 Thank you so much for your time!! somehow it fixed a glitch I was having at the top of the page. XD not sure how that happened.

But I have this new space:
(http://i6.photobucket.com/albums/y212/AlkseeyaKC/Boards/Picture13-2.png)
Should I be concerned about this or just ignore it? XD
Title: Re: Global Headers and Footers
Post by: SantaClaws on May 09, 2008, 10:32:00 AM
Html codes

What like can i get Admin And mod image things in there?
Title: Re: Global Headers and Footers
Post by: jrotem on May 24, 2008, 09:21:43 PM
I know this is a basic question but I uploaded the folder to to my forum directory. Is this not correct? I'm guessing not because i am not seeing anything in my admin.  So what exactly should be uploaded and to where?

Thanks!
Title: Re: Global Headers and Footers
Post by: vbgamer45 on May 24, 2008, 10:32:22 PM
Upload it to packages directory then install the mod using the package manager in the admin section of your forum.
Title: Re: Global Headers and Footers
Post by: jrotem on May 24, 2008, 11:23:14 PM
WOw, thanks for the fast reply. I installed it but still am not seeing it in my admin ... is thre something else I might need to do? It's the first time I've installed a mod on SMF.
Title: Re: Global Headers and Footers
Post by: SantaClaws on May 25, 2008, 05:57:05 AM
You should see a button at the bottom saying Global Headers and Footers if your using a theme then you manually install if your using default you should see it.
Title: Re: Global Headers and Footers
Post by: dmav on May 25, 2008, 06:43:48 PM
Does the mod support JavaScript?
Title: Re: Global Headers and Footers
Post by: vbgamer45 on May 25, 2008, 09:16:56 PM
Yes it does.
Title: Re: Global Headers and Footers
Post by: jrotem on May 25, 2008, 09:31:41 PM
I see. So clicking "install" didn't work b/c I am using a theme?

I tried to look up how to manually install ...  I have to go through the instructions on the SMF site about installing .. parsing ... ?

Thanks anyway and I appreciate the replies. ... all i wanted to do was change the header link but i think I'll learn how to live without it, LOL!

Title: Re: Global Headers and Footers
Post by: The Saviour on May 26, 2008, 09:04:32 AM
The only thing preventing this mod from being labeled "totally awesome", is the ability to control which pages you'd like the global headers and footers applied to.

They're also applied to PMs and other pages...where they're not needed.

Something worth considering:  The ability to specify locations where this mod is disabled.

Thanks, for this...
Title: Re: Global Headers and Footers
Post by: dmav on May 26, 2008, 01:26:14 PM
Yes it does.

I don't understand, the mod support JavaScript. Srry my English.
Title: Having trouble
Post by: shuswapbc on June 03, 2008, 09:23:41 PM
Hi there,

I have installed the mod and everything seemed good, no errors. I went into the header/footer field in admin and entered a image URL as I want to set this as a permanent header. But it doesn't seem to do anything, I click save and nothing appears to happen, even when I reopen the page.

How should my code be set up to tell the system to display a image I have uploaded as the global header?

YOur help is greatly appreciated:)

Jeromy

www.shuswapbc-forum.ca
Title: Re: Global Headers and Footers
Post by: Zykev2 on June 13, 2008, 08:40:35 PM
ok i installed this and everything to my packages and it was successful but when i look in the admin CP all what happened was there was a big gap where the headers and footers were supposed to go.... (if you need pic i will take one)


any help?
Title: Re: Global Headers and Footers
Post by: vbgamer45 on June 13, 2008, 08:49:53 PM
Check admin Server Settings ->
Check language to make sure it is set to english and not english utf8
Title: Re: Global Headers and Footers
Post by: Zykev2 on June 13, 2008, 09:22:27 PM
Thanks so much dude  ;D you rock
Title: Re: Global Headers and Footers
Post by: Burke ♞ Knight on June 16, 2008, 09:16:12 AM
I have the default theme, and Enterprise on my forum.
Is there a way to get separate headers and footers for each?
I need to add something to the Enterprise theme, yet not to the default theme.
Title: Re: Global Headers and Footers
Post by: vbgamer45 on June 16, 2008, 09:59:22 PM
That would require custom code and is not part of this mod.
Title: Re: Global Headers and Footers
Post by: Burke ♞ Knight on June 19, 2008, 08:27:31 AM
The mod is headers and footers, I think it would be hard, but making it so there would be separate codes people could add to the other themes would be nice. Just a suggestion. :)
Title: Re: Global Headers and Footers
Post by: DjProgressive on June 29, 2008, 01:58:37 PM
I installed it without any problems.
But when I insert my adbrite code to footer,
its puts 2 banners @ footer
How to solve this
same on header when I insert code it makes 2 banners on footer and header.
Title: Re: Global Headers and Footers
Post by: Troja on July 05, 2008, 12:03:19 PM
Hello. The Global Mod works. But under Home. And not under Administration I click on Admin and then on Global and headers, then he goes to Home. Where's the problem?
Title: Re: Global Headers and Footers
Post by: DjProgressive on July 06, 2008, 05:28:39 PM
any help for my question
Everything is fine but when add my adbrite code it puts 2 banners on header and footer
how to solve this ?
Title: Re: Global Headers and Footers
Post by: vbgamer45 on July 06, 2008, 05:41:27 PM
Fix i think subs.php mod probably installed twice
Title: Re: Global Headers and Footers
Post by: Troja on July 07, 2008, 08:34:34 AM
Sorry for my Englisch.
This is my Problem "Global Headers and Footers". I have SMF 1.1.5.
The mod is under Admin CP => Configuration => Global Headers and Footers.
But klick on the Global Headers and Footers in Admin CP, the Admin Button is the Home Button.
I have new install SMF Forum 2x. I can not find the Problem
Title: Re: Global Headers and Footers
Post by: vbgamer45 on July 07, 2008, 08:40:34 PM
Does not work for SMF 2.x
Title: Re: Global Headers and Footers
Post by: Troja on July 08, 2008, 08:28:44 AM
Does not work for SMF 2.x
Not SMF 2.0, i have SMF 1.1.5 !! The Problem is the index.template.php. 
I have change this:

// Work out where we currently are.
   $current_action = 'home';
   if (in_array($context['current_action'], array(
to:
// Work out where we currently are.
   $current_action = 'home';
   if (in_array($context['current_action'], array('globalhf',

and see, the Mod works perfect.
Title: Re: Global Headers and Footers
Post by: vbgamer45 on July 08, 2008, 10:05:50 PM
That is just for a menu... that is not built in to the mod since there is no need for a menu item since it adds a header and footer on the theme.
Title: Re: Global Headers and Footers
Post by: Troja on July 11, 2008, 05:07:08 PM
English write is crazy.  ;) My Problem is the Code vom Mod.
I have the SMF Forum 1.1.5 and the Mod is install manual.
Can i change the php-code from GlobalHeader Mod and my name under your name write ?

This Mod is your Copyright. This is my Question.
Title: Re: Global Headers and Footers
Post by: vbgamer45 on July 11, 2008, 08:47:23 PM
No but you can translate the mod.
Title: Re: Global Headers and Footers
Post by: kushubham9 on July 19, 2008, 08:36:45 AM
hea buddy, i downloaded the header and footer mod from this site.... but when i went to install it i got this error:-


Quote
Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.


These are the mod which i use:-

Quote
1.    Global Headers Footers    1.4    
2.    Karma Buttons    1.0    
3.    Related Topics    1.2.0    
4.    Stars And Badges    2.0    
5.    Yarex 2 smiley set    2    
6.    Admin Notepad    1.0    
7.    Welcome Topic Mod    1.1    
8.    Signature Settings Mod    1.1    
9.    Select All And Copy 'Code' To Clipboard [BETA]    1.3    
10.    Referrals Mod    2.0.1    
11.    Reg Bar    1.0.2
12.    PM Popup - Uses Active Window    1.3    
13.    PM On Registration    1.0.2    
14.    SearchResultsMod    1.0    
15.    Todays Birthday    0.1    
16.    Ad Managment    2.3

what should i do??? pls guide me... the header and footer mod is very essential for me.......pls help......
Title: Re: Global Headers and Footers
Post by: Adish - (F.L.A.M.E.R) on July 26, 2008, 11:50:02 AM
What are the theme edits for this..?? I dont get the link to change the header and footer in my theme... it just appears in default.. even package parser doesnt give me theme edits...

Please let me know.. Thanks..
Title: Re: Global Headers and Footers
Post by: Adish - (F.L.A.M.E.R) on July 26, 2008, 02:02:59 PM
oo nvm.. I got it right now... My problem solved... :D
Title: Re: Global Headers and Footers
Post by: elforoof on July 30, 2008, 12:53:33 AM
hi how can i uninstall this mod  i think at one time i intall it twice and when i tried tu uninstalled it this error comes up?

http://www.simplemachines.org/community/index.php?topic=252578.msg1637174#msg1637174

can some one help me??

thank you
Title: Re: Global Headers and Footers
Post by: jimvy on July 30, 2008, 03:10:32 AM
I would like my header to display the information that this (http://jellybabiesgang.tw-family.us/header.php) php file calculates, but I can't seem to get it to display. This information used to calculate totale is updated every hour. Please tell me how I can make this display in my header.
Title: Re: Global Headers and Footers
Post by: vbgamer45 on July 30, 2008, 09:03:53 AM
Currently does not support php code.
Title: Re: Global Headers and Footers
Post by: jimvy on July 30, 2008, 08:05:44 PM
Is there a way to code an html script to get the results of the php script and display them that way?
Title: Re: Global Headers and Footers
Post by: vbgamer45 on July 30, 2008, 08:39:18 PM
You could do an iframe or javascript code to do that.
Title: Re: Global Headers and Footers
Post by: jimvy on July 30, 2008, 09:16:29 PM
Now I feel dumb, 5 minute search for Iframe + PHP and it's working perfect after spending a day trying to figure out how to get the html code to fill in the $variables with the values. Thanks for putting an end to my headache :)
Title: Re: Global Headers and Footers
Post by: limsteven25 on August 02, 2008, 10:07:53 AM
what is the html code is i want to put 3 banner on the same lining

<p align="center">
<a href="

LINK
"
target="_blank">
<img border="0" src="PIC LINK"></a></p>

this html only me allow to put 1 banner, what is the html to put all the 3 banner on the same lining ?

thanks
Title: Re: Global Headers and Footers
Post by: vbgamer45 on August 02, 2008, 04:07:41 PM
I would ask in the scripting forum since this is not related to the mod itself
Title: Re: Global Headers and Footers
Post by: Adish - (F.L.A.M.E.R) on August 13, 2008, 09:15:36 AM
any way i can run this with 2.0 beta ?

Please let me know.

Thank you.
Title: Re: Global Headers and Footers
Post by: vbgamer45 on August 13, 2008, 08:31:46 PM
No not currently.
Title: Re: Global Headers and Footers
Post by: Adish - (F.L.A.M.E.R) on August 13, 2008, 09:04:53 PM
:( i was thinking of adding special updates of my site on to the header.. i will now have to edit the index.template.php to show that up.... or i may try to do the installation manually and see if it kind of helps me or not... hope i figure out something...
Title: Re: Global Headers and Footers
Post by: ishy on August 23, 2008, 02:51:31 PM
Check admin Server Settings ->
Check language to make sure it is set to english and not english utf8

THANK YOU!!!  I never would have figured that one out!! LOL
Title: Re: Global Headers and Footers
Post by: callteg4 on September 02, 2008, 06:04:34 AM
Download the file get the globalhf.php file and copy that to your sources folder.

I downloaded this yesterday and I am getting this error

Apply Filter: Only show the errors with the same message
8: Undefined index: globalhf_title
File: /customers/arcadewithme.co.uk/arcadewithme.co.uk/httpd.www/Sources/Subs.php
Line: 2764

this was reported in 2006 and u replied its fixed any ideas
Title: Re: Global Headers and Footers
Post by: vbgamer45 on September 02, 2008, 09:02:46 AM
That is a language file issue. Make sure you copy any text from default/themes/modifications.english.php
To
default/themes/modifications.yourlanguage.php
Title: Re: Global Headers and Footers
Post by: callteg4 on September 02, 2008, 09:17:30 AM
I am english so there is nothing i can edit there
Title: Re: Global Headers and Footers
Post by: vbgamer45 on September 02, 2008, 08:21:01 PM
are you using a custom theme then you have to edit that file as well in the theme.
Title: Re: Global Headers and Footers
Post by: callteg4 on September 03, 2008, 05:31:54 AM
Done all that I think i have missed something out somewhere (but dont know what) i am not getting the global settings to show on my theme i have to go to default to edit it
Title: Re: Global Headers and Footers
Post by: BCK on September 13, 2008, 09:59:11 AM
hi.im green,,and downloaded this mod,,and when i used it..pasted code for a button in the header i got two buttons,one atop the other,,so i uninstalled, then deleted mod,,re installed, all said successful,,etc,,now i get three atop etc ..went to themes/ default/ lang and had the code there in triplicate, removed all but one..still same..im not good at code,,and have zero idea what to do or how, to fix this ..im totally lost..is there an easy way to totally remove the mod..and start over??or any advise for that matter to solve this..thx in advance...
Title: Re: Global Headers and Footers
Post by: BCK on September 13, 2008, 10:08:52 AM
well,after removing the extra code in the above mention..i now get four buttons atop eachother..im real confused now...
Title: Re: Global Headers and Footers
Post by: Sabre™ on September 13, 2008, 10:12:51 AM
Look for the code that was added to the index.template.php for that theme.
Delete the duplicates from there also.
You may aswell check all the templates this mod modified.
Use a [Package Parser] (http://sleepycode.com/PackageParser/index.php) to see what and where the codes were added :)
Title: Re: Global Headers and Footers
Post by: BCK on September 13, 2008, 10:17:05 AM
thx..but my problem is i cant seem to find any other duplicate type code..most of this i might add might as well be in chinese for me..im truely lost..but will continue hunting around..thx
Title: Re: Global Headers and Footers
Post by: Sabre™ on September 13, 2008, 10:20:01 AM
You cannot find duplicate code in your index.template.php ??
That will normally be where the code is if you are seeing duplicate buttons
Title: Re: Global Headers and Footers
Post by: BCK on September 13, 2008, 10:37:43 AM
it might be there..i looked in default index and theme index ..i cant find anything,,but im green as i said and truely not sure what im looking for..im sorry, i do appriciate your attempt to help..im just frustrated now..ive looked at a ton of stuff..no idea what im doing..and i realize if you cant see. its a nightmare for you to help..thx,,when i paste a button code now..i get four atop eachother..so uninstall and deleting the mod sure isnt helping..lol..i give up on that one..lol..i need someone who knows what they are doing to go in and fix..im afraid iof making thing worse or messing up something else by deleting code
Title: Re: Global Headers and Footers
Post by: Sabre™ on September 13, 2008, 10:41:18 AM
lol  its ok mate, people are here to help :)
Can you use the attachment function here when you post, and upload your index.template.php please :)
Title: Re: Global Headers and Footers
Post by: BCK on September 13, 2008, 10:44:43 AM
wich index..default or theme...lol..a very simple mod install has become my nitemare now..lmao..im learnin...i'll save a fortune at the barbers,,wont need haircuts for awhile..got most of it pulled out..lmao
Title: Re: Global Headers and Footers
Post by: Sabre™ on September 13, 2008, 10:49:07 AM
Which ever ones giving you the extra buttons.
Title: Re: Global Headers and Footers
Post by: BCK on September 13, 2008, 10:50:18 AM
ill try both...i dont know which one does..lol
Title: Re: Global Headers and Footers
Post by: BCK on September 13, 2008, 10:54:13 AM
thx..i planned on deleting...srry
Title: Re: Global Headers and Footers
Post by: BCK on September 13, 2008, 10:58:03 AM
plz let me know once you.ve looked at this one so i can delete it..its huge on here
Title: Re: Global Headers and Footers
Post by: Sabre™ on September 13, 2008, 10:58:40 AM
Mate, can you delete that please.
When you post, you will see some text below the box, which states "Additional Options..."
Click on that and you will see the "Attach:" feature.
Use that to upload your templates.

When adding code here to a post. you will see a bb code button that looks like this "#"
Press that, and add whatever code you want to display, so it looks like this

Cheers
Title: Re: Global Headers and Footers
Post by: BCK on September 13, 2008, 11:03:16 AM
heres sourse
Code: [Select]
heres the theme one
[code] application/x-httpd-php index.template.php
PHP script text

<?php
// Version: 1.1; index

/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
global $context$settings$options$txt;

/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';

/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';

/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '1.1';

/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = false;

/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = true;

/* Show sticky and lock status seperate from topic icons? */
$settings['seperate_sticky_lock'] = true;

// extra strings
loadLanguage('ThemeStrings');

    if(!
$context['user']['is_guest'] && isset($_POST['options']['mypic']))
{
   
include_once($GLOBALS['sourcedir'] . '/Profile.php');
   
makeThemeChanges($context['user']['id'], $settings['theme_id']);
   
$options['mypic'] = $_POST['options']['mypic'];
}
elseif ($context['user']['is_guest'])
{
   
if (isset($_POST['options']['mypic']))
   
{
      
$_SESSION['mypic'] = $_POST['options']['mypic'];
      
$options['mypic'] = $_SESSION['mypic'];
   
}
   
elseif (isset($_SESSION['mypic']))
      
$options['mypic'] = $_SESSION['mypic'];
}

}

// The main sub template above the content.
function template_main_above()
{
global $context$settings$options$scripturl$txt$modSettings;

// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''><head>
<meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
<meta name="description" content="'
$context['page_title'], '" />', empty($context['robot_no_index']) ? '' '
<meta name="robots" content="noindex" />'
'
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/script.js?rc3"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'
$settings['theme_url'], '";
var smf_images_url = "'
$settings['images_url'], '";
var smf_scripturl = "'
$scripturl'";
var smf_iso_case_folding = '
$context['server']['iso_case_folding'] ? 'true' 'false'';
var smf_charset = "'
$context['character_set'], '";
// ]]></script>
<title>'
$context['page_title'], '</title>';

// The ?fin11 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style.css?fin11" />
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/print.css?fin11" media="print" />';

/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
Standards compliance mode happens when you use xhtml... */
if ($context['browser']['needs_size_fix'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/fonts-compat.css" />';

// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="'
$scripturl'?action=help" target="_blank" />
<link rel="search" href="' 
$scripturl '?action=search" />
<link rel="contents" href="'
$scripturl'" />';

// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="'
$context['forum_name'], ' - RSS" href="'$scripturl'?type=rss;action=.xml" />';

// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';

// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="' 
$scripturl '?board=' $context['current_board'] . '.0" />';

// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
$options['collapse_header'] = !empty($_COOKIE['upshrink']);

// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '

<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header = '
, empty($options['collapse_header']) ? 'false' 'true'';

function shrinkHeader(mode)
{'
;

// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";

current_header = mode;
}
// ]]></script>'
;

// the routine for the info center upshrink
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header_ic = '
, empty($options['collapse_header_ic']) ? 'false' 'true'';

function shrinkHeaderIC(mode)
{'
;

if ($context['user']['is_guest'])
echo '
document.cookie = "upshrinkIC=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";

current_header_ic = mode;
}
// ]]></script>
</head>
<body>'
;

userbox();
searchbox();
newsbox();

echo '
<div id="maintable">
<div id="picture_choose">
<form class="middletext" name="FormName" action="'
,$scripturl,'" method="post" style="margin: 0; padding: 0;">
<select size="1" name="options[mypic]" onChange="submit()">
  <option value="" '
, (!empty($options['mypic']) && $options['mypic']=='') ? 'selected' '' ,'>Enterprise</option>
  <option value="1"  '
, (!empty($options['mypic']) && $options['mypic']=='1') ? 'selected' '' ,'>Babylon 5</option>
  <option value="2"  '
, (!empty($options['mypic']) && $options['mypic']=='2') ? 'selected' '' ,'>Sunflares</option>
  <option value="3"  '
, (!empty($options['mypic']) && $options['mypic']=='3') ? 'selected' '' ,'>Spaceship</option>
</select>
</form></div>
<div id="logo"><span class="logotext"><a href="'
,$scripturl,'">' $context['forum_name'], '</a></span>
<br /><span class="smalltext" style="color: #a0a0a0">' 
,$context['current_time'],'</span></div>
<div id="mainmenu">' 
template_menu() , '</div>
<div id="linktree">' 
theme_linktree2() , '</div>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td><img src="'
,$settings['images_url'],'/img/topl.jpg" alt="" /></td>
<td width="99%" style="background: url('
,$settings['images_url'],'/img/topm.jpg) repeat-x;">&nbsp;</td>
<td><img src="'
,$settings['images_url'],'/img/topr', isset($options['mypic']) ? $options['mypic'] : '' '.jpg" alt="" /></td>
<tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td style="background: url('
,$settings['images_url'],'/img/left.jpg) repeat-y;"><img src="',$settings['images_url'],'/img/left.jpg" alt="" /></td>
<td width="100%">'
;

}

function 
template_main_below()
{
global $context$settings$options$scripturl$txt $user_info;



// This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough.
if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'] || $context['browser']['is_firefox'])
{
// The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA['
;

// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
if ($context['browser']['is_safari'])
echo '
window.addEventListener("load", smf_codeFix, false);

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if ((codeFix[i].className == "code" || codeFix[i].className == "post" || codeFix[i].className == "signature") && codeFix[i].offsetHeight < 20)
codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + "px";
}
}'
;
elseif ($context['browser']['is_firefox'])
echo '
window.addEventListener("load", smf_codeFix, false);
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if (codeFix[i].className == "code" && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0))
codeFix[i].style.overflow = "scroll";
}
}'
;
else
echo '
var window_oldOnload = window.onload;
window.onload = smf_codeFix;

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = codeFix.length - 1; i > 0; i--)
{
if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0 || codeFix[i].className == "code"))
codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";
}

if (window_oldOnload)
{
window_oldOnload();
window_oldOnload = null;
}
}'
;

echo '
// ]]></script>'
;
}

echo '</td>
<td style="background: url('
,$settings['images_url'],'/img/right.jpg) repeat-y;"><img src="',$settings['images_url'],'/img/right.jpg" alt="" /></td>
</tr>
<tr>
<td><img src="'
,$settings['images_url'],'/img/botleft.jpg" alt="" /></td>
<td valign="middle" align="center" class="smalltext" style="background: url('
,$settings['images_url'],'/img/bottom.jpg) repeat-x;" width="100%"><img src="',$settings['images_url'],'/img/botleft2.jpg" style="margin: 0;" align="left" alt="" />';

echo '<br /><br /><br />' theme_copyright(), '
<br /> <b>Enterprise</b> design by <a href="http://www.tinyportal.net">Bloc</a>'
;

// Show the load time?
if ($context['show_load_time'])
echo '<br />
<span class="smalltext">'
$txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';

echo '</td>
<td><img src="'
,$settings['images_url'],'/img/botright.jpg" alt="" /></td>
</tr>
</table></div>'
;
echo '
<div id="ajax_in_progress" style="display: none;'
$context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' '''">'$txt['ajax_in_progress'], '</div>
</body></html>'
;
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
return;
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree2()
{
global $context$settings$options;

echo '<div class="nav" style="font-size: smaller; margin-bottom: 2ex; margin-top: 2ex;">';

// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Show the link, including a URL if it should have one.
echo ''$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav">' $tree['name'] . '</a>' $tree['name'], '';

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo '&nbsp;-&nbsp;';
}

echo '</div>';
}


// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context$settings$options$scripturl$txt;

// Work out where we currently are.
$current_action 'home';
if (in_array($context['current_action'], array('admin''ban''boardrecount''cleanperms''detailedversion''dumpdb''featuresettings''featuresettings2''findmember''maintain''manageattachments''manageboards''managecalendar''managesearch''membergroups''modlog''news''optimizetables''packageget''packages''permissions''pgdownload''postsettings''regcenter''repairboards''reports''serversettings''serversettings2''smileys''viewErrorLog''viewmembers')))
$current_action 'admin';
if (in_array($context['current_action'], array('search''admin''calendar''profile''mlist''register''login''help''pm')))
$current_action $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action 'search';
if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' 'profile' 'admin';

// Are we using right-to-left orientation?
if ($context['right_to_left'])
{
$first 'last';
$last 'first';
}
else
{
$first 'first';
$last 'last';
}

// Show the start of the tab section.
echo '
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="maintab_' 
$first '">&nbsp;</td>';

// Show the [home] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td  class="maintab_' 
$current_action == 'home' 'active_back' 'back' '">
<a href="'
$scripturl'">' $txt[103] , '</a>
</td>' 
$current_action == 'home' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Show the [help] button.
echo ($current_action == 'help' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td  class="maintab_' 
$current_action == 'help' 'active_back' 'back' '">
<a href="'
$scripturl'?action=help">' $txt[119] , '</a>
</td>' 
$current_action == 'help' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// How about the [search] button?
if ($context['allow_search'])
echo ($current_action == 'search' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td class="maintab_' 
$current_action == 'search' 'active_back' 'back' '">
<a href="'
$scripturl'?action=search">' $txt[182] , '</a>
</td>' 
$current_action == 'search' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo ($current_action == 'admin' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td class="maintab_' 
$current_action == 'admin' 'active_back' 'back' '">
<a href="'
$scripturl'?action=admin">' $txt[2] , '</a>
</td>' 
$current_action == 'admin' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo ($current_action == 'profile' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td class="maintab_' 
$current_action == 'profile' 'active_back' 'back' '">
<a href="'
$scripturl'?action=profile">' $txt[79] , '</a>
</td>' 
$current_action == 'profile' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo ($current_action == 'pm' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td  class="maintab_' 
$current_action == 'pm' 'active_back' 'back' '">
<a href="'
$scripturl'?action=pm">' $txt['pm_short'] , ' '$context['user']['unread_messages'] > '[<strong>'$context['user']['unread_messages'] . '</strong>]' '' '</a>
</td>' 
$current_action == 'pm' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// The [calendar]!
if ($context['allow_calendar'])
echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td class="maintab_' 
$current_action == 'calendar' 'active_back' 'back' '">
<a href="'
$scripturl'?action=calendar">' $txt['calendar24'] , '</a>
</td>' 
$current_action == 'calendar' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// the [member] list button
if ($context['allow_memberlist'])
echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td class="maintab_' 
$current_action == 'mlist' 'active_back' 'back' '">
<a href="'
$scripturl'?action=mlist">' $txt[331] , '</a>
</td>' 
$current_action == 'mlist' '<td class="maintab_active_' $last '">&nbsp;</td>' '';


// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo ($current_action == 'login' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td class="maintab_' 
$current_action == 'login' 'active_back' 'back' '">
<a href="'
$scripturl'?action=login">' $txt[34] , '</a>
</td>' 
$current_action == 'login' '<td class="maintab_active_' $last '">&nbsp;</td>' '';


// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo ($current_action == 'register' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td  class="maintab_' 
$current_action == 'register' 'active_back' 'back' '">
<a href="'
$scripturl'?action=register">' $txt[97] , '</a>
</td>' 
$current_action == 'register' '<td class="maintab_active_' $last '">&nbsp;</td>' '';


// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo ($current_action == 'logout' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td class="maintab_' 
$current_action == 'logout' 'active_back' 'back' '">
<a href="'
$scripturl'?action=logout;sesc='$context['session_id'], '">' $txt[108] , '</a>
</td>' 
$current_action == 'logout' '<td class="maintab_active_' $last '">&nbsp;</td>' '';
         
// The end of tab section.
echo '
<td class="maintab_' 
$last '">&nbsp;</td>
</tr>
</table>'
;

}

// Generate a strip of buttons.
function template_button_strip($button_strip$direction 'top'$force_reset false$custom_td '')
{
global $settings$buttons$context$txt$scripturl;

// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' $txt[$value['text']] . '</a>';

$button_strip[$key] = $buttons[$key];
}

if (empty($button_strip))
return '<td>&nbsp;</td>';

echo '
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'last' 'first' '">&nbsp;</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_back">'implode(' &nbsp;|&nbsp; '$button_strip) , '</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'first' 'last' '">&nbsp;</td>';
}

// userbox
function userbox()
{
          global 
$context$settings$options$scripturl$txt$modSettings;


echo '<div id="pmbox">';
if($context['user']['is_logged']){
echo $txt['hello_member'], ' <b>'$context['user']['name'], '</b>';
// Only tell them about their messages if they can read their messages!
if ($context['allow_pm'])
echo ', '$txt[152], ' <a href="'$scripturl'?action=pm">'$context['user']['messages'], ' '$context['user']['messages'] != $txt[153] : $txt[471], '</a>'$txt['newmessages4'], ' '$context['user']['unread_messages'], ' '$context['user']['unread_messages'] == $txt['newmessages0'] : $txt['newmessages1'];
echo '.<br />';
}
else
echo $txt['welcome_guest'];

echo '</div>';

         echo
'<div id="userbox"><table width="99%" cellpadding="0" cellspacing="5" border="0"><tr>';
        echo 
'<td width="100%" valign="top" class="smalltext" style="font-family: verdana, arial, sans-serif;">';

if($context['user']['is_logged']){

// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '
<b>'
$txt[616], '</b><br />';

// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '
'
$context['unapproved_members'] == $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="'$scripturl'?action=viewmembers;sa=browse;type=approve">'$context['unapproved_members'] == $txt['approve_member'] : $context['unapproved_members'] . ' ' $txt['approve_members'], '</a> '$txt['approve_members_waiting'], '<br />';

echo '
<a href="'
$scripturl'?action=unread">'$txt['unread_since_visit'], '</a><br />
<a href="'
$scripturl'?action=unreadreplies">'$txt['show_unread_replies'], '</a><br />';


        }
        
// Otherwise they're a guest - so politely ask them to register or login.
        
else
        {
                echo 
' <span class="blockmain">
                                                        <form style="margin-top: 0" class="blockmain" action="'
$scripturl'?action=login2" accept-charset="'$context['character_set'], '" method="post" ', empty($context['disable_login_hashing']) ? '  onsubmit="hashLoginPassword(this, \'' $context['session_id'] . '\');"' ''' >
                                                                <input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" />
                                                                <select name="cookielength">
                                                                        <option value="60">'
$txt['smf53'], '</option>
                                                                        <option value="1440">'
$txt['smf47'], '</option>
                                                                        <option value="10080">'
$txt['smf48'], '</option>
                                                                        <option value="302400">'
$txt['smf49'], '</option>
                                                                        <option value="-1" selected="selected">'
$txt['smf50'], '</option>
                                                                </select>
                                                                <input type="submit" value="'
$txt[34], '" /><br />
                                                                '
$txt['smf52'], '
                                                        </form>'
;
        }

        echo 
'
                                                </td></tr></table></div>'
;

}

function 
newsbox()
{
        global 
$context$settings$options$scripturl$txt$modSettings;

        
// Show a random news item? (or you could pick one from news_lines...)
        
if (!empty($settings['enable_news']))
                echo 
'<div id="newsbox" style="padding: 5px;" >'$context['random_news_line'], '</div>
                                        '
;
}

function 
statsbox()
{
       global 
$context$settings$options$scripturl$txt$modSettings;
       echo 
'
                  <div id="statsbox" style="padding: 5px;" class="smalltext">
                                          <b>'
$modSettings['totalMessages'], '</b> '$txt[95], ' '$txt['smf88'], ' <b>'$modSettings['totalTopics'], '</b> '$txt[64], ' '$txt[525], ' <b>'$modSettings['totalMembers'], '</b> ',  $txt[19], '<br />
                                                        '
$txt[656], ': <b> <a href="'$scripturl'?action=profile;u='$modSettings['latestMember'], '">'$modSettings['latestRealName'], '</a></b>
                  </div>'
;
}
function 
searchbox()
{
    global 
$context$settings$options$txt $scripturl;

   echo 
'<div id="searchbox"><form action="'$scripturl'?action=search2"  accept-charset="'$context['character_set'], '" method="post" style="margin: 0; margin-bottom: 5px;">
                      <input type="text" name="search" value="">
                      <input type="submit" name="submit" value="'
$txt[182], '"  /><span class="smalltext">
                      <a href="'
$scripturl'?action=search;advanced">'$txt['smf298'], '</a></span>
                     <input type="hidden" name="advanced" value="0" />'
;

        echo 
'</form></div>';

}


?>


[/code]
Title: Re: Global Headers and Footers
Post by: Sabre™ on September 13, 2008, 11:05:35 AM
Sorry mate, I just looked at the code, and it is your /Sources/Subs.php that I need to see.
Sorry mate, Ive ot soo many tabs and windows open, that I fell behind on this one.

So can you edit the above, to show your /Sources/Subs.php.

EDIT: Looks like we're both green now! lol ;)
Title: Re: Global Headers and Footers
Post by: BCK on September 13, 2008, 11:13:40 AM
its to big.wont post
Title: Re: Global Headers and Footers
Post by: BCK on September 13, 2008, 11:14:10 AM
Code: [Select]
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"', $context['right_to_left'] ? ' dir="rtl"' : '', '><head>
<meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
<meta name="description" content="', $context['page_title'], '" />', empty($context['robot_no_index']) ? '' : '
<meta name="robots" content="noindex" />', '
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/script.js?rc3"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "', $settings['theme_url'], '";
var smf_images_url = "', $settings['images_url'], '";
var smf_scripturl = "', $scripturl, '";
var smf_iso_case_folding = ', $context['server']['iso_case_folding'] ? 'true' : 'false', ';
var smf_charset = "', $context['character_set'], '";
// ]]></script>
<title>', $context['page_title'], '</title>';

// The ?fin11 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/style.css?fin11" />
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/print.css?fin11" media="print" />';

/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
Standards compliance mode happens when you use xhtml... */
if ($context['browser']['needs_size_fix'])
echo '
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/fonts-compat.css" />';

// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="', $scripturl, '?action=help" target="_blank" />
<link rel="search" href="' . $scripturl . '?action=search" />
<link rel="contents" href="', $scripturl, '" />';

// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="', $context['forum_name'], ' - RSS" href="', $scripturl, '?type=rss;action=.xml" />';

// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=next" />';

// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="' . $scripturl . '?board=' . $context['current_board'] . '.0" />';

// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
$options['collapse_header'] = !empty($_COOKIE['upshrink']);

// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '

<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header = ', empty($options['collapse_header']) ? 'false' : 'true', ';

function shrinkHeader(mode)
{';

// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);';
else
echo '
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "', $context['session_id'], '");';

echo '
document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";

current_header = mode;
}
// ]]></script>';

// the routine for the info center upshrink
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header_ic = ', empty($options['collapse_header_ic']) ? 'false' : 'true', ';

function shrinkHeaderIC(mode)
{';

if ($context['user']['is_guest'])
echo '
document.cookie = "upshrinkIC=" + (mode ? 1 : 0);';
else
echo '
smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "', $context['session_id'], '");';

echo '
document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";

current_header_ic = mode;
}
// ]]></script>
</head>
<body>';

userbox();
searchbox();
newsbox();

echo '
<div id="maintable">
<div id="picture_choose">
<form class="middletext" name="FormName" action="',$scripturl,'" method="post" style="margin: 0; padding: 0;">
<select size="1" name="options[mypic]" onChange="submit()">
  <option value="" ', (!empty($options['mypic']) && $options['mypic']=='') ? 'selected' : '' ,'>Enterprise</option>
  <option value="1"  ', (!empty($options['mypic']) && $options['mypic']=='1') ? 'selected' : '' ,'>Babylon 5</option>
  <option value="2"  ', (!empty($options['mypic']) && $options['mypic']=='2') ? 'selected' : '' ,'>Sunflares</option>
  <option value="3"  ', (!empty($options['mypic']) && $options['mypic']=='3') ? 'selected' : '' ,'>Spaceship</option>
</select>
</form></div>
<div id="logo"><span class="logotext"><a href="',$scripturl,'">' , $context['forum_name'], '</a></span>
<br /><span class="smalltext" style="color: #a0a0a0">' ,$context['current_time'],'</span></div>
<div id="mainmenu">' , template_menu() , '</div>
<div id="linktree">' , theme_linktree2() , '</div>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td><img src="',$settings['images_url'],'/img/topl.jpg" alt="" /></td>
<td width="99%" style="background: url(',$settings['images_url'],'/img/topm.jpg) repeat-x;">&nbsp;</td>
<td><img src="',$settings['images_url'],'/img/topr', isset($options['mypic']) ? $options['mypic'] : '' , '.jpg" alt="" /></td>
<tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td style="background: url(',$settings['images_url'],'/img/left.jpg) repeat-y;"><img src="',$settings['images_url'],'/img/left.jpg" alt="" /></td>
<td width="100%">';

}

function template_main_below()
{
global $context, $settings, $options, $scripturl, $txt , $user_info;



// This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough.
if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'] || $context['browser']['is_firefox'])
{
// The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[';

// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
if ($context['browser']['is_safari'])
echo '
window.addEventListener("load", smf_codeFix, false);

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if ((codeFix[i].className == "code" || codeFix[i].className == "post" || codeFix[i].className == "signature") && codeFix[i].offsetHeight < 20)
codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + "px";
}
}';
elseif ($context['browser']['is_firefox'])
echo '
window.addEventListener("load", smf_codeFix, false);
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if (codeFix[i].className == "code" && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0))
codeFix[i].style.overflow = "scroll";
}
}';
else
echo '
var window_oldOnload = window.onload;
window.onload = smf_codeFix;

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = codeFix.length - 1; i > 0; i--)
{
if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0 || codeFix[i].className == "code"))
codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";
}

if (window_oldOnload)
{
window_oldOnload();
window_oldOnload = null;
}
}';

echo '
// ]]></script>';
}

echo '</td>
<td style="background: url(',$settings['images_url'],'/img/right.jpg) repeat-y;"><img src="',$settings['images_url'],'/img/right.jpg" alt="" /></td>
</tr>
<tr>
<td><img src="',$settings['images_url'],'/img/botleft.jpg" alt="" /></td>
<td valign="middle" align="center" class="smalltext" style="background: url(',$settings['images_url'],'/img/bottom.jpg) repeat-x;" width="100%"><img src="',$settings['images_url'],'/img/botleft2.jpg" style="margin: 0;" align="left" alt="" />';

echo '<br /><br /><br />' , theme_copyright(), '
<br /> <b>Enterprise</b> design by <a href="http://www.tinyportal.net">Bloc</a>';

// Show the load time?
if ($context['show_load_time'])
echo '<br />
<span class="smalltext">', $txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';

echo '</td>
<td><img src="',$settings['images_url'],'/img/botright.jpg" alt="" /></td>
</tr>
</table></div>';
echo '
<div id="ajax_in_progress" style="display: none;', $context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' : '', '">', $txt['ajax_in_progress'], '</div>
</body></html>';
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
return;
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree2()
{
global $context, $settings, $options;

echo '<div class="nav" style="font-size: smaller; margin-bottom: 2ex; margin-top: 2ex;">';

// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Show the link, including a URL if it should have one.
echo '', $settings['linktree_link'] && isset($tree['url']) ? '<a href="' . $tree['url'] . '" class="nav">' . $tree['name'] . '</a>' : $tree['name'], '';

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo '&nbsp;-&nbsp;';
}

echo '</div>';
}


// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;

// Work out where we currently are.
$current_action = 'home';
if (in_array($context['current_action'], array('admin', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers')))
$current_action = 'admin';
if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))
$current_action = $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action = 'search';
if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';

// Are we using right-to-left orientation?
if ($context['right_to_left'])
{
$first = 'last';
$last = 'first';
}
else
{
$first = 'first';
$last = 'last';
}

// Show the start of the tab section.
echo '
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="maintab_' , $first , '">&nbsp;</td>';

// Show the [home] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td  class="maintab_' , $current_action == 'home' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '">' , $txt[103] , '</a>
</td>' , $current_action == 'home' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

// Show the [help] button.
echo ($current_action == 'help' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td  class="maintab_' , $current_action == 'help' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=help">' , $txt[119] , '</a>
</td>' , $current_action == 'help' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

// How about the [search] button?
if ($context['allow_search'])
echo ($current_action == 'search' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td class="maintab_' , $current_action == 'search' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=search">' , $txt[182] , '</a>
</td>' , $current_action == 'search' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo ($current_action == 'admin' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td class="maintab_' , $current_action == 'admin' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=admin">' , $txt[2] , '</a>
</td>' , $current_action == 'admin' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo ($current_action == 'profile' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td class="maintab_' , $current_action == 'profile' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=profile">' , $txt[79] , '</a>
</td>' , $current_action == 'profile' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo ($current_action == 'pm' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td  class="maintab_' , $current_action == 'pm' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=pm">' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</a>
</td>' , $current_action == 'pm' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

// The [calendar]!
if ($context['allow_calendar'])
echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td class="maintab_' , $current_action == 'calendar' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a>
</td>' , $current_action == 'calendar' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

// the [member] list button
if ($context['allow_memberlist'])
echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td class="maintab_' , $current_action == 'mlist' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=mlist">' , $txt[331] , '</a>
</td>' , $current_action == 'mlist' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo ($current_action == 'login' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td class="maintab_' , $current_action == 'login' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=login">' , $txt[34] , '</a>
</td>' , $current_action == 'login' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo ($current_action == 'register' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td  class="maintab_' , $current_action == 'register' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=register">' , $txt[97] , '</a>
</td>' , $current_action == 'register' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo ($current_action == 'logout' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td class="maintab_' , $current_action == 'logout' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">' , $txt[108] , '</a>
</td>' , $current_action == 'logout' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
         
// The end of tab section.
echo '
<td class="maintab_' , $last , '">&nbsp;</td>
</tr>
</table>';

}

// Generate a strip of buttons.
function template_button_strip($button_strip, $direction = 'top', $force_reset = false, $custom_td = '')
{
global $settings, $buttons, $context, $txt, $scripturl;

// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' . $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' . $txt[$value['text']] . '</a>';

$button_strip[$key] = $buttons[$key];
}

if (empty($button_strip))
return '<td>&nbsp;</td>';

echo '
<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'last' : 'first' , '">&nbsp;</td>
<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_back">', implode(' &nbsp;|&nbsp; ', $button_strip) , '</td>
<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'first' : 'last' , '">&nbsp;</td>';
}

// userbox
function userbox()
{
          global $context, $settings, $options, $scripturl, $txt, $modSettings;


echo '<div id="pmbox">';
if($context['user']['is_logged']){
echo $txt['hello_member'], ' <b>', $context['user']['name'], '</b>';
// Only tell them about their messages if they can read their messages!
if ($context['allow_pm'])
echo ', ', $txt[152], ' <a href="', $scripturl, '?action=pm">', $context['user']['messages'], ' ', $context['user']['messages'] != 1 ? $txt[153] : $txt[471], '</a>', $txt['newmessages4'], ' ', $context['user']['unread_messages'], ' ', $context['user']['unread_messages'] == 1 ? $txt['newmessages0'] : $txt['newmessages1'];
echo '.<br />';
}
else
echo $txt['welcome_guest'];

echo '</div>';

         echo'<div id="userbox"><table width="99%" cellpadding="0" cellspacing="5" border="0"><tr>';
        echo '<td width="100%" valign="top" class="smalltext" style="font-family: verdana, arial, sans-serif;">';

if($context['user']['is_logged']){

// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '
<b>', $txt[616], '</b><br />';

// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '
', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=viewmembers;sa=browse;type=approve">', $context['unapproved_members'] == 1 ? $txt['approve_member'] : $context['unapproved_members'] . ' ' . $txt['approve_members'], '</a> ', $txt['approve_members_waiting'], '<br />';

echo '
<a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a><br />
<a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a><br />';


        }
        // Otherwise they're a guest - so politely ask them to register or login.
        else
        {
                echo ' <span class="blockmain">
                                                        <form style="margin-top: 0" class="blockmain" action="', $scripturl, '?action=login2" accept-charset="', $context['character_set'], '" method="post" ', empty($context['disable_login_hashing']) ? '  onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', ' >
                                                                <input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" />
                                                                <select name="cookielength">
                                                                        <option value="60">', $txt['smf53'], '</option>
                                                                        <option value="1440">', $txt['smf47'], '</option>
                                                                        <option value="10080">', $txt['smf48'], '</option>
                                                                        <option value="302400">', $txt['smf49'], '</option>
                                                                        <option value="-1" selected="selected">', $txt['smf50'], '</option>
                                                                </select>
                                                                <input type="submit" value="', $txt[34], '" /><br />
                                                                ', $txt['smf52'], '
                                                        </form>';
        }

        echo '
                                                </td></tr></table></div>';

}

function newsbox()
{
        global $context, $settings, $options, $scripturl, $txt, $modSettings;

        // Show a random news item? (or you could pick one from news_lines...)
        if (!empty($settings['enable_news']))
                echo '<div id="newsbox" style="padding: 5px;" >', $context['random_news_line'], '</div>
                                        ';
}

function statsbox()
{
       global $context, $settings, $options, $scripturl, $txt, $modSettings;
       echo '
                  <div id="statsbox" style="padding: 5px;" class="smalltext">
                                          <b>', $modSettings['totalMessages'], '</b> ', $txt[95], ' ', $txt['smf88'], ' <b>', $modSettings['totalTopics'], '</b> ', $txt[64], ' ', $txt[525], ' <b>', $modSettings['totalMembers'], '</b> ',  $txt[19], '<br />
                                                        ', $txt[656], ': <b> <a href="', $scripturl, '?action=profile;u=', $modSettings['latestMember'], '">', $modSettings['latestRealName'], '</a></b>
                  </div>';
}
function searchbox()
{
    global $context, $settings, $options, $txt , $scripturl;

   echo '<div id="searchbox"><form action="', $scripturl, '?action=search2"  accept-charset="', $context['character_set'], '" method="post" style="margin: 0; margin-bottom: 5px;">
                      <input type="text" name="search" value="">
                      <input type="submit" name="submit" value="', $txt[182], '"  /><span class="smalltext">
                      <a href="', $scripturl, '?action=search;advanced">', $txt['smf298'], '</a></span>
                     <input type="hidden" name="advanced" value="0" />';

        echo '</form></div>';

}


?>

[/code]
Title: Re: Global Headers and Footers
Post by: BCK on September 13, 2008, 11:19:16 AM
i took abit from top..hope not anything needed..
Title: Re: Global Headers and Footers
Post by: Sabre™ on September 13, 2008, 11:21:31 AM
That is the wrong code.
Attach your  Subs.php  from your  Sources  folder
Title: Re: Global Headers and Footers
Post by: BCK on September 13, 2008, 11:37:22 AM
its to big..it wont load..its over 3000 lines..its crazy..dont know what to say..that post is sourse subs just took some off top section....
Title: Re: Global Headers and Footers
Post by: Sabre™ on September 13, 2008, 11:39:07 AM
When you post after clicking on reply, you will see some text below the box, which states "Additional Options..."
Click on that and you will see the "Attach:" feature.
Use that to upload your template.
Title: Re: Global Headers and Footers
Post by: BCK on September 13, 2008, 11:42:34 AM
ok here it is..thx..its huge..sorry for you having to help like this.greatly appricviated.....
Title: Re: Global Headers and Footers
Post by: Sabre™ on September 13, 2008, 11:50:29 AM
Its ok mate :)
Try the file attatched
Title: Re: Global Headers and Footers
Post by: BCK on September 13, 2008, 11:58:46 AM
so should i cut mine..and paste your in place of???im guessing you found my issue?
Title: Re: Global Headers and Footers
Post by: Sabre™ on September 13, 2008, 12:00:49 PM
Download your copy of your subs.php, and save it to a folder on your desktop.
Always back up anything you edit.
Then delete it off your server, and upload my version.

Or cut it like you stated lol
Title: Re: Global Headers and Footers
Post by: BCK on September 13, 2008, 12:02:19 PM
thx..ill do a backup first of coures..then try..thx...
Title: Re: Global Headers and Footers
Post by: BCK on September 13, 2008, 12:23:02 PM
one button now and it even works..lmao..you have no idea how much i appriciate this help..you have been awesome,,,hopefully some day ill kow enough to help someone myself...again my gratitude..and many many thanks.....awesome job...
Title: Re: Global Headers and Footers
Post by: Sabre™ on September 13, 2008, 12:28:50 PM
My pleasure mate, Just glad I could help. :)

Look in the  index.php  file, and you will see this repeated also
Code: [Select]
'globalhf' => array('globalhf.php', 'globalhf'),
Either upload that file here aswell, or find those instances yourself, and delete all but one of them.
If you havent already.
THEN you will be done!! lol
Title: Re: Global Headers and Footers
Post by: BCK on September 13, 2008, 01:06:14 PM
here that is also..thx again..
Code: [Select]
<?php
/**********************************************************************************
* index.php                                                                       *
***********************************************************************************
* SMF: Simple Machines Forum                                                      *
* Open-Source Project Inspired by Zef Hemel (zef@zefhemel.com)                    *
* =============================================================================== *
* Software Version:           SMF 1.1.6                                           *
* Software by:                Simple Machines (http://www.simplemachines.org)     *
* Copyright 2006-2007 by:     Simple Machines LLC (http://www.simplemachines.org) *
*           2001-2006 by:     Lewis Media (http://www.lewismedia.com)             *
* Support, News, Updates at:  http://www.simplemachines.org                       *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under   *
* the terms of the provided license as published by Simple Machines LLC.          *
*                                                                                 *
* This program is distributed in the hope that it is and will be useful, but      *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY    *
* or FITNESS FOR A PARTICULAR PURPOSE.                                            *
*                                                                                 *
* See the "license.txt" file for details of the Simple Machines license.          *
* The latest version can always be found at http://www.simplemachines.org.        *
**********************************************************************************/


/* This, as you have probably guessed, is the crux on which SMF functions.
Everything should start here, so all the setup and security is done
properly.  The most interesting part of this file is the action array in
the smf_main() function.  It is formatted as so:

'action-in-url' => array('Source-File.php', 'FunctionToCall'),

Then, you can access the FunctionToCall() function from Source-File.php
with the URL index.php?action=action-in-url.  Relatively simple, no?
*/

$forum_version 'SMF 1.1.6';

// Get everything started up...
define('SMF'1);
@
set_magic_quotes_runtime(0);
error_reporting(E_ALL);
$time_start microtime();

// Make sure some things simply do not exist.
foreach (array('db_character_set') as $variable)
if (isset($GLOBALS[$variable]))
unset($GLOBALS[$variable]);

// Load the settings...
require_once(dirname(__FILE__) . '/Settings.php');

// And important includes.
require_once($sourcedir '/QueryString.php');
require_once(
$sourcedir '/Subs.php');
require_once(
$sourcedir '/Errors.php');
require_once(
$sourcedir '/Load.php');
require_once(
$sourcedir '/Security.php');

// Using an old version of PHP?
if (@version_compare(PHP_VERSION'4.2.3') != 1)
require_once($sourcedir '/Subs-Compat.php');

// If $maintenance is set specifically to 2, then we're upgrading or something.
if (!empty($maintenance) && $maintenance == 2)
db_fatal_error();

// Connect to the MySQL database.
if (empty($db_persist))
$db_connection = @mysql_connect($db_server$db_user$db_passwd);
else
$db_connection = @mysql_pconnect($db_server$db_user$db_passwd);

// Show an error if the connection couldn't be made.
if (!$db_connection || !@mysql_select_db($db_name$db_connection))
db_fatal_error();

// Load the settings from the settings table, and perform operations like optimizing.
reloadSettings();
// Clean the request variables, add slashes, etc.
cleanRequest();
$context = array();

// Seed the random generator?
if (empty($modSettings['rand_seed']) || mt_rand(1250) == 69)
smf_seed_generator();

// Determine if this is using WAP, WAP2, or imode.  Technically, we should check that wap comes before application/xhtml or text/html, but this doesn't work in practice as much as it should.
if (isset($_SERVER['HTTP_ACCEPT']) && strpos($_SERVER['HTTP_ACCEPT'], 'application/vnd.wap.xhtml+xml') !== false)
$_REQUEST['wap2'] = 1;
elseif (isset(
$_SERVER['HTTP_ACCEPT']) && strpos($_SERVER['HTTP_ACCEPT'], 'text/vnd.wap.wml') !== false)
{
if (strpos($_SERVER['HTTP_USER_AGENT'], 'DoCoMo/') !== false || strpos($_SERVER['HTTP_USER_AGENT'], 'portalmmm/') !== false)
$_REQUEST['imode'] = 1;
else
$_REQUEST['wap'] = 1;
}

if (!
defined('WIRELESS'))
define('WIRELESS', isset($_REQUEST['wap']) || isset($_REQUEST['wap2']) || isset($_REQUEST['imode']));

// Some settings and headers are different for wireless protocols.
if (WIRELESS)
{
define('WIRELESS_PROTOCOL', isset($_REQUEST['wap']) ? 'wap' : (isset($_REQUEST['wap2']) ? 'wap2' : (isset($_REQUEST['imode']) ? 'imode' '')));

// Some cellphones can't handle output compression...
$modSettings['enableCompressedOutput'] = '0';
// !!! Do we want these hard coded?
$modSettings['defaultMaxMessages'] = 5;
$modSettings['defaultMaxTopics'] = 9;

// Wireless protocol header.
if (WIRELESS_PROTOCOL == 'wap')
header('Content-Type: text/vnd.wap.wml');
}

// Check if compressed output is enabled, supported, and not already being done.
if (!empty($modSettings['enableCompressedOutput']) && !headers_sent() && ob_get_length() == 0)
{
// If zlib is being used, turn off output compression.
if (@ini_get('zlib.output_compression') == '1' || @ini_get('output_handler') == 'ob_gzhandler' || @version_compare(PHP_VERSION'4.2.0') == -1)
$modSettings['enableCompressedOutput'] = '0';
else
ob_start('ob_gzhandler');
}
// This makes it so headers can be sent!
if (empty($modSettings['enableCompressedOutput']))
ob_start();

// Register an error handler.
set_error_handler('error_handler');

// Start the session. (assuming it hasn't already been.)
loadSession();

// What function shall we execute? (done like this for memory's sake.)
call_user_func(smf_main());

// Call obExit specially; we're coming from the main area ;).
obExit(nullnulltrue);

// The main controlling function.
function smf_main()
{
global $modSettings$settings$user_info$board$topic$maintenance$sourcedir;

// Special case: session keep-alive.
if (isset($_GET['action']) && $_GET['action'] == 'keepalive')
die;

// Load the user's cookie (or set as guest) and load their settings.
loadUserSettings();

// Load the current board's information.
loadBoard();

// Load the current theme.  (note that ?theme=1 will also work, may be used for guest theming.)
loadTheme();

// Check if the user should be disallowed access.
is_not_banned();

// Load the current user's permissions.
loadPermissions();

// Do some logging, unless this is an attachment, avatar, theme option or XML feed.
if (empty($_REQUEST['action']) || !in_array($_REQUEST['action'], array('dlattach''jsoption''.xml')))
{
// Log this user as online.
writeLog();

// Track forum statistics and hits...?
if (!empty($modSettings['hitStats']))
trackStats(array('hits' => '+'));
}

// Is the forum in maintenance mode? (doesn't apply to administrators.)
if (!empty($maintenance) && !allowedTo('admin_forum'))
{
// You can only login.... otherwise, you're getting the "maintenance mode" display.
if (isset($_REQUEST['action']) && ($_REQUEST['action'] == 'login2' || $_REQUEST['action'] == 'logout'))
{
require_once($sourcedir '/LogInOut.php');
return $_REQUEST['action'] == 'login2' 'Login2' 'Logout';
}
// Don't even try it, sonny.
else
{
require_once($sourcedir '/Subs-Auth.php');
return 'InMaintenance';
}
}
// If guest access is off, a guest can only do one of the very few following actions.
elseif (empty($modSettings['allow_guestAccess']) && $user_info['is_guest'] && (!isset($_REQUEST['action']) || !in_array($_REQUEST['action'], array('coppa''login''login2''register''register2''reminder''activate''smstats''help''.xml''verificationcode'))))
{
require_once($sourcedir '/Subs-Auth.php');
return 'KickGuest';
}
elseif (empty($_REQUEST['action']))
{
// Action and board are both empty... BoardIndex!
if (empty($board) && empty($topic))
{
require_once($sourcedir '/BoardIndex.php');
return 'BoardIndex';
}
// Topic is empty, and action is empty.... MessageIndex!
elseif (empty($topic))
{
require_once($sourcedir '/MessageIndex.php');
return 'MessageIndex';
}
// Board is not empty... topic is not empty... action is empty.. Display!
else
{
require_once($sourcedir '/Display.php');
return 'Display';
}
}

// Here's the monstrous $_REQUEST['action'] array - $_REQUEST['action'] => array($file, $function).
$actionArray = array(
'activate' => array('Register.php''Activate'),
'admin' => array('Admin.php''Admin'),
'announce' => array('Post.php''AnnounceTopic'),
'ban' => array('ManageBans.php''Ban'),
'boardrecount' => array('Admin.php''AdminBoardRecount'),
'buddy' => array('Subs-Members.php''BuddyListToggle'),
'calendar' => array('Calendar.php''CalendarMain'),
'cleanperms' => array('Admin.php''CleanupPermissions'),
'collapse' => array('Subs-Boards.php''CollapseCategory'),
'convertentities' => array('Admin.php''ConvertEntities'),
'convertutf8' => array('Admin.php''ConvertUtf8'),
'coppa' => array('Register.php''CoppaForm'),
'deletemsg' => array('RemoveTopic.php''DeleteMessage'),
'detailedversion' => array('Admin.php''VersionDetail'),
'display' => array('Display.php''Display'),
'dlattach' => array('Display.php''Download'),
'dumpdb' => array('DumpDatabase.php''DumpDatabase2'),
'editpoll' => array('Poll.php''EditPoll'),
'editpoll2' => array('Poll.php''EditPoll2'),
'featuresettings' => array('ModSettings.php''ModifyFeatureSettings'),
'featuresettings2' => array('ModSettings.php''ModifyFeatureSettings2'),
'findmember' => array('Subs-Auth.php''JSMembers'),
'help' => array('Help.php''ShowHelp'), 'globalhf' => array('globalhf.php''globalhf'), 'globalhf' => array('globalhf.php''globalhf'), 'globalhf' => array('globalhf.php''globalhf'), 'globalhf' => array('globalhf.php''globalhf'),
'helpadmin' => array('Help.php''ShowAdminHelp'),
'im' => array('PersonalMessage.php''MessageMain'),
'jsoption' => array('Themes.php''SetJavaScript'),
'jsmodify' => array('Post.php''JavaScriptModify'),
'lock' => array('LockTopic.php''LockTopic'),
'lockVoting' => array('Poll.php''LockVoting'),
'login' => array('LogInOut.php''Login'),
'login2' => array('LogInOut.php''Login2'),
'logout' => array('LogInOut.php''Logout'),
'maintain' => array('Admin.php''Maintenance'),
'manageattachments' => array('ManageAttachments.php''ManageAttachments'),
'manageboards' => array('ManageBoards.php''ManageBoards'),
'managecalendar' => array('ManageCalendar.php''ManageCalendar'),
'managesearch' => array('ManageSearch.php''ManageSearch'),
'markasread' => array('Subs-Boards.php''MarkRead'),
'membergroups' => array('ManageMembergroups.php''ModifyMembergroups'),
'mergetopics' => array('SplitTopics.php''MergeTopics'),
'mlist' => array('Memberlist.php''Memberlist'),
'modifycat' => array('ManageBoards.php''ModifyCat'),
'modifykarma' => array('Karma.php''ModifyKarma'),
'modlog' => array('Modlog.php''ViewModlog'),
'movetopic' => array('MoveTopic.php''MoveTopic'),
'movetopic2' => array('MoveTopic.php''MoveTopic2'),
'news' => array('ManageNews.php''ManageNews'),
'notify' => array('Notify.php''Notify'),
'notifyboard' => array('Notify.php''BoardNotify'),
'optimizetables' => array('Admin.php''OptimizeTables'),
'packageget' => array('PackageGet.php''PackageGet'),
'packages' => array('Packages.php''Packages'),
'permissions' => array('ManagePermissions.php''ModifyPermissions'),
'pgdownload' => array('PackageGet.php''PackageGet'),
'pm' => array('PersonalMessage.php''MessageMain'),
'post' => array('Post.php''Post'),
'post2' => array('Post.php''Post2'),
'postsettings' => array('ManagePosts.php''ManagePostSettings'),
'printpage' => array('Printpage.php''PrintTopic'),
'profile' => array('Profile.php''ModifyProfile'),
'profile2' => array('Profile.php''ModifyProfile2'),
'quotefast' => array('Post.php''QuoteFast'),
'quickmod' => array('Subs-Boards.php''QuickModeration'),
'quickmod2' => array('Subs-Boards.php''QuickModeration2'),
'recent' => array('Recent.php''RecentPosts'),
'regcenter' => array('ManageRegistration.php''RegCenter'),
'register' => array('Register.php''Register'),
'register2' => array('Register.php''Register2'),
'reminder' => array('Reminder.php''RemindMe'),
'removetopic2' => array('RemoveTopic.php''RemoveTopic2'),
'removeoldtopics2' => array('RemoveTopic.php''RemoveOldTopics2'),
'removepoll' => array('Poll.php''RemovePoll'),
'repairboards' => array('RepairBoards.php''RepairBoards'),
'reporttm' => array('SendTopic.php''ReportToModerator'),
'reports' => array('Reports.php''ReportsMain'),
'requestmembers' => array('Subs-Auth.php''RequestMembers'),
'search' => array('Search.php''PlushSearch1'),
'search2' => array('Search.php''PlushSearch2'),
'sendtopic' => array('SendTopic.php''SendTopic'),
'serversettings' => array('ManageServer.php''ModifySettings'),
'serversettings2' => array('ManageServer.php''ModifySettings2'),
'smileys' => array('ManageSmileys.php''ManageSmileys'),
'smstats' => array('Stats.php''SMStats'),
'spellcheck' => array('Subs-Post.php''SpellCheck'),
'splittopics' => array('SplitTopics.php''SplitTopics'),
'stats' => array('Stats.php''DisplayStats'),
'sticky' => array('LockTopic.php''Sticky'),
'theme' => array('Themes.php''ThemesMain'),
'trackip' => array('Profile.php''trackIP'),
'about:mozilla' => array('Karma.php''BookOfUnknown'),
'about:unknown' => array('Karma.php''BookOfUnknown'),
'unread' => array('Recent.php''UnreadTopics'),
'unreadreplies' => array('Recent.php''UnreadTopics'),
'viewErrorLog' => array('ManageErrors.php''ViewErrorLog'),
'viewmembers' => array('ManageMembers.php''ViewMembers'),
'viewprofile' => array('Profile.php''ModifyProfile'),
'verificationcode' => array('Register.php''VerificationCode'),
'vote' => array('Poll.php''Vote'),
'viewquery' => array('ViewQuery.php''ViewQuery'),
'who' => array('Who.php''Who'),
'.xml' => array('News.php''ShowXmlFeed'),
);

// Get the function and file to include - if it's not there, do the board index.
if (!isset($_REQUEST['action']) || !isset($actionArray[$_REQUEST['action']]))
{
// Catch the action with the theme?
if (!empty($settings['catch_action']))
{
require_once($sourcedir '/Themes.php');
return 'WrapAction';
}

// Fall through to the board index then...
require_once($sourcedir '/BoardIndex.php');
return 'BoardIndex';
}

// Otherwise, it was set - so let's go to that action.
require_once($sourcedir '/' $actionArray[$_REQUEST['action']][0]);
return $actionArray[$_REQUEST['action']][1];
}

?>
Title: Re: Global Headers and Footers
Post by: BCK on September 13, 2008, 01:10:04 PM
can u highlight which one to delete..its multiple in 1 string..it looks like to me...or whatevers easiest..lol
Title: Re: Global Headers and Footers
Post by: BCK on September 13, 2008, 04:03:14 PM
THANK YOU
i think i got it.lol.....By the way i just wanted to say, this is an awesome mod,,the only issues ive had have been self inflicted..lol..thanks for the mod..vbgamer45..and thanks again for the help..sabre..
Title: Re: Global Headers and Footers
Post by: Sabre™ on September 13, 2008, 07:43:56 PM
No problem buddy :)
Sorry I didnt get back to you, it was around 3am and I fell asleep! lol
Title: Re: Global Headers and Footers
Post by: BCK on September 13, 2008, 07:47:01 PM
not a problem.well deserved rest.thx
Title: Re: Global Headers and Footers
Post by: DareDevil1990 on September 15, 2008, 03:47:09 AM
whenever i try to access global headers and footers option i get  the error         
Code: [Select]
Session verification failed. Please try logging out and back in again, and then try again

helppppppppp
Title: Re: Global Headers and Footers
Post by: DareDevil1990 on September 16, 2008, 05:00:01 AM
grrr anyone
Title: Re: Global Headers and Footers
Post by: Sabre™ on September 16, 2008, 07:00:06 AM
grrr  lol :P

Check that the code inserted into your  /Sources/Subs.php  are correct.
Then check the code added to the  /index.php.
Be sure to check your templates carefully for the changes.

It also helps if you mention what version of smf youre running, as they are slightly different, and what mods you have installed.

Always remember to backup your forum and/or files before altering them.

If you have forgotten to backup your files before adding this modification, smf does a little auto backup before a mod is added.
You will find that inside your  packages/backup  folder.
NEVER rely solely on that!

Good luck :)
Title: Re: Global Headers and Footers
Post by: DareDevil1990 on September 16, 2008, 12:25:59 PM
ok i checked what u said ...still got the same error....i have smf 1.1.5 installed


And i have the following mods isntalled
Code: [Select]
1.  Googlebot & Spiders Mod  2.0.3  [ Uninstall ]
2. Auto Embed Video Clips 2.0 [ Uninstall ]
3. MCLegendII 1.1 [ Uninstall ]
4. Users Online Today Mod 1.4.0 [ Uninstall ]
5. View Only Boards 1.2 [ Uninstall ]
6. nneonneo's AJAX ShoutBox 1.15 [ Uninstall ]
7. EmailValidator 1.0 [ Uninstall ]
8. Admin Notepad 1.0 [ Uninstall ]
9. Enhanced Profile 1.1.5 [ Uninstall ]
10. Global Headers Footers 1.4.1 [ Uninstall ]
11. Force Topic Read On Login Mod 1.0 [ Uninstall ]
12. Rapidshare Link Checker 0.9.3 [ Uninstall ]
13. AJAX Instant Quick Reply 1.0.1 [ Uninstall ]
14. Welcome Topic Mod 1.0
Title: Re: Global Headers and Footers
Post by: DareDevil1990 on September 17, 2008, 11:25:51 PM
some one help me grrrrrrr
Title: Re: Global Headers and Footers
Post by: dbm on September 20, 2008, 07:31:23 AM
how to insert image ? for example this to be in center...

http://i33.tinypic.com/nxuyp3.jpg
Title: Re: Global Headers and Footers
Post by: vbgamer45 on September 20, 2008, 06:18:41 PM
You would use html code to insert the image.
Title: Re: Global Headers and Footers
Post by: DareDevil1990 on September 21, 2008, 01:24:59 AM
why the hell is no one answering my question ....
Title: Re: Global Headers and Footers
Post by: Sabre™ on September 21, 2008, 07:58:13 AM
Uninstall the Mod... completely.
If the issue continues without this mod, then it isnt this mod!!
Noone is obliged to help anyone here. None of us get paid, and help when we have time, or an idea of the problem.
Those that appreciate the help, are offered assistance often.
Those that demand it, are left swinging.
With thousands of people asking for assistance per day, do you think your "grrrrr"  and  "why the hell"  statements are gonna help your cause?
Relax mate. It is a busy time of the year, most have other priorities, and will look here when time permits.
So try deleting the mod and its edits, if noone has gotten back to you.
Then if all is ok, try and install it again.
Title: Re: Global Headers and Footers
Post by: Rasyr on September 22, 2008, 02:20:34 AM
Couple of issues.....

1) I don't like where it shows up. How would I change it so that it appears in the area where the site name is supposed to show up (actually, I want it to fill that whole area and be where the SMF logo is as well).

2) How do I get javascript to work in this as well (want mouseover effect on images..)

Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on September 24, 2008, 10:26:12 PM
Added support for SMF 2.0.x
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: machmanx on September 25, 2008, 03:53:20 PM
And I'll be the first to point out a bug in the SMF 2.x version  :P  O:)

This is the link to the config page of this mod:-
(URL of site)?action=admin;area=globalhf;sesc=a768a86214ed7ea64b4b9b9a5f2bc18a;sa=globalhf_view;sesc=a768a86214ed7ea64b4b9b9a5f2bc18a

Now, in the drop-down menu, this is the link the button has stored:-
(URL of site)?action=admin;area=globalhlf;sesc=a768a86214ed7ea64b4b9b9a5f2bc18a;sa=globalhf_view;sesc=a768a86214ed7ea64b4b9b9a5f2bc18a

You can see you added an extra "l", which causes the redirection to fail and send you back to the main admin page.  So please fix that (which file must I modify to fix that?)

Oh yeah, also in the drop-down menu, every button has a pic, your mod does not.  Not a big issue, but it would look better if it had one, or I can add one myself, if you tell me how :)

BTW, thank you for this mod; it's been very helpful :D
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on September 25, 2008, 09:10:23 PM
And I'll be the first to point out a bug in the SMF 2.x version  :P  O:)

This is the link to the config page of this mod:-
(URL of site)?action=admin;area=globalhf;sesc=a768a86214ed7ea64b4b9b9a5f2bc18a;sa=globalhf_view;sesc=a768a86214ed7ea64b4b9b9a5f2bc18a

Now, in the drop-down menu, this is the link the button has stored:-
(URL of site)?action=admin;area=globalhlf;sesc=a768a86214ed7ea64b4b9b9a5f2bc18a;sa=globalhf_view;sesc=a768a86214ed7ea64b4b9b9a5f2bc18a

You can see you added an extra "l", which causes the redirection to fail and send you back to the main admin page.  So please fix that (which file must I modify to fix that?)

Oh yeah, also in the drop-down menu, every button has a pic, your mod does not.  Not a big issue, but it would look better if it had one, or I can add one myself, if you tell me how :)

BTW, thank you for this mod; it's been very helpful :D

Fixes those bugs except for the image since I do not have one.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: aZa on September 26, 2008, 04:31:41 AM
awesome mod! works on all the themes! i have one problem the using adsense the header shows two adverts ! while the code is inserted only once

using 1.1.6
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: machmanx on September 26, 2008, 04:19:45 PM
Then use a smiley, lol :)  Anything is better than a question mark, which shifts the menu a bit upwards.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: W. Riker on September 30, 2008, 10:32:31 PM
I put Google AdSense code in header and really it works. I just wonder what should I do that the google ads show in center and not on the right side of header.

Any help is welcome! :)
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on September 30, 2008, 10:46:37 PM
Just use the html <center></center> tag around the code xD
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: W. Riker on September 30, 2008, 11:24:54 PM
Just use the html <center></center> tag around the code xD

Thanks! ;)
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: stingerman on October 10, 2008, 03:00:34 AM
Any chance of making one that changes the main header?  (where the default message board name and logo is - I think its two rows or tables)?  When I go to add my own image, the default logo is next to it.  Trying to figure out how to get rid of that. 

Great mod! 
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Xaneth on October 13, 2008, 12:46:33 PM
This seems to be a good mod, but all I'm trying to do is integrate my board with my website, as I've done here:

http://www.edgeoffate.com/community

This is an older theme, however, that I put together in 1.1.x using Unknown's guide to simply include the header.php file (not using footer.php, but it's part of the same tutorial).

http://www.simplemachines.org/community/index.php?topic=19638.0

This does not like to work on 2.x, however.  This mod is great but does not produce the results I need, the header needs to not only be above the entire forum, but needs to be able to replace the background, etc.  Nice idea though.  Anybody have a clue on a tutorial for using a header.php file, or layers to accomplish integration with 2.x?
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Xaneth on October 13, 2008, 01:01:41 PM
Not sure why I was having trouble, but got it sorted out using the method at:

http://www.simplemachines.org/community/index.php?topic=19638.0

Works great for fully integrating the forum into your website.  Pretty sure it was because I was using Firefox at home without the web developer tools, which disable cached settings like I have on my other computer :)
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: thatp1g on October 14, 2008, 08:30:30 AM
awesome mod! works on all the themes! i have one problem the using adsense the header shows two adverts ! while the code is inserted only once

using 1.1.6


Me too.

Everything i put in the header shows up twice.  Very annoying.

Anyone solved that problem?
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Childproof on October 20, 2008, 08:13:58 PM
Hi,

I'm trying to get this mod to work, it has seemed to install just fine.  But I can;t for the life of me find the area that is was supposed to create.  I'm using 1.1.6, and a theme called blues..... 

Any help would be great. 

Thanks in advance
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on October 20, 2008, 08:18:35 PM
It is supposed to create a link in the Admin Menu called Global Headers and footers.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Childproof on October 20, 2008, 08:20:23 PM
Is it under Admin center? or another sub cat?  perhaps it did not install correctly?
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on October 20, 2008, 08:22:46 PM
Switch your account to the default theme and see if you can see the link under Configuration in the admin section
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Childproof on October 20, 2008, 08:25:46 PM
Nope, unless I'm just plain blind, it's not in the list to the left, what I would call the admin map. 
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Childproof on October 20, 2008, 08:44:46 PM
I just deleted it and reinstalled it to no avail.  Could it be it just doesn't work with my theme?  But it also didn't show up under default...... :(
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on October 20, 2008, 10:34:01 PM
Are you able to install other mods if not it sounds like a permission issue unable to edit the files.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Childproof on October 21, 2008, 06:46:22 AM
I haven't really tried any other mods, but I will tonight.  If it is a permision issue, can I turn it "on"? 

Thanks for taking the time to help me out, I'm trying to get a HTML header on all pages and this seems like the best way.....

Thanks again
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: nanitoz on October 21, 2008, 10:13:52 PM
you should create a TEMP folder inside Packages one (packages/temp) and put chmod 777 to it...also i recommend you to download the "Load Standard Language Mod" in case u are using another english language...or other...

PD.- im having a problem i dont know how to put my header above all the forum...i mean like a normal Header...no like this mod do...it puts under the Login header... ???
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: tjmaxwell on November 02, 2008, 03:18:31 PM
http://www.nflchoice.com/forum/

I think I'm having a similar issue with others here.  I want my header to be the "outer shell" of the forum.  I don't want my header to show up after the login details.  Can someone please tell me how to integrate the forum with my design?  I'm using 1.1.6.

Thanks in advance.

Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: BCK on November 05, 2008, 12:11:14 PM
i have installed this with no prob at all on one forum..now put on another it shows intalled successfully etc..but in acp no show of the header/footer to click on etc to do them...???in config..is there something im forgetting to apply it???i thought last time after install it was just there???thx in advance
theme...live city if that makes a difference
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on November 05, 2008, 10:22:43 PM
Server Settings -> Check the language make sure it is set to English and not english utf8
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: BCK on November 05, 2008, 10:51:05 PM
thank you..appriciated
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: BCK on November 05, 2008, 10:57:48 PM
just tried.didnt work??hmmmm..any other ideas.it worked so sweet at my other site..both smf..different themes though?iv installed...uninstalled..deleted and re installed etc.same...doesnt show???hoping if it eventually takes wont be duplicates etc??
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: BCK on November 07, 2008, 08:20:38 AM
sounds like my prob might be same as childproof's...just doesnt show in acp..and i have installed other mods...like pm popup???
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Burke ♞ Knight on November 07, 2008, 08:30:37 AM
Have you tried to switch to the default theme and see if it shows up there?
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: BCK on November 07, 2008, 11:15:23 AM
i have it on another theme...and hoping to put on this theme also...but will try see if works....thx..but any ideas why wont show on my theme???
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Burke ♞ Knight on November 07, 2008, 04:51:21 PM
Because it installs to the default theme.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on November 08, 2008, 12:38:26 AM
It should work on on all themes but it depends on each theme where it is installed ie it may appear after the menu or before.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: BCK on November 08, 2008, 08:59:00 AM
its not showing up at all in acp end..so cant use it to see if it shows on actual site????and i put it on another smf site with theme  and it works like a charm...weird
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Adish - (F.L.A.M.E.R) on November 10, 2008, 04:43:00 PM
Well, i am running 1.1.7, the thing is. i have nneon shoutbox installed, it is added over this header. But i want it actually under and same with everything else which i add over in that space. As in i tried moving the shoutbox code around but really didnt get things right.. I would have done the same with this mod if it was the modification in index.template.php but it is in subs.php.. so any idea how shall i do it and where to move it ?
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: topthumb on November 12, 2008, 11:09:31 PM
I tried to install using package manager and it says the file is either corrupt or not compatible with my version which is 1.1.7

Is it compatible with 1.1.7 or is the file corrupt
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: naijaweb on November 13, 2008, 08:56:15 AM
help i installed this mod in my smf forum 1.15 but it gave me an error message which made me uninstall and later install again. but this mod is given me error on 2747
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: dewdrinker19 on November 17, 2008, 05:57:33 AM
Hey everybody,

I have read through a lot of this thread and was just wondering if anybody has found a solution to the global head going "under" the SMF header?

This is what I am talking about:

http://test.originald.com/smf

SMF 2.0 B4
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Adish - (F.L.A.M.E.R) on November 21, 2008, 01:15:17 PM
anyone help out please... really need to get things right..
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Afro on November 25, 2008, 01:24:19 PM
I want to use this mod to replace the recent post window. I want to use it to bring hot topics to the front page instead of every recent posts. I have succeded in wrapping a code around the topics to bring to the frontpage. What remains now is that i want the global footers to appear on top, before the users online window.

i also want to know if there is a possibility of it appearing only on the homepage
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: The Saviour on November 25, 2008, 06:07:31 PM
Okay...

I'm trying to use a DHTML (javascript) menu for the Global Header...

I manually installed this mod...everything seems to be fine.  Using SMF 1.1.7 and latest version of this mod.

Put the script in the header boxed...saved it...no header.

Any suggestions?
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: The Saviour on November 25, 2008, 10:00:36 PM
SMF Arcade breaks this mod...

See my arcade at:  http://www.saviourpc.com/forums/index.php?action=arcade

Headers not showing where they should...any fix for this?
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: The Saviour on November 25, 2008, 11:22:23 PM
This mod breaks more pages than Carter has pills...uninstalling...and very dissatisfied.

Moving on...
Title: Can't Find smfheader file
Post by: ReptiGuy on November 26, 2008, 01:22:37 AM
I recently had to manually edit one of the files of my forum and something went wrong and my forum crash but right before I edited the file I got a back-up of my forum and I restored it and everything seemed back to normal but when I went to edit the header it said that it couldn't find the smfheader file.

How do I fix this?
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Adish - (F.L.A.M.E.R) on November 28, 2008, 04:03:12 PM
 1. Execute Modification globalhf.xml Modification parse error
 2. Execute Modification globalhf.xml Modification parse error


I get those errors while installing, so i suppose a manual install is what i have to do ?


version 2.0 beta 4
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: jeanine on November 28, 2008, 07:18:25 PM
I am new here and just published my forums. Ive been all over the place with every other mod and then I found yours. Its PERFECT! Just what I needed. I even made a navigation menu out of it..beautiful work! Thanks so much!!
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: HR on December 06, 2008, 01:36:23 PM
Hey everybody,

I have read through a lot of this thread and was just wondering if anybody has found a solution to the global head going "under" the SMF header?

This is what I am talking about:

http://test.originald.com/smf

SMF 2.0 B4
Also looking for this information (specific edit would be wonderful).
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: dewdrinker19 on December 09, 2008, 04:07:03 AM
The only solution I had was to get a friend to help me edit the actual SMF theme.  It took a while but he got it just perfect!
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: limsteven25 on December 14, 2008, 10:58:28 PM
hi, if i want to make the header and footers banner only for members, what is the html code? i want to make it that guests will not be able to view the banner, only registered member able to. pls help thanks
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Burke ♞ Knight on December 15, 2008, 12:11:13 AM
hi, if i want to make the header and footers banner only for members, what is the html code? i want to make it that guests will not be able to view the banner, only registered member able to. pls help thanks

Go to Permissions.
Edit Permissions for Guests.
Make sure that the box for Enable Ads is not checked.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: baijianpeng on December 16, 2008, 04:24:58 AM
Today I tested this Mod on SMF v1.1.7. It can add some HTML code to the upper position on all pages, but NOT the upper most Top.

I hope this Mod can add those HTML code to the Very Beginning of the page, I mean, the most Top position, at the same time, allow us to insert some CSS link code to Head part of the theme/template HTML code. Then, we can copy some Header code to this Mod and make the forum has a Header same with other pages in the website.

If you don't understand what I am saying, please allow me to explain:

For example, I installed Joomla CMS to manage the whole website, installed SMF as a forum. But the Joomla template is different to SMF theme. The worse is, SMF don't have the top Navigation menus of Joomla. If we can EASILY insert the Header code of Joomla to the SMF theme, then , we will transplant the Joomla Top Navigation to SMF, and get universal layout on the whole website.

Thanks.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Michael24 on December 19, 2008, 05:52:11 PM
I installed this and it does not work or show up in the admin panel in either my 3rd party theme or SMF default theme.   I'm running 1.1.7 and followed all the manual install instructions, modifed the files and zilch, nada, what a let down and a waste of time.

its not showing up at all in acp end..so cant use it to see if it shows on actual site????and i put it on another smf site with theme  and it works like a charm...weird
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Burke ♞ Knight on December 19, 2008, 05:54:41 PM
Are you sure your language is set at English and not English-UTF8?
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: NHWD on December 26, 2008, 11:56:30 PM
Are you sure your language is set at English and not English-UTF8?
how can u change the language?
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on December 27, 2008, 05:06:49 PM
Admin -> Server Settings
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: brandonmccoy on December 29, 2008, 09:25:02 AM
ok so i was putting my logo on my site using header and footer
i aligned the image left and now the whole page is screwed up
and i cant change it because all the page will show me is the footer
spot where i can edit or put html in

any way heres image to further explain, its jacked up my forum too
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on December 29, 2008, 09:35:44 PM
you can modify the smfheader.txt and smffooter.txt files in the root directory of your forum make sure that your html is well formed.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: sreisenb001 on January 01, 2009, 06:15:40 PM
When i try and install i am getting the test failed....

xecute Modification     ./Themes/default/languages/Modifications.english.php

that is the error how do i fix it?
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on January 01, 2009, 07:22:52 PM
open up that file find ?>
Make sure it is on its own line.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: sreisenb001 on January 01, 2009, 08:11:54 PM
<?php
// Version: 1.1; Modifications

?>

that is how it is showing up do i need to change something
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on January 01, 2009, 09:42:12 PM
No that looks ok from what I can see.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: sreisenb001 on January 02, 2009, 12:19:19 PM
ok I am confused then.. I may have idea i will  have to work on itl..
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: viperone on January 10, 2009, 03:12:45 PM
This is not compatible with 1.1.7. You may want to update your release notes....

Quote
Compatible With: 1.1 RC2, 1.1 RC3, 1.1, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5, 1.1.6, 1.1.7, 2.0 Beta 4
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on January 10, 2009, 04:18:01 PM
This is not compatible with 1.1.7. You may want to update your release notes....

Quote
Compatible With: 1.1 RC2, 1.1 RC3, 1.1, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5, 1.1.6, 1.1.7, 2.0 Beta 4
It should work fine for 1.1.7? What issue are you having?
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: assam_siddibapa on January 15, 2009, 12:16:15 PM
i installed it but i cant see any where in the cp??
On my other forum it is in configration .
Need help
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on January 15, 2009, 09:32:09 PM
Admin -> Global Headers Footers
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: TW1ST3D on January 15, 2009, 10:25:56 PM
This is not compatible with 1.1.7. You may want to update your release notes....

Quote
Compatible With: 1.1 RC2, 1.1 RC3, 1.1, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5, 1.1.6, 1.1.7, 2.0 Beta 4

This is Totally Compatible with 1.1.7 .works like a charm for me. vbgamer45 is a great customizer and has pretty much fool-proof mods.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: sreisenb001 on January 16, 2009, 03:48:15 AM
I had to update some files and it now works for me.. Now I just need to figure out how to use it ;D
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: assam_siddibapa on January 16, 2009, 11:28:05 AM
I dont see in the admin panal .....
Please help
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on January 18, 2009, 03:29:33 PM
Check your language of your forum.
Under Admin -> Server Settings

Should be set to just english and not english utf8
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Blackbirdadvice on January 20, 2009, 06:51:54 AM
Hi,

I'm using the 1.1.7 in french ( modifications.french.php is update for this mod), I've tried to install Global Headers and Footers, but it still don't work, so I've did it by myself.

All modifications are ok, except in admin.php, I can't find the line :

Code: [Select]
'current_theme' => array(
'label' => $txt['theme_current_settings'],

so I've got nothing in the admin pannel, only an empty cells under "Themes & Disposition "

There is instructions for the 2.0.4beta but not for the other release, so I don't know how to do..

Any idea people?
Thx.


ps: by the way, is that your mod works for Google Analytics tracking script?
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Harvester on January 22, 2009, 02:39:00 AM
the parser doesnt show me the manual install instructions here:

http://custom.simplemachines.org/mods/index.php?mod=351

Please help. I have a bunch of mods and I dont believe the install will work without me doing it manually.

Thank you
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Blackbirdadvice on January 22, 2009, 08:18:51 AM
Same probleme with the 1.1.7, in consequence, I drop this theme, it was for the google's analytics script, but I've success to do it manually, so... bye bye Global Headers.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: laetabi on January 22, 2009, 03:22:07 PM
vbgamer,

Just so you know when you upgrade this to latest SMF, this mod works fine in 2.0 RC1 but causes an error on the new Admin Page layout as it doesn't have the coding to support the drop down boxes from the new admin menu.

From the html source code it looks like the page is looking for an unspecified image to go inside the menu list for Global Headers and Footers.

This causes a '?>' error in the admin page which I've spent the last three days trying to find in language files!!!

W

Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: wmcintosh on January 22, 2009, 03:44:16 PM
Mod works great.

One question, how would I center like the copyright and page load, if there is mention of it in this topic I missed it, centered when in board index and topics, but not centered in admin or profile view (looks rather ackward).

Or better yet, have under copyright and page load.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Harvester on January 22, 2009, 06:40:51 PM
May I please get someone to help me with the manual install of this mod? The parser keeps telling me it wont work with my version 1.1.7 and therefore does not show me the changes i need to make in the files.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on January 22, 2009, 08:16:10 PM
Try this manual install
http://sleepycode.com/PackageParser/index.php
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Harvester on January 23, 2009, 12:04:13 AM
hmm... I have a problem. I installed mod via the "install" in the packages screen on a test forum which I just installed.. 1.1.7  I saw no sign of the mod... not in the admin panel... nowhere. so I then downloaded the files the mod modified (via my ftp to my pc) according to Sleepy's parser and everything seems to be in place when i view the files in dreamweaver and check them against the mods the parser calls for. However I still see no sign of the mod in the admin panel or on the forum itself. The forum is set to use the default theme... SMF Default Theme - Core and that is where I found the modified Modifications.English.php so I am pretty positive I have the right theme up.

Now I am confused as to why I am not seeing this mod in anyway shape or form.

Please help me.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Harvester on January 23, 2009, 12:08:14 AM
Scratch the above problem... I found out that SMF by default installs as English UTF8. I changed it to just "English" and all is good so far :D

Read IS fundamental lol
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: wmcintosh on January 23, 2009, 12:40:11 AM
I looked at the parser page as well, and its seems to be no way to move global footer elsewhere, or is it even possible, I much rather have it placed below copyright/page load.

Most mods allow you to easily alter to ones preference, but this one does not.

Oh, not a big deal, by the way, just asking if there is a way.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on January 23, 2009, 01:02:09 AM
You would need to place the code then in theme file itself but it would no longer by global across all themes then.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: wmcintosh on January 23, 2009, 01:09:51 AM
In that case will leave as is, besides its a great mod and quite useful.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: thetomlin2 on January 29, 2009, 10:23:04 PM
Is it possible to have more than 3 images across the bottom?  I am trying to put links to affiliates across the bottom using images (100x40 px) and the 4th link always is put down a line.  Any idea?
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: sreisenb001 on January 29, 2009, 10:30:17 PM
Is it possible to have more than 3 images across the bottom?  I am trying to put links to affiliates across the bottom using images (100x40 px) and the 4th link always is put down a line.  Any idea?

here is the link to our site to see what he means.. thanks ;D
http://www.mnsportscentral.com/community/index.php (http://www.mnsportscentral.com/community/index.php)

Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on January 29, 2009, 10:31:05 PM
Yes it is you can do it with html code
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: sreisenb001 on January 29, 2009, 10:42:48 PM
Yes it is you can do it with html code

I am just learning HTML any idea what i would use.. I should be getting a copy of Dreamweaver Friday and I hope that will help me with it.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on January 29, 2009, 10:45:12 PM
Read over html code
http://w3schools.com/html/default.asp
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: thetomlin2 on January 30, 2009, 09:52:40 AM
Read over html code
http://w3schools.com/html/default.asp

I found the error in our html ... thank you
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on January 30, 2009, 09:07:58 PM
Glad you got it working.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: sreisenb001 on January 31, 2009, 04:07:06 PM
Okay it was working and now I am getting this error when I try to load something.,.

Can not open/hsphere/local/home/sreisenb001/mnsportscentral.com/community/smfheader.txt.

any idea on what i need to do? thanks
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on January 31, 2009, 07:32:31 PM
Check that the file exists and is writable.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: sreisenb001 on January 31, 2009, 08:10:47 PM
Check that the file exists and is writable.

Thank you that worked.. I love this site.. you guys save my ass all the time.. :-[
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: acewashere on February 09, 2009, 08:13:16 PM
In future updates would it be possible to add some way to control text size/wrap width/etc right in the settings page for the mod?
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on February 09, 2009, 08:35:34 PM
Maybe but the main thing that page was for people to paste html code. Including javascript I could stick an editor on that page though.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: tejaswi2008 on February 28, 2009, 04:06:42 AM
Hi Guys,

I have loaded this mode on my RC 2.0 forum, but the header is now shown in the outer frame it is shown below the menu bar... Is there any way I can move it to the outer frame?....

Thanks,

Vishal
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on February 28, 2009, 10:11:37 AM
Depends on the theme really where they call the template_above and below parts
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: tejaswi2008 on February 28, 2009, 12:01:34 PM
Hi,

Thanks for your revert... I am using Default theme, I need to figure out a way to make a customized header for the site. My site is http://forum.tejaswi.biz/forum.

Is there any coding change i can do in global header and footer mod to make my header on top on outer frame.

Thank,

Vishal
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: McLovin on February 28, 2009, 07:36:05 PM
In installed this but how exactly do I use it to optimize search result?   Could someone give me an example of html to use?
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: qkzoo on February 28, 2009, 08:04:38 PM
I just installed a clean copy of SMF to my site, installed this MOD and then my SMF installation goes capoot!  Any ideas here?  I had it installed yesterday, with no problems.  I ran a clean install and now it fudges up.  It says the server didn't return any information or something like that.  Any ideas here, as I'm confused...
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: CrazyChristina on March 02, 2009, 07:55:05 PM
I cannot get this mod to work.... I just uninstalled every single mod package I have and all my themes and it still doesn't work. I followed the manual install directions more times than I can remember. I am hoping you can help me. I am running version 1.1.8.

This is what happens:
(http://i274.photobucket.com/albums/jj258/Christina_bastuff/untitled-1.jpg)
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Catanonia on March 03, 2009, 07:43:58 PM
Why am i getting double messages on my headers and footers.

Ie I put    TEST in the header only and i get   TESTTEST  as the header......


Using a custom theme with 1.1.8

Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on March 04, 2009, 10:53:40 PM
Most likely the mod got installed twice
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: tejaswi2008 on March 05, 2009, 04:34:29 AM
Hi,

Thanks for your revert... I am using Default theme, I need to figure out a way to make a customized header for the site. My site is http://forum.tejaswi.biz/forum.

Is there any coding change i can do in global header and footer mod to make my header on top on outer frame.

Thank,

Vishal

Can Anyone revert to me...
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: sreisenb001 on March 05, 2009, 07:30:24 PM
is there a mod that works like headers and footers for the left and right side of the board?
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Catanonia on March 05, 2009, 07:58:36 PM
Most likely the mod got installed twice



mmm, no   even if it did it would only overwrite the file.

Anyone else ?
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: jmille44 on March 17, 2009, 12:11:04 PM
Hi Guys,

I have loaded this mode on my RC 2.0 forum, but the header is now shown in the outer frame it is shown below the menu bar... Is there any way I can move it to the outer frame?....

Thanks,

Vishal

I would like to know how to move the header to the top as well, I see many other questions about this issue.
Could someone kindly post the fix or suggest what to do?  Thank you!

ETA:I am using 1.1.8 with default theme.  Header and footer work nice, but the header is not at the top.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: BCK on March 29, 2009, 10:18:47 PM
I am having the same issue as [crazychristina] it says installed successfully etc..shows in pkg's,,,but nothing under config to actually use the mod...I have it on another site of mine .works like a charm...just wont show up in config in the one site..so no way to actually use it ...any help etc is greatly appriciated...Thx in advance....
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: mike.akdds on March 31, 2009, 01:35:38 AM
Okay, this is going to sound stupid, but it's really driving me around the wall. I'm using ver. 1.1.8, default theme, language is set to English.

The mod installed fine. If I add text to the header or footer, it shows up fine. BUT, when I go to add an image:
Code: [Select]
<img src="http://www.aknewday.com/images/ads/banner_akdds.gif" border="1">
NOTHING shows up at all. What am I doing wrong here?
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: bri on April 03, 2009, 04:03:20 PM
Thanks for the mod, VERY useful for Google Analytics code, you should consider creating another mod that just lets people drop in the tracker code (UA-XXXXXXX-XX). Thanks for doing this!!!
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: MultiformeIngegno on April 14, 2009, 05:41:23 PM
Thanks for this MOD, keep up the great work! ;)
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Tiribulus on April 15, 2009, 12:18:02 AM
Okay, this is going to sound stupid, but it's really driving me around the wall. I'm using ver. 1.1.8, default theme, language is set to English.

The mod installed fine. If I add text to the header or footer, it shows up fine. BUT, when I go to add an image:
Code: [Select]
<img src="http://www.aknewday.com/images/ads/banner_akdds.gif" border="1">
NOTHING shows up at all. What am I doing wrong here?
<img src="http://www.aknewday.com/images/ads/banner_akdds.gif" border="1"/>

I think you need that / in red above for the anchor tag.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Mraza on April 16, 2009, 03:30:49 AM
hello vbgamer45! please i have a question and can't find the solution from many days. my problem is concern to header and footer. i have inalled smf 1.1.8 forum and joomla 1.0.15. i just wanted to know the code of header and footer of my smf forum to use it in joomla index.php to display the header and footer of my smf forum. and i really hope if somebody knows exactly what i am looking for is you because this your mod exactly work for that thing.. please help...thanks
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on April 16, 2009, 07:54:06 PM
Don't understand. Header and footers you put code in it.
Title: More than one code in the slot
Post by: nina-nina on April 26, 2009, 11:40:05 AM
I installed this mod and put two codes for two different widgets in the footer.  They look one under the other. I would like to know how can I make so that the widgets look one 'besides' the other in the footer.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: joergermeister on April 27, 2009, 02:33:56 PM
I am getting quad messages on my header and footer. I believe it is installed several times and is not removing the install completely when i uninstall. It also doesn't show in the configuration but has made a space for it that doesn't go away. I have been entering my text via dreamweaver and smffooter.txt. How do i remove the Global Header and footer package besides in remove package. Every time i uninstall it, it doesn't remove everything but it says it uninstalled.

I am using 1.1.8

 Please help! and thank you for your time
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: NHWD on April 27, 2009, 03:52:26 PM
ive installed this to my forum but doesnt show up in the admin panel can anyone tell me the link to acces it
for example yoursite.com/fsmf/index.php?action=(action goes here)
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on April 27, 2009, 07:46:15 PM
globalhf  I belive
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: joergermeister on April 27, 2009, 11:11:54 PM
Ok, got most of the problem taken care of but still getting repeat of text entered in header or footer.
How do i remove installs that dont show up? because i uninstalled all of the installs i tried. It seems for every install i did there is duplicate text, even though i uninstalled them.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: NHWD on April 28, 2009, 12:23:30 AM
globalhf  I belive
thanks

so i installed this mod and navigated to the action and got:
Session verification failed. Please try logging out and back in again, and then try again.
 :(
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: joergermeister on April 28, 2009, 12:52:58 AM
Got it!
thanks anyway
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: BCK on April 29, 2009, 07:56:03 PM
ive installed it also...but it doesnt show in acp/config...but says installed succesfully...any ideas why ..nothing to click on to actually use it????thx
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on April 29, 2009, 07:58:21 PM
What language are you using? Check under Server Settings it should be set to english and not english utf8 Check if you can access index.php?action=globalhf
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: CrazyChristina on May 03, 2009, 03:35:41 PM
What language are you using? Check under Server Settings it should be set to english and not english utf8 Check if you can access index.php?action=globalhf

I tried that and all I get is:

Session verification failed. Please try logging out and back in again, and then try again.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on May 03, 2009, 05:17:10 PM
That would happen since it is missing the session in the url.
Umm you would need to copy the text from themes/default/languages/modifications.english.php
To every modifcations file
themes/default/languages/modifications.*.php

Also if you have other themes you would need to copy into it the modifications.english.php if it exists
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: CrazyChristina on May 03, 2009, 05:49:51 PM
That would happen since it is missing the session in the url.
Umm you would need to copy the text from themes/default/languages/modifications.english.php
To every modifcations file
themes/default/languages/modifications.*.php

Also if you have other themes you would need to copy into it the modifications.english.php if it exists

I'm sorry, I just want to understand completely.... I copy what is in my default/languages/modifications.english.php file into ALL the languages/modifications files in the default theme?
At this time I am NOT using other themes, but should I add them I would have to put this in EVERY theme EVERY language? It's not hard to copy and paste, I am just making sure so I don't mess things up lol
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on May 03, 2009, 05:55:25 PM
Quote
I copy what is in my default/languages/modifications.english.php file into ALL the languages/modifications files in the default theme?
Yes that would fix it.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: CrazyChristina on May 03, 2009, 05:56:17 PM
Ok, Thanks for helping. Let me go give this a shot and see what happens lol.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: CrazyChristina on May 03, 2009, 06:43:14 PM
Sorry I know I am double posting, but I wanted to make sure you saw a new post. I didn't have to do the mod strings in every language... only english-utf8 Which didnt make any sense to me at all since my forum is default english. Anyway after I did it there everything is working perfectly. However, after all that, it didn't do what I thought it was supposed to do. I wanted to put a banner at the top of my forum not in the spot where the smf logo is but above and it is going below to just above my boards. I am so sorry to put everyone thru all this trouble only to find out it's not what I want lol.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on May 03, 2009, 06:47:09 PM
It's ok to fix future mod issues make sure language is set correctly
Check under Server Settings it should be set to english and not english utf8
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: CrazyChristina on May 03, 2009, 06:49:49 PM
It's ok to fix future mod issues make sure language is set correctly
Check under Server Settings it should be set to english and not english utf8

it is set to english. it has been. it's the first thing everyone tells you to check when doing mods.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Shades. on May 11, 2009, 02:51:05 PM
Sorry I know I am double posting, but I wanted to make sure you saw a new post. I didn't have to do the mod strings in every language... only english-utf8 Which didnt make any sense to me at all since my forum is default english. Anyway after I did it there everything is working perfectly. However, after all that, it didn't do what I thought it was supposed to do. I wanted to put a banner at the top of my forum not in the spot where the smf logo is but above and it is going below to just above my boards. I am so sorry to put everyone thru all this trouble only to find out it's not what I want lol.

Yes, I thought this as well. How do you put the "Header" above the smf logo and the "Footer" below the copyright and stuff?
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Tiribulus on May 11, 2009, 11:32:38 PM
Alright boys n girls HERE IS A GOOD ONE.

This had me goin for a couple hours today. Bear with me please. Last night I installed the Anti Bot: Unrecognizable Form mod and everything tested fine. Today I upgraded the newest version of the Anti Bot clock and, hang on to your hats, upon clicking on register for a test account I was promptly taken to the spam poison page for copying the code to use spam poison.

What on Earth does this have to do with Global Headers and Footers you quite rightly ask? I have the spam poison code as my global header and that is the only association with my site and spam poison there is. Since I have had that code there for a long time I figured it must have something to do somehow with one or both of the aforementioned anti bot mods which both are related to registration. After installing and uninstalling both manually and with the PM and combinations thereof as needed of various versions of both those mods and testing every possible configuration, same thing. Spam poison website when I clicked register.

I then restored a backup from last night and still the same thing. The one thing I forgot about was last night I also made an attempt to clean up some of the validation errors on my site. Many seemed to be coming from the codes in my global headers and footers so I used the html tidy deal at W3 and used their "tidied" version of those same codes which seemed to work fine and eliminated a bunch of validation errors. I wish I'd have saved them because that's what was causing this. The "tidied" version of the spam poison code. I put back the old code and registration works fine.

Of course the million dollar question is... how the hell could this have possibly happened? It may be a laughably obvious question to somebody, but I sure do not know.

And there's my boring report for tonight.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Shades. on May 13, 2009, 02:50:48 PM
Yes, I thought this as well. How do you put the "Header" above the smf logo and the "Footer" below the copyright and stuff?

I would really like to find a way to do the above please, if anyone could tell me how! Thanks! 8)
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on May 13, 2009, 08:00:32 PM
You would you have to the edit the code. This is not really meant a theme side code since it just touchs the smf code and not the theme.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: CrazyChristina on May 15, 2009, 11:54:25 PM
Yes, I thought this as well. How do you put the "Header" above the smf logo and the "Footer" below the copyright and stuff?

I would really like to find a way to do the above please, if anyone could tell me how! Thanks! 8)

I figured that out! What a pain it ended up being... I will send u the info!
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: sombra on May 30, 2009, 01:41:30 PM
im using this mod and its working fine for me but i got a little problem

im using smf 2. rc1-1
and simpleportal

and i dont want the global headers to show in the portal how can i take out from the portal the global headers and footers?

and i saw a link called settings but it dosent do nothing why?

can i make it not to show inside the admin section?
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on June 04, 2009, 01:38:15 PM
Not at this time. Currently the global headers and footers are shown on any page but it would make a good feature request.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: rad1701 on June 16, 2009, 11:42:24 AM
I am running SMF 1.1.9 and a custom theme.  My default language is set to English, but I get this error when I try and apply this Mod:

1.     Execute Modification     ./Themes/default/languages/Modifications.english.php     Test failed
2.    Execute Modification    ./index.php    Test successful
3.    Execute Modification    ./Sources/Subs.php    Test successful
4.    Extract File    ./Sources/globalhf.php    
5.    Extract File    ./Themes/default/globalhf.template.php    
6.    Extract File    ./smfheader.txt    
7.    Extract File    ./smffooter.txt

Do I have to do something special due to running a custom theme and not the default one?
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on June 16, 2009, 12:58:22 PM
Open up that file and make sure that ?>
Is on its own line should be the very last line
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Joe N on June 27, 2009, 04:15:38 AM
Hi

I installed this mod.

Everything fine except the Admin.php got a fail.
I parced this mod but can't find the bit of edit you have to edit

I attached my Admin.php


Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Sabre™ on June 27, 2009, 05:51:52 AM
Yes, I thought this as well. How do you put the "Header" above the smf logo and the "Footer" below the copyright and stuff?
I would really like to find a way to do the above please, if anyone could tell me how! Thanks! 8)

For the footer
search for this in your Subs.php
Code: [Select]
log_error('Copyright removed!!');
}
}

replace it with
Code: [Select]
log_error('Copyright removed!!');
}
// Global Footers
$footercontents = '';

$noheaders = false;
if (isset($_REQUEST['action']))
{
if ($_REQUEST['action'] == 'dlattach')
$noheaders = true;

}

if(!isset($_REQUEST['xml'])  && $noheaders == false)
if(file_exists($boarddir . '/smffooter.txt'))
{
$footercontents = file_get_contents($boarddir . '/smffooter.txt');
echo '<!--Footers-->';
echo $footercontents;
echo '<!--End Footers-->';

}
}

For the header may not work correct for some custom themes when using <center> tags
search for
Code: [Select]
foreach ($context['template_layers'] as $layer)
and replace with
Code: [Select]
// Global Headers
$headercontents = '';

$noheaders = false;
if (isset($_REQUEST['action']))
{
if ($_REQUEST['action'] == 'dlattach')
$noheaders = true;

}


if(!isset($_REQUEST['xml']) && $noheaders == false)
if(file_exists($boarddir . '/smfheader.txt'))
{
$headercontents = file_get_contents($boarddir . '/smfheader.txt');
echo '<!--Headers-->';
echo $headercontents;
echo '<!--End Headers-->';

}
foreach ($context['template_layers'] as $layer)

There's a number of places you could add this mods code.
Dont forget to place the $boarddir function in the required places if it isnt so already ;)

I just added text boxes in my settings.template.php and called for them in the index.template.php.
Less hassles and works for every custom theme tested.

@ Joe N
This mod does not touch the Admin.php
Could you copy the error message you're receiving?
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Joe N on June 27, 2009, 06:44:44 AM
@ Joe N
This mod does not touch the Admin.php
Could you copy the error message you're receiving?

I parced the mod and said: Admin.php
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Sabre™ on June 27, 2009, 06:57:53 AM
Oh ok...
What version of smf are you using?
It seems you're using the package for smf2 on a 1.x.x template
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Joe N on June 27, 2009, 07:21:08 AM
Oh ok...
What version of smf are you using?
It seems you're using the package for smf2 on a 1.x.x template

USING smf 1.1.9

http://thechill.icr38.net/smf
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Sabre™ on June 27, 2009, 07:36:11 AM
Download or parse the package labeled globalheadersfooters.zip
The one named GlobalHFforSMF2.0.zip is for smf2, and uses the Admin.php.

Good luck :)
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Joe N on June 27, 2009, 10:38:55 AM
Download or parse the package labeled globalheadersfooters.zip
The one named GlobalHFforSMF2.0.zip is for smf2, and uses the Admin.php.

Good luck :)

I parced the 1.1.9 one but wouldn't let me
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Sabre™ on June 27, 2009, 05:52:38 PM
Are you installing this manually, or via your admin panel?
The parser on the mod side (http://mods.simplemachines.org/index.php?mod=351) will parse it as designed for a manual install, I dont see why it wouldn't parse in your admin panel, but that doesn't mean that it wouldn't ;)
What error does it show you?
If all else fails, I or another may find time to manually install this onto your templates if you'd like.
Its only a 2 minute job :)
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Shades. on June 28, 2009, 12:25:12 AM
Yes, I thought this as well. How do you put the "Header" above the smf logo and the "Footer" below the copyright and stuff?
I would really like to find a way to do the above please, if anyone could tell me how! Thanks! 8)

For the footer
search for this in your Subs.php
Code: [Select]
log_error('Copyright removed!!');
}
}

replace it with
Code: [Select]
log_error('Copyright removed!!');
}
// Global Footers
$footercontents = '';

$noheaders = false;
if (isset($_REQUEST['action']))
{
if ($_REQUEST['action'] == 'dlattach')
$noheaders = true;

}

if(!isset($_REQUEST['xml'])  && $noheaders == false)
if(file_exists($boarddir . '/smffooter.txt'))
{
$footercontents = file_get_contents($boarddir . '/smffooter.txt');
echo '<!--Footers-->';
echo $footercontents;
echo '<!--End Footers-->';

}
}

For the header may not work correct for some custom themes when using <center> tags
search for
Code: [Select]
foreach ($context['template_layers'] as $layer)
and replace with
Code: [Select]
// Global Headers
$headercontents = '';

$noheaders = false;
if (isset($_REQUEST['action']))
{
if ($_REQUEST['action'] == 'dlattach')
$noheaders = true;

}


if(!isset($_REQUEST['xml']) && $noheaders == false)
if(file_exists($boarddir . '/smfheader.txt'))
{
$headercontents = file_get_contents($boarddir . '/smfheader.txt');
echo '<!--Headers-->';
echo $headercontents;
echo '<!--End Headers-->';

}
foreach ($context['template_layers'] as $layer)

There's a number of places you could add this mods code.
Dont forget to place the $boarddir function in the required places if it isnt so already ;)

I just added text boxes in my settings.template.php and called for them in the index.template.php.
Less hassles and works for every custom theme tested.

@ Joe N
This mod does not touch the Admin.php
Could you copy the error message you're receiving?
Thanks! I will give this a try! :) 8)
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Joe N on June 28, 2009, 03:22:32 AM
If all else fails, I or another may find time to manually install this onto your templates if you'd like.
Its only a 2 minute job :)
[/quote]

That would be fantastic! Will send you ftp details via pm if you like

You see, I am not install packages via package manager as it gives me an error.

At the moment, I have added the edits for:

Modifications.english.php
globalhf.php to Sources
globalhf.template.php To Themes/default
smfheader.txt
smffooter.txt  Both to root


Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Joe N on June 28, 2009, 03:23:18 AM
I just need the subs.php
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Lord Feste on July 15, 2009, 02:32:04 PM
Awesome mod, I think(?) should be core.

so... this mod, once installed correctly, will allow for single lines of .js to be added across all templates?

Also, what happens if your Modifications.english-utf8.php is empty is that the installation gives a warning on that modification:

Code: [Select]
Find [Select]
?>
Add Before [Select]
// Begin Global Headers and Footers Text Strings $txt['globalhf_title'] = 'Global Headers and Footers'; $txt['globalhf_globalheaders'] = 'Global Headers:'; $txt['globalhf_globalfooters'] = 'Global Footers:'; $txt['globalhf_settings'] = 'Settings'; $txt['globalhf_saveglobal'] = 'Save Headers Footers'; // END Global Headers and Footers Text Strings

I added the tags to teh file manunally, but is that why it doesn't work?

I tried to insert

<script type="text/javascript" src="http://www.aionarmory.com/js/extooltips.js"></script>

in the header, but it hasn't worked.

Code: [Select]
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="description" content="|MA| WAR &amp; DF - Index" />
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
<script language="JavaScript" type="text/javascript" src="http://www.mystical-awakening.net/forum/Themes/default/scripts/script.js?rc1"></script>
<script language="JavaScript" type="text/javascript" src="http://www.mystical-awakening.net/forum/Themes/default/scripts/theme.js?rc1"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "http://www.mystical-awakening.net/forum/Themes/BlackBox20rc1";
var smf_default_theme_url = "http://www.mystical-awakening.net/forum/Themes/default";
var smf_images_url = "http://www.mystical-awakening.net/forum/Themes/BlackBox20rc1/images";
var smf_scripturl = "http://www.mystical-awakening.net/forum/index.php";
var smf_iso_case_folding = false;
var smf_charset = "ISO-8859-1";
var ajax_notification_text = "Loading...";
var ajax_notification_cancel_text = "Cancel";
// ]]></script>

<title>|MA| WAR &amp; DF - Index</title>
<link rel="stylesheet" type="text/css" href="http://www.mystical-awakening.net/forum/Themes/BlackBox20rc1/style.css?rc1" />
<link rel="stylesheet" type="text/css" href="http://www.mystical-awakening.net/forum/Themes/default/css/print.css?rc1" media="print" />
<link rel="stylesheet" type="text/css" href="http://www.mystical-awakening.net/forum/Themes/default/css/ff.css" />
<link rel="help" href="http://www.mystical-awakening.net/forum/index.php?action=help" />
<link rel="search" href="http://www.mystical-awakening.net/forum/index.php?action=search" />
<link rel="contents" href="http://www.mystical-awakening.net/forum/index.php" />
<link rel="stylesheet" type="text/css" id="index_css" href="http://www.mystical-awakening.net/forum/Themes/BlackBox20rc1/css/index.css" />

<link rel="stylesheet" type="text/css" id="forum_css" href="http://www.mystical-awakening.net/forum/Themes/BlackBox20rc1/css/forum.css" />
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
// Create the main header object.
var mainHeader = new smfToggle("upshrink", false);
mainHeader.useCookie(0);
mainHeader.setOptions("collapse_header", "a75e79fed89fef8d2dbfb4b2335ef092");
mainHeader.addToggleImage("upshrink", "/upshrink.gif", "/upshrink2.gif");
mainHeader.addTogglePanel("user_section");
mainHeader.addTogglePanel("news_section");
// ]]></script>
</head>
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: The Man Who on July 19, 2009, 07:01:43 PM
I'm installing it and it says everything is passed the tests - but it doesnt create the link in my admin side panels at all.

I am currently using 1.1.10.  Pretty urls and ad management have created side links for their admin control but nothing for this mod.  I'm sure I am being daft but what is wrong?

Installed via the admin panel and everything says it should be working correctly
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on July 22, 2009, 02:39:51 PM
What theme are you using? and what language?
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Lord Feste on July 22, 2009, 05:47:22 PM
Awesome, your update works a treat, and though it's not going in to the page head, it still works as intended. Great mod.

Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: The Man Who on July 27, 2009, 06:03:20 AM
What theme are you using? and what language?

the E-N Theme

http://forum.smallbellyguide.com

language?  English - or do you mean programming language? ;)
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on July 27, 2009, 09:06:36 AM
Check the language under Admin -> Sever Settings
Should be set to just English
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: OZSlayer on August 06, 2009, 08:43:59 PM
Hi vbgamer45, I have used you mod many time in the past and had only a few issues usually unrelated to the actual mod it self but what I'm trying the display with it.

This time I'm trying to add the header from the main site http://www.makingadiff.org/index2.html (http://www.makingadiff.org/index2.html) into the header mod, its sort of working  http://www.makingadiff.org/forum/index.php (http://www.makingadiff.org/forum/index.php)

Its breaking and most probably a css conflict with the forum, heres the code in the global header section.

Code: [Select]
<div id="header2"><link href="http://www.makingadiff.org/styles.css" rel="stylesheet" type="text/css" media="screen" />


<div id="menu">
<ul>
<li><a href="http://www.makingadiff.org/index2.html">Home</a></li>

<li><a href="http://www.makingadiff.org/articles.html">Articles</a></li>
<li><a href="http://www.makingadiff.org/forum/index.php">Forum</a></li>
<li><a href="http://www.makingadiff.org/about.html">About</a></li>
<li><a href="http://www.makingadiff.org/contact.html">Contact</a></li>
</ul>
</div>
<div id="splash"><a href="#">

  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="300" height="200" id="FlashID" title="Making A Difference logo">
    <param name="movie" value="http://www.makingadiff.org/images/madlogo.swf" />
    <param name="quality" value="high" />
    <param name="wmode" value="opaque" />
    <param name="swfversion" value="6.0.65.0" />
    <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
    <param name="expressinstall" value="http://www.makingadiff.org/Scripts/expressInstall.swf" />
    <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
    <!--[if !IE]>-->

    <object type="application/x-shockwave-flash" data="/images/madlogo.swf" width="300" height="200">
      <!--<![endif]-->
      <param name="quality" value="high" />
      <param name="wmode" value="opaque" />
      <param name="swfversion" value="6.0.65.0" />
      <param name="expressinstall" value="http://www.makingadiff.org/Scripts/expressInstall.swf" />
      <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
      <div>
        <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>

        <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
          </div>
      <!--[if !IE]>-->
        </object>
    <!--<![endif]-->
    </object>
    </a></div>
</div>

If anyone could please help in fixing this as it is driving me nuts. Thanks in advance.

OZSlayer
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: justlove on August 31, 2009, 12:24:50 AM
Is there anyway to remove the header and footer modification from the user profiles?
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on August 31, 2009, 12:34:57 AM
No would require edit to the code. This mod adds a header and footer on all pages.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: justlove on August 31, 2009, 12:23:47 PM
Could you tell me what page or file I will need to edited. Your knowledge would be greatly appreciated if you could possibly point me in the right direction., and I will try to modify the file..

Thank you
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: CaptPorridge on August 31, 2009, 10:02:58 PM
I've just had a strange experience... just saw someone else had the same problem.  I've used this mod on two other boards in the past with no problems, but I've just set up a new forum and the mod installs perfectly and I get the message it is now functioning... except the Header & Footer link doesn't appear in my admin panel???

Any ideas? I've tried it twice today on two different installations.

Language is set to English-utf8.  The theme is Dilber Multicolor.
Tried it with default theme, same result

The Configeration menu expands to allow for the extra item, but the Header Footer item isn't there:

(http://i827.photobucket.com/albums/zz192/CaptPorridge2/CaptPorridge/mistake.jpg)


OOps, just saw the solution.. set language to "English" not "English-utf8

Thanks
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on September 01, 2009, 09:16:23 AM
That fixes it utf8 is mainly used for international support if you forum is just english not uft8 works fine.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: lexa90 on September 04, 2009, 08:09:55 PM
Have a problem :(

http://balkanwarez.org/forum/index.php?action=admin;area=logs;sa=errorlog;desc
8: Undefined index: globalhf_settings
File: /home/balkanwa/public_html/forum/Sources/Admin.php
Line: 236

Here's the code line:
Quote
235:              'subsections' => array(
==>236:                         'view' => array($txt['globalhf_settings']),

And also this:

http://balkanwarez.org/forum/index.php?action=admin;area=logs;sa=errorlog;desc
8: Undefined index: globalhf_title
File: /home/balkanwa/public_html/forum/Sources/Admin.php
Line: 230

And the code:
Quote
229:                            'globalhf' => array(
==>230:                                    'label' => $txt['globalhf_title'],
231:                                           'file' => 'globalhf.php',

Also i tried to add these strings into modification.english.php but it didn't help :( If anyone knows something, please tell. Thanks
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on September 06, 2009, 12:08:50 PM
Make sure have it in all modifications.*.english.php files.

If you are using a custom theme check those language files as well.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Nodaz on October 08, 2009, 06:40:52 PM
I am unclear as to whether code added through this mod can be edited or removed...
I was lead to this mod as a way to add google adsense, but i need to be able to change the code if need be.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Nodaz on October 12, 2009, 08:35:47 PM
I am unclear as to whether code added through this mod can be edited or removed...
I was lead to this mod as a way to add google adsense, but i need to be able to change the code if need be.

 Still curious...
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on October 12, 2009, 10:35:22 PM
Not a good way to add adsense code. This is mainly for header and footers of forum.
For adsense i recommend ad management mod
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on October 13, 2009, 07:28:43 PM
If you are just doing google analytics yes this mod is fine for that just add the code in the footer.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: CBA BBass on October 15, 2009, 02:35:16 PM
OK...I've read just about everything here and I'm still missing the big picture.

I have uploaded the package to my fourm...it says its there but not installed. Cant figure out how to do that...

Also, I opened the header and footer txt document on my computer..are these where I insert my http code?

This thread is 27 pages long and i thought there would be step by step instructions on this but there isnt, or Im missing it???

I dont have allot of knowledge on this stuff but it seems like everyone else come by it pretty easy. Can someone lend me a hand and walk me through from downloading the package to getting it up with what I want on the site? Once i have that, I'm pretty sure I can change my codes once I know how.


This is the right Mod to have for banners right? We want a few local sponsors to have ads on our site and maybe have differant ones on differant pages.



Thanks You!
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: CBA BBass on October 15, 2009, 02:52:27 PM
Ok...I got it to upload and when it installed it, I got:

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: jameswx09 on October 17, 2009, 12:46:10 AM
your crap mod destroyed my forum!
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Costa on October 17, 2009, 01:19:02 AM
your crap mod destroyed my forum!

Big LOL
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Arantor on October 17, 2009, 10:46:45 AM
jameswx09, please advise how it 'destroyed' your forum.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: jameswx09 on October 17, 2009, 01:54:42 PM
The mod didn't do anything :D I just wanted to see your reaction. I put an Iframe in the global header... doesn't work. It's all it shows is the iframe on every page. It's all I had on my site was my forum, it was new so I just deleted the database and Smf. I just re-uploaded everything and my forum is back. It's a good thing I didn't have any posts or anything good yet.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Arantor on October 17, 2009, 01:58:46 PM
That's what it's supposed to do - the same thing at the top of every page.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on October 17, 2009, 04:32:15 PM
If you mis enter a tag and are unable to reach the forum the best bet would be to clear out the smfheader.txt and smffooter.txt in the root directory of your forum.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: primetime on October 18, 2009, 12:47:05 PM
I have this MOD installed and I am using the silentwave theme. The headers and footers display(banners) properly on the index but only the alternate text shows up on the thread/child boards.

site is www.reefersrus.com

Prime
Title: Thanks
Post by: swaite53 on October 18, 2009, 01:37:00 PM
Thanks for this mod.

I've just set my firt forum up over the last couple of days, and have a lot to learn. This is exactly what I needed. I'd tried various other ad and banner mods, but couldn't get any of them to work. This went straight on without a problem and is perfect for my needs.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: tommybishop on October 21, 2009, 11:00:37 PM
I set up this mod, but it says it can't find the txt files even though theyre right in the root directory where it says to put them... any help would be greatly appreciated.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: primetime on October 22, 2009, 08:52:20 AM
I have this MOD installed and I am using the silentwave theme. The headers and footers display(banners) properly on the index but only the alternate text shows up on the thread/child boards.

site is www.reefersrus.com

Prime


Any suggestions on how to fix this?
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on November 08, 2009, 08:42:01 PM
Updated with support for SMF RC2!
Title: Re: Global Headers and Footers (SMF 2.0 RC2 Now Supported!)
Post by: MultiformeIngegno on November 09, 2009, 08:11:47 AM
Updated with support for SMF RC2!
Yeeaah!! Thanks! ;)
Title: Re: Global Headers and Footers (SMF 2.0 RC2 Now Supported!)
Post by: clewis789 on November 14, 2009, 04:06:21 PM
Love the mod vbgamer but i think the footers one should be below the satus thing also not just the board index is there any way you could pot this in the next update ?
Title: Re: Global Headers and Footers (SMF 2.0 RC2 Now Supported!)
Post by: Liam. on November 15, 2009, 08:16:37 AM
This mod used to throw up quite a few errors for me but luckily now it's fine ^_^
Clewis, I'm sure that's possible, it's just a case of putting it before the template function on index.template.php, as far as I am aware.
Title: Re: Global Headers and Footers (SMF 2.0 RC2 Now Supported!)
Post by: Scarlett on December 09, 2009, 07:15:12 PM
I've just installed this mod on my forum, running 1.1.11 SMF with Izler theme. It installed fine, the admin section came up fine, but when I put the html in the box it comes out just as a black box. I can't work out why it's not showing the html? I also tried doing a simple html text link, but although the text worked, the link was inactive.

      <table width="730" border="0" cellspacing="0" cellpadding="0" align="center">
         <tr height="5">
            <td width="5" height="5"></td>
            <td bgcolor="black" width="720" height="5"></td>
            <td width="5" height="5"></td>
         </tr>
         <tr>
            <td width="5"></td>
            <td bgcolor="black" width="720"><a href="http://www.dirtybobbers.co.uk/links"><img src="http://dirtybobbers.co.uk/links_intro.jpg" alt="" height="35" width="720" border="0" /></a></td>
            <td width="5"></td>
         </tr>
         <tr height="35">
            <td width="5" height="35"></td>
            <td bgcolor="black" width="720" height="35"><a href="http://www.dirtybobbers.co.uk/shop"><img src="http://dirtybobbers.co.uk/shop_strip.jpg" alt="" height="35" width="720" border="0" /></a></td>
            <td width="5" height="35"></td>
         </tr>
         <tr height="5">
            <td width="5" height="5"></td>
            <td bgcolor="black" width="720" height="5"></td>
            <td width="5" height="5"></td>
         </tr>
      </table>
Title: Re: Global Headers and Footers (SMF 2.0 RC2 Now Supported!)
Post by: navjotjsingh on December 18, 2009, 12:03:55 AM
I added Google Analytics + Adsense integration code in footer and header respectively. But only footer code works and not the header one. ( Forum: forum.geneliaonline.in )

How to fix this? I am on 2.0 RC2.
Title: Re: Global Headers and Footers (SMF 2.0 RC2 Now Supported!)
Post by: jrstark on December 22, 2009, 04:11:44 PM
I have a custom theme that basically is a new header/footer with different colors in the CSS.  I just upgraded my test forum to SMF 2 RC 2, and installed this.  The footer is fine, but the header is in the wrong place.  Instead of being at the top of the page, it starts after the nav links.

How do I move the header to the top and delete the existing first line (name of forum and SMF logo)?
Title: Re: Global Headers and Footers (SMF 2.0 RC2 Now Supported!)
Post by: vaulter on January 13, 2010, 11:03:24 AM
I have a custom theme that basically is a new header/footer with different colors in the CSS.  I just upgraded my test forum to SMF 2 RC 2, and installed this.  The footer is fine, but the header is in the wrong place.  Instead of being at the top of the page, it starts after the nav links.

How do I move the header to the top and delete the existing first line (name of forum and SMF logo)?


I have the same problem. I wanted to add a header, not insert html after the links.  Is this a bug or a feature?
Title: Re: Global Headers and Footers (SMF 2.0 RC2 Now Supported!)
Post by: vbgamer45 on January 13, 2010, 07:35:09 PM
That's the default feature.
Title: Re: Global Headers and Footers (SMF 2.0 RC2 Now Supported!)
Post by: supahben on January 13, 2010, 09:29:45 PM
vulnerability:

smffooter.txt
smfheader.txt

can be easily accessed/downloaded in your forum
Title: Re: Global Headers and Footers (SMF 2.0 RC2 Now Supported!)
Post by: vbgamer45 on January 13, 2010, 09:33:18 PM
Not a vuln those files do not execute code and all the html/javascript in those files is already loaded on your forum people can just view source and see the same code as those files.
Title: Re: Global Headers and Footers (SMF 2.0 RC2 Now Supported!)
Post by: supahben on January 13, 2010, 09:37:04 PM
Not a vuln those files do not execute code and all the html/javascript in those files is already loaded on your forum people can just view source and see the same code as those files.
i see.. thanks :)
Title: Re: Global Headers and Footers (SMF 2.0 RC2 Now Supported!)
Post by: vaulter on January 14, 2010, 03:19:22 AM
That's the default feature.

Is there any chance you could add a 'select area for header' check box and one for footer in a future release?

Maybe something like 'Tick here for top of page *' and 'Tick here for after the menu *'  ?

That would be cool if you could :)

Title: Re: Global Headers and Footers (SMF 2.0 RC2 Now Supported!)
Post by: vbgamer45 on January 14, 2010, 08:57:54 AM
No cause then it would not work as global headers and footers on every theme.

In the case you are talking about you would have to edit each theme.
Title: Re: Global Headers and Footers (SMF 2.0 RC2 Now Supported!)
Post by: vaulter on January 15, 2010, 11:06:40 AM
Okay.  Thanks for the reply  8)
Title: Re: Global Headers and Footers (SMF 2.0 RC2 Now Supported!)
Post by: Maviel on February 14, 2010, 11:08:57 AM
First of all nice mod!

It seems i get double header and footer and i have checked the forums and most of responses was:

"Do u have installed it 2 times?"

Both yes and no from my side. I installed this modification on 1.1.10 and it worked fine but when update to 1.1.11 i reactivated the mod and it shows double code? why? any old code i should remove or? i even tried to reinstall the mod as in remove all of it then install it again. and same problem occurred.
Title: Re: Global Headers and Footers (SMF 2.0 RC2 Now Supported!)
Post by: vbgamer45 on February 14, 2010, 04:40:10 PM
Check the mod site for parse instructions and you can look for the code that was added and remember the second copy if that was the case
Title: Re: Global Headers and Footers (SMF 2.0 RC2 Now Supported!)
Post by: rillc on March 02, 2010, 11:56:47 PM
First of all nice mod!

It seems i get double header and footer and i have checked the forums and most of responses was:

"Do u have installed it 2 times?"

Both yes and no from my side. I installed this modification on 1.1.10 and it worked fine but when update to 1.1.11 i reactivated the mod and it shows double code? why? any old code i should remove or? i even tried to reinstall the mod as in remove all of it then install it again. and same problem occurred.

I too am having this problem with my install of the mod. The footer appear to be fine, but the header is showing triple ads (3x).  How can this be fixed?  I know this is not good use for Ads, but the ad mod did not not work for me.  Please help me with this the site is located at (gramblingfans.com) if you want to see for yourself.

Thanks in advance for the help.
Title: Re: Global Headers and Footers (SMF 2.0 RC2 Now Supported!)
Post by: rillc on March 03, 2010, 02:16:22 PM
I really need help on this issue?

Thanks again.
Title: Re: Global Headers and Footers (SMF 2.0 RC2 Now Supported!)
Post by: vbgamer45 on March 03, 2010, 04:51:25 PM
Check if the mod installed twice in Sources/Subs.php
Title: Re: Global Headers and Footers (SMF 2.0 RC2 Now Supported!)
Post by: rillc on March 04, 2010, 02:44:04 AM
Check if the mod installed twice in Sources/Subs.php

It is only installed once.  Now what should I do?
Title: Re: Global Headers and Footers (SMF 2.0 RC2 Now Supported!)
Post by: vbgamer45 on March 04, 2010, 11:46:40 AM
I would uninstall it since that is all that I can think would cause that to occur.
Title: Re: Global Headers and Footers (SMF 2.0 RC2 Now Supported!)
Post by: Dharshan on March 04, 2010, 10:32:40 PM
This mod Rocks! with a little messing i managed to put my logo through "img src " and provide a link back to main site!
Great mod, Really Simple to use, Thank you for the nice mod you have provided!
Title: Re: Global Headers and Footers (SMF 2.0 RC2 Now Supported!)
Post by: vbgamer45 on March 04, 2010, 10:46:06 PM
Glad you enjoy it.
Title: Re: Global Headers and Footers (SMF 2.0 RC2 Now Supported!)
Post by: phowwai on March 04, 2010, 11:46:36 PM
Hi thx for the great mod but how do i make it not show up in the simple portal cuz it look really bad with it
Title: Re: Global Headers and Footers (SMF 2.0 RC2 Now Supported!)
Post by: phowwai on March 06, 2010, 03:46:40 AM
nvm i found a solution  >:(
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: vbgamer45 on March 08, 2010, 07:19:26 PM
Now supports SMF 2.0 RC3!
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: MultiformeIngegno on March 09, 2010, 05:58:10 AM
Great!! Thanks vbgamer!! ;)
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: hcfwesker on March 11, 2010, 01:09:28 PM
Is there any way to make these ONLY appear on the home page of the forum?  Or is it possible to make separate headers and footers for each board.

I need menus/tables for certain boards.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: vbgamer45 on March 11, 2010, 04:48:12 PM
Not with this mod. This just does global headers/footers
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: Smartflight on March 14, 2010, 10:17:02 AM
I have SimplePortal installed on my SMF 2.0 RC2, and it doesn't set in on the home page (interferes with the clean look, and has improper places set to display the header and footer). Works fine on all the other pages of the forum. I would like the home page to be an exception. Any idea how to do it ?
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: vbgamer45 on March 14, 2010, 10:44:23 AM
You would need to modify Subs.php and add some code to check if it is on simple portal homepage or then load the custom headers/footers.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: Smartflight on March 14, 2010, 10:56:08 AM
Oops, I guess I sent the wrong message. I'm no coder! :s
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: Dharshan on March 20, 2010, 01:52:26 PM
thank you for the RC3 update!
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: vbgamer45 on March 20, 2010, 01:52:51 PM
Glad you enjoy it
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: share2learn on March 24, 2010, 09:07:52 AM
I have problem when install this mod

I use SMF 2.0RC3, my problem details:

*     5.     Execute Modification     ./Sources/Admin.php     Test failed
      1.    Add Before    ./Sources/Admin.php    Test failed

Do you know how to fix this problem ?
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: share2learn on March 26, 2010, 04:43:50 AM
I still have problem when install in 2.0RC3

Any one can help?
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: share2learn on March 26, 2010, 11:28:29 PM
I have problem when install this mod

I use SMF 2.0RC3, my problem details:

*     5.     Execute Modification     ./Sources/Admin.php     Test failed
      1.    Add Before    ./Sources/Admin.php    Test failed

Do you know how to fix this problem ?
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: vbgamer45 on March 27, 2010, 12:13:22 AM
Install it manually no fix cause other of other mod conflicts.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: sneijder23 on March 27, 2010, 06:45:59 AM
It is compatible with the mod pretty url?
I only work with the mod pretty url off :S

,thanks.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: share2learn on March 30, 2010, 12:54:58 AM
I bypass warning and install this module.

But after install, i can't find where to control this module

In old version, i control this module via Admin / Configuration / Global Header and Footer
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: vbgamer45 on March 30, 2010, 01:28:40 AM
Yes it should be there check if default language is english.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: share2learn on March 30, 2010, 02:47:36 AM
I don't use English

Where to control this module ?
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: share2learn on March 31, 2010, 04:01:33 AM
Any one know link to control this module?
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: vbgamer45 on March 31, 2010, 01:03:42 PM
action=globalhf
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: share2learn on April 01, 2010, 03:29:16 AM
Thanks vbgamer45
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: tanshin on April 09, 2010, 03:23:26 PM
Don't know if this was ever asked but, is there a chance to get customizable permissions for this mod?
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: vbgamer45 on April 09, 2010, 03:43:36 PM
Not likely.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: tanshin on April 09, 2010, 06:52:50 PM
Alright, not a problem then.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: grinczar on April 09, 2010, 07:39:08 PM
Everything works, but I don't have any icon next to "Global Headers & Footers". That looks strange now.
Can you tell me where I have to add code or something? The image isn't a problem, I only want to know what I have to do.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: !RFAN on April 13, 2010, 06:22:59 AM
i was unable to put a linked image or even a link... any suggestions??
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: vbgamer45 on April 13, 2010, 10:32:37 AM
Make sure you are using html
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: !RFAN on April 13, 2010, 02:47:42 PM
i was using lyk this

<url=http://www.site.com><img src=image address></img></url>
dot know right or wrong... suggest me the right one plz
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: vbgamer45 on April 13, 2010, 03:01:48 PM
That should work don't use </img though
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: sethea on April 13, 2010, 05:25:06 PM
I've installed, uninstalled and reinstalled this mod, but at no point do I get an option under "Configuration" (or any other admin section) for Headers and Footers.  After giving up, I installed another unrelated mod for ads and I now see that mod's options under configuration, so I know that part works on the forum.  I'm assuming that the global headers and footers mod should also show up there once installed, but it is not.  Any advice?

Thanks for your help.

Seth
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: nina-nina on April 15, 2010, 02:20:43 AM
I have been using this mod for quite some time and I like it a lot. Never have had a problem with it. 
I would like to ask some advice though.  How can I make the image(s) to be in the middle?
Whenever I insert an embedded code, the image goes to the left side.  What if I want the image to be in the middle or in the right side?
Thank you.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: !RFAN on April 16, 2010, 11:35:14 AM
That should work don't use </img though
okay i removed </img> but it is still not working..
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: tanshin on April 18, 2010, 09:28:37 PM
That should work don't use </img though
okay i removed </img> but it is still not working..

Make sure you are using the right format for image tags.
Code: [Select]
<img src="URL" />
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: akbora on April 18, 2010, 09:49:54 PM
This is a very good and big mod. Is it possible that setting area show? For example I don't want to show header section on portal or other area...

Thanks.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: !RFAN on April 18, 2010, 10:56:03 PM
That should work don't use </img though
okay i removed </img> but it is still not working..

Make sure you are using the right format for image tags.
Code: [Select]
<img src="URL" />

look.. image is visible but it is not linked

should i use <a href="url">
coz i am using <url="url">
i think i was wrong...
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: tanshin on April 19, 2010, 08:17:49 AM
Yes, you would use:
Code: [Select]
<a href="URL"><img src="URL of image" /></a>
That's what I would do anyways.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: !RFAN on April 19, 2010, 10:11:42 AM
its working now :p
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: Hj Ahmad Rasyid Hj Ismail on April 19, 2010, 03:11:59 PM
Why I cannot get this mod to work as it was before. Last time I used this on 1.1.X it was on the very top of the forum. Now when I am using it with 2.0 RC3 it is just under the menu. How do I change it to be on the top of the forum?
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: Hj Ahmad Rasyid Hj Ismail on April 21, 2010, 03:35:15 PM
I change add global header code i.e.:
Code: [Select]
// Global Headers
$headercontents = '';

$noheaders = false;
if (isset($_REQUEST['action']))
{
if ($_REQUEST['action'] == 'dlattach')
$noheaders = true;

}


if(!isset($_REQUEST['xml']) && $noheaders == false)
if(file_exists($boarddir . '/smfheader.txt'))
{
$headercontents = file_get_contents($boarddir . '/smfheader.txt');
echo '<!--Headers-->';
echo $headercontents;
echo '<!--End Headers-->';

}
from after this code
Code: [Select]
if (isset($settings['use_default_images']) && $settings['use_default_images'] == 'defaults' && isset($settings['default_template']))
{
$settings['theme_url'] = $settings['default_theme_url'];
$settings['images_url'] = $settings['default_images_url'];
$settings['theme_dir'] = $settings['default_theme_dir'];
}
to add after this code
Code: [Select]
header('Content-Type: text/html; charset=' . (empty($context['character_set']) ? 'ISO-8859-1' : $context['character_set']));
}
to rectify my problems.

I hope it will be useful to others using this mod and want to change the global header place from under the main menu to above the whole forum.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: vbgamer45 on April 21, 2010, 08:50:40 PM
Nice tip.

One typo
  hyeader
Should be
  header
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: Hj Ahmad Rasyid Hj Ismail on April 22, 2010, 03:47:15 PM
Nice tip.

One typo
  hyeader
Should be
  header
Edited. Thanks for checking and pointing it out.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: WhatsTheRent on April 23, 2010, 04:07:05 PM
Hey.  I'm running RC3 and having some trouble.  After I installed i entered in some HTML, which by the way I wrote incorrectly, and now whenever I click inside either the header box, the footer box, hit save, or try and uninstall the mod I get a blank screen with this error message: The requested URL />Home Page</a><!--End Headers--><div class= was not found on this server.

So I'm not able to delete the link I put in the header box, and I am not able to uninstall the mod. 

EDIT:  I got this fixed.  I left out some quotes in the HTML code and this was evidently making safari upset, so I used firefox and it let me edit the code, so all is well
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: vbgamer45 on April 24, 2010, 03:01:55 PM
Glad you got it working
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: akbora on April 24, 2010, 05:35:45 PM
This is a very good and big mod. Is it possible that setting area show? For example I don't want to show header section on portal or other area...

Thanks.
vbgamer please...
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: vbgamer45 on April 24, 2010, 09:38:23 PM
Not possible
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: aw06 on April 26, 2010, 12:24:47 AM
Can i see a site using this mod .. or a screen pic ??
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: mrtrc266 on April 26, 2010, 01:23:58 AM
Can i see a site using this mod .. or a screen pic ??

Screen shot are provide here.....
http://mods.simplemachines.org/index.php?mod=351
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: aw06 on April 27, 2010, 02:32:35 AM
Can i see a site using this mod .. or a screen pic ??

Screen shot are provide here.....
http://mods.simplemachines.org/index.php?mod=351

That shows only for the admin section, want to see it inuse on the forum itself
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: tanshin on April 27, 2010, 07:57:46 AM
Can i see a site using this mod .. or a screen pic ??

Screen shot are provide here.....
http://mods.simplemachines.org/index.php?mod=351

That shows only for the admin section, want to see it inuse on the forum itself

That's a little difficult to show because everybody will be using different codes. For example, I'm using a code by one of our members that gives us multi-colored names.
http://forum.nintendoaddict.com
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: Inv_Trdr on April 27, 2010, 08:50:11 PM
I am using the Global Headers Footers mod to try to insert my infolinks code into. I inserted it into the footer section. I did see the code working on the pages. But when I am seeing the Page Source I do not see the code above the Google Analytics code. Why? Does the mod make a separate header.php and footer.php file? Why can't I see the code placed in this mod's footer section on the Page Source? Looks like the code is working as ads are shown as highlighted text. Visit any Topic at http://invictatrader.com/forums to see it in action.

I am still waiting on a reply as to how to insert the infolinks code directly into the index.template file itself above the Google Analytics code.

Thank you.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: Inv_Trdr on April 28, 2010, 09:31:55 AM
Is it possible to add 2 scripts to the Header or Footer block? I wanted to add the Google Analytics code along with an infolinks.com code to my forum using this mod. Is this possible? Is there any particular way to separate the 2 scripts or just add the second one on a new line after the first?
Thank you.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: Arantor on April 28, 2010, 09:33:09 AM
If you're adding Google Analytics, best use Google Analytics Code (http://custom.simplemachines.org/mods/index.php?mod=2210) to do it for you.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: Inv_Trdr on April 28, 2010, 10:13:12 AM
I am using that mod also for Google Analytics. Just wanted to find out if I can use the Global Footers Headers instead so I can add both the infolinks.com code and the Analytics code below it. If so, how do i separate the 2 or no need to? Just add them on separate lines? Will it work that way? Does this mod create a header.php and footer.php file? I did not see them.
Thank you.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: Arantor on April 28, 2010, 10:14:19 AM
The Google Analytics mod does not create separate files, it just adds it directly into your theme, out the way.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: Inv_Trdr on April 28, 2010, 10:22:27 AM
Ahh. Thanks. So if say i am not using the mod for Analytics, will the Global Footer Header mod be able to handle 2 scripts in just say the Footer box? Will it work that way? Will the Analytics and Infolinks code inserted in the Footer box work with the default theme? Do i need to separate them in any way? Does this mod add footer.php or header.php files somewhere?
Thank you.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: Arantor on April 28, 2010, 10:24:21 AM
Yes, it should be able to though if you already have the GA mod there's no need to put the code into the footer - the mods should co-exist anyway!
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: Inv_Trdr on April 28, 2010, 10:28:20 AM
I wanted to make sure just in case I do not use the Analytics mod and put both the Analytics code and the Infolinks code in the Footer mod box. So no need to do anything special to separate two scripts? And does adding the two create a footer.php file somewhere or it inserts them into the index.template.php file automatically? I ask because I did not the Infolinks code inserted using this mod in the index.template file.
Thank you.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: Arantor on April 28, 2010, 10:30:46 AM
Only this mod has a footer.php - the GA mod does NOT require a separate file in any way, shape or form (at least, it didn't when I wrote it) - installing it just adds the relevant code to the default theme (and other themes in 2.0)

The infolinks code should be added to the footer added by *this* mod.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: Inv_Trdr on April 28, 2010, 03:01:19 PM
Thanks. And there is no need for any kind of separator just in case if I decide to add both the GA and the Infolinks code to the Global Footer mod, correct? Where is the footer.php file? Just curious, could not find it on the surface.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: Arantor on April 28, 2010, 03:04:37 PM
No separator, just both bits of code into the footer.

As for where footer.php is, no such file - this mod loads smffooter.txt and smfheader.txt in the same directory as SSI.php is.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: Inv_Trdr on April 28, 2010, 03:16:26 PM
Thanks. And this way I will be able to see both in the Page Source? When I use this mod I do not the Infolinks code I added to it. But it still seems to work as I do see text highlighted. Why does the script inserted in this module's footer not show in the Page Source as Google Analytics does?
Thank you.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: Arantor on April 28, 2010, 03:20:03 PM
If you added it to footer.php, that'll be why, this mod never touches that file.

The GA mod modifies your forum's code to make sure it's there.

Do you have an smffooter.txt? If so put it in there.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: Inv_Trdr on April 28, 2010, 03:27:03 PM
I am not putting it in the footer.php file. I am using the GA mod and this mod here for the infolinks code. But I see the GA code in my Page Source but not the infolinks code put into the footer section of your mod. When I click "View Page Source" on any page at http://invictatrader.com/forums my forum.
Thanks.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: Arantor on April 28, 2010, 03:57:11 PM
This isn't my mod ;)

And I *do* see the infolinks code in the footer of the source.

Taken from your site just now.

Code: [Select]
</form>
</td>
</tr>
</table>
</div>
</div><!--Footers--><script type="text/javascript">
   var infolink_pid = 64540;
   var infolink_wsid = 1;
</script>
<script type="text/javascript" src="http://resources.infolinks.com/js/infolinks_main.js"></script>
<!--End Footers-->
</div>
 
<div id="footerarea" style="text-align: center; padding-bottom: 1ex;">

Right there in the middle. It even appears to be working.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: Inv_Trdr on April 29, 2010, 08:57:27 AM
Duh! Thank you. I was only looking for it just above the Google Analytics code. Did not go higher to look for it. Thank you very much.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: TheListener on April 30, 2010, 12:17:17 PM
Is there a way so the banners added don't show on the portal?
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: ekoree on May 14, 2010, 10:59:49 AM
I will be immensely glad if anyone can help out. Am on smf 1.1.11, with DK theme. Even though global headers and footers has seemingly installed, it is not showing in the configuration. What can i do to be able to enjoy the benefits of this mod.
Even the google adsense ads and adbrite ads are not showing, even though i pasted on ad mod.
Thanks for the assistance
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: talk2troy on June 01, 2010, 11:59:53 AM
...smf 1.1.11 - EDIT: USING DEFAULT CORE THEME
Even though global headers and footers has seemingly installed, it is not showing in the configuration.

ditto - what he said!

ADMIN AREA
Configuration:
Features and Options
Server Settings
Current Theme
Themes and Layout
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: vbgamer45 on June 01, 2010, 01:59:29 PM
Make sure your language is set to english utf8
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: talk2troy on June 01, 2010, 05:17:21 PM
Make sure your language is set to english utf8

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
For other noobs (like me):
SMF 1.1.11 > ADMIN > CONFIGURATION > SERVER SETTINGS > DEFAULT FORUM LANGUAGE  > English-Utf8
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

OK, that took a good bit searching just to find the setting!

Mine is already set to > English-Utf8

Any other ideas?
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: vbgamer45 on June 02, 2010, 12:28:24 PM
Opps I meant just set to it to English not english utf8
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: Jimmy T on June 05, 2010, 01:34:48 PM
Hi, I had a similar problem, the option didn't show up in the menu but did create a blank space with no link. So I uninstalled it and deleted the package, but the blank space stayed. I came here to the forums, found the advice about setting language to English, and did that. I thought I'd install the mod again, but it's already there in the menu even though it doesn't show up in the package list as an installed mod. It does work, but the previous uninstall didn't get rid of the mod. I'm a little worried that if I do anything else with this I might crash the page. Leave it or fix it? It's doing what I want it to do, I have a legal notice at the bottom of every page now, so I'm cool with that. Just a little worried about what I might be doing to the site code.

Jimmy
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: vbgamer45 on June 05, 2010, 01:36:44 PM
Hmm the legal notice sounds like a missing or corrupt language file? What language are you using under Server Settings?
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: Jimmy T on June 05, 2010, 05:46:21 PM
I'm using English, not English utf8.

To clarify, the legal notice is the text I placed in the footer box myself, not an error. It's just text, not html code. Maybe that's where I screwed up?

But now things have changed, the mod is no longer available through the admin menu, the blank space is back, and I do not have access to the header or footer entry boxes or the uninstall or delete option.  My message still shows up on the page, as a footer.

I'm using the default theme, version 1.1.11, and two mod packages, reCaptcha and Ad Managment.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: Jimmy T on June 06, 2010, 10:51:50 AM
I believe I've made a little progress, decided to go through the manual install instructions to see if all the code and files were in place, all that was missing was the original zip so I uploaded that to Packages. Still nothing in the menu, but I was given the opportunity to reinstall the mod and I did that. That put me back to square one, the notice I'd put on the page footer was gone, nothing in the admin menu about the mod as yet. I went back to Servers, checked the language. It was set to English but I hit Save again and that pulled up the Global Headers link in the admin menu. I'm now trying to put up the legal notice footer again and expect it will work ok. I do have an SQL backup to go to in case I self-destruct the page but it doesn't look that serious.

-----Update, managed to get it working ok manually although I did have two copies running at once for awhile. Now everything seems to be good.

Jimmy
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: maihannijat on June 10, 2010, 05:03:42 PM
Hi

By mistake I have installed this mod twice, everything is working fine there is no error .

But how to uninstall one of it?

Shall I remove both of them and install fresh one?
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: admirable on June 10, 2010, 05:17:55 PM
Really a great work for making this. Custom Header and Footer Image.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: vbgamer45 on June 10, 2010, 05:22:59 PM
Glad you enjoy it.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: talk2troy on June 13, 2010, 02:02:52 PM
Opps I meant just set to it to English not english utf8

OK - I finally got this working - and it is a great feature... BUTT...
- what a pain in the a$$ to use the wrong language and not get an warning before or during install!

THE MOD DOWNLOAD PAGE SHOULD HAVE A HUGE WARNING ON THERE TO SOLVE THIS COMMON ISSUE!
- a message prompting you to set the language to ENGLISH (not English-UTF8) before installing the mod would also be nice.

I also had to remove a double install to get it to work & after reading several search results on this issue.
- I think it would help a lot if you wrote a dedicated topic for removal of double installs & duplicate text.

For the benefit of others regarding duplicate text, double text, double install, duplicate install:
http://www.simplemachines.org/community/index.php?action=search2;search=duplicate;topic=103464

Thanks for the mod... all the same...
- I'm just saying... it would help a lot to "head 'em off at the pass" cowboy...
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: vbgamer45 on June 13, 2010, 02:05:26 PM
Not my fault issue with SMF all mods the same
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: talk2troy on June 13, 2010, 02:24:17 PM
Can you EDIT the text on the MOD download page to WARN people of this?

If not, can't you contact an ADMIN and request this simple solution?

So many posts can be solved by adding some WARNING text to the MOD download page!
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: vbgamer45 on June 13, 2010, 02:33:43 PM
No thanks
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: elkingrey on July 14, 2010, 02:10:11 PM
Is it possible to make the header at the very top of the page? Currently my header appears in the middle of the page and it looks terrible. Did I do something wrong, or is that how the mod was designed?
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: vbgamer45 on July 14, 2010, 02:41:24 PM
Possible to do would require changes in the Subs.php the location varies depending on the theme
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: elkingrey on July 14, 2010, 03:13:55 PM
Possible to do would require changes in the Subs.php the location varies depending on the theme

The theme I am running is a copied default theme. Are there any directions for what I need to do to change my subs.php to get it on top?
Title: Re: Global Headers and Footers
Post by: elkingrey on July 14, 2010, 11:52:29 PM
kosher_travel, use the Ads_mod instead as this does what you want it to do. :)

This is how to get the header to go at THE VERY TOP. Thank you!! It works great!
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: Hj Ahmad Rasyid Hj Ismail on July 15, 2010, 06:23:25 PM
Or you can use this instead.
I change add global header code i.e.:
Code: [Select]
// Global Headers
$headercontents = '';

$noheaders = false;
if (isset($_REQUEST['action']))
{
if ($_REQUEST['action'] == 'dlattach')
$noheaders = true;

}


if(!isset($_REQUEST['xml']) && $noheaders == false)
if(file_exists($boarddir . '/smfheader.txt'))
{
$headercontents = file_get_contents($boarddir . '/smfheader.txt');
echo '<!--Headers-->';
echo $headercontents;
echo '<!--End Headers-->';

}
from after this code
Code: [Select]
if (isset($settings['use_default_images']) && $settings['use_default_images'] == 'defaults' && isset($settings['default_template']))
{
$settings['theme_url'] = $settings['default_theme_url'];
$settings['images_url'] = $settings['default_images_url'];
$settings['theme_dir'] = $settings['default_theme_dir'];
}
to add after this code
Code: [Select]
header('Content-Type: text/html; charset=' . (empty($context['character_set']) ? 'ISO-8859-1' : $context['character_set']));
}
to rectify my problems.

I hope it will be useful to others using this mod and want to change the global header place from under the main menu to above the whole forum.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: vbgamer45 on July 25, 2010, 04:03:25 PM
This mod does not touch the template files.

Only changes Sources/Subs.php
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: Midnitelove on July 25, 2010, 06:28:57 PM
Is this it?

<?php
/**********************************************************************************
* Subs-Package.php                                                                *
***********************************************************************************
* SMF: Simple Machines Forum                                                      *
* Open-Source Project Inspired by Zef Hemel (zef@zefhemel.com)                    *
* =============================================================================== *
* Software Version:           SMF 1.1.5                                           *
* Software by:                Simple Machines (http://www.simplemachines.org)     *
* Copyright 2006-2007 by:     Simple Machines LLC (http://www.simplemachines.org) *
*           2001-2006 by:     Lewis Media (http://www.lewismedia.com)             *
* Support, News, Updates at:  http://www.simplemachines.org                       *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under   *
* the terms of the provided license as published by Simple Machines LLC.          *
*                                                                                 *
* This program is distributed in the hope that it is and will be useful, but      *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY    *
* or FITNESS FOR A PARTICULAR PURPOSE.                                            *
*                                                                                 *
* See the "license.txt" file for details of the Simple Machines license.          *
* The latest version can always be found at http://www.simplemachines.org.        *
**********************************************************************************/
if (!defined('SMF'))
   die('Hacking attempt...');

/*   This file's central purpose of existence is that of making the package
   manager work nicely.  It contains functions for handling tar.gz and zip
   files, as well as a simple xml parser to handle the xml package stuff.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: Hj Ahmad Rasyid Hj Ismail on July 25, 2010, 06:32:20 PM
He said Subs.php not Subs-Package.php.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: Midnitelove on July 26, 2010, 03:24:48 PM
He said Subs.php not Subs-Package.php.


Honest mistake, I'm still learning....  Heck I'm even still try to figure out where to look.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: Hj Ahmad Rasyid Hj Ismail on July 28, 2010, 06:19:05 PM
Source folder.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: fullmetalgirl on August 11, 2010, 06:07:09 AM
Hi,

im using this mod for my site...
forum theme: Sis
Forum smf: 1.1.11
http://www.gras-valkparkieten.nl/smf/

its working well but!

now i got 2 questions:
my forum now fills up the entire page,
i want my padding back.. how do i do this? SOLVED

2nd: the navigation bar i added with html is underneath my logo,
is there anyway to make it above my logo? preferably even above my normal smf navigation bar.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: talkaforums.com on August 13, 2010, 11:41:40 PM
So, I installed the headers and footers hack, but found that it doesn't show in the admin panel and when you add a code it does on all forums.

Any help?
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: vbgamer45 on August 14, 2010, 01:24:11 AM
Check your language settings under Server Settings should be set to just english and not english utf8 to make the admin link appear.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: talkaforums.com on August 14, 2010, 06:37:13 PM
Also is this mod made for mulitiforums? It seems to go on every single forum we host when you enter a code.....
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: vbgamer45 on August 14, 2010, 07:34:46 PM
Nope not made for multiforums.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: Midnitelove on August 14, 2010, 10:29:44 PM
I have this mod on my forum (1.1.11) and it seems to be installed correctly. However when I paste my html code in the footer box. I only get a white box where the banner should be. I have my language set for English UTF8. Could it be the code?

Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: vbgamer45 on August 14, 2010, 10:31:21 PM
That looks like a local path so I would say its bad script code
http:///home/quaine/public_html/themes/default/2ac868961b52357658c2.swf
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: Midnitelove on August 14, 2010, 10:36:01 PM
Ok thanks, gotta figure out how to change it.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: Midnitelove on August 14, 2010, 10:56:22 PM
Ok went back to the site where I got the code and did some trouble shooting. It said if I'm seeing a white box instead of the banner then that means the HTML code can't find the Flash SWF file to display. Prior to putting the code in the Global footer box. I uploaded the SWF file to my themes/default/images via FTP. I had to do this so I could have a address to create the code with. Any suggestions? Should I move the file somewhere else instead of images?


ETA: The banner actually shows up when I click on it in cpanel. So I know it works.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: tanshin on August 14, 2010, 11:22:13 PM
I'm not entirely sure on what your URL is but the link you'll probably want to use it:

Code: [Select]
http://SITEURL/themes/default/images/SWFFILE(.swf)
For example:

Code: [Select]
http://forum.example.com/themes/default/images/flashfile.swf
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: Midnitelove on August 14, 2010, 11:41:11 PM
I'm not entirely sure on what your URL is but the link you'll probably want to use it:

Code: [Select]
http://SITEURL/themes/default/images/SWFFILE(.swf)
For example:

Code: [Select]
http://forum.example.com/themes/default/images/flashfile.swf


Thanks so much for responding. I contacted my host and they got it up and running.  :D
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: thechamp on August 15, 2010, 01:25:43 PM
Hi,

I installed this on my forum, but when I type the code or any text in the header box, and click on save, it just returns a blank box again, any ideas?

Thanks
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: vbgamer45 on August 17, 2010, 08:59:44 AM
I would check file permissoins on smfheader.txt and smffooter.txt in the root of your forum.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: thechamp on August 17, 2010, 11:59:06 AM
Hi,

I changed the permission to 777 but still cant get it to work, I tried editing it from notepad then upload it and it works that way.

another thing, im using this with tinyportal and its showing at the bottom of the page on my homepage, how do i make it show up on top?
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: vbgamer45 on August 17, 2010, 02:12:56 PM
Try 755 some hosts don't like 777
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: thechamp on August 18, 2010, 10:01:44 AM
Just tried that and it didnt work, its okay I editied the other way, any idea how I can get this to show on top? Its showing at the bottom using tinyportal?
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: xvp40 on August 26, 2010, 01:47:17 PM
Sorry I had to report this mod as unsafe, it does not work with 2.0rc3 even with a verified manual install, I would have to edit your code to make it work, so I removed it and will make changes the old fashioned  way. FTP and php code editor pro :)

Nice try but develop your code further before releasing it.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: vbgamer45 on August 26, 2010, 02:03:24 PM
I don't see how that is possible. I just installed on RC3 with my test site no errors. And if it was true you think there would be other reports that it does not work with RC3.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: xvp40 on August 26, 2010, 04:38:22 PM
I don't know what to tell you, same on both my site and local server. I may have a mod that doesn't like your mod, but I have tried it on a vanilla install also. The 1.1.11 version works fine, just the 2.0rc3 doesn't.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: vbgamer45 on August 26, 2010, 04:48:19 PM
If nothing else a manual install would do the trick this really a simple mod that just edits a couple files.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: hcfwesker on August 29, 2010, 11:27:34 PM
I'm on smf 1.1.11

What would be the html code to use if I want to add a table just for guests to see?  It's different then from the old code i used on proboards.

Edit.

NM, just found a work around in subs.php :)
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: vbgamer45 on August 29, 2010, 11:56:30 PM
Glad you found a workaround that works for you.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: nadrojcote on August 30, 2010, 05:20:10 PM
is there any way to have global header and footer remove your header and footer code depending on what url you are on? I have some code I want in my footer but when its in there users cannot register for some reason.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: sombra on September 05, 2010, 10:33:18 AM
thanks for this great mod i was wondering is there any way i can use it whit out the header or footer showing in the simpleportal?

Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: vbgamer45 on September 05, 2010, 02:00:21 PM
No built in way you would have to add detection in subs.php to see if you are in sp or not and then do the header or footers code.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: sombra on September 06, 2010, 05:12:46 PM
how can i fix my problem?
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: jmille44 on September 09, 2010, 04:55:19 PM
I change add global header code i.e.:
Code: [Select]
// Global Headers
$headercontents = '';

$noheaders = false;
if (isset($_REQUEST['action']))
{
if ($_REQUEST['action'] == 'dlattach')
$noheaders = true;

}


if(!isset($_REQUEST['xml']) && $noheaders == false)
if(file_exists($boarddir . '/smfheader.txt'))
{
$headercontents = file_get_contents($boarddir . '/smfheader.txt');
echo '<!--Headers-->';
echo $headercontents;
echo '<!--End Headers-->';

}
from after this code
Code: [Select]
if (isset($settings['use_default_images']) && $settings['use_default_images'] == 'defaults' && isset($settings['default_template']))
{
$settings['theme_url'] = $settings['default_theme_url'];
$settings['images_url'] = $settings['default_images_url'];
$settings['theme_dir'] = $settings['default_theme_dir'];
}
to add after this code
Code: [Select]
header('Content-Type: text/html; charset=' . (empty($context['character_set']) ? 'ISO-8859-1' : $context['character_set']));
}
to rectify my problems.

I hope it will be useful to others using this mod and want to change the global header place from under the main menu to above the whole forum.

I have been looking for this feature.  Put he Global Header to the very top of the page.  With your directions I still have no idea how to do this.
What file are you customizing and what code are you adding?  The way you outlined these directions, leaves me a bit clueless.
Does anyone know how to get a header to the top of the page?  Been looking for a solution now for 2 years and no plugin does it yet?

Thanks
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: sombra on September 12, 2010, 08:22:19 AM
thanks for the reply, whats the name of the file i need to edit?
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: Omen on September 16, 2010, 01:48:27 PM
I apologize in advance if this question has been answered. I could not find it. Is there a way to set permissions for this mod? As it is, only admin can alter the headers and footers. Maybe I'm just not seeing it?

Thanks for any help. :)
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: vbgamer45 on September 16, 2010, 02:27:47 PM
No permissions just setup for admin only
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: Omen on September 16, 2010, 03:01:41 PM
Is there any line of code I could add somewhere to achieve this?
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: vbgamer45 on September 16, 2010, 03:26:20 PM
Multiple lines would be needed on in Managepermissions.php

Then the check in Subs.php and checks in the globahf.php file instead of using admin_forum permission
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: Omen on September 17, 2010, 07:03:43 AM
yeah thats beyond what I know how to do. :(
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: kibtwane on September 22, 2010, 10:28:36 PM
"Just insert your html code and you're ready to go"

The only problem with that is some of us are beginners who wouldn't have a clue what code to enter.  Would somebody please tell me what html code I'm supposed to put in the header box.

Many thanks.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: vbgamer45 on September 22, 2010, 10:32:02 PM
Would be any code to style your site or tracking codes in general that is what this mod would be used for.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: iPhoneDestek on September 25, 2010, 03:56:19 PM
Translation by MOD Translator SirtLanVadisi in turkish and turkish-utf8 languages


Code: [Select]

<file name="$themedir/languages/Modifications.turkish.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Global Headers and Footers MOD Translation by SirtLanVadisi.NeT
$txt['globalhf_title'] = 'Global Üst- ve Altbilgiler';
$txt['globalhf_globalheaders'] = 'Global Üstbilgiler:';
$txt['globalhf_globalfooters'] = 'Global Altbilgiler:';
$txt['globalhf_saveglobal'] = 'Üst- ve Altbilgiler kaydet';
$txt['globalhf_settings'] = 'Ayarlar';
// END Global Headers and Footers MOD Translation by SirtLanVadisi.NeT
]]></add>
</operation>
</file>
<file name="$themedir/languages/Modifications.turkish-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Global Headers and Footers MOD Translation by SirtLanVadisi.NeT
$txt['globalhf_title'] = 'Global Ãœst- ve Altbilgiler';
$txt['globalhf_globalheaders'] = 'Global Üstbilgiler:';
$txt['globalhf_globalfooters'] = 'Global Altbilgiler:';
$txt['globalhf_saveglobal'] = 'Ãœst- ve Altbilgiler kaydet';
$txt['globalhf_settings'] = 'Ayarlar';
// END Global Headers and Footers MOD Translation by SirtLanVadisi.NeT
]]></add>
</operation>
</file>






Translation by MOD Translator SirtLanVadisi in german and german-utf8 languages


Code: [Select]

<file name="$themedir/languages/Modifications.german.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Global Headers and Footers MOD Translation by SirtLanVadisi.NeT
$txt['globalhf_title'] = 'Global Kopf- und Fusszeilen';
$txt['globalhf_globalheaders'] = 'Global Kopfzeilen:';
$txt['globalhf_globalfooters'] = 'Global Fusszeilen:';
$txt['globalhf_saveglobal'] = 'Speicher Kopf- und Fusszeile';
$txt['globalhf_settings'] = 'Einstellungen';
// END Global Headers and Footers MOD Translation by SirtLanVadisi.NeT
]]></add>
</operation>
</file>
<file name="$themedir/languages/Modifications.german-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Global Headers and Footers MOD Translation by SirtLanVadisi.NeT
$txt['globalhf_title'] = 'Global Kopf- und Fusszeilen';
$txt['globalhf_globalheaders'] = 'Global Kopfzeilen:';
$txt['globalhf_globalfooters'] = 'Global Fusszeilen:';
$txt['globalhf_saveglobal'] = 'Speicher Kopf- und Fusszeile';
$txt['globalhf_settings'] = 'Einstellungen';
// END Global Headers and Footers MOD translation by SirtLanVadisi.NeT
]]></add>
</operation>
</file>

Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: vbgamer45 on September 25, 2010, 04:11:34 PM
Thanks again for your translations for Turkish
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: scarr105 on November 02, 2010, 04:13:22 PM
Just install this MOD, it almost did what I need it to do. 

It wrapped my header and footer arond the whole forum except 1 part, can someone tell me how to get the part that was left out in the wrapper like the rest of the forum

http://www.inshanelife.com/TTC/community/index.php (http://www.inshanelife.com/TTC/community/index.php)

You can see what I'm talking about at the link above.  I need that section to also be in the layout of the site.

UPDATE:  Currently upgrading to 2.0 RC 4, so this issue doesn't matter anymore.  Once I get my upgrade finished I may still need some help.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: FinsandFur on November 05, 2010, 08:08:46 PM
Download page says this mod is compatible with 2.0 rc4.
When I install I'm getting a "this package is corrupt or non compatible with this version of SMF"...message.

Attempting through package manager.
No other packages installed.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: vbgamer45 on November 05, 2010, 08:59:33 PM
You downloaded it directly from the modsite recently?
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: FinsandFur on November 05, 2010, 09:10:30 PM
 :-[ Nope.
The version hadn't changed so I assumed the file hadn't either. I had the file saved from a prior download.

Totally my fault, here. I downloaded again and all is well.

But while I have your attention, I would like very much to extend my gratitude towards you and your loyalty to this project.
You had the package updated before I was even notified there was an updated version of SMF available.
And then you reply to my post here in just a simple few hours.
Absolutely outstanding ;) And thank you very much. I'm pretty sure I speak for several when I say that.

I appreciate your time, seriously, and I apologize for wasting it on something that turned out to be a greenhorn oversight. ::)
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: vbgamer45 on November 05, 2010, 09:25:09 PM
Thanks for your support I really appreciate it. I only change the version number if do bug fixes,feature additions etc otherwise gets confusing for people using other versions of SMF.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: boazor on December 07, 2010, 02:04:10 PM
i install the mod and its work real good .
but when i use the SimplePortal its make me problem the header and the footer
go down and bit to the right .

any i idea how i can make it work good on the SimplePortal or at least  remove it just from the portal
and work only on the forum.

look here http://www.orbks.com (http://www.orbks.com)
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: radioz on December 22, 2010, 06:52:17 AM
Will an external .css work with the header and footer?  I have a site that these forums that I have built is related to.  One option might be to use modified headers and footers from that site. 

Thanks!

Jon Hall
Title: Re: Global Headers and Footers SMF 1.1.12
Post by: teos55 on December 27, 2010, 07:09:43 AM
 Using Global headers and footers modification for google adss and analytics etc. Works great. But now, as a novice uesr I want to execute

"www.xxxxx.org/index.php?action=recent"

  I tried <a href="?action=recent">View Recent Posts</a> but this only works if member clicks on it. I need the result to be shown ( at least 10 of them)

 in order to see the recent posts on top of the site,  rather then at the bottom.
  Can you pls shed some light on this, how to code it  in global header ?
Thanks in advance

   ---> After further research, it is clear that php not supported. Then the question is: if I copy the php code from /source directory and convert it to htmlt ( I dont know how,will search) . Is it possible to see the recent posts on top of the forum by global headers and footers modification ? Also which php code that types the recent posts to the edn of the forum ? recent.php ?
Please reply.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: vbgamer45 on December 27, 2010, 12:01:44 PM
The mod only supports html code and not php so it will not do what you are asking.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: teos55 on December 27, 2010, 12:39:13 PM
Thanks for your immediate response. I partly managed  by coding something like :
---------------------------------------------------------------------------------------------
<html>
<body>
<p>
----> :
<a href="http://www.???.org/index.php?action=unread">
<img src="http://www.???.org/photos/unread.jpg" alt="Unread" />
</a>
</p>
</body>
</html>
------------------------------------------------------------------------

  But this code puts an icon on top of the forum, if clicked executes unread action.  What I want is : if there is new post,  then it should be immediately displayed
on top of the forum, without clicking, when the page is refreshed.
  I know,  this is not exactly the global headers and footers modificiation issue, but any help will be highly appreciated.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: grynmoors on January 07, 2011, 07:21:01 AM
i install the mod and its work real good .
but when i use the SimplePortal its make me problem the header and the footer
go down and bit to the right .

any i idea how i can make it work good on the SimplePortal or at least  remove it just from the portal
and work only on the forum.

look here http://www.orbks.com (http://www.orbks.com)

I am experiencing the same thing. I am testing/developing a site with default SMF forum 1.1.12 (no template changes).

On Simple Portal 2.3.3. the header/footer mod is appearing towards the bottom of the page and floating to the right, just above the last bottom block (which is in the center).

On SMF, it's appearing in the space between the nagivation button strip and the forum categories listing. Is this how it's supposed to work? I was thinking it would wrap around the entire page, not appear in the middle below the SMF default header which holds the navigation strip..?
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: vbgamer45 on January 07, 2011, 10:57:02 AM
Yes it appears before the menu and before the ending board footer.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: grynmoors on January 07, 2011, 06:57:52 PM
Thanks for the quick reply.  Just so ppl know, on 1.1.12 it's appearing *after* the menu (not before)... and breaks on Simple Portal (appears above the first bottom block).
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: Jessica. on January 15, 2011, 12:50:47 PM
I use 2.0 RC4 and I installed this MOD successfully but I can't find it in the admin panel
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: radioz on January 18, 2011, 08:02:56 AM
Hi!

If anyone saw it, I removed my previous post since I think that I have answered many of my own questions through experimentation.  I also may have made a nicer forum in one night than the one that I worked on for a month.  Maybe I learned something!  :)

I do have a couple of questions though:

1 - I assume that the header is placed above the actual forum section and not above the entire page.  This placement seems a little odd but it sort of works with the really nice SkinMod (http://www.skinmod.EU (http://www.skinmod.EU)) VB4 'look alike' theme.  Is that correct?  Here is the link to my experimental forum - http://www.VintageRadio.com/vrforum (http://www.VintageRadio.com/vrforum).

2 - I wasn't sure if using .css style links was OK or not.  I first tried to link the external (VintageRadio.com) .css but that caused some minor problems with the SMF default theme and lots of problems on the admin pages.  I pared the .css down to what was absolutely needed and nested it in <style> tags with the header code.  That seems to work for both header and footer.  The only problem that I have seen is sort of odd.  The 'Global Headers and Footers' icon is missing.  I don't know if that is related to my code or if it is an external problem.  Save for the question above this seems to be working nicely with the VB4 theme.

Thanks for the nice mod!  If there is a way to put the header at the very top, that would be an interesting option (assuming that how my installation is working is correct!
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: reefforum on February 03, 2011, 01:19:52 PM
installs but there is no option for it in the configuration tab.  using default theme
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: vbgamer45 on February 03, 2011, 02:58:10 PM
Set language to english not english utf8
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: Sefket on February 17, 2011, 11:06:43 AM
I downloaded this for SMF 2.0 RC5 and manually edited the php files. Now, it seems there is many bugs:

http://chaotic-rs.com/forum/index.php?action=helpadmin;help=pollMode

Pages centered:

http://chaotic-rs.com/forum/index.php?topic=42.0

Users online centered:

http://chaotic-rs.com/forum/index.php

Is there a fix for this?
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: w0lfman on March 03, 2011, 09:26:30 PM
I was working installing the Global Header and Footers mod and all was going well.  I pasted a script for a countdown clock to be displayed above the forum and when I hit saved it made the forums disappear.  The problem is it doesnt allow me to see anything in the admin control panel.  Any thoughts or ideas why the forums would be hidden?  All you see is the banner, footer.  I cant get back to the area to correct the problem because its missing.

http://www.herdfans.com/12thman/

Also if you look at my admin control panel in the attachment below everything is missing.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: hcfwesker on March 03, 2011, 09:31:45 PM
Goto you cPanel, legacy file manager, or whichever you prefer, and in the root folder, find ...

smffooter.txt or /smfheader.txt   (whichever one you put that clock code in, and remove it, then save.

Should brinbg the forum back to where it was.  Anytime something fails, or you're going to be editing the headers/footers, I'd recommend having these ready in your cPanel.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: w0lfman on March 03, 2011, 09:45:12 PM
You are awesome!  Thank you so much!
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: hcfwesker on March 03, 2011, 09:51:10 PM
Your welcome.  Good Luck figuring out the clock.  If you want, post the clock code here, in CODE tags, and I may take a look at it for you.  I have a custom html php code i use for adding scripts.  Might work in your case.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: w0lfman on March 03, 2011, 09:54:54 PM
It looks like this...

Code: [Select]
<script language="JavaScript">
TargetDate = "12/31/2020 5:00 AM";
BackColor = "green";
ForeColor = "white";
CountActive = true;
CountStepper = -1;
LeadingZero = true;
DisplayFormat = "%%D%% Days, %%H%% Hours, %%M%% Minutes, %%S%% Seconds.";
FinishMessage = "It is finally here!";
</script>
<script language="JavaScript" src="http://scripts.hashemian.com/js/countdown.js"></script>



<center><font color="ffffff">Countdown to Thundering Herd Football</font></center>

<center><SCRIPT LANGUAGE = "JavaScript">

function countdown_clock(year, month, day, hour, minute, format)
{
//I chose a div as the container for the timer, but
//it can be an input tag inside a form, or anything
//who's displayed content can be changed through
//client-side scripting.
html_code = '<div id="countdown"></div>';

document.write(html_code);

countdown(year, month, day, hour, minute, format);
}

function countdown(year, month, day, hour, minute, format)
{
Today = new Date();
Todays_Year = Today.getFullYear() - 2000;
Todays_Month = Today.getMonth() + 1;

//Convert both today's date and the target date into miliseconds.
Todays_Date = (new Date(Todays_Year, Todays_Month, Today.getDate(),
Today.getHours(), Today.getMinutes(), Today.getSeconds())).getTime();
Target_Date = (new Date(year, month, day, hour, minute, 00)).getTime();

//Find their difference, and convert that into seconds.
Time_Left = Math.round((Target_Date - Todays_Date) / 1000);

if(Time_Left < 0)
Time_Left = 0;

switch(format)
{
case 0:
//The simplest way to display the time left.
document.all.countdown.innerHTML = Time_Left + ' seconds';
break;
case 1:
//More datailed.
days = Math.floor(Time_Left / (60 * 60 * 24));
Time_Left %= (60 * 60 * 24);
hours = Math.floor(Time_Left / (60 * 60));
Time_Left %= (60 * 60);
minutes = Math.floor(Time_Left / 60);
Time_Left %= 60;
seconds = Time_Left;

dps = 's'; hps = 's'; mps = 's'; sps = 's';
//ps is short for plural suffix.
if(days == 1) dps ='';
if(hours == 1) hps ='';
if(minutes == 1) mps ='';
if(seconds == 1) sps ='';

document.all.countdown.innerHTML = days + ' day' + dps + ' ';
document.all.countdown.innerHTML += hours + ' hour' + hps + ' ';
document.all.countdown.innerHTML += minutes + ' minute' + mps + ' and ';
document.all.countdown.innerHTML += seconds + ' second' + sps;
break;
default:
document.all.countdown.innerHTML = Time_Left + ' seconds';
}

//Recursive call, keeps the clock ticking.
setTimeout('countdown(' + year + ',' + month + ',' + day + ',' + hour + ',' + minute + ',' + format + ');', 1000);
}

</SCRIPT>


<script type="text/javascript">
countdown_clock(10, 09, 02, 07, 30, 1);
</script>
 
</center>
<center><font color="ffffff">Marshall @ Ohio State <br> Ohio Stadium - Columbus, OH <br>Thursday, September 2, 2010 7:30 pm <br>  </font></center>
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: Derosion on March 05, 2011, 07:05:09 PM
Great mod, thanks for the share. I'm just having a slight problem while installing the package.

I get this,

(http://img46.imageshack.us/img46/7662/testfailed.png)

I continued and installed it anyways but nothing happens, the package doesn't do anything. Help :o?

I'm using SMF 2.0 RC5. I believe my friend got it to work with RC5 before ???.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: vbgamer45 on March 05, 2011, 07:31:25 PM
You will need to do that install manually that is a keep edit for the control panel link
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: Derosion on March 05, 2011, 08:09:52 PM
You will need to do that install manually that is a keep edit for the control panel link

Sorry, can you break that down a bit more clearer? Not entirely sure what you mean.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: vbgamer45 on March 05, 2011, 11:32:19 PM
Get the manual install instructions from the mod site then apply the edit to the Admin.php manually.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: ccleanerfan on March 16, 2011, 08:00:05 PM
where is this mod located? cant find it on 2.0RC5
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: vbgamer45 on March 16, 2011, 08:43:11 PM
where is this mod located? cant find it on 2.0RC5
Should add a menu area in the admin area called Global Headers and Footers
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: ccleanerfan on March 22, 2011, 10:14:18 PM
where is this mod located? cant find it on 2.0RC5
Should add a menu area in the admin area called Global Headers and Footers

nope, i get all test failures when uninstalling...
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: joey791 on April 10, 2011, 03:17:53 PM
I'm having a problem that even with center tags its still offsetting everything to the right, you can see here at the bottom of the page

http://dadshideout.com/index.php
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: Y. on April 14, 2011, 12:03:18 PM
Hello,
I've setup the "Global Headers and Footers" on smf 1.1.13 in french and everything seemed to went well.

But I don't see the options in the administration.

It may be a language issue.

But I have no clue how to fix it ...
I can translate if needed and share as well.

any ideas?


Y.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: vbgamer45 on April 14, 2011, 12:33:26 PM
Copy text from themes/default/languages/modifications.english.php to themes/default/languages/modications.yourlanguage.php
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: Y. on April 14, 2011, 02:36:38 PM
That's maybe my problem,
both files are empty :

Code: [Select]
<?php
// Version: 1.1; Modifications

?>

Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: vbgamer45 on April 14, 2011, 03:50:55 PM
Yeah that would cause an issue it needs the text add from those mods otherwise you get an empty space
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: jb1drv on April 14, 2011, 06:20:03 PM
I installed this but i dont know where to click/hot to access this. Can anyone please help me?
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: Y. on April 14, 2011, 11:57:01 PM
All fixed now.

I had an extra "/" in my ftp path settings (I put /htdocs/ instead of /htdocs ) ... tricky!
& I had to complete the language files (my forum is in french).

All great now.

thank you for your answer & try to get better question next time :D

Y.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: vbgamer45 on April 15, 2011, 03:46:08 PM
I installed this but i dont know where to click/hot to access this. Can anyone please help me?
Looks like missing language file goto admin -> server settings and set language to just english instead of english utf8
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: jb1drv on April 15, 2011, 04:40:20 PM
I installed this but i dont know where to click/hot to access this. Can anyone please help me?
Looks like missing language file goto admin -> server settings and set language to just english instead of english utf8

the default language is set as english. I think that it installed correctly, but i don't know where to access/edit the header or footer. Its my first forum
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: vbgamer45 on April 15, 2011, 04:41:16 PM
It would be in the admin area a link to global headers/footers
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: jb1drv on April 15, 2011, 05:41:39 PM
It would be in the admin area a link to global headers/footers

There is no link to the global headers footers in the admin area (Pic1).
There is only an option for uninstall(Pic 2).
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: pirc-bw on April 26, 2011, 08:13:50 PM
I have been reading through this.  I seem to have the same problem most do.  I installed the mod but nothing changed in my configurations menu.  I closed my browser and reopened.  No change.  I cleaned my cache.  No change.  I tried a different browser.  No change.

It says that it's installed.  There were no failures when I installed.

Now what?

Screenshot shows both the menu and packages.

Thanks for your help.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: vbgamer45 on April 26, 2011, 08:35:42 PM
Copy text from themes/default/languages/modifications.english.php
To
themes/default/languages/modifications.english-utf8.php
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: pirc-bw on April 26, 2011, 09:35:45 PM
Oh, I see that tiny string of code there at the bottom that was missing.
Thanks this made it visible.  Now to go and customize it. :)
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: vbgamer45 on April 27, 2011, 05:38:10 PM
Glad you got it figure out.
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: ohhhdear on April 28, 2011, 11:51:04 AM
Hello,

I need some help please. I am using 1.1.13 and using a copy of the Default Theme.

www.barkingdogproblem.org/forum

Here is what I have been trying to do. I wanted to add an affiliate link in the footer section.  I created this in a Word Document. But when I add it to the footer-- you can not click it.. It shows just the way I wrote it I copied this from Word Document. For example, it shows the referral code , rather than letting one click.

I need to embed the link---- is that possible on the Footer ?

I am thinking I need to convert it to HTML, rather than copying from Word ?? Is that right? And is there a good link where I can enter the info from Word and turn it into HTML ?? I have already tried that and some of the HTML coding still shows up.

Also, can you make the entire footer or most of clickable? In other words, make the entire ad clickable, rather than saying  --- click here ?

I attached the Word Doc.

 Thank you for your time.







Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: lermontov on April 29, 2011, 07:35:18 AM
preview stops working in all browsers that i've tried except chromium (opera, IE and firefox) after I install this mod - it just says
Quote
fetching preview
and nothing happens...

here are the errors
OPERA
Quote
JavaScript - http://localhost/forum/index.php?action=post;topic=76.0;last_msg=1222
Unknown thread
Uncaught exception: TypeError: Cannot convert 'XMLDoc.getElementsByTagName('smf')[0]' to object
Error thrown at line 70, column 4 in onDocSent(XMLDoc) in http://localhost/forum/index.php?action=post;topic=76.0;last_msg=1222:
    var preview = XMLDoc.getElementsByTagName('smf')[0].getElementsByTagName('preview')[0];
called from line 121, column 4 in <anonymous function: oSendDoc.onreadystatechange>() in http://localhost/forum/themes/default/scripts/script.js?rc5:
    funcCallback.call(oCaller, oSendDoc.responseXML);

FIREFOX
Quote
Error: junk after document element
Source File: http://localhost/forum/index.php?action=post2;board=26;preview;xml
Line: 12, Column: 84
Source Code:
<IMG SRC="../../../../forum.png" ALT="forum" NAME="forum" border="0"/></A></center><?xml version="1.0" encoding="UTF-8"?>

Error: XMLDoc.getElementsByTagName("smf")[0] is undefined
Source File: http://localhost/forum/index.php?action=post;topic=76.0;last_msg=1222
Line: 1893

IE
(http://www.shrani.si/f/G/g8/3HHEqBFQ/clip3.png)
SMF RC5 and default curve theme

any ideas?
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: lermontov on April 29, 2011, 09:16:10 AM
"jump to" also doesn't work and creates a similar error
OPERA
Quote
JavaScript - http://localhost/forum/index.php/topic,76.msg1226.html
Event thread: focus
Uncaught exception: TypeError: Cannot convert 'oXMLDoc.responseXML.getElementsByTagName('smf')[0]' to object
Error thrown at line 981, column 2 in grabJumpToContent() in http://localhost/forum/themes/default/scripts/script.js?rc5:
    var items = oXMLDoc.responseXML.getElementsByTagName('smf')[0].getElementsByTagName('item');
called from line 1, column 0 in <anonymous function>(event):
    grabJumpToContent();

FIREFOX
Quote
Error: junk after document element
Source File: http://localhost/forum/index.php?action=xmlhttp;sa=jumpto;xml
Line: 12, Column: 84
Source Code:
<IMG SRC="../../../../forum.png" ALT="forum" NAME="forum" border="0"/></A></center><?xml version="1.0" encoding="UTF-8"?>
Error: oXMLDoc.responseXML.getElementsByTagName("smf")[0] is undefined
Source File: http://localhost/forum/themes/default/scripts/script.js?rc5
Line: 981
(http://www.shrani.si/f/3k/v/1rFefNtC/clip2.png)
help?
Title: Re: Global Headers and Footers (SMF 2.0 RC3 Now Supported!)
Post by: savy118 on June 13, 2011, 02:46:22 PM
hi just wondering, think im seing right that this mod can place picture or flash up the top of forum and posibly at the bottom.

am i right that headers and footers is another name for head and body code,

i would like to use the space ubove smf tab navigation.

thanks savy
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Jessica. on June 17, 2011, 05:28:49 PM
I'm missing the icon for this in the admin panel is it possible to get the icon to show up

I'm thinking there was no icon in the first place...I don't have it either
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Lolafish on June 18, 2011, 02:32:55 PM
Copy text from themes/default/languages/modifications.english.php
To
themes/default/languages/modifications.english-utf8.php

Hmmmm.  I was having the same issue as everyone else.  I'll tell hubby this.  Thanks!
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: xyxis_fahim on June 18, 2011, 08:50:43 PM
Hi,
After installing it to v2 final header is overlapping the member stats. How can I fix it thanks. See image :
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Lolafish on June 19, 2011, 10:37:25 AM
Copy text from themes/default/languages/modifications.english.php
To
themes/default/languages/modifications.english-utf8.php

Hmmmm.  I was having the same issue as everyone else.  I'll tell hubby this.  Thanks!

That didn't work for us.  We tried parsing for 2.0 as well, and still no go.  Still working on it though........
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Jessica. on June 19, 2011, 06:43:47 PM
is it possible to add an icon to this mod

same. need an icon
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on June 20, 2011, 02:16:44 PM
Yes if you use the global footer portion
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Jessica. on June 23, 2011, 03:07:15 PM
I found the way to fix the broken image I have. I went to Sources/Admin.php,

find:

Code: [Select]
'globalhf' => array(
'label' => $txt['globalhf_title'],
'file' => 'globalhf2.php',
'function' => 'globalhf',
'custom_url' => $scripturl . '?action=admin;area=globalhf',
'icon' => ' ',
'subsections' => array(
'view' => array($txt['globalhf_settings']),
),
),

see the 'icon'?

I put themes.gif between the ' but you can put whatever icon you want, though it has to be in your themes/default/images/admin folder I think
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on June 23, 2011, 03:19:24 PM
how do I align a link on the footer [ left] [ /left] code doesn't work
You would have to use html code like <div align="left">content here</div>
Title: IE8 and GH does not jive
Post by: jmille44 on June 27, 2011, 06:55:07 PM
Hopefully someone can help me.

IE8 displays my forum left justified and not centered on the page.

I have installed Global Headers version 2.0 and running SMF 2.0 GM.

When I remove the GH code from subs.php the forum is centered again. 
Does anyone know how to fix IE8 from displaying the forum left justified instead of center when you have
GH installed?

Example:  http://www.vintagezodiacs.com/zforums/index.php

Thanks!

ETA:  I donated money to your paypal link a few weeks ago, hoping you would look at my problem.
Let me know if you have any time this week to think about why my Global Headers is messing up
the layout in IE8 for my forums?  Thanks
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: fullmetalgirl on July 18, 2011, 11:22:38 AM
Hi,

is it possible to activate the footer only on fridays?
while the header is always active?

It would be THE solution to a problem i'm having.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: jmille44 on July 21, 2011, 04:27:19 PM
Hi,

is it possible to activate the footer only on fridays?
while the header is always active?

It would be THE solution to a problem i'm having.

Donate some money to the developer and see if you get an answer?  I am still waiting.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on July 21, 2011, 04:42:38 PM
Yeah that is a really custom request to show stuff only on certain days of the week.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: fullmetalgirl on July 23, 2011, 05:05:05 AM
Hmm,
i was afraid of that..
i wouldnt know what a normal price for that would be (i would be willing to pay money for it though)

So if anyone is interested they can contact me,
but i guess i'm going to have to find a diffrent answer.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on July 23, 2011, 05:59:12 PM
Would depend on how it work if you just want the footers on or off depending for a certain weekday I can do that for $15
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: hcfwesker on July 24, 2011, 10:46:31 PM
Hey, vb, just wanted to know, I ONLY want the Headers to appear on the Board Index page, what codes would I have to move, or edit, to make this happen.  I still want footers to appear on every page, but just the Headers on the home page of the forum, Board Index.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on July 24, 2011, 11:03:42 PM
Best way to do it is add a flag in $context when board index is loaded
And modify Subs.php to check if that flag is set if so so the headers/footers
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: jmille44 on July 25, 2011, 02:27:51 PM
Hi vbgamer45,

I donated $25 to you to look into my issue with how my website displays in IE8 with GH.

Let me know if you can look at this?  Maybe you didn't see my post on your website or on the previous page here?

Thanks
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on July 25, 2011, 02:32:51 PM
Send me the link didn't realized you donated.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: jmille44 on July 25, 2011, 07:45:30 PM
http://www.vintagezodiacs.com/zforums/

In IE8 the forum displays on the left and the header is in the middle.
I'd like everything center justified like all other browsers show.

Half my users are using IE8 :(

Paypal Transaction ID #61D79287670868812
$25.99
Jun 28, 2011

Thanks!
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on July 25, 2011, 07:52:14 PM
Couple issues. Did you move the headers code in the global headers footers mod?
Since I seen you have code placed before the <html> tag

Second in your footer code you have no opening table tags and start out with </td></tr> which should really be replaced with <table>
Code: [Select]
</td>
      </tr>
      <tr>

        <td height="27" colspan="2" background="../bar3.jpg"> </td>
      </tr>
      <tr>
        <td colspan="2"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
          <tr>
            <td class="style5"><p>Copyright©  2011, All Rights Reserved. This site may not be reproduced.<br>
              <span class="style1 style4"><strong><a href="../advertising.php">Advertising Information</a></strong>  |  </span><strong><a href="../privacypolicy.php">Privacy Policy</a></strong><span class="style1 style4">  |  <strong><a href="../aboutus.php">About Us</a></strong></span>     <a href=http://varietywatches.com><strong>Discount Watches</strong></a></p></td>

            <td width="15%" rowspan="3" valign="top"><div align="right"><img src="../zSign.jpg" alt="Zodiac Sign" width="148" height="90" hspace="10" vspace="5" border="0" align="top"></div></td>
          </tr>
          <tr>
            <td width="85%" nowrap><p><span class="style5">Visit the Zodiac manufacture's web site a</span><span class="style5">t</span><span class="style1 style2"><span class="style4"> <a href="http://www.zodiacwatches.com" target="_blank">www.zodiacwatches.com</a></span></span> <span class="style5">for all your post-1990 Zodiac needs</span>.<br> 
              <span class="style5"><strong>This web site is not affiliated with Fossil, Inc, current Zodiac brand owners</strong></span></p></td>

          </tr>
          <tr>
            <td><!-- Start of StatCounter Code -->
                <script type="text/javascript">
var sc_project=4558823;
var sc_invisible=1;
var sc_partition=34;
var sc_click_stat=1;
var sc_security="132ba861";
          </script>
                <script type="text/javascript"
src="http://www.statcounter.com/counter/counter.js"></script>
                <noscript>
                  <div
class="statcounter"><a title="myspace visitor counter"
href="http://www.statcounter.com/myspace/"
target="_blank"><img class="statcounter"
src="http://c.statcounter.com/4558823/0/132ba861/1/"
alt="myspace visitor counter" ></a></div>
                  </noscript>
                <!-- End of StatCounter Code --></td>

          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
<!-- Start Quantcast tag -->
<script type="text/javascript">
_qoptions={
qacct:"p-c15jMIZBtIWPY"
};
</script>
<script type="text/javascript" src="http://edge.quantserve.com/quant.js"></script>
<noscript>
<img src="http://pixel.quantserve.com/pixel/p-c15jMIZBtIWPY.gif" style="display: none;" border="0" height="1" width="1" alt="Quantcast"/>

</noscript>
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: jmille44 on July 25, 2011, 08:52:11 PM
I have moved the GH code in Subs.php to after this code: header('Content-Type: text/html; charset=' . (empty($context['character_set']) ? 'ISO-8859-1' : $context['character_set'])); } In order to get the header to the very top of the page. Seems to work in most all browsers, except for IE8 which throws the forum to be left justified, and then the page looks terrible.

I change the footer code or even remove it to see if that helps.  Thanks

Removing the footer code does not improve it.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on July 25, 2011, 08:54:13 PM
Are you using only one theme or do you have many that use. If only one I think it would be better to make a change to the index.template.php instead.

This might have something to do with the IE8 display issues.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: jmille44 on July 25, 2011, 08:59:38 PM
I am only using one theme, the default.

Where would I ender the code in that file?  Would it be the same code?

Should I then remove the code from the subs.php file?
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on July 25, 2011, 09:08:58 PM
The best place I would put it would be after <body> tag in themes/default/index.template.php
And after the </body>
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: jmille44 on July 25, 2011, 09:12:52 PM
Hmm, that did not work, now I have 2 headers on my main website.

http://www.vintagezodiacs.com

And the forum is still messed up left in IE8

I'm thinking the solution may not lie in using the index.template.php file because that then adds another header
on my main website that is outside of the forum software.

Hmm, very strange behavior, any ideas?
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: jmille44 on July 25, 2011, 09:18:32 PM
Is this the correct code to place:

// Global Headers
      $headercontents = '';
      
      $noheaders = false;
      if (isset($_REQUEST['action']))
      {
         if ($_REQUEST['action'] == 'dlattach')
            $noheaders = true;
      
      }
      
      
      if(!isset($_REQUEST['xml']) && $noheaders == false)
         if(file_exists($boarddir . '/smfheader.txt'))
         {
            $headercontents = file_get_contents($boarddir . '/smfheader.txt');
            echo '<!--Headers-->';
            echo $headercontents;
            echo '<!--End Headers-->';
         
         }
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: jmille44 on July 25, 2011, 09:51:18 PM
I put it back in the Subs.php file and it fixed the double header on the website.

Starting over for a fix.  Any ideas?

Thanks
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on July 25, 2011, 10:11:50 PM
If you add the code to the index.template.php then you must remove it from the Sources/Subs.php
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: jmille44 on July 25, 2011, 10:31:38 PM
Yes, I removed it from the Subs then put it in the index.template.php file.

That created 2 headers outside of my forum in the main website part that is not part of the forum.

I can't have 2 headers outside the forum stacked up on each other, so I removed the code from the index.template.php file.
That solved the double header issue.

Now I am back to having the code in the Subs.php file and still have my original problem.

Trust me, I have been working on this issue now for about 1 year and have no solution, that is why I donated money.

Let me know if you can do anything do help.  Thanks
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on July 25, 2011, 10:40:07 PM
It is caused by moving the code to the top of the page. If you add it after the <body> tag should be ok I did some testing on myside.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: jmille44 on July 25, 2011, 10:50:02 PM
What file are you referring to?  Please include details, I am changing between the 2 files and testing non stop, moving after what you suggested and still same issue.

This tag?  Where exactly do I put it?  I have tried after <body>
I have tried after <body>';
I have tried after
<body>';
}

And tried after:
</head>
<body>';
}

Now The footer works and no header in the file:  index.template.php

Here is my code:

echo '
</head>
<body>';// Global Headers
      $headercontents = '';
      
      $noheaders = false;
      if (isset($_REQUEST['action']))
      {
         if ($_REQUEST['action'] == 'dlattach')
            $noheaders = true;
      
      }
      
      
      if(!isset($_REQUEST['xml']) && $noheaders == false)
         if(file_exists($boarddir . '/smfheader.txt'))
         {
            $headercontents = file_get_contents($boarddir . '/smfheader.txt');
            echo '<!--Headers-->';
            echo $headercontents;
            echo '<!--End Headers-->';
         
         }
}

function template_body_above()
{
   global $context, $settings, $options, $scripturl, $txt, $modSettings;

Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on July 25, 2011, 11:39:56 PM
Make sure you add $boarddir to globals
or after </body>';
Like
global $boarddir ;
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: dooodle on July 26, 2011, 12:21:39 AM
Beloved friends,

I am using SMF 2.0 and I had installed Global Headers and Footers mod without any problem. My query is I do not find it in configuration panel.

Solution for this is given as "Copy text from themes/default/languages/modifications.english.php to themes/default/languages/modications.yourlanguage.php" for SMF 1 version. Is this the same for SMF 2 tooo???

and if so how to copy text? ( i guess the text is the contents from the php file)

Forgive me for my ignorance.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: jmille44 on July 26, 2011, 01:04:44 AM
Make sure you add $boarddir to globals
or after </body>';
Like
global $boarddir ;

Can you elaborate on this?  What file would this go in?  Subs.php ?
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on July 26, 2011, 01:15:50 AM
no back in index.template.php where you try to add code before.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: jmille44 on July 26, 2011, 02:00:07 AM
I put it back in.  Now the header is at the very bottom of the page but everything is centered.
Just have to get it to the top.  Here is my code:

</body></html>';global $boarddir ;
// Global Headers
      $headercontents = '';
      
      $noheaders = false;
      if (isset($_REQUEST['action']))
      {
         if ($_REQUEST['action'] == 'dlattach')
            $noheaders = true;
      
      }
      
      
      if(!isset($_REQUEST['xml']) && $noheaders == false)
         if(file_exists($boarddir . '/smfheader.txt'))
         {
            $headercontents = file_get_contents($boarddir . '/smfheader.txt');
            echo '<!--Headers-->';
            echo $headercontents;
            echo '<!--End Headers-->';
         
         }
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: jmille44 on July 26, 2011, 02:29:41 AM
Figured it out.  Your placement was correct.

Dreamweaver messes up the code.

Had to use textedit for the file and then it worked fine.

Thanks for the help!
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!) - HELP PLEASE DATABASE Q
Post by: SN95Forums on July 29, 2011, 05:03:39 PM
Hey all,

Im having an issue, I exported my database with this deactivated but not un-installed.

What I need to know is what does this modify in my database so I can MANUALLY erase it?

Thanks in advance,
Matt
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on July 29, 2011, 05:07:33 PM
Modify header.txt and footer.txt
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: SN95Forums on July 29, 2011, 05:18:10 PM
So it has no effect on my database? You can see my problem here in this thread: http://www.simplemachines.org/community/index.php?topic=444329.0

your support and mods are greatly appreciated and I thank you in advance for the help!
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on July 29, 2011, 05:21:50 PM
This mod does not change or affect the database of your forum
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: SN95Forums on July 29, 2011, 05:46:56 PM
great thanks!
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Inti31 on August 12, 2011, 06:05:50 AM
this mod works fine  - thx for that.

Just one thing: I don't have an icon for the header/footer area in configuration

see shot:
(http://s4.postimage.org/1jv12rsro/image.jpg) (http://postimage.org/image/1jv12rsro/)

It would be nice if someone could assist me...

cheers Inti31

PS: solved: http://www.simplemachines.org/community/index.php?topic=103464.msg3086108#msg3086108
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on August 12, 2011, 12:56:14 PM
Someone post a fixed a couple posts back for that.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Inti31 on August 12, 2011, 03:38:45 PM
found it: http://www.simplemachines.org/community/index.php?topic=103464.msg3086108#msg3086108

thx for advising me...

cheers inti31
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: bstearns on September 07, 2011, 10:39:52 PM
Within the mod there is a place to donate using paypal.

The link did NOT work for me.  :o
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on September 07, 2011, 10:45:41 PM
hmm will need to check it out. I have a donate link on http://www.smfhacks.com though
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: bstearns on September 07, 2011, 11:30:45 PM
I was able to send you a couple bucks....  :o

Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Monkey50 on September 14, 2011, 01:03:27 PM
does the code have to be html is there a way to make picture and normal writing html
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on September 14, 2011, 01:15:43 PM
Has to be in html at the moment.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Monkey50 on September 15, 2011, 05:02:20 AM
is there a way to make pictures in to html
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on September 15, 2011, 09:11:12 AM
Yes <img src="http://www.site.com/image.jpg" />
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Monkey50 on September 15, 2011, 10:00:00 AM
would i have to upload my picture to a picture site like photobucket or upload to my file manager do i ahve to add <img src= for every picture
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on September 15, 2011, 12:50:53 PM
Yes you would need to uploaded to.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: bstearns on September 15, 2011, 05:13:47 PM
Host them then use HTML to link to them...
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Monkey50 on September 16, 2011, 07:43:14 AM
thanks. is there a way to make the picture in to a link aswell so if people click on it it takes them to where i pick
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: apieandpint on November 13, 2011, 05:59:42 AM
I'm receiving the folling error when trying to install this mod to my forum.



This is the first time I've tried to install it.

I have the following mods already instlled.

(http://i1123.photobucket.com/albums/l554/apieandpint/screen1.png)

I'm on forum 2.01 at www.apieandpint.co.uk/Down the pub/ (http://www.apieandpint.co.uk/Down the pub/)
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on November 13, 2011, 12:02:12 PM
Install then make the one change to admin.php manually.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: apieandpint on November 13, 2011, 03:03:08 PM
What change is it I'm manually making to the admin.php?

I've uploaded my banner image to photobucket. I was assuming that I'd have to paste the direct url somewhere?
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on November 14, 2011, 02:14:37 AM
Admin.php to find changes go on mod site for this mod and grab the manual install instructions and just do the change for the Admin.php file.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: hcfwesker on November 14, 2011, 02:52:39 AM
thanks. is there a way to make the picture in to a link aswell so if people click on it it takes them to where i pick

<a href="LINK YOU WANT IMAGE TO REDIRECT TO"><img src="IMAGE LINK"></a>
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: apieandpint on November 14, 2011, 06:25:15 PM
OK this is driving me nuts.

I installed this, it looked like it wasn't working correctly so I uninstalled it and tried to reinstall it.

Again, it didn't look like itt worked, so got some advice, followed the manual install and got it to work. But it duplicated my header image. Thinking this may have been something I had done, I uninstalled to give it one last try and now its triplicating my image header!!!!!

Whats going on??
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: hcfwesker on November 14, 2011, 09:10:54 PM
Somnething's not installing, so the next 2 times you installed, that portion probably displayed the header 3 times.  Check all edits made to all files, and search for duplicate codes.  I'd start in Sources/Load.php or a themes index.template.php file
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: apieandpint on November 15, 2011, 03:32:39 PM
Somnething's not installing, so the next 2 times you installed, that portion probably displayed the header 3 times.  Check all edits made to all files, and search for duplicate codes.  I'd start in Sources/Load.php or a themes index.template.php file

Many thanks hcfwesker. My issue is now solved. The \\Global Headers and \\Global Footers code was triplicated in the sources/sub.php

Removed 2 of each and all back to normal with only 1 banner and 1 footer showing.

 ;D
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on November 15, 2011, 03:34:12 PM
Glad you were able to get it working correctly!
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: apieandpint on November 16, 2011, 06:24:54 PM
Another question.

I have two small banners. Is it possible to show them side by side rather than one under the other, without stitching them together? I want each banner to be able to link to a different site?
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on November 16, 2011, 06:54:05 PM
Yes you could do that using an html table.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: apieandpint on November 17, 2011, 07:25:57 AM
Many thanks vbgamer45.

All working as I want it to now. Great mod!! ;D
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on November 17, 2011, 09:55:50 AM
NP glad you were able to get it working how you wanted.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: newjay1000 on December 08, 2011, 06:33:19 AM
I'm doing the manual install, and I just simply cannot find this code in my Admin.php file:

Code: [Select]
'current_theme' => array(
'label' => $txt['theme_current_settings'],

I'm using the SMF Default Theme Curve, though I don't think that should matter. Can you tell me at about what line this string of code would generally be found on? Any idea why I would not have this in my Admin.php file?

Thanks,
Jason
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on December 08, 2011, 09:16:25 AM
It's part of the big admin menu not sure why you do not have that in the file that is the current them link in your admin area.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: newjay1000 on December 08, 2011, 10:21:45 AM
I have no idea why that code is not there. At about what line would it be? I can go ahead and try to put in the additional code and just see if I can get it to work.

Thanks,
Jason
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on December 08, 2011, 10:44:51 AM
Around line 190 for SMF 2.0
Another key piece of code in that area
Code: [Select]
'config' => array(
'title' => $txt['admin_config'],
'permission' => array('admin_forum'),
'areas' => array(
'corefeatures' => array(
'label' => $txt['core_settings_title'],
'file' => 'ManageSettings.php',
'function' => 'ModifyCoreFeatures',
'icon' => 'corefeatures.gif',
),
'featuresettings' => array(
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: hcfwesker on December 08, 2011, 07:42:03 PM
I have no idea why that code is not there. At about what line would it be? I can go ahead and try to put in the additional code and just see if I can get it to work.

Thanks,
Jason

are you going through the file and trying to find them 1 line at a time with your own eyes.  I'm not sure if you are but I made this mistake for the longest time til I knew I could use CTRL + F to search php files.   So, ,maybe you know, but just saying so just in case you didn't.

That line has to be there, otherwise you wouldn't be able to modify and theme settings in your admin panel.

Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: ACA_web on December 09, 2011, 06:31:58 PM
Just moved to 2.0.1 from 1.1.15 and I'm able to get Global Headers and footers working with the Core Theme, but when I try to use the Default Curve theme my footer is not showing up. Any hints on how to best troubleshoot this?
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: ACA_web on December 09, 2011, 07:41:58 PM
Just moved to 2.0.1 from 1.1.15 and I'm able to get Global Headers and footers working with the Core Theme, but when I try to use the Default Curve theme my footer is not showing up. Any hints on how to best troubleshoot this?

I got this working, it was a mistake on my end. Sorry for the post.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Silphonix on December 17, 2011, 07:41:28 PM
Hi... I installed the Mod, it work perfect, but... how can i center it ? because it shows me all on the left :|
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on December 17, 2011, 07:53:45 PM
You can use center tags to align anycode that you enter.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Chin35char on January 03, 2012, 02:36:08 AM
I installed it to my forum but it doesn't show up anywhere in my Admin Panel to actually use the mod. It's not under the configuration settings at all.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on January 03, 2012, 12:16:55 PM
There should be an Headers/Footers link in the amin panel area. If not make sure you language is set to english
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: fullmoonya on January 11, 2012, 09:18:39 PM
i wish the page created is added to the link tree in this mod.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on January 11, 2012, 09:58:14 PM
This mod does not create pages.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: fullmoonya on January 12, 2012, 05:11:41 AM
This mod does not create pages.
oops. sorry, i have posted in a wrong thread. I should post that in custom page mod. really sorry.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on January 12, 2012, 01:17:27 PM
No problem.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Bluearrow on January 30, 2012, 07:14:56 AM
Somnething's not installing, so the next 2 times you installed, that portion probably displayed the header 3 times.  Check all edits made to all files, and search for duplicate codes.  I'd start in Sources/Load.php or a themes index.template.php file
Many thanks hcfwesker. My issue is now solved. The \\Global Headers and \\Global Footers code was triplicated in the sources/sub.php
Removed 2 of each and all back to normal with only 1 banner and 1 footer showing.
 ;D

I had same problem. header was displaying twice. Found those code parts in Sub.php were duplicated.

I edited all those code parts manually and then uploaded files and then uploaded the zip file.

So we don't really need to edit those file manually ?
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: Kindred on January 30, 2012, 10:59:35 PM
hi vbgamer...

I am actually a little confused... the "global header" section is not actually a HEADER - it appears under the main menu/linktree

and on a forum with EZPortal, it appears below the first ezblock...
http://test.turtleshellprod.com/index.php
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: fullmoonya on January 30, 2012, 11:57:55 PM
hi vbgamer...

I am actually a little confused... the "global header" section is not actually a HEADER - it appears under the main menu/linktree

and on a forum with EZPortal, it appears below the first ezblock...
http://test.turtleshellprod.com/index.php

that's my problem too. i hope to put the header at the verytop of the forum. like i want to request in ezportal support thread.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on January 31, 2012, 03:45:45 PM
Requires some theme edits then. Current version uses layers or adds the code before the layers call with SMF 2.0 I belive.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: hcfwesker on January 31, 2012, 03:49:04 PM
I just moved the  // Global Headers   & // Global Footers   code from Sources/Subs.php to where i wanted it to be displayed in each Theme's index.template for all pages, or BoardIdex.template for just the index page.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post by: vbgamer45 on January 31, 2012, 03:50:13 PM
That works but if you have custom themes or multiple themes you would have to do it manually for each one.
Title: Re: Global Headers and Footers (SMF 2.0 Now Supported!)
Post