Support Forum

Page Background disappears with Forum

SS Scott Schwab
Scott Schwab
Member

For some reason, the page background has disappeared on the forum page(s) unless you login… Also, the logo in the top left is showing twice unless you login…

www.midwestengineering.com

 

Any ideas?

26 Answers

New Answer

MP Mr Papa
Mr Papa
Member

probably some special login plugin your are using…  do you have one?  perhaps try disabling the forum inline login form…

SS Scott Schwab
Scott Schwab
Member

I have no idea how to disable the inline login form… I don’t even know what that is question

I was excited to see you online… then you logged out? frown

SS Scott Schwab
Scott Schwab
Member

I’m really clueless when it comes to this stuff… I just spent over a week building out the forum… over 1200 posts…

I just don’t know enough of the coding to fix it…

MP Mr Papa
Mr Papa
Member

getting late…  work early in AM…

but try one more post…

you contact form widget from the theme is throwing js errors…  doesnt seem to affect forum page though because no sidebar…

getting two images from the wp theme… this code:

<a rel=”home” title=”Midwest Engineering” href=”http://www.midwestengineering.com/” name=”top”>
<img alt=”Midwest Engineering” src=”http://www.midwestengineering.com/wp_mwe/wp-content/uploads/2012/04/Midwest_logo.png”>
</a>

the theme is applying an image to the a tag and then the img itself…   the one from the a tag is the admin logo:

http://www.midwestengineering.com/wp_mwe/wp-content/themes/innovative/images/admin_logo.png

vs the midwest logo…  so hence why I think the theme is poorly written and confused by the login form we have (click on loging button)… it really should only be doing that on the wp login page – not any login form…

so my recommendation was you might compensate for the silly theme issue by disabling the inline login form (the one you get when you hit the forum login button)…

in your sp theme spHead.php file, find this line:

            sp_LogInOutButton(‘tagClass=spButton spRight’, ‘Log In’, ‘Log Out’, ‘Log in and log out’);

and change it to

            sp_LogInOutButton(‘tagClass=spButton spRight&logInLink=http://www.midwestengineering.com/wp_mwe/wp-login.php’, ‘Log In’, ‘Log Out’, ‘Log in and log out’);

personally, I would rather fix the sp theme…

SS Scott Schwab
Scott Schwab
Member

Thanks Steve! I will take a look at this and reach out to you tomorrow! laugh

MP Mr Papa
Mr Papa
Member

okay, let me know how you get along…  Andy is gone for day, so I will check back in evening after work…

SS Scott Schwab
Scott Schwab
Member

I tried your recommendation but it didn’t change anything… So, I deleted the admin_logo.png and the double logo image has disappeared…

As far as the background disappearing, it appears to be an issue with s2Member plugin…

The s2Member’s bg.png overrides the theme’s body_bg.jpg on the forum page ONLY if I am NOT logged in, instead of the theme’s background, I get a blank (white) page background on my forum page…

When I right-click on the background on the forum page and View Background Image, I see http://www.midwestengineering.com/wp_mwe/wp-content/plugins/s2member/images/bg.png

When I right-click on the background of any other page and View Background Image, I see http://www.midwestengineering.com/wp_mwe/wp-content/themes/innovative/images/body_bg.jpg

BUT, when I am logged in, the page background displays properly… crazy…

MP Mr Papa
Mr Papa
Member

only issue with deleting the admin logo will be you wont have a styled wp login page… but everything should work fine…

is there any S2 member option/setting that lets you counteract that?

MF Marcos Figueroa
Marcos Figueroa
Member

Hey @Scott,

I was having the same problem as you.  Using S2Member and Simple:Press caused my background to disappear when NOT logged in.  After login, everything displayed fine.

Here is the FIX!  (tried and verified – www.keepourforestopen.org/forum/ )

 

Please create this directory and file:
/wp-content/mu-plugins/s2-hacks.php

then add:

<?php
add_filter (“ws_plugin__s2member_login_header_styles”, “__return_false”);
?>

 

That’s it!

 

This will disable the CSS that S2Member applies to the login page (that loads in the header).  The side effect is that if you have a styled login (at /wp-login.php) it will revert to the standard WP login.

Since I’ve got S2M Pro, I just use the login widget on a page, so this doesn’t bother me.

Cheers,

Marcos

MP Mr Papa
Mr Papa
Member

ah, so a greedy filter on the login… catching the login form that we have inline…

nice job figuring it out!

just to clarify, you could put that code into your wp theme functions.php or your sp theme functions.php…

and if you only want to do it on the forum page, you might try something like:

add_filter ('ws_plugin__s2member_login_header_styles', 'my_skip_login');
function my_skip_login($data) {
    if (sp_is_forumpage()) return false;
    return $data; 
}
MF Marcos Figueroa
Marcos Figueroa
Member

I’m totally not an experienced user, but waded through tons of forum posts to extract that info (thought I’d share the result!)… whew!

 

@ Mr. Papa…do those files get over written if there is an update to the theme?  I thought the reason to put it in the must use plugins folder was to keep it from getting updated?  I’m learning here…

 

Also, I tried the code above and it did correct the background issue on the forum page and I did get the styled login, but it’s missing the logo (better of the 2-rather no logo than wp logo).

Any idea how to get that back?

keepourforestopen.org (click Log Me In) and it fowards you to the login – since your credentials were wrong…so you can see what I mean.

Thanks so much!

MP Mr Papa
Mr Papa
Member

which files? 

the wp theme could get overriden if it can be upgraded from within the wp admin…

if you do as we recommend and make your own sp theme from one of ours (http://codex.simple-press.com/codex/themes/theme-basics/creating-a-theme/), then it will not get overwritten…

Since its really a sp driven change, I would probably put it there…  and actually, you might be able to put just the code you had in the sp theme functions.php since it wont be loaded on non forum pages anyways…

MF Marcos Figueroa
Marcos Figueroa
Member

I will be making my own sp theme.

I removed the other code from s2-hacks.php

Then, I put your code in the “Default Theme’s” spFunctions.php

 

I get the same results.  It does fix the background issue.  Forum page loads flawlessly.  However, it’s still affecting the wordpress login page (@ http://keepourforestopen.org/wp-login.php )

It should have a logo above the “login box” but it’s now blank.

Any Ideas?

Thanks so much!

(PS – I have another issue concerning the login button in the forum – close to figuring it out but could use some help…Should I create a new topic?)