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™

Popup Modify profile not working

s2Member Plugin. A Membership plugin for WordPress®.

Popup Modify profile not working

Postby kathypop » May 6th, 2010, 3:22 pm

Hi, we are having a problem with the popup code for modifying profiles. Nothing happens, no error message saying to unblock them ( which we already had disabled them)- nothing happened at all.
User avatar
kathypop
Registered User
Registered User
 
Posts: 1
Joined: May 6, 2010

Re: Popup Modify profile not working

Postby drbyte » May 6th, 2010, 5:57 pm

kathypop wrote:Hi, we are having a problem with the popup code for modifying profiles. Nothing happens, no error message saying to unblock them ( which we already had disabled them)- nothing happened at all.


I had the same problem and it's usually associated with the Template you have. Somewhere down on the line you have a script that is blocking/disabling the popup page.

I solved this problem by creating my own popup page:

Code: Select all
    <SCRIPT LANGUAGE="JavaScript">
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=400,height=350,left = 760,top = 425');");
}
</script>


insert the above right before the </head> tag in your index.php

then
Code: Select all
<A HREF="javascript:popUp('http://www.yousite.com/?s2member_profile=1')">Edit Profile</A>


to were you want it appear.

Hope that helps
User avatar
drbyte
Experienced User
Experienced User
 
Posts: 269
Joined: May 6, 2010

Re: Popup Modify profile not working

Postby Jason Caldwell » May 7th, 2010, 1:21 pm

Correct, this can happen if you're using the Visual Editor. DrByte's solution should work. If not, check your code before and after updating the Post/Page in WordPress. You'll probably find that your Visual Editor is mangling it; thereby creating a JavaScript error that prevents the link from working.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA


Return to s2Member Plugin

Who is online

Users browsing this forum: No registered users and 1 guest