Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Page Background disappears with Forum
Avatar
Marcos Figueroa
Member
Free Members
sp_UserOfflineSmall Offline
Jul 18, 2012 - 10:56 pm

Okay,  if I remove the entire IF statement the page background disappears again on the forum and the the logo on the login page is still blank...

...trying next instruction...

 

Actually, both give the exact same result... page background disappears and logo on login disappears.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 18, 2012 - 11:29 pm

so confused...  what did you have working??  either of those should be the same...

Avatar
Marcos Figueroa
Member
Free Members
sp_UserOfflineSmall Offline
Jul 19, 2012 - 12:24 am

Ummm... working....

Well, the original "problem" was the lack of a background on the forum page when not logged in.  Both my code and your code fixes that.

Side effects:

My code:  strips all styling (from S2Member) from a styled login (at /wp-login.php), reverting it back to the wordpress style and logo.... 

Your code: only removes my logo from that login... leaving the other styling in place... (wider fields and minimal styling)

 

At the very least...Your code offers the best of the 2.  Since I want a "white label" setup.  I'd rather no logo than the wordpress one.  🙂

 

However, I'd rather it all work.  I just wish I knew enough about php...   I'm learning though...one hiccup at a time!!  haha!

 

Thanks for all your help!

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 19, 2012 - 8:44 pm

thats where I am confused...

with nothing, you get the wp login page correct, but background on sp pages messed up... correct?

with just your code in hacks, you get wp login page looking like wp and sp pages looking right...  correct?

with my code:

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

you get sp page right, but the login page is not right...  missing logo...  correct?

but I dont understand why if you comment out the 'IF' statement or comment out the add_filter, it doesnt display as if you had done nothing...   doing either really is same as doing nothing... ie wp login correct but sp pages missing logo...

Avatar
Marcos Figueroa
Member
Free Members
sp_UserOfflineSmall Offline
Jul 20, 2012 - 3:16 pm

OK...  I've got S2Member setup to "theme" my login page.  Slight adjustments to the width of the box and my custom logo.

WITH NO CODE CHANGES

My "themed" login shows correctly and there is NO background on forum page WHEN NOT LOGGED IN.  After logging in... it shows the background fine.

 

WITH MY CODE EDITS - s2-hacks.php

My "themed" login is REMOVED (showing WP login).  The background works correctly on forum page.

 

WITH YOUR CODE EDITS - spFunctions.php

My "themed" login shows w/o logo at all (so no WP login-yea!).  The background works correctly on forum page.

 

# remove S2Members login CSS from forum
#add_filter ('ws_plugin__s2member_login_header_styles', 'my_skip_login');
function my_skip_login($data) {
 if (sp_is_forumpage()) return false;
 return $data; 
}

 

THIS CODE - spFunctions.php

My "themed" login shows w/o logo at all (so no WP login-yea!).  there is NO background on forum page WHEN NOT LOGGED IN.

 

# remove S2Members login CSS from forum
add_filter ('ws_plugin__s2member_login_header_styles', 'my_skip_login');
function my_skip_login($data) {
# if (sp_is_forumpage()) return false;
 return $data; 
}

 

THIS CODE - spFunctions.php - SAME RESULT

My "themed" login shows w/o logo at all (so no WP login-yea!).  there is NO background on forum page WHEN NOT LOGGED IN.

--------

Okay, weird... that got me thinking...  I commented out everything and my logo still doesn't show on the login page...  looking at several other things...  will get back at you.

Avatar
Marcos Figueroa
Member
Free Members
sp_UserOfflineSmall Offline
Jul 20, 2012 - 3:36 pm

embarassed  OH...MY...GOSH!!

I'm so embarrassed!  Your code works great!

Somehow, I must have deleted the logo image that S2Member was looking for to theme my login.  It all just happened at the same time and I didn't catch it...  I'm so sorry.

----

Oh, yea...I remember...I did delete the old logo file and uploaded a new one that was "crisper and clearer" and didn't change S2Member to look for the new file.

 

Wow, I'm so sorry for the rabbit trail!

 THANK YOU!  THANK YOU!  THANK YOU!  For All your help!! 

 

(got this figured out just in time for my next "issue"!)  -please don't run from me.... laugh

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 20, 2012 - 7:00 pm

well good!  that makes me feel better and not confused! ;)

no worries - all been there and done that...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626