Link to the mod (https://custom.simplemachines.org/index.php?mod=351)
Brief Summary:
This modification allows you to add global content to three different parts of your forum.
- Head <head></head> Content
- Header Content (below linktree)
- Footer Content (base of wrapper)
With the ability to add HTML, or parse BBC for either field!
Compatibility:
- SMF 2.1.x
- SMF 2.0.x
- SMF 1.1.x
Changelog:
v2.0.1 (r5.10.12):- Complete rewrite for both SMF 1.1.x and SMF 2.0.x.
- Head Support Added.
- BBC Support Toggles.
SMFHacks.com:
- SMF Trader System
- SMF Gallery
- SMF Store
- Downloads System
- Newsletter Pro
- SMF Classifieds
- Ad Seller Pro
- ...and more!
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.
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
Yes I'm getting this problem too :(
Although apart from that this mod is cool
New version released!
Fixed quoting problems and previewing problems.
Thanks to Grudge for finding out the problem.
still needs work
installing this completely made my layout go beyond the limit of the screen (width wise)
so i had to uninstall
Which part caused that?
Going to the admin section of global headers and footers? or the whole forum?
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
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
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????
Should be called Global Headers and Footers in your admin.
Configuration
Features and Options
Arcade
Server Settings
Current Theme
Themes and Layout
Global Headers and Footers
Ad Management
where can I edit the header and footer text later or when I wish to have a new text?
Nice mod dude :)
Quote from: 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?
the same place
when you back to edit tho, ur text is no longer there :(
Updated the mod tell me if it fixed that problem.
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
this thing doesn't want to install on my forum .the forum says its corrupt. : (
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"
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.
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.
Quote from: 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.
You can use html <center></center> to center what you want.
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.
I cant uninstall the mod :S
Help me!
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?
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.
Quote from: 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.
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?
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?
Where do I upload this Mod to? What directory or path?
To the packages folder of your SMF Forum then you go to the package manager to install it.
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
Are you running on another language?
English
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.
That just pulls up our index page/ home page
Then the mod did not install.
Should I uninstall then reinstall?
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
I would check the permissions on the files to see it is allowed to edit and add files.
This is to stressfull before the holidays..LOL I have all permissions set to write. Still no luck. bummer
Could I manually FTP/upload these ?
Yes you can manually install it litttle bit complex though
Check out this article
http://docs.simplemachines.org/index.php?topic=400
any other ideas why the Package Manager wont finish the job
Does the mod support php?
I entered this into the header box, and it messed up my layout:
<?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 Intent. The name was not chosen for reference to violence, but for reference to how our loyal members help keep our forum alive. We strive to offer interesting and funny topics, as well as special events in-forum.<br /><br />If you decide to join our forums, then 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 arcade, access to our script library and access to our shop, where you can buy email addresses and even webspace for posts.<br /><br />Still not convinced? Have 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>
?>
It does not support PHP.
Someway I could change the code so it would ?
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.
So if I do this, I won't be able to use html? Hmm
I think so I haven't tested it.
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 :)
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.
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 ???
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. :)
Any idea why it's throwing this error in the log constantly ?
8: Undefined index: sa
File:/smf/Sources/globalhf.php
Line: 28
TIA,
Veldfire
Quote from: veldfire on December 30, 2006, 10:24:51 PM
Any idea why it's throwing this error in the log constantly ?
8: Undefined index: sa
File:/smf/Sources/globalhf.php
Line: 28
TIA,
Veldfire
Fixed.
Quote from: vbgamer45 on December 31, 2006, 10:01:16 AM
Quote from: veldfire on December 30, 2006, 10:24:51 PM
Any idea why it's throwing this error in the log constantly ?
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 ?
Download the file get the globalhf.php file and copy that to your sources folder.
Quote from: vbgamer45 on December 31, 2006, 10:22:17 AM
Download the file get the globalhf.php file and copy that to your sources folder.
Ok, thank you very much !
Is there a way to set the header so it only appears on the board index rather than on every page?
Quote from: 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?
No option for that.
If you wish to do that edit BoardIndex.template.php in your themes folder.
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?
Its actually not touching the templates at in order to make it work on all themes.
It is editing Sources/Subs.php
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?
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
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?
Quote from: AnneN on January 13, 2007, 11:35:13 AM
So how would I need to modify Subs.php please?
I am going to ask this question myself as well.
I have found the Sub.php file but am not sure how to modify it to get the header to be at the very top.
Any input would be appreciated.
Quote from: AnneN on January 13, 2007, 11:35:13 AM
That's what I want (I think! ;)) - I'm trying to replace a frameset, where the topframe is a row of ad boxes and SMF is the bottom frame, with a fixed row of ads in the same position using this mod. The place I'm testing this out is here: http://www.glassoholic.org.uk/smf/ and I want the mod to replace the frameset.. both are in place at the moment whilst I try and make it work!
I think ad manager is what you need, although I would like the header to be at the top to so I could use it to locate a banner.
So how would I need to modify Subs.php please?
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"
BUMPAGE? I really need help on this :(
EDIT: Used the Ad Management mod instead...
good mod. i love it
So where do I upload these files to?? and where do I copy and paste my banner ads code??
thanks
This isn't really suitable for ads, ad management is what you want for that
I tired the ad management but my ads don't show
You may need to modify your theme manually.
See here http://www.smfads.com/forums/index.php?topic=475.0
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.
Quote from: webmistress on January 28, 2007, 09:43:40 AM
Apply Filter: Only show the errors with the same message
8: Undefined index: globalhf_title
File: /home/file/html/sitefile/Sources/Subs.php
Line: 2737
I downloaded this mod in January 2007 and I get this error code.
I see where others have gotten the error. I don't think I need to download a new File:/smf/Sources/globalhf.php file since I have the latest version. Any way I can resolve this error?
What is the globalf.php_title any way? What I mean is what does this refer to? Index page?
Can anyone tell me where the 'Ad Management mod" deposits the ads on a page?
Thank you.
off topic but it deposits the ads where you tell it to in features and options
VBGamer :
I just read the above posts about where the global header and footer appear.
I assumed (wrongly) that they would be at the top and bottom of the screen too. Is there a site I can look at that is using the header and footer so I can get a better idea?
~thanks
Global header and footer appears after template_above and before template_below functions in a theme.
Quote from: webmistress on January 28, 2007, 09:43:40 AM
Apply Filter: Only show the errors with the same message
8: Undefined index: globalhf_title
File: /home/file/html/sitefile/Sources/Subs.php
Line: 2737
I downloaded this mod in January 2007 and I get this error code.
I see where others have gotten the error. I don't think I need to download a new File:/smf/Sources/globalhf.php file since I have the latest version. Any way I can resolve this error?
What is the globalf.php_title any way? What I mean is what does this refer to? Index page?
vbgamer45, I posted this and it landed on the previous page. Any idea how I can resolve this error code?
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.
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.
Quote from: 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.
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)
after the menu and navigation and before the copyright links
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?
Yes you can do that.
cool thanks very much, I will go test it out on my testforum during the week :)
one more question, this works with tiny portal installed, yes?
yes it does, I use it with TP
cool thanks
It doubles up any text I put in :'(
Quote from: caryb on February 05, 2007, 06:25:33 AM
It doubles up any text I put in :'(
Maybe you installed the mod twice
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?
the add_mod?
Quote from: perplexed on February 07, 2007, 07:59:08 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
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
Quote from: 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?
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
Quote from: sparky33 on February 08, 2007, 12:54:25 PM
Quote from: 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?
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
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.
Quote from: 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.
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.
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
Quote from: 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
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
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
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?
Quote from: 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
Thanks sparky33, I will give it a try. Hope I can get the hand of this
Quote from: 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?
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?
awesome mod....you guys come up with the coolest ideas ever. thx!
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!
Bump! :)
hi if im using html where do i put my css file and the images that i need to use
Quote from: 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!
It may be that it's not compatible with 1.1.2, or that you didn't use the default theme for the installation.
Quote from: 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
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.
I install it, and it says its succesfull.. but there are no additional options. I can't find the headers/footers.
Admin>Configuration
Its not under configuration. I don't think its installing right, even though it says it installed succesfully.
Hi Harmsway
Check your Forum Error Log, if you haven't already ;)
Did you install it whilst in the default theme?
Quote from: 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!
yes, this mod is compatible with 1.1.2
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
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
Quote8: 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
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
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
Quote from: 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.
I have the same problem...
Quote from: sparky33 on March 04, 2007, 03:33:43 PM
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... :'(
Quote from: moon22 on April 16, 2007, 09:09:01 AM
Quote from: 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.
Quote from: sparky33 on March 04, 2007, 03:33:43 PM
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?
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.
/* 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.
<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.
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.
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.
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
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?
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?
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?
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...
Quote from: icwater on May 08, 2007, 11:19:16 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.
Quote from: KGIII on May 09, 2007, 02:00:57 PM
Quote from: icwater on May 08, 2007, 11:19:16 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
<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
<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;" />
<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 ' > ';
}
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 , '"> </td>';
// Show the [home] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </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 . '"> </td>' : '';
// Show the [help] button.
echo ($current_action == 'help' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </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 . '"> </td>' : '';
// How about the [search] button?
if ($context['allow_search'])
echo ($current_action == 'search' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </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 . '"> </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 . '"> </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 . '"> </td>' : '';
// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo ($current_action == 'profile' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </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 . '"> </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 . '"> </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 . '"> </td>' : '';
// The [calendar]!
if ($context['allow_calendar'])
echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </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 . '"> </td>' : '';
// the [member] list button
if ($context['allow_memberlist'])
echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </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 . '"> </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 . '"> </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 . '"> </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 . '"> </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 . '"> </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 . '"> </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 . '"> </td>' : '';
// The end of tab section.
echo '
<td class="maintab_' , $last , '"> </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> </td>';
echo '
<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'last' : 'first' , '"> </td>
<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_back">', implode(' | ', $button_strip) , '</td>
<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'first' : 'last' , '"> </td>';
}
?>
i'm just a bit lost as to where to put it without breaking the forum code
never mind i'm beyond that, thanks KGIII
there is a common problem with this , it installs , but is nowhere to be seen ?
The creator is on hiatus... So apparently a "global header" is not possible until he comes back around. Sucks hu ... :(
anyone...
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
What theme and language are using as a default in your forum?
Using English 1.1.2 and smf default theme.
No members no mods fresh install .
What about the language?
Ummm English?
I installed 1.1.2 fresh no modification or other packs.
Try making sure that you are using English and not English utf8 as that can mess up some mods.
how would I have got English utf8 ?
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.
Quote from: Diamondcomputer on June 07, 2007, 08:40:13 PM
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
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
Quote from: 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?
Been awhile since I checked back in on this. Is this issue resolved now or still in the same 'limbo' world?
would like to know if this mod is workin well too. and if so, i'll gladly install it on my forum :)
I have it running in SMF 1.1.3 with no issues.
great. I'll try ;D
This is running perfectly in my SMF 1.1.3 install.. Thanks!!
This MOD work for me. I use smf1.1.3 Thai language.
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.
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.
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
Thanks auspool...it's good of you to make that available.
im having a forum error. anyone?
8: Undefined index: globalhf_title
File: /home/nothingb/public_html/forum/Sources/Subs.php
Line: 2789
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)
and they are not showing up.
@ kosher_travel
You might be better asking in General English Support as your query doesn't appear to be related to this particular mod.
kosher_travel, use the Ads_mod instead as this does what you want it to do. :)
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>
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.
Erm, I cannot view the link in my admin section... :-/
EDIT:
Problem solved. It was the language problem.
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...
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/)
Quote from: drenalineRider 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...
That's what happened to mine too.
Quote from: writerrobert680 on July 26, 2007, 06:22:39 PM
Quote from: drenalineRider 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...
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 ..
Please see:
http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)
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
Quote from: writerrobert680 on July 26, 2007, 06:22:39 PM
Quote from: drenalineRider 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...
That's what happened to mine too.
I am also getting double displays.
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/)
Quote from: 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/)
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?
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.
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?
@ 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?
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...
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.
@ 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?
Quote from: TrueSatan on August 23, 2007, 09:12:27 AM
...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.
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.
<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>
This mod isn't working properly in 1.1.3. The global header link is missing from the admin panel.
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.
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?
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/)
Quote from: TrueSatan on August 24, 2007, 06:03:18 AM
http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)
Thank you! This helped!
Quote from: 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.
Everything is set right. It doesn't show.
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.)
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?
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.
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.
Thanks for posting back...I was about to suggest that you re-uploaded all the files the mod added.
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???
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.
Quote from: ^_^ on December 14, 2006, 03:29:26 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...
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.
ow, i c...thx, i test it right away and post the result here... ;)
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...
Please see reply #193 above. I've already answered what is exactly the same problem on this very page.
Very good mod. Did exactly what I wanted quickly and easily.
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
QuoteCan 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
thanks for the mod!
it helped me very much!
I am having the exact same problem and error message, and have done what Alan S has done.
Please help asap.
thanks.
Quote from: 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
QuoteCan 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
Check the path and check that smfheader.php exists in that path if not create the file and make it writable.
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?
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?
Quote from: 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?
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.
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.
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! ;)
@ 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.
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)
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.
Quote from: 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.
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!
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.
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.
You can edit the smfheader.php and smffooter.php files directly to fix the issue with html
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
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)
thanks nice mod
but when i adding a ad its show bauble
plz help me
Whatever code you are adding would seem to be incorrect...please double check it.
Quote from: TrueSatan on December 23, 2007, 06:17:31 PM
Whatever code you are adding would seem to be incorrect...please double check it.
code is correct
i have checked it
thanks
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
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)
Quote from: 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
I have the same problem when entering html code it appears twice?? How can we fix this?
Thanks
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)
Quote from: 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)
How could i have installed twice when i have only installed once?
Sometimes the package manager may goofed or if the page is refreshed or the link is clicked twice it could install mutiple times.
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.
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....
Are you using a custom theme/language?
Normally there is al ink in the admin section access headers and footers
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.
Check your language under Server Settings should be set to english only not english utf8
Quote from: vbgamer45 on February 26, 2008, 09:10:59 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.
Are you using a custom theme? Other than default if so you might need to copy some language files.
Quote from: 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.
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?
Most likely you need to copy the themes/default/languages/modifications.english.php
to
themes/customtheme/languages/modifications.english.php
Quote from: vbgamer45 on February 26, 2008, 10:23:18 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?
Might depends what file you edited if it was your themes default folder or custom theme
Quote from: 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
It was my custom theme that I edited the file in. Is there something else that I should do?
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 :)
board directory is the root directory of your forum where SSI.php is located.
Quote from: 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
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.
Check what language your system is set to under Admin -> Server Settings it should be English and not english utf8
Quote from: vbgamer45 on April 10, 2008, 07:55:46 PM
board directory is the root directory of your forum where SSI.php is located.
Thanks mate :)
Quote from: 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
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...
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.
got it working now, thanks in regards to the info.
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:
<?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.
<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.
http://nqpipes-drums.cp72.org/forum/index.php
The global headers and footers mod does not support php code to be executed so that code would not work.
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.
Just installed this mod and it said it was successfully installed but I see no changes.
Using Version 1.1.4.
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
I'm using the Default theme and language is set to English.
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.
Quote from: 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.
Where is the error log?
Admin -> Forum Error Log
Quote from: vbgamer45 on April 21, 2008, 08:21:43 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?
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.
Quote from: 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.
All files have 777 permissions.
In that case I would contact your host for more information and help.
Quote from: vbgamer45 on April 21, 2008, 08:33:08 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.
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.
Quote from: 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.
Thanks, but some mods work fine, this one and a few others didn't.
Footer check and that working find to me..
can i use this mod for smf 1.1.5?
Yes you can
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.
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?
You should be able to edit it again what is having when you try to edit it?
What kind of codes can i put in here??
Html codes
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.
Open up this file
/Themes/default/languages/Modifications.english.php
Find
?>
Change to
?>
Uninstall the old mod then reinstall the mod again and the option should be there.
I did what you said and the same things are happening.
For that file?
The key point is to get ?> on its own line so the mod can pass the install.
yeah its on its own line.
(http://i6.photobucket.com/albums/y212/AlkseeyaKC/Boards/Picture9-2.png)
hmm that it should install ok
Try this
Find
?>
Change to
//Begin Global Headers and Footers Text Strings
$txt['globalhf_title'] = 'Global Headers and Footers';
//END Global Headers and Footers Text Strings
?>
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
Quote from: vbgamer45 on May 08, 2008, 08:27:29 PM
Html codes
What like can i get Admin And mod image things in there?
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!
Upload it to packages directory then install the mod using the package manager in the admin section of your forum.
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.
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.
Does the mod support JavaScript?
Yes it does.
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!
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...
Quote from: vbgamer45 on May 25, 2008, 09:16:56 PM
Yes it does.
I don't understand, the mod support JavaScript. Srry my English.
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
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?
Check admin Server Settings ->
Check language to make sure it is set to english and not english utf8
Thanks so much dude ;D you rock
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.
That would require custom code and is not part of this mod.
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. :)
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.
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?
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 ?
Fix i think subs.php mod probably installed twice
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
Does not work for SMF 2.x
Quote from: vbgamer45 on July 07, 2008, 08:40:34 PM
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.
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.
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.
No but you can translate the mod.
hea buddy, i downloaded the header and footer mod from this site.... but when i went to install it i got this error:-
QuoteError 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:-
Quote1. 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......
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..
oo nvm.. I got it right now... My problem solved... :D
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
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.
Currently does not support php code.
Is there a way to code an html script to get the results of the php script and display them that way?
You could do an iframe or javascript code to do that.
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 :)
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
I would ask in the scripting forum since this is not related to the mod itself
any way i can run this with 2.0 beta ?
Please let me know.
Thank you.
No not currently.
:( 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...
Quote from: 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
THANK YOU!!! I never would have figured that one out!! LOL
Quote from: vbgamer45 on December 31, 2006, 10:22:17 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
That is a language file issue. Make sure you copy any text from default/themes/modifications.english.php
To
default/themes/modifications.yourlanguage.php
I am english so there is nothing i can edit there
are you using a custom theme then you have to edit that file as well in the theme.
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
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...
well,after removing the extra code in the above mention..i now get four buttons atop eachother..im real confused now...
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 :)
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
You cannot find duplicate code in your index.template.php ??
That will normally be where the code is if you are seeing duplicate buttons
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
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 :)
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
Which ever ones giving you the extra buttons.
ill try both...i dont know which one does..lol
thx..i planned on deleting...srry
plz let me know once you.ve looked at this one so i can delete it..its huge on here
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
heres sourse
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;"> </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 ' - ';
}
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 , '"> </td>';
// Show the [home] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </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 . '"> </td>' : '';
// Show the [help] button.
echo ($current_action == 'help' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </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 . '"> </td>' : '';
// How about the [search] button?
if ($context['allow_search'])
echo ($current_action == 'search' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </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 . '"> </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 . '"> </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 . '"> </td>' : '';
// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo ($current_action == 'profile' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </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 . '"> </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 . '"> </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 . '"> </td>' : '';
// The [calendar]!
if ($context['allow_calendar'])
echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </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 . '"> </td>' : '';
// the [member] list button
if ($context['allow_memberlist'])
echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </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 . '"> </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 . '"> </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 . '"> </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 . '"> </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 . '"> </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 . '"> </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 . '"> </td>' : '';
// The end of tab section.
echo '
<td class="maintab_' , $last , '"> </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> </td>';
echo '
<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'last' : 'first' , '"> </td>
<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_back">', implode(' | ', $button_strip) , '</td>
<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'first' : 'last' , '"> </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]
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 ;)
its to big.wont post
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;"> </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 ' - ';
}
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 , '"> </td>';
// Show the [home] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </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 . '"> </td>' : '';
// Show the [help] button.
echo ($current_action == 'help' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </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 . '"> </td>' : '';
// How about the [search] button?
if ($context['allow_search'])
echo ($current_action == 'search' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </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 . '"> </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 . '"> </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 . '"> </td>' : '';
// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo ($current_action == 'profile' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </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 . '"> </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 . '"> </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 . '"> </td>' : '';
// The [calendar]!
if ($context['allow_calendar'])
echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </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 . '"> </td>' : '';
// the [member] list button
if ($context['allow_memberlist'])
echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </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 . '"> </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 . '"> </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 . '"> </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 . '"> </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 . '"> </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 . '"> </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 . '"> </td>' : '';
// The end of tab section.
echo '
<td class="maintab_' , $last , '"> </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> </td>';
echo '
<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'last' : 'first' , '"> </td>
<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_back">', implode(' | ', $button_strip) , '</td>
<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'first' : 'last' , '"> </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]
i took abit from top..hope not anything needed..
That is the wrong code.
Attach your Subs.php from your Sources folder
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....
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.
ok here it is..thx..its huge..sorry for you having to help like this.greatly appricviated.....
Its ok mate :)
Try the file attatched
so should i cut mine..and paste your in place of???im guessing you found my issue?
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
thx..ill do a backup first of coures..then try..thx...
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...
My pleasure mate, Just glad I could help. :)
Look in the index.php file, and you will see this repeated also
'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
here that is also..thx again..
<?php
/**********************************************************************************
* index.php *
***********************************************************************************
* SMF: Simple Machines Forum *
* Open-Source Project Inspired by Zef Hemel ([email protected]) *
* =============================================================================== *
* 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 || [email protected]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(1, 250) == 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(null, null, true);
// 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];
}
?>
can u highlight which one to delete..its multiple in 1 string..it looks like to me...or whatevers easiest..lol
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..
No problem buddy :)
Sorry I didnt get back to you, it was around 3am and I fell asleep! lol
not a problem.well deserved rest.thx
whenever i try to access global headers and footers option i get the error
Session verification failed. Please try logging out and back in again, and then try again
helppppppppp
grrr anyone
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 :)
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
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
some one help me grrrrrrr
how to insert image ? for example this to be in center...
http://i33.tinypic.com/nxuyp3.jpg
You would use html code to insert the image.
why the hell is no one answering my question ....
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.
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..)
Added support for SMF 2.0.x
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
Quote from: 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
Fixes those bugs except for the image since I do not have one.
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
Then use a smiley, lol :) Anything is better than a question mark, which shifts the menu a bit upwards.
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! :)
Just use the html <center></center> tag around the code xD
Quote from: vbgamer45 on September 30, 2008, 10:46:37 PM
Just use the html <center></center> tag around the code xD
Thanks! ;)
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!
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?
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 :)
Quote from: 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
Me too.
Everything i put in the header shows up twice. Very annoying.
Anyone solved that problem?
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
It is supposed to create a link in the Admin Menu called Global Headers and footers.
Is it under Admin center? or another sub cat? perhaps it did not install correctly?
Switch your account to the default theme and see if you can see the link under Configuration in the admin section
Nope, unless I'm just plain blind, it's not in the list to the left, what I would call the admin map.
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...... :(
Are you able to install other mods if not it sounds like a permission issue unable to edit the files.
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
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... ???
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.
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
Server Settings -> Check the language make sure it is set to English and not english utf8
thank you..appriciated
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??
sounds like my prob might be same as childproof's...just doesnt show in acp..and i have installed other mods...like pm popup???
Have you tried to switch to the default theme and see if it shows up there?
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???
Because it installs to the default theme.
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.
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
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 ?
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
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
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
anyone help out please... really need to get things right..
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
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?
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?
This mod breaks more pages than Carter has pills...uninstalling...and very dissatisfied.
Moving on...
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?
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
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!!
Quote from: 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
Also looking for this information (specific edit would be wonderful).
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!
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
Quote from: 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
Go to Permissions.
Edit Permissions for Guests.
Make sure that the box for Enable Ads is not checked.
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.
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.
Quote from: 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
Are you sure your language is set at English and not English-UTF8?
Quote from: BurkeKnight on December 19, 2008, 05:54:41 PM
Are you sure your language is set at English and not English-UTF8?
how can u change the language?
Admin -> Server Settings
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
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.
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?
open up that file find ?>
Make sure it is on its own line.
<?php
// Version: 1.1; Modifications
?>
that is how it is showing up do i need to change something
No that looks ok from what I can see.
ok I am confused then.. I may have idea i will have to work on itl..
This is not compatible with 1.1.7. You may want to update your release notes....
QuoteCompatible 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
Quote from: 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....
QuoteCompatible 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?
i installed it but i cant see any where in the cp??
On my other forum it is in configration .
Need help
Admin -> Global Headers Footers
Quote from: 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....
QuoteCompatible 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.
I had to update some files and it now works for me.. Now I just need to figure out how to use it ;D
I dont see in the admin panal .....
Please help
Check your language of your forum.
Under Admin -> Server Settings
Should be set to just english and not english utf8
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 :
'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?
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
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.
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
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.
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.
Try this manual install
http://sleepycode.com/PackageParser/index.php
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.
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
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.
You would need to place the code then in theme file itself but it would no longer by global across all themes then.
In that case will leave as is, besides its a great mod and quite useful.
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?
Quote from: 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?
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)
Yes it is you can do it with html code
Quote from: vbgamer45 on January 29, 2009, 10:31:05 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.
Read over html code
http://w3schools.com/html/default.asp
Quote from: vbgamer45 on January 29, 2009, 10:45:12 PM
Read over html code
http://w3schools.com/html/default.asp
I found the error in our html ... thank you
Glad you got it working.
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
Check that the file exists and is writable.
Quote from: vbgamer45 on January 31, 2009, 07:32:31 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.. :-[
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?
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.
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
Depends on the theme really where they call the template_above and below parts
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
In installed this but how exactly do I use it to optimize search result? Could someone give me an example of html to use?
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...
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)
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
Most likely the mod got installed twice
Quote from: 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
Can Anyone revert to me...
is there a mod that works like headers and footers for the left and right side of the board?
Quote from: vbgamer45 on March 04, 2009, 10:53:40 PM
Most likely the mod got installed twice
mmm, no even if it did it would only overwrite the file.
Anyone else ?
Quote from: 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
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.
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....
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:
<img src="http://www.aknewday.com/images/ads/banner_akdds.gif" border="1">
NOTHING shows up at all. What am I doing wrong here?
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!!!
Thanks for this MOD, keep up the great work! ;)
Quote from: 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:
<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.
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
Don't understand. Header and footers you put code in it.
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.
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
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)
globalhf I belive
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.
Quote from: vbgamer45 on April 27, 2009, 07:46:15 PM
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.
:(
Got it!
thanks anyway
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
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
Quote from: 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
I tried that and all I get is:
Session verification failed. Please try logging out and back in again, and then try again.
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
Quote from: 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
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
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.
Ok, Thanks for helping. Let me go give this a shot and see what happens lol.
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.
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
Quote from: 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
it is set to english. it has been. it's the first thing everyone tells you to check when doing mods.
Quote from: 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.
Yes, I thought this as well. How do you put the "Header" above the smf logo and the "Footer" below the copyright and stuff?
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.
Quote from: BoZilla on May 11, 2009, 02:51:05 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)
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.
Quote from: BoZilla on May 13, 2009, 02:50:48 PM
Quote from: BoZilla on May 11, 2009, 02:51:05 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!
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?
Not at this time. Currently the global headers and footers are shown on any page but it would make a good feature request.
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?
Open up that file and make sure that ?>
Is on its own line should be the very last line
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
Quote from: BoZilla on May 13, 2009, 02:50:48 PM
Quote from: BoZilla on May 11, 2009, 02:51:05 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)
For the footer
search for this in your Subs.php log_error('Copyright removed!!');
}
}
replace it with 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> tagssearch for foreach ($context['template_layers'] as $layer)
and replace with // 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 NThis mod does not touch the Admin.php
Could you copy the error message you're receiving?
Quote from: Sabre™ on June 27, 2009, 05:51:52 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
Oh ok...
What version of smf are you using?
It seems you're using the package for smf2 on a 1.x.x template
Quote from: 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
USING smf 1.1.9
http://thechill.icr38.net/smf
Download or parse the package labeled globalheadersfooters.zip
The one named GlobalHFforSMF2.0.zip is for smf2, and uses the Admin.php.
Good luck :)
Quote from: 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 :)
I parced the 1.1.9 one but wouldn't let me
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 :)
Quote from: Sabre™ on June 27, 2009, 05:51:52 AM
Quote from: BoZilla on May 13, 2009, 02:50:48 PM
Quote from: BoZilla on May 11, 2009, 02:51:05 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)
For the footer
search for this in your Subs.php
log_error('Copyright removed!!');
}
}
replace it with
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
foreach ($context['template_layers'] as $layer)
and replace with
// 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)
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
I just need the subs.php
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:
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.
<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 & 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 & 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>
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
What theme are you using? and what language?
Awesome, your update works a treat, and though it's not going in to the page head, it still works as intended. Great mod.
Quote from: vbgamer45 on July 22, 2009, 02:39:51 PM
What theme are you using? and what language?
the E-N Theme
http://forum.smallbellyguide.com
language? English - or do you mean programming language? ;)
Check the language under Admin -> Sever Settings
Should be set to just English
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.
<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
Is there anyway to remove the header and footer modification from the user profiles?
No would require edit to the code. This mod adds a header and footer on all pages.
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
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
That fixes it utf8 is mainly used for international support if you forum is just english not uft8 works fine.
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
Make sure have it in all modifications.*.english.php files.
If you are using a custom theme check those language files as well.
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.
Quote from: UbinTook 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.
Still curious...
Not a good way to add adsense code. This is mainly for header and footers of forum.
For adsense i recommend ad management mod
If you are just doing google analytics yes this mod is fine for that just add the code in the footer.
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!
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.
your crap mod destroyed my forum!
jameswx09, please advise how it 'destroyed' your forum.
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.
That's what it's supposed to do - the same thing at the top of every page.
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.
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
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.
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.
Quote from: 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
Any suggestions on how to fix this?
Updated with support for SMF RC2!
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 ?
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.
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>
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.
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)?
Quote from: 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)?
I have the same problem. I wanted to add a header, not insert html after the links. Is this a bug or a feature?
That's the default feature.
vulnerability:
smffooter.txt
smfheader.txt
can be easily accessed/downloaded in your forum
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.
Quote from: 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.
i see.. thanks :)
Quote from: vbgamer45 on January 13, 2010, 07:35:09 PM
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 :)
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.
Okay. Thanks for the reply 8)
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.
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
Quote from: 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.
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.
I really need help on this issue?
Thanks again.
Check if the mod installed twice in Sources/Subs.php
Quote from: vbgamer45 on March 03, 2010, 04:51:25 PM
Check if the mod installed twice in Sources/Subs.php
It is only installed once. Now what should I do?
I would uninstall it since that is all that I can think would cause that to occur.
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!
Glad you enjoy it.
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
nvm i found a solution >:(
Now supports SMF 2.0 RC3!
Great!! Thanks vbgamer!! ;)
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.
Not with this mod. This just does global headers/footers
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 ?
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.
Oops, I guess I sent the wrong message. I'm no coder! :s
thank you for the RC3 update!
Glad you enjoy it
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 ?
I still have problem when install in 2.0RC3
Any one can help?
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 ?
Install it manually no fix cause other of other mod conflicts.
It is compatible with the mod pretty url?
I only work with the mod pretty url off :S
,thanks.
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
Yes it should be there check if default language is english.
I don't use English
Where to control this module ?
Any one know link to control this module?
action=globalhf
Thanks vbgamer45
Don't know if this was ever asked but, is there a chance to get customizable permissions for this mod?
Not likely.
Alright, not a problem then.
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.
i was unable to put a linked image or even a link... any suggestions??
Make sure you are using html
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
That should work don't use </img though
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
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.
Quote from: vbgamer45 on April 13, 2010, 03:01:48 PM
That should work don't use </img though
okay i removed </img> but it is still not working..
Quote from: amigozone on April 16, 2010, 11:35:14 AM
Quote from: vbgamer45 on April 13, 2010, 03:01:48 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.
<img src="URL" />
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.
Quote from: tanshin on April 18, 2010, 09:28:37 PM
Quote from: amigozone on April 16, 2010, 11:35:14 AM
Quote from: vbgamer45 on April 13, 2010, 03:01:48 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. <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...
Yes, you would use:
<a href="URL"><img src="URL of image" /></a>
That's what I would do anyways.
its working now :p
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?
I change add global header code i.e.:
// 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
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
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.
Nice tip.
One typo
hyeader
Should be
header
Quote from: vbgamer45 on April 21, 2010, 08:50:40 PM
Nice tip.
One typo
hyeader
Should be
header
Edited. Thanks for checking and pointing it out.
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
Glad you got it working
Quote from: 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.
vbgamer please...
Not possible
Can i see a site using this mod .. or a screen pic ??
Quote from: aw06 on April 26, 2010, 12:24:47 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
Quote from: mrtrc266 on April 26, 2010, 01:23:58 AM
Quote from: aw06 on April 26, 2010, 12:24:47 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
Quote from: aw06 on April 27, 2010, 02:32:35 AM
Quote from: mrtrc266 on April 26, 2010, 01:23:58 AM
Quote from: aw06 on April 26, 2010, 12:24:47 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
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.
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.
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.
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.
The Google Analytics mod does not create separate files, it just adds it directly into your theme, out the way.
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.
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!
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.
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.
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.
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.
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.
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.
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.
This isn't my mod ;)
And I *do* see the infolinks code in the footer of the source.
Taken from your site just now.
</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.
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.
Is there a way so the banners added don't show on the portal?
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
Quote from: ekoree on May 14, 2010, 10:59:49 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
Make sure your language is set to english utf8
Quote from: vbgamer45 on June 01, 2010, 01:59:29 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?
Opps I meant just set to it to English not english utf8
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
Hmm the legal notice sounds like a missing or corrupt language file? What language are you using under Server Settings?
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.
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
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?
Really a great work for making this. Custom Header and Footer Image.
Glad you enjoy it.
Quote from: vbgamer45 on June 02, 2010, 12:28:24 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...
Not my fault issue with SMF all mods the same
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!
No thanks
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?
Possible to do would require changes in the Subs.php the location varies depending on the theme
Quote from: 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
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?
Quote from: 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. :)
This is how to get the header to go at THE VERY TOP. Thank you!! It works great!
Or you can use this instead.
Quote from: AbuFahim⎝⏠⏝⏠⎠ on April 21, 2010, 03:35:15 PM
I change add global header code i.e.:
// 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
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
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.
This mod does not touch the template files.
Only changes Sources/Subs.php
Is this it?
<?php
/**********************************************************************************
* Subs-Package.php *
***********************************************************************************
* SMF: Simple Machines Forum *
* Open-Source Project Inspired by Zef Hemel (
[email protected]) *
* =============================================================================== *
* 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.
He said Subs.php not Subs-Package.php.
Quote from: AbuFahim⎝⏠⏝⏠⎠ on July 25, 2010, 06:32:20 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.
Source folder.
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.
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?
Check your language settings under Server Settings should be set to just english and not english utf8 to make the admin link appear.
Also is this mod made for mulitiforums? It seems to go on every single forum we host when you enter a code.....
Nope not made for multiforums.
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?
That looks like a local path so I would say its bad script code
http:///home/quaine/public_html/themes/default/2ac868961b52357658c2.swf
Ok thanks, gotta figure out how to change it.
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.
I'm not entirely sure on what your URL is but the link you'll probably want to use it:
http://SITEURL/themes/default/images/SWFFILE(.swf)
For example:
http://forum.example.com/themes/default/images/flashfile.swf
Quote from: 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:
http://SITEURL/themes/default/images/SWFFILE(.swf)
For example:
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
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
I would check file permissoins on smfheader.txt and smffooter.txt in the root of your forum.
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?
Try 755 some hosts don't like 777
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?
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.
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.
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.
If nothing else a manual install would do the trick this really a simple mod that just edits a couple files.
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 :)
Glad you found a workaround that works for you.
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.
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?
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.
how can i fix my problem?
Quote from: ahrasis on April 21, 2010, 03:35:15 PM
I change add global header code i.e.:
// 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
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
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
thanks for the reply, whats the name of the file i need to edit?
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. :)
No permissions just setup for admin only
Is there any line of code I could add somewhere to achieve this?
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
yeah thats beyond what I know how to do. :(
"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.
Would be any code to style your site or tracking codes in general that is what this mod would be used for.
Translation by MOD Translator SirtLanVadisi in turkish and turkish-utf8 languages
<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
<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>
Thanks again for your translations for Turkish
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.
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.
You downloaded it directly from the modsite recently?
:-[ 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. ::)
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.
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)
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
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.
The mod only supports html code and not php so it will not do what you are asking.
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.
Quote from: 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)
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..?
Yes it appears before the menu and before the ending board footer.
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).
I use 2.0 RC4 and I installed this MOD successfully but I can't find it in the admin panel
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!
installs but there is no option for it in the configuration tab. using default theme
Set language to english not english utf8
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?
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.
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.
You are awesome! Thank you so much!
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.
It looks like this...
<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>
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 ???.
You will need to do that install manually that is a keep edit for the control panel link
Quote from: 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
Sorry, can you break that down a bit more clearer? Not entirely sure what you mean.
Get the manual install instructions from the mod site then apply the edit to the Admin.php manually.
where is this mod located? cant find it on 2.0RC5
Quote from: ccleanerfan on March 16, 2011, 08:00:05 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
Quote from: vbgamer45 on March 16, 2011, 08:43:11 PM
Quote from: ccleanerfan on March 16, 2011, 08:00:05 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...
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
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.
Copy text from themes/default/languages/modifications.english.php to themes/default/languages/modications.yourlanguage.php
That's maybe my problem,
both files are empty :
<?php
// Version: 1.1; Modifications
?>
Yeah that would cause an issue it needs the text add from those mods otherwise you get an empty space
I installed this but i dont know where to click/hot to access this. Can anyone please help me?
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.
Quote from: 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?
Looks like missing language file goto admin -> server settings and set language to just english instead of english utf8
Quote from: vbgamer45 on April 15, 2011, 03:46:08 PM
Quote from: 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?
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
It would be in the admin area a link to global headers/footers
Quote from: vbgamer45 on April 15, 2011, 04:41:16 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).
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.
Copy text from themes/default/languages/modifications.english.php
To
themes/default/languages/modifications.english-utf8.php
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. :)
Glad you got it figure out.
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.
preview stops working in all browsers that i've tried except chromium (opera, IE and firefox) after I install this mod - it just says
Quotefetching preview
and nothing happens...
here are the errors
OPERA
QuoteJavaScript - 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
QuoteError: 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?
"
jump to" also doesn't work and creates a similar error
OPERA
QuoteJavaScript - 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
QuoteError: 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?
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
Quote from: Kaitlyn on June 17, 2011, 03:16:26 AM
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
Quote from: 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
Hmmmm. I was having the same issue as everyone else. I'll tell hubby this. Thanks!
Hi,
After installing it to v2 final header is overlapping the member stats. How can I fix it thanks. See image :
Quote from: Lolafish on June 18, 2011, 02:32:55 PM
Quote from: 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
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........
Quote from: Kaitlyn on June 18, 2011, 09:32:02 PM
is it possible to add an icon to this mod
same. need an icon
Yes if you use the global footer portion
I found the way to fix the broken image I have. I went to Sources/Admin.php,
find:
'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
Quote from: Kaitlyn on June 20, 2011, 02:33:58 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>
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
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.
Quote from: 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.
Donate some money to the developer and see if you get an answer? I am still waiting.
Yeah that is a really custom request to show stuff only on certain days of the week.
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.
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
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.
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
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
Send me the link didn't realized you donated.
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!
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>
</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>
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.
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.
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?
The best place I would put it would be after <body> tag in themes/default/index.template.php
And after the </body>
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?
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-->';
}
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
If you add the code to the index.template.php then you must remove it from the Sources/Subs.php
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
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.
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;
Make sure you add $boarddir to globals
or after </body>';
Like
global $boarddir ;
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.
Quote from: vbgamer45 on July 25, 2011, 11:39:56 PM
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 ?
no back in index.template.php where you try to add code before.
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"..
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!
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
Modify header.txt and footer.txt
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!
This mod does not change or affect the database of your forum
great thanks!
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
Someone post a fixed a couple posts back for that.
found it: http://www.simplemachines.org/community/index.php?topic=103464.msg3086108#msg3086108
thx for advising me...
cheers inti31
Within the mod there is a place to donate using paypal.
The link did NOT work for me. :o
hmm will need to check it out. I have a donate link on http://www.smfhacks.com though
I was able to send you a couple bucks.... :o
does the code have to be html is there a way to make picture and normal writing html
Has to be in html at the moment.
is there a way to make pictures in to html
Yes <img src="http://www.site.com/image.jpg" />
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
Yes you would need to uploaded to.
Host them then use HTML to link to them...
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
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%20the%20pub/)
Install then make the one change to admin.php manually.
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?
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.
Quote from: 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
<a href="LINK YOU WANT IMAGE TO REDIRECT TO"><img src="IMAGE LINK"></a>
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??
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
Quote from: 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
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
Glad you were able to get it working correctly!
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?
Yes you could do that using an html table.
Many thanks vbgamer45.
All working as I want it to now. Great mod!! ;D
NP glad you were able to get it working how you wanted.
I'm doing the manual install, and I just simply cannot find this code in my Admin.php file:
'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
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.
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
Around line 190 for SMF 2.0
Another key piece of code in that area
'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(
Quote from: 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
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.
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?
Quote from: 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?
I got this working, it was a mistake on my end. Sorry for the post.
Hi... I installed the Mod, it work perfect, but... how can i center it ? because it shows me all on the left :|
You can use center tags to align anycode that you enter.
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.
There should be an Headers/Footers link in the amin panel area. If not make sure you language is set to english
i wish the page created is added to the link tree in this mod.
This mod does not create pages.
Quote from: vbgamer45 on January 11, 2012, 09:58:14 PM
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.
No problem.