I understand not wanting to crate a plugin that does not have a large demand for it, but is there not a large enough demand for a global header plugin?
In the meantime, what can one do to implement one. I need one for my WPMU install.
I understand not wanting to crate a plugin that does not have a large demand for it, but is there not a large enough demand for a global header plugin?
In the meantime, what can one do to implement one. I need one for my WPMU install.
I'm not really sure what you mean by "global header plugin". Can you provide a better description?
Sorry Andrew for now being clear enough. I guess what I am asking is a plugin that will allow a user to go back to the front page (on the root blog) from any blog that person is current visiting.
A perfect example can be found at this site (which uses WPMU)
Cool, I understand exactly what you're after now. You might want to look into the admin bar plugin. I'm not sure if it will work with WPMU 2.7+ but you'll at least be able to use it as an example: http://wpmudev.org/project/MU-Admin-Bar
So Andrew, does this mean that you don't think this is something worth looking at as an updated plugin? You have even admitted that you are not sure it will work for 2.7. Secondly, by reading the details it look like this plugin is primarily for admin use.
So Andrew, does this mean that you don't think this is something worth looking at as an updated plugin? You have even admitted that you are not sure it will work for 2.7.
We don't actually update and release plugins that aren't developed by us. So we would have to code a solution from scratch in order to release it here.
Unfortunately there really doesn't seem to be a high demand for such a feature. I say this for a couple of reasons:
1) No one has ever asked us to look into such a plugin before (that I can recall).
2) The admin bar was actually added into WPMU just a version or so ago and apparently enough people complained and it was removed.
I'm always happy to be proven wrong on these things though because we like to give our members what they want. We'll just need input from more premium members before we commit to developing this plugin.
Also to be honest, I don't think you're going to be able to add a header section that looks as good as the one on change.org without some theme work unless you go with a basic admin bar type solution. It looks like they're basically just using a variation on the same design/theme/template for each of their causes. That's why it looks so fluid.
I see. Thanks for the help. I will see if I can get this to work. To be honest, all I need for this to do is to give me just ONE link to take the user back to the front home page from any blog on the site. That is it. Nothing more, nothing less. All of the other items/links are not needed for my case.
@Ovidiu: in theory, yes. Just downloaded the plugin to view the coding and I see you have to edit the file itself in order to add stuff. With the plugin I made you can just drop the file into wpmu-plugins and then edit the settings within your admin.
Mine also includes the functionality to disable it (so you don't neccessarily have to delete the file to disable it) and next to that you can disable it for the mainblog (blogid=1).
Oh and my version also has a 'workable' version already included when you install it (just save et voila, you have a black header that's 100% wide and 30px high with a link to the mainblog).
Btw, I'm thinking of adding a text-field (1 for header, 1 for footer) where you can put in ID's of blogs that shouldn't get the global header/footer to be displayed.
especially the echo_num_queries is interesting ot add when checking soem themes... anyway, that is not needed, wouldn't want it active globally the whole time....
PHP doesn't get executed. I could add a checkbox that would make it possible to insert (and execute) PHP, but that would have to wait until tomorrow (really gotta get some sleep now). I'll keep you updated.
If you don't use a domainmapping plugin you could just use %SITEURL% and %SITETITLE% to display the URL and title btw.
Version 1.2 is added (with execute PHP functionality). And perhaps not one of the functionalities you need, but I did add it: a textfield where you can input blogIDs where you don't want the global header/footer enabled.
btw. maybe you can change it so the footer/header doesn't show on supporter blogs? woudl that be itneresting? dunno, just giving feedback here, I mean it depends on what users are using this plugin for... maybe a check box: disable on supporter blogs?
Okay, replace html { margin-top:30px; } with body { margin:30px 0 0; position:relative; } (the change in margin deletes the bottom 30px margin that was enabled in some browsers with using the margin-top).
This makes the header work in Safari 4, Opera 9.63 and Chrome 2 and IE7.
I'll update the plugin with it later today (but since saved options are getting loaded into those textfields you wouldn't see those changes, so manually editing of the CSS is necessary).
Just updated the plugin to v1.4
This version gives you the functionality of enabling the header/footer for supporters only (also a few minor bugfixes and a change in looks for the admin-page).
I'll update the plugin with it later today (but since saved options are getting loaded into those textfields you wouldn't see those changes, so manually editing of the CSS is necessary).
where would I have to manually edit the css? on the options page of the plugin? if so, I did that, but it doesn't yet reflect on all blogs, shouldn't it?
That means that you have to change that manually on the options page. It should reflect on all blogs, since it's a sitewide setting. Well, minus the blogs you've disabled it for ofcourse. Could be a cache thing.
And since you (probably) already saved the settings once, it won't load the default settings I put in it (would be a nasty surprise to those who've customized it a lot if it would revert to default settings when they update).
I could put in an option to revert to default settings though.. Geesh.. this plugin is getting a whole lot of updates in such a short period.. :)
I'm working on a similar but also very different plugin btw. Backend stuff is almost ready and I hope to have the rest ready by tomorrow.
With the new plugin you can add as many headers/footers as you like and (if I can get that to work) also pin it to a conditional tag (is_page, is_single etc. or even is_year(2008)). The functionalities of the Global Header plugin will be in there as well.
Oh well, I'll let you know more when it's somewhat finished :)
Adding Blocks v0.2 has been released, this release fixes a few bugs, adds more tags you can use in the blocks (ie. %NUMBLOGS%, %NUMUSERS% and more).
I also tweaked the add/edit block pages and put everything inside 4 tables and made them collapsible (an overview of all possible tags is in one of those tables). This means you don't have to scroll all the way down every time just to save it, just keep the tables closed you don't need at that moment :-)
Oh, also added a redirect after adding a new block (get redirected to the edit block page instead of the overview of all blocks).
And you can now enable blocks for users and/or make a block user only.
Haven't been able to test that yet. If you could test that and let me know what comes out of it that'd be great (otherwise you'll have to wait a little longer (by that I mean end of next week approx.), kinda busy at the moment).
I haven't had a chance to test it yet but I wonder if it's really what I'm after. I'm looking to keep one header (image, links, nav, etc.) and footer standard across the various blogs on a given site. My WPMU install happens to have multiple sites, which adds a layer of complexity, but the core functions need to be the same: site-standard header and footer across all blogs on a site. Will either of Hiranthi's plugins help me do this?
@soundpublishing, both plugins are for global 'blocks' across a WPMU install. I haven't tested it with multiple sites yet, so I'm not sure if that works or not.
@Ovidiu, with which one is that? The Global Header or the Adding Blocks plugin?
@Hiranthi: I am still using the Global Header plugin, have no need for the Blocks plugin. I fixed it meanwhile, by manually using phpmyadmin to edit the field... without those \\\\
btw. I had upgraded to 2.8.1. shortly before I noticed the problem, maybe something else is breaking this functionality?
@Ovidiu, that's odd.. perhaps that's a phpMyAdmin or PHP thing? I can't reproduce it on my WPMU install (did have something similar with a theme options page for a client of mine, suddenly added a whole bunch of slashes).
@inweb, it looks like the wp_footer() is missing in footer.php of the theme it doesn't work on (CSS is added in the header, but the HTML isn't there in the footer).
it still fails on some blogs. check http://sasha.zice.ro/ for example. take any page's source code and look for the footer text, it still has a \ in front of every " :-( even though I corrected the settigns and its now displayed right in the plugi nsettigns itself.
Many thanks to drmike for pointing me to this topic! This plugin would do exactly what I need if I could get it to work. I have two issues...
1. My Google AdSense code won't display ads in the header/footer. Will javascript work with this plugin? I've got it working with the WPMU Footer HTML plugin, with issues I describe here, but the idea of not hacking the plugin file is awesome.
2. The php-generated links I have are breaking in this plugin, while they work in WPMU Footer HTML. View the footer code I'm trying to use here. I'm just using the ad script for the header code. In both cases, no ads get displayed.
@Ovidiu, just updated the Global Header plugin, added stripslashes() to the output. Could you let me know if this fixes your issues?
@jcnjr, if you read the extra documentation on the settings page of either one of the plugins (Global Header and Adding Blocks) you'll see that I've added a few 'shorttags' which you can include in the footer/header/blocks.
Just using $current_site etc. without making it global can indeed break it.
Instead of bloginfo('name'), use %BLOGTITLE% (Adding Blocks plugin only);
I don't know about the WPMU Footer plugin, since I don't use it. JavaScript should be executed as usual in both of my plugins though (guess it's not working because the PHP breaks).
@Hiranthi Thanks for the quick reply! That helped alot, and the stripslashes fix worked for my links too.
We're almost there ... the header content is publishing in the footer. Look at the "x x x fpo x x x" in my footer here. I entered that text in the Global header settings of the plugin!
Hi. I'm having the same issue with the Global Header plugin since upgrading to WPMU 2.8.2. I just downloaded the latest version of the plugin to see if it had been fixed, but I'm getting one backslash inserted before each " on the links and the div id is \"global-header\" when you the view the source of the rendered page. I can edit out the backslashes in phpMyAdmin and all works as it should, but of course it puts the backslashes in again as soon as I save via the plugin admin screen again. It's not an insurmountable problem as I can just edit out the backslashes when I've stopped tinkering, but I thought I'd let you know it's happening and see if you have a fix for it.
@jcnjr, all HTML is loaded into the wp_footer hook. Which means that the HTML is indeed added into the footer of the theme. The reason you can add CSS is that you yourself can use it to position it wherever you like. I've added a 'header' and 'footer' section in the Global Header plugin so you can manage two separate parts (ie. header and footer) to add globally in your WPMU install.
There is some basic CSS added, but I can't guarantee that it works with all themes.
Yes, I'm afraid it is v1.6 I updated to and it's still doing this. I checked and double checked it was the latest version, and it has the note about v1.6 being because of the backslash problem in the changelog at the top of the file.
Any ideas? It all worked before the update to 2.8.2 and still works if I manually edit out the backslashes in phpMyAdmin.
@stcwebdesigns:
Weird, since I'm not adding slashes to it when saving to the database. The stripping is only a precaution (for when the slashes are added to the DB).
So for some reason your PHP or DB is adding them automatically (at least, that's what appears to be happening).
Anyway, I just added a new version (v1.7) that adds a stripslashes() when saving to the DB. Hope that solves your problem.
I've added a 'header' and 'footer' section in the Global Header plugin so you can manage two separate parts
Right, most excellent. That's why I want to use this great plugin!
But the text (even just plain text) that I entered into the 'header' section is appearing in the footer of every blog. How can I get it to appear in the headers? Do I need to use the Adding Blocks plugin instead?
You can see an example of this issue in the footer here. The "x x x x x" in the footer is text I entered in the "Global header settings". No html, no php, and only enable box is checked.
FYI: I updated to v. 1.7 and issue persists. Thank you for your time!
@jcnjr, you'll have to adjust the CSS for it. The text is - as I already stated - indeed added to the footer of every page (where wp_footer() is being called in the theme-file).
The default CSS added positions the header to the top of the page and the footer to the bottom of the page. Could be that the CSS of the theme you're using it in is overwriting the CSS in the plugin.
@Hiranthi Thank you so much for bearing with me. I had not applied the style to my header insert. Duh. Now my only problem is that it is overlapping the blog content beneath.
@jcnjr, no problem :)
I see you have the header div still at a height of 30px. The adsense div has a width and height without a unit (it only says width:730; height:92 - but it doesn't say 730/92 of what). It should be width:730px; height:92px; The header div should be adjusted accordingly.
I don't see where the footer is overlapping btw (FF3). Did notice that you still have the global-footer div in the CSS, but you're not using it in the HTML of the footer.
This is one long post! Anyway, global header plugin seems not to be working with wpmu 2.8.2. Why? Most wpmu/wp themes show the global header in the wrong place -- either at the footer or to the side, but not at the top of blog's pages. This worked fine with wpmu 2.7.1, but it got totally screw up when I updating to wpmu 2.8.2.
By the way anyone has the correct css's code to share if your is working with wpmu 2.8.2?
Yep, after uploaded the latest one as of today (downloaded latest on jul 24 2009) and still seeing the same css problem. The global header appears at footer or to the sides instead at the top of blog's pages.
I'm using 100 farm theme from wpmudev.org premium account, so I doubt the themes are the problem.
I have a couple of questions regarding the Global Header plugin. The plugin is great, but I have a couple of questions. I use Farms 100 big ones theme pack and there are just a couple of themes that things don't look quite right on it. I assume I'm going to have to edit some of the CSS for those particular themes. My question is, what tags should I look to change first? Does the Global Header Plugin override the CSS that is located in that particular theme?
6593 pointsLike some sort of WPMU DEV GodExceptionally helpfulLifetime member
Keeper of the Dark Chocolate
—
16th October 2009 20:21
#
Does the Global Header Plugin override the CSS that is located in that particular theme?
Depends on the theme. Most themes have the function call wp_head at the end of the head which means the Global Header CSS would come after whatever else is in front of it.
@terence, as drmike says: the CSS for the Global Header plugin is loaded in the spot where wp_head is called (at the end of it). So if the stylesheets are linked to above that, Global Header's CSS could overwrite it.
But, if you would make sure the 'path' to the ID or class is longer in the theme's CSS (compared to the GH's CSS) it wouldn't overwrite (CSS rules: if there's a "body #global-header" in a CSS file and only "#global-header" is called after that, it'll take the "body #global-header" instead of the last one, because it's defined more specific).
One more question. I have some themes where the Global Header works great. It is in the right place, with the right color background, but the header image that I have specified to show just isn't showing at all. Most of the themes, everything works great, but there are a couple that the image isn't showing up at all. Any thoughts?
Probably a CSS issue. It's really hard to make all of the themes behave with something like this. It's usually just either to select a few themes that work ok.
I had modified a version of Global Header last year for an install with 3.0 - but haven't looked at it since. I'll attach it hear and you can give it a whirl. Don't know about the other though.
Responses (83)
Erstwhile founder — 20th June 2009 17:25 #
Hiya,
I'm not really sure what you mean by "global header plugin". Can you provide a better description?
Thanks,
Andrew
Keeper of the Dark Chocolate — 20th June 2009 19:14 #
And is this material to displayed on the blogs or stick it's output into the head statement of the html?
If it;s part of the head section, I'd just hook into wp_head:
http://codex.wordpress.org/Hook_Reference/wp_head
If you want it to display on all blogs, I'd use wp_footer and add in css to place it where you want it to be:
http://codex.wordpress.org/Plugin_API/Action_Reference/wp_footer
I can't find a good example of using css to place something link a floating banner.
Member — 20th June 2009 23:30 #
Sorry Andrew for now being clear enough. I guess what I am asking is a plugin that will allow a user to go back to the front page (on the root blog) from any blog that person is current visiting.
A perfect example can be found at this site (which uses WPMU)
http://www.change.org/
Notice how there is a global nav bar at the top of every page of each blog site.
Hope this helps.
Erstwhile founder — 20th June 2009 23:58 #
Hiya,
Cool, I understand exactly what you're after now. You might want to look into the admin bar plugin. I'm not sure if it will work with WPMU 2.7+ but you'll at least be able to use it as an example:
http://wpmudev.org/project/MU-Admin-Bar
Thanks,
Andrew
Member — 21st June 2009 03:11 #
So Andrew, does this mean that you don't think this is something worth looking at as an updated plugin? You have even admitted that you are not sure it will work for 2.7. Secondly, by reading the details it look like this plugin is primarily for admin use.
Erstwhile founder — 21st June 2009 03:26 #
Hiya,
We don't actually update and release plugins that aren't developed by us. So we would have to code a solution from scratch in order to release it here.
Unfortunately there really doesn't seem to be a high demand for such a feature. I say this for a couple of reasons:
1) No one has ever asked us to look into such a plugin before (that I can recall).
2) The admin bar was actually added into WPMU just a version or so ago and apparently enough people complained and it was removed.
I'm always happy to be proven wrong on these things though because we like to give our members what they want. We'll just need input from more premium members before we commit to developing this plugin.
Also to be honest, I don't think you're going to be able to add a header section that looks as good as the one on change.org without some theme work unless you go with a basic admin bar type solution. It looks like they're basically just using a variation on the same design/theme/template for each of their causes. That's why it looks so fluid.
Thanks,
Andrew
Member — 21st June 2009 04:14 #
I see. Thanks for the help. I will see if I can get this to work. To be honest, all I need for this to do is to give me just ONE link to take the user back to the front home page from any blog on the site. That is it. Nothing more, nothing less. All of the other items/links are not needed for my case.
Member — 21st June 2009 17:15 #
I just made a plugin for it (didn't take that much effort). I'll post it to wpmudev.org
Will post a link here when I've uploaded it there :)
Member — 21st June 2009 17:57 #
Here it is: Global Header.
Erstwhile founder — 21st June 2009 18:28 #
Very cool! Thanks for coding it :)
Thanks,
Andrew
Member — 21st June 2009 19:09 #
I guess its pretty similar to this footer plugin, right? http://wpmudev.org/project/wpmu-footer-html
Member — 21st June 2009 20:12 #
@Andrew, no problem :)
@Ovidiu: in theory, yes. Just downloaded the plugin to view the coding and I see you have to edit the file itself in order to add stuff. With the plugin I made you can just drop the file into wpmu-plugins and then edit the settings within your admin.
Mine also includes the functionality to disable it (so you don't neccessarily have to delete the file to disable it) and next to that you can disable it for the mainblog (blogid=1).
Oh and my version also has a 'workable' version already included when you install it (just save et voila, you have a black header that's 100% wide and 30px high with a link to the mainblog).
Member — 21st June 2009 20:27 #
could you roll the footer thinggy into your plugin too? just have 2 checkboxes, one for header, one for footer? and two text boxes for the html maybe?
Member — 21st June 2009 20:28 #
Sure, just a sec :)
Member — 21st June 2009 20:45 #
Okay, same fields for a global footer are added (same fields as the global header). Just download version 1.1 :)
Member — 21st June 2009 20:52 #
Btw, I'm thinking of adding a text-field (1 for header, 1 for footer) where you can put in ID's of blogs that shouldn't get the global header/footer to be displayed.
Would that be a feature you are interested in?
Member — 21st June 2009 21:29 #
hmmm.... not really.
all I use it for, is to put a small footer into all blogs, saying: powered by: ..., sign up here: .....
and I want it excluded on the main blog, obviously, but that is all the use it has to me, maybe someone else needs it for a different reason....
AND BTW: THANKS :-)
Member — 21st June 2009 21:42 #
tried using php but it just gets echoed :-(
what could I use instead of:
´<div id="wpmu-footer-html">
<p>
Site realizat de domain . $current_site->path ?>"><?php echo $current_site->site_name ?> domain . $current_site->path ?>wp-signup.php" title="Creaza-ti un blog">Vreau si eu un blog!
<!-- <?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. -->
</p>
</div>´
especially the echo_num_queries is interesting ot add when checking soem themes... anyway, that is not needed, wouldn't want it active globally the whole time....
Member — 21st June 2009 21:58 #
PHP doesn't get executed. I could add a checkbox that would make it possible to insert (and execute) PHP, but that would have to wait until tomorrow (really gotta get some sleep now). I'll keep you updated.
If you don't use a domainmapping plugin you could just use %SITEURL% and %SITETITLE% to display the URL and title btw.
Member — 22nd June 2009 07:13 #
Version 1.2 is added (with execute PHP functionality). And perhaps not one of the functionalities you need, but I did add it: a textfield where you can input blogIDs where you don't want the global header/footer enabled.
Enjoy! :)
Member — 22nd June 2009 08:30 #
hmmm.... seems to work perfectly :-)
btw. maybe you can change it so the footer/header doesn't show on supporter blogs? woudl that be itneresting? dunno, just giving feedback here, I mean it depends on what users are using this plugin for... maybe a check box: disable on supporter blogs?
Member — 22nd June 2009 08:34 #
Good :-)
Well.. I have been thinking about that. I'll update the plugin later today or tomorrow with that functionality :-)
Member — 22nd June 2009 12:08 #
Ok, download v1.3 and disable it for Supporters (enabled by default) :)
Member — 26th June 2009 18:22 #
I have been away on business and I come back to see this...WOW!
illutic, thank you so much for this. This is great! You are great! Everyone on here is great! WPMU Dev is great!
This brings a tear to my eye...(well OK, maybe not), but thank to all for their input.
Wow...this is perfect. :-)
Member — 26th June 2009 20:49 #
Ok, in testing the plugin it appears that the header (when activated) only appears in Firefox.
But will not appear in IE, Chrome, Opera or Safari. But for some reason the footer appears.
Anyone else having this problem or is it just me?
Keeper of the Dark Chocolate — 27th June 2009 15:39 #
Got link? I think we should start doing the case of beer if folks don't give link. :)
Member — 27th June 2009 16:27 #
Wow, I can't believe I didn't add links. Here are the links to the various blogs.
http://fanraiser.net/
http://fanraiser.net/cause1/
http://fanraiser.net/demo2/
http://fanraiser.net/challenge/
Sorry for this drmike. The beer is on the way.
Keeper of the Dark Chocolate — 27th June 2009 16:40 #
At library. Hour wait foe terminal. Check then.
Member — 28th June 2009 03:42 #
Anyone? :-)
Erstwhile founder — 28th June 2009 03:54 #
There's not really a need to bump a post after 11 hours on a weekend ;)
Thanks,
Andrew
Keeper of the Dark Chocolate — 28th June 2009 13:46 #
Had issue yesterday that I had to deal with. Did looksee but not see reason right off. One briswer it's at top. Other ie? It's at bottom.
Member — 29th June 2009 19:26 #
Looks like a CSS thing. I'll take a look at it tomorrow.
Member — 30th June 2009 08:20 #
Okay, replace
html { margin-top:30px; }withbody { margin:30px 0 0; position:relative; }(the change in margin deletes the bottom 30px margin that was enabled in some browsers with using the margin-top).This makes the header work in Safari 4, Opera 9.63 and Chrome 2 and IE7.
I'll update the plugin with it later today (but since saved options are getting loaded into those textfields you wouldn't see those changes, so manually editing of the CSS is necessary).
Member — 30th June 2009 11:32 #
Just updated the plugin to v1.4
This version gives you the functionality of enabling the header/footer for supporters only (also a few minor bugfixes and a change in looks for the admin-page).
Member — 30th June 2009 13:23 #
great :-)
Member — 30th June 2009 13:43 #
what exactly do you mean by this:
where would I have to manually edit the css? on the options page of the plugin? if so, I did that, but it doesn't yet reflect on all blogs, shouldn't it?
Member — 30th June 2009 17:18 #
That means that you have to change that manually on the options page. It should reflect on all blogs, since it's a sitewide setting. Well, minus the blogs you've disabled it for ofcourse. Could be a cache thing.
And since you (probably) already saved the settings once, it won't load the default settings I put in it (would be a nasty surprise to those who've customized it a lot if it would revert to default settings when they update).
I could put in an option to revert to default settings though.. Geesh.. this plugin is getting a whole lot of updates in such a short period.. :)
Member — 1st July 2009 06:43 #
just noticed you sneaked a 1.5 version out without telling! ;-)
Member — 1st July 2009 10:56 #
lol, yeah.. you caught me.. ;-)
I'm working on a similar but also very different plugin btw. Backend stuff is almost ready and I hope to have the rest ready by tomorrow.
With the new plugin you can add as many headers/footers as you like and (if I can get that to work) also pin it to a conditional tag (is_page, is_single etc. or even is_year(2008)). The functionalities of the Global Header plugin will be in there as well.
Oh well, I'll let you know more when it's somewhat finished :)
Member — 1st July 2009 14:13 #
Just released the other plugin I was talking about, it's called 'Adding Blocks' and you can find it here: Adding Blocks.
Member — 4th July 2009 11:51 #
Adding Blocks v0.2 has been released, this release fixes a few bugs, adds more tags you can use in the blocks (ie. %NUMBLOGS%, %NUMUSERS% and more).
I also tweaked the add/edit block pages and put everything inside 4 tables and made them collapsible (an overview of all possible tags is in one of those tables). This means you don't have to scroll all the way down every time just to save it, just keep the tables closed you don't need at that moment :-)
Oh, also added a redirect after adding a new block (get redirected to the edit block page instead of the overview of all blocks).
And you can now enable blocks for users and/or make a block user only.
Member — 6th July 2009 18:25 #
Is there any chance that these plugins are multi-site aware?
Member — 6th July 2009 19:36 #
Haven't been able to test that yet. If you could test that and let me know what comes out of it that'd be great (otherwise you'll have to wait a little longer (by that I mean end of next week approx.), kinda busy at the moment).
Member — 8th July 2009 05:45 #
I have installed but haven't played with it yet. I'll test on Thurs and let you know. Thanks!
Member — 14th July 2009 22:02 #
I haven't had a chance to test it yet but I wonder if it's really what I'm after. I'm looking to keep one header (image, links, nav, etc.) and footer standard across the various blogs on a given site. My WPMU install happens to have multiple sites, which adds a layer of complexity, but the core functions need to be the same: site-standard header and footer across all blogs on a site. Will either of Hiranthi's plugins help me do this?
Member — 15th July 2009 08:38 #
@Hiranthi:
I just tried the plugin on another wpmu installation and the output (in the sourcecode) looks like this:
<div id=\\\"wpmu-footer-html\\\">
<p>
Service offered by me
</p>
</div>
the original code I try to output is:
<div id="wpmu-footer-html"><p>
Service offered by me
</p>
</div>
see those multiple slashes? can yo ucheck if this is a general problem please?
Member — 15th July 2009 18:49 #
@soundpublishing, both plugins are for global 'blocks' across a WPMU install. I haven't tested it with multiple sites yet, so I'm not sure if that works or not.
@Ovidiu, with which one is that? The Global Header or the Adding Blocks plugin?
Member — 16th July 2009 09:15 #
@Hiranthi: I am still using the Global Header plugin, have no need for the Blocks plugin. I fixed it meanwhile, by manually using phpmyadmin to edit the field... without those \\\\
btw. I had upgraded to 2.8.1. shortly before I noticed the problem, maybe something else is breaking this functionality?
Member — 21st July 2009 01:35 #
Thanks sooooo much for this Global Header plugin - I fell over this post while looking for site wide tags (still have to address that one hehe)
I've downloaded and installed, and spent a bit of time playing - thought you might like to see the results...
http://allthingsquilting.com.au
http://sewersdelight.allthingsquilting.com.au
http://quiltingmagic.allthingsquilting.com.au/
http://caboolturesewingmachines.allthingsquilting.com.au/
Can't get it to work on...
http://faeriesinmygarden.allthingsquilting.com.au/
so I guess I'll have to play a bit more
Stef
Member — 21st July 2009 12:30 #
@Ovidiu, that's odd.. perhaps that's a phpMyAdmin or PHP thing? I can't reproduce it on my WPMU install (did have something similar with a theme options page for a client of mine, suddenly added a whole bunch of slashes).
@inweb, it looks like the wp_footer() is missing in footer.php of the theme it doesn't work on (CSS is added in the header, but the HTML isn't there in the footer).
Member — 21st July 2009 16:25 #
strange, after correcting it with phpmyadmin, I can now save and change the settings as often as I will, its no longer inserting those \'s
but meanwhile I also upgraded 2 minor versions to 2.8.2...
Member — 22nd July 2009 12:24 #
@Hiranthi:
it still fails on some blogs. check http://sasha.zice.ro/ for example. take any page's source code and look for the footer text, it still has a \ in front of every " :-( even though I corrected the settigns and its now displayed right in the plugi nsettigns itself.
Member — 22nd July 2009 17:41 #
Many thanks to drmike for pointing me to this topic! This plugin would do exactly what I need if I could get it to work. I have two issues...
1. My Google AdSense code won't display ads in the header/footer. Will javascript work with this plugin? I've got it working with the WPMU Footer HTML plugin, with issues I describe here, but the idea of not hacking the plugin file is awesome.
2. The php-generated links I have are breaking in this plugin, while they work in WPMU Footer HTML. View the footer code I'm trying to use here. I'm just using the ad script for the header code. In both cases, no ads get displayed.
Any assistance is greatly appreciated!
Member — 22nd July 2009 17:50 #
@Ovidiu, just updated the Global Header plugin, added stripslashes() to the output. Could you let me know if this fixes your issues?
@jcnjr, if you read the extra documentation on the settings page of either one of the plugins (Global Header and Adding Blocks) you'll see that I've added a few 'shorttags' which you can include in the footer/header/blocks.
Just using $current_site etc. without making it global can indeed break it.
<a href="<?php echo $current_site->domain . $current_site->path ?>"><?php echo $current_site->site_name ?></a>should be:<a href=""%SITEURL%"">%SITETITLE%</a>(both plugins)I don't know about the WPMU Footer plugin, since I don't use it. JavaScript should be executed as usual in both of my plugins though (guess it's not working because the PHP breaks).
Member — 22nd July 2009 19:20 #
@Hiranthi Thanks for the quick reply! That helped alot, and the stripslashes fix worked for my links too.
We're almost there ... the header content is publishing in the footer. Look at the "x x x fpo x x x" in my footer here. I entered that text in the Global header settings of the plugin!
Member — 22nd July 2009 22:59 #
Hi. I'm having the same issue with the Global Header plugin since upgrading to WPMU 2.8.2. I just downloaded the latest version of the plugin to see if it had been fixed, but I'm getting one backslash inserted before each " on the links and the div id is \"global-header\" when you the view the source of the rendered page. I can edit out the backslashes in phpMyAdmin and all works as it should, but of course it puts the backslashes in again as soon as I save via the plugin admin screen again. It's not an insurmountable problem as I can just edit out the backslashes when I've stopped tinkering, but I thought I'd let you know it's happening and see if you have a fix for it.
Thanks.
Member — 23rd July 2009 08:28 #
YEAH! 1.6 works and fixes those problems I was having THX Hiranthi :-)
Member — 23rd July 2009 09:42 #
@jcnjr, all HTML is loaded into the wp_footer hook. Which means that the HTML is indeed added into the footer of the theme. The reason you can add CSS is that you yourself can use it to position it wherever you like. I've added a 'header' and 'footer' section in the Global Header plugin so you can manage two separate parts (ie. header and footer) to add globally in your WPMU install.
There is some basic CSS added, but I can't guarantee that it works with all themes.
@Ovidiu, good to hear! :-)
@stcwebdesigns, did you update to v1.6?
Member — 23rd July 2009 10:59 #
Yes, I'm afraid it is v1.6 I updated to and it's still doing this. I checked and double checked it was the latest version, and it has the note about v1.6 being because of the backslash problem in the changelog at the top of the file.
Any ideas? It all worked before the update to 2.8.2 and still works if I manually edit out the backslashes in phpMyAdmin.
Member — 23rd July 2009 13:16 #
@stcwebdesigns:
Weird, since I'm not adding slashes to it when saving to the database. The stripping is only a precaution (for when the slashes are added to the DB).
So for some reason your PHP or DB is adding them automatically (at least, that's what appears to be happening).
Anyway, I just added a new version (v1.7) that adds a stripslashes() when saving to the DB. Hope that solves your problem.
Member — 23rd July 2009 13:31 #
@ Hiranthi It does. Thanks ever so much for your timely response. It's much appreciated.
Member — 23rd July 2009 14:22 #
@stcwebdesigns, good to hear! :)
Member — 23rd July 2009 17:49 #
Right, most excellent. That's why I want to use this great plugin!
But the text (even just plain text) that I entered into the 'header' section is appearing in the footer of every blog. How can I get it to appear in the headers? Do I need to use the Adding Blocks plugin instead?
You can see an example of this issue in the footer here. The "x x x x x" in the footer is text I entered in the "Global header settings". No html, no php, and only enable box is checked.
FYI: I updated to v. 1.7 and issue persists. Thank you for your time!
Member — 23rd July 2009 18:18 #
@jcnjr, you'll have to adjust the CSS for it. The text is - as I already stated - indeed added to the footer of every page (where wp_footer() is being called in the theme-file).
The default CSS added positions the header to the top of the page and the footer to the bottom of the page. Could be that the CSS of the theme you're using it in is overwriting the CSS in the plugin.
Member — 23rd July 2009 20:13 #
@Hiranthi Thank you so much for bearing with me. I had not applied the style to my header insert. Duh. Now my only problem is that it is overlapping the blog content beneath.
Member — 23rd July 2009 21:37 #
@jcnjr, no problem :)
I see you have the header div still at a height of 30px. The adsense div has a width and height without a unit (it only says width:730; height:92 - but it doesn't say 730/92 of what). It should be width:730px; height:92px; The header div should be adjusted accordingly.
I don't see where the footer is overlapping btw (FF3). Did notice that you still have the global-footer div in the CSS, but you're not using it in the HTML of the footer.
Member — 24th July 2009 05:51 #
Can't thank you enough for the tutorial. And the great plugin work!
Member — 24th July 2009 14:40 #
This is one long post! Anyway, global header plugin seems not to be working with wpmu 2.8.2. Why? Most wpmu/wp themes show the global header in the wrong place -- either at the footer or to the side, but not at the top of blog's pages. This worked fine with wpmu 2.7.1, but it got totally screw up when I updating to wpmu 2.8.2.
By the way anyone has the correct css's code to share if your is working with wpmu 2.8.2?
Member — 24th July 2009 14:47 #
@argh2xxx, did you upload to the latest version?
Member — 24th July 2009 18:33 #
Yep, after uploaded the latest one as of today (downloaded latest on jul 24 2009) and still seeing the same css problem. The global header appears at footer or to the sides instead at the top of blog's pages.
I'm using 100 farm theme from wpmudev.org premium account, so I doubt the themes are the problem.
Member — 24th July 2009 18:36 #
Problem solved! After hitting revert to default setting option at the very bottom of the global header setting page, everything seems OK now!
Member — 24th July 2009 19:54 #
@argh2xxx, sounds like it was a CSS problem. Good to hear your problem is solved now.
Member — 3rd August 2009 08:42 #
can someone give me a little help with a css problem related to this plugin?
the global footer doesn't stay stuck to the bottom of the page :-( see problem here: http://rdobroi.zice.ro/
the css I use is:
this is how the footer.php looks like but that seems ok:
###edit###
found these tw olinks, currently reading through them but I wouldn't want to have to edit every theme :-(
http://www.cssstickyfooter.com/
http://www.themaninblue.com/writing/perspective/2005/08/29/
###edit-2###
solved. changed the footer.php to this:
</div><!-- end content --><span class="clear"></span>
<div id="footer">
Theme: Garland by Steven Wittens and Stefan Nagtegaal.
</div>
</div></div><?php wp_footer(); ?></div></div> <!-- /.left-corner, /.right-corner, /#squeeze, /#center -->
<?php include (TEMPLATEPATH . '/sidebar2.php'); ?>
</div> <!-- /container -->
</div>
<!-- /layout -->
</body>
</html>
Member — 16th October 2009 16:39 #
I have a couple of questions regarding the Global Header plugin. The plugin is great, but I have a couple of questions. I use Farms 100 big ones theme pack and there are just a couple of themes that things don't look quite right on it. I assume I'm going to have to edit some of the CSS for those particular themes. My question is, what tags should I look to change first? Does the Global Header Plugin override the CSS that is located in that particular theme?
Thanks!
Erstwhile founder — 16th October 2009 19:11 #
Hiya,
I'm afraid that's not one of our premium plugins but hopefully someone familiar with it will drop by and provide some assistance.
Thanks,
Andrew
Keeper of the Dark Chocolate — 16th October 2009 20:21 #
Depends on the theme. Most themes have the function call wp_head at the end of the head which means the Global Header CSS would come after whatever else is in front of it.
Member — 16th October 2009 23:28 #
@terence, as drmike says: the CSS for the Global Header plugin is loaded in the spot where wp_head is called (at the end of it). So if the stylesheets are linked to above that, Global Header's CSS could overwrite it.
But, if you would make sure the 'path' to the ID or class is longer in the theme's CSS (compared to the GH's CSS) it wouldn't overwrite (CSS rules: if there's a "body #global-header" in a CSS file and only "#global-header" is called after that, it'll take the "body #global-header" instead of the last one, because it's defined more specific).
Keeper of the Dark Chocolate — 16th October 2009 23:39 #
Usually at the end. You'll find themes with it in the middle of the head or even at the beginning.
Wordpress theme developers are a strange bunch.
Member — 19th October 2009 15:54 #
Thanks guys, you have helped a lot!
One more question. I have some themes where the Global Header works great. It is in the right place, with the right color background, but the header image that I have specified to show just isn't showing at all. Most of the themes, everything works great, but there are a couple that the image isn't showing up at all. Any thoughts?
Erstwhile founder — 19th October 2009 16:39 #
Probably a CSS issue. It's really hard to make all of the themes behave with something like this. It's usually just either to select a few themes that work ok.
Thanks,
Andrew
Keeper of the Dark Chocolate — 19th October 2009 18:35 #
Check to see if they have the wp-footer function call in their footer.php file.
Member — 25th February 2011 17:14 #
Sorry to revive this old thread but I'd like to know where the homepage of these two plugins got moved to as they are unavailable under the old link.
Sales & Support Lead — 26th February 2011 01:01 #
Hiya Ovidiu,
Sorry, which two? The Global Header and Footer?
I had modified a version of Global Header last year for an install with 3.0 - but haven't looked at it since. I'll attach it hear and you can give it a whirl. Don't know about the other though.
Hope this helps!
Thanks!
Become a member