Page 1 of 1

Popup Modify profile not working

PostPosted: May 6th, 2010, 3:22 pm
by kathypop
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.

Re: Popup Modify profile not working

PostPosted: May 6th, 2010, 5:57 pm
by drbyte
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

Re: Popup Modify profile not working

PostPosted: May 7th, 2010, 1:21 pm
by Jason Caldwell
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.