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
Google Analytics and AG Custom Admin causing errors?
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jul 24, 2012 - 5:33 pm

Curious. Something - and I really do not know what - is causing a single quote to become a double quote in the login form call. As if it is running a WP filter or something. The GA plugin is very widely used. Does it have any options to do with content filtering?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Marcos Figueroa
Member
Free Members
sp_UserOfflineSmall Offline
Jul 24, 2012 - 5:54 pm

Um...  Mr. Papa worked with me on another situation that included altering the spFunctions.php in my theme.  (yea, I'll be making a child theme...eventually).

This was the code included:

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

Here are my options within the GA plugin:

Image Enlarger

Thanks, Marcos

[Image Can Not Be Found]

Avatar
Marcos Figueroa
Member
Free Members
sp_UserOfflineSmall Offline
Jul 24, 2012 - 5:57 pm

As a matter of testing...

I unchecked the "track outbound clicks & downloads" in GA

 

It appears that everything is working fine now!

Hmmmm.....

What does it look like to you?

Does that make sense to you?

Avatar
Marcos Figueroa
Member
Free Members
sp_UserOfflineSmall Offline
Jul 24, 2012 - 6:01 pm

I momentarily reactivated the AG Custom Admin and it rendered the button dead?

Any ideas?  I've deactivated it so you can confirm above to be ok to proceed.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jul 25, 2012 - 5:00 am

OK sorry you missed me last night. Things are looking good to me this morning. The only incorrect thing I am seeing on your site is this item of in-line javascript:

<script type="text/javascript">
// Form Label
document.getElementById('loginform').childNodes[1].childNodes[1].childNodes[0].nodeValue = 'Username or Email';

// Error Messages
if ( document.getElementById('login_error') )
    document.getElementById('login_error').innerHTML = document.getElementById('login_error').innerHTML.replace( 'username', 'Username or Email' );
</script>

This is causing an error although not a destructive one. It is NOT SP code but clearly is put there by a theme or by another plugin that is expecting some sort of login form to be present - for which it is not checking.

Now - this remaining plugin. What, exactly, does it do?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Marcos Figueroa
Member
Free Members
sp_UserOfflineSmall Offline
Jul 25, 2012 - 2:22 pm

OK... You helped me isolate the 'plugin' that was throwing that error.  It was one designed to allow a person to log in with their email called WP Email Login.  I deactivated it and verified that that error is gone.  Since the benefit outweighs the non-destructive error...I will probably reactivate it.

 

Now...the other plugin...  AG Custom Admin...  This plugin is designed to allow me to "white label" the wordpress site.  It's supposed to allow me to customize what is available in the "backend" to my "customer" who will need to make posts and such.

 

There is another plugin...more limited though...that will "white label" as well, but the customization is less.

 

I definitely prefer AG Custom Admin - unless there's one I'm unfamiliar with....  since I can actually "hide" certain fields within the post creation area... so they don't inadvertently click check marks they shouldn't...

 

But...when AG Custom Admin is active...the login button (in SP) is dead...

 

Thanks so much!

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jul 25, 2012 - 2:49 pm

The important question is - why is something pertaining to the admin being loaded on the public facing side of the site? This just suggests to me that it is badly written.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Marcos Figueroa
Member
Free Members
sp_UserOfflineSmall Offline
Jul 25, 2012 - 3:03 pm

Yea, or I think it does a lot more than just the backend.  It also customizes the user bar on the front end, login screens and such.  I assume that something it does with log in is causing the conflict...

It does a lot and probably lots that I don't know...  🙂

this is it:  http://wordpress.org/extend/pl.....tom-admin/

I'm going to reactivate it so maybe we can isolate the conflict.

Thank you so much for your help.

Marcos

Avatar
Marcos Figueroa
Member
Free Members
sp_UserOfflineSmall Offline
Jul 25, 2012 - 3:27 pm

OK, here is my feeble attempt to try and figure it out.  I've looked and since I really don't know anything about coding .... I'm guessing that when AG Custom Admin is active...It "loads" an old version of jQuery.  Shooting in the wind....  Since, when it's not active... there are no "Superfish" issues or.....  I'll continue to look for an answer....

Am I getting close?  🙂

Avatar
Marcos Figueroa
Member
Free Members
sp_UserOfflineSmall Offline
Jul 26, 2012 - 1:27 pm

I also put in a request for help at the AG Custom Admin site and this was his response:

Hi Marcos,

Not many clues on first sight. There are no JavaScript errors, thus it is difficult to debug. This requires advanced debugging including both plugins. I am not very familiar with other plugin, and problem is that this looks good without any errors. You could try to exclude jQuery script includes in AGCA or other plugin, there could be conflict with that.

Good luck,
Argonius

and then he came back with:

OK, I think I found something. Go to other plugin and find this somewhere:

<a onclick="jQuery(document).ready(function() { spjToggleLayer("spLoginForm"); });" href="javascript:void(0);" title="Log in and log out" id="spLogInOutButton" class="spButton spRight vtip" style="text-shadow: none;"><img alt="" src="http://keepourforestopen.org/wp-content/sp-resources/forum-themes/default/images/sp_LogInOut.png" class="spIcon">Log In</a>

change onclick atribute from:

onclick="jQuery(document).ready(function() { spjToggleLayer("spLoginForm"); });"

to

onclick="spjToggleLayer("spLoginForm");"

Hope it helps.

Argonius

 
I'm going to attempt this and see if that works.  I would love your input!  I don't want to do anything that will cause problems later...
 
I figure that collective knowledge is better than....  well....  MINE!!!  smile
 
Thanks so much!
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