PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Search field on landing page, letting non-members inside

s2Member Plugin. A Membership plugin for WordPress®.

Search field on landing page, letting non-members inside

Postby divagrrl27 » October 29th, 2011, 2:31 am

So I think this may be a theme- or BP-related issue, but I figured I'd check here, too, since s2Member sets the home page as the "Membership Options" page.

I have a search field appearing in the upper right of that page, and just discovered that performing a search takes you RIGHT INSIDE THE SITE! Non-members have access to everything!

Granted, the navigation menus are hidden, but with all the text links everywhere, they can get all over the site.

I doubt this is currently being abused, I'm not exactly a traffic superhighway, but still, the lock is broken and I'd like to figure out how to fix it!

Thanks for any help you can offer.

Melissa
User avatar
divagrrl27
Registered User
Registered User
 
Posts: 64
Joined: October 25, 2011

Re: Search field on landing page, letting non-members inside

Postby Eduan » October 29th, 2011, 10:46 am

Now officially accepting Professional s2Member installations along with Bruce C (a.k.a. Ace).

If you're interested in a Professional s2Member Installation, or a Custom Coding Job, you can send your request here.
User avatar
Eduan
Experienced User
Experienced User
 
Posts: 1154
Joined: August 27, 2011
Location: Taxco de Alarcón, Guerrero, México.

Re: Search field on landing page, letting non-members inside

Postby divagrrl27 » October 29th, 2011, 12:10 pm

Just watched it. Very interesting and useful, but it has nothing to do with my problem.

There's a search field that seems to be automatically set to appear. I did not place it on the Membership Options page -- it is automatically showing up, and I have no idea how to get rid of it.

A search in that search field takes the viewer INSIDE the site, to the member home page (which I've set to the BuddyPress "Activity" page). This should be protected content, ONLY viewable to paid members.

This may be a BuddyBoss (theme) or BuddyPress (social network plugin) issue, but I'm looking into all possibilities!!

I'm attaching before and after screenshots, showing the Membership Options page with the unwanted search field (before) and what shows up after the search. Does the screenshot make it more clear what the problem is?

Thanks,
Melissa
Picture 42.png
Membership Options page, showing unwanted search from

Picture 43.png
Member home page (set to be BuddyPress "Activity" page), which should only be available to paid members!
User avatar
divagrrl27
Registered User
Registered User
 
Posts: 64
Joined: October 25, 2011

Re: Search field on landing page, letting non-members inside

Postby divagrrl27 » October 29th, 2011, 12:31 pm

BTW, on the suggestion of tech support over at the BuddyBoss forum, I tried putting a blank text widget in the sidebar. That only made a blue field appear below the search field.

Picture 44.png
Blank widget showing up as blue field below the search form


Question: which file does s2Member put the search field in? And is it possible to set it to NOT appear on the Membership Options page, but to appear in all the other places it normally does?

THAT'S what I'm really hoping to accomplish.
User avatar
divagrrl27
Registered User
Registered User
 
Posts: 64
Joined: October 25, 2011

Re: Search field on landing page, letting non-members inside

Postby Bruce C » October 29th, 2011, 1:08 pm

Hi,

s2Member does NOT put a search bar at the top of any page. It would appear that it is a BuddyBoss feature (just checked.. definitely is check http://buddyboss.com/demo/blog/), and the non-protection of the page is a BuddyPress issue.

To protect the page, I would try playing around in Dashboard ->s2Member->Restriction Options, and more specifically, the URI Restrictions. Perhaps blocking the page again through the URI restrictions will solve the problem.

In order to get rid of the search form, here's what I would do:

1. Go to /wp-content/themes/buddyboss/_inc/css/default.css file in the theme and enter
Code: Select all
#searchform {
    display: none;
}



That will get rid of the search bar.

Hope that helps!
~Bruce ( a.k.a. Ace )

If you're interested in a Professional Installation, or Custom Coding Job, you can send your request here.

Proud Supporter of:
The Zeitgeist Movement
and Occupy Everything
User avatar
Bruce C
Experienced User
Experienced User
 
Posts: 337
Joined: July 20, 2011

Re: Search field on landing page, letting non-members inside

Postby divagrrl27 » October 29th, 2011, 1:22 pm

Thank you Ace! Tried this, but it didn't do anything.

Discovered an even bigger problem in the meantime: the Membership Signup page is also showing a "Signup" button at the top right, and I just successfully registered as a test user, gaining COMPLETE LEVEL #4 ACCESS for free!

Ack! Help!
User avatar
divagrrl27
Registered User
Registered User
 
Posts: 64
Joined: October 25, 2011

Re: Search field on landing page, letting non-members inside

Postby Bruce C » October 29th, 2011, 1:26 pm

I sent you a PM.
~Bruce ( a.k.a. Ace )

If you're interested in a Professional Installation, or Custom Coding Job, you can send your request here.

Proud Supporter of:
The Zeitgeist Movement
and Occupy Everything
User avatar
Bruce C
Experienced User
Experienced User
 
Posts: 337
Joined: July 20, 2011

Re: Search field on landing page, letting non-members inside

Postby divagrrl27 » October 29th, 2011, 1:29 pm

More data: I just opened Safari, and the search form is NOT appearing there. It IS appearing when I go to the home page in Chrome and Firefox.

Haven't received your PM yet..
User avatar
divagrrl27
Registered User
Registered User
 
Posts: 64
Joined: October 25, 2011

Re: Search field on landing page, letting non-members inside

Postby Bruce C » October 29th, 2011, 1:31 pm

That may have something to do with your browser cache. The display:none; property is not Safari exclusive.
~Bruce ( a.k.a. Ace )

If you're interested in a Professional Installation, or Custom Coding Job, you can send your request here.

Proud Supporter of:
The Zeitgeist Movement
and Occupy Everything
User avatar
Bruce C
Experienced User
Experienced User
 
Posts: 337
Joined: July 20, 2011

Re: Search field on landing page, letting non-members inside

Postby divagrrl27 » October 29th, 2011, 1:35 pm

Yet more data: The Signup button has disappeared, and I haven't been able to reproduce it. (Good news, except that now I'm living in a state of constant anxiety about whether it will randomly appear again 8-])

Also, when I registered a test account via the randomly-appearing signup button, it signed up up to the AWeber list associated with a Level #3 membership.

For what it's worth...
User avatar
divagrrl27
Registered User
Registered User
 
Posts: 64
Joined: October 25, 2011

Re: Search field on landing page, letting non-members inside

Postby divagrrl27 » October 29th, 2011, 1:37 pm

Interesting... I just cleared my cache in Firefox, and the search form went away!

Do you think this was just happening on my machine..??
User avatar
divagrrl27
Registered User
Registered User
 
Posts: 64
Joined: October 25, 2011

Re: Search field on landing page, letting non-members inside

Postby divagrrl27 » October 29th, 2011, 1:37 pm

Tried it in Chrome, too, and search form GONE! :)
User avatar
divagrrl27
Registered User
Registered User
 
Posts: 64
Joined: October 25, 2011

Re: Search field on landing page, letting non-members inside

Postby Bruce C » October 29th, 2011, 1:39 pm

Yes, just your computer. It is gone for me also.
~Bruce ( a.k.a. Ace )

If you're interested in a Professional Installation, or Custom Coding Job, you can send your request here.

Proud Supporter of:
The Zeitgeist Movement
and Occupy Everything
User avatar
Bruce C
Experienced User
Experienced User
 
Posts: 337
Joined: July 20, 2011

Re: Search field on landing page, letting non-members inside

Postby Bruce C » October 29th, 2011, 1:41 pm

Are you using s2Member Free, or s2Member Pro?

Also, are you using One-Time-Offers, or any conditionally-available upgrade buttons?
~Bruce ( a.k.a. Ace )

If you're interested in a Professional Installation, or Custom Coding Job, you can send your request here.

Proud Supporter of:
The Zeitgeist Movement
and Occupy Everything
User avatar
Bruce C
Experienced User
Experienced User
 
Posts: 337
Joined: July 20, 2011

Re: Search field on landing page, letting non-members inside

Postby divagrrl27 » October 29th, 2011, 1:52 pm

I have created one-time PAYMENT buttons, is that what you mean? (Ie, for non-recurring payments)

I have not created any upgrade buttons. I'm not even sure what a conditionally-available upgrade button is. :-}
User avatar
divagrrl27
Registered User
Registered User
 
Posts: 64
Joined: October 25, 2011

Re: Search field on landing page, letting non-members inside

Postby Bruce C » October 29th, 2011, 2:00 pm

If you don't know what it is, then it shouldn't be a bother.

However, I would still check the contents of that page for any unwanted code that you may have accidentally placed there, just to make sure.
~Bruce ( a.k.a. Ace )

If you're interested in a Professional Installation, or Custom Coding Job, you can send your request here.

Proud Supporter of:
The Zeitgeist Movement
and Occupy Everything
User avatar
Bruce C
Experienced User
Experienced User
 
Posts: 337
Joined: July 20, 2011

Re: Search field on landing page, letting non-members inside

Postby Bruce C » October 29th, 2011, 3:35 pm

Just though of something. Do you have a php execution plugin installed

What may be happening is that somebody has attacked your website through Exec-PHP or another php plugin in a post, and created the button using some php code. It is a long-shot, but check your member's list for any users with outstanding membership levels, and if you are using Exec-PHP, check the table in the logs under Settings to make sure nobody's cheating.

Otherwise, it's probably just a glitch with something on your site.
~Bruce ( a.k.a. Ace )

If you're interested in a Professional Installation, or Custom Coding Job, you can send your request here.

Proud Supporter of:
The Zeitgeist Movement
and Occupy Everything
User avatar
Bruce C
Experienced User
Experienced User
 
Posts: 337
Joined: July 20, 2011

Re: Search field on landing page, letting non-members inside

Postby divagrrl27 » October 29th, 2011, 6:00 pm

Uh, oh, that **** search form is appearing again! I keep trying cache clearing, but that isn't helping.

8-[
User avatar
divagrrl27
Registered User
Registered User
 
Posts: 64
Joined: October 25, 2011

Re: Search field on landing page, letting non-members inside

Postby Bruce C » October 29th, 2011, 6:48 pm

It looks as though the code I gave you is no longer there. Can you check the file again and see if it's still there please?

Also, it you have a caching plugin installed in your wordpress setup, try clearing that.
~Bruce ( a.k.a. Ace )

If you're interested in a Professional Installation, or Custom Coding Job, you can send your request here.

Proud Supporter of:
The Zeitgeist Movement
and Occupy Everything
User avatar
Bruce C
Experienced User
Experienced User
 
Posts: 337
Joined: July 20, 2011

Re: Search field on landing page, letting non-members inside

Postby divagrrl27 » October 29th, 2011, 7:04 pm

Ah! Looks like that fixed it (fingers crossed..) I'd removed that code, thinking it wasn't necessary (since it didn't seem to help at first, and since BuddyBoss encourages a protocol of only editing the child theme, not the main theme.

There's no default.css file in the child theme, though. If I add that code to custom.css in the child theme, do you think that will work?
User avatar
divagrrl27
Registered User
Registered User
 
Posts: 64
Joined: October 25, 2011

Re: Search field on landing page, letting non-members inside

Postby Bruce C » October 29th, 2011, 7:08 pm

Yea, I think it would work, since BuddyBoss should link to that stylesheet if it's meant to be customized.
~Bruce ( a.k.a. Ace )

If you're interested in a Professional Installation, or Custom Coding Job, you can send your request here.

Proud Supporter of:
The Zeitgeist Movement
and Occupy Everything
User avatar
Bruce C
Experienced User
Experienced User
 
Posts: 337
Joined: July 20, 2011


Return to s2Member Plugin

Who is online

Users browsing this forum: No registered users and 0 guests

cron