Sorry, the forums are locked while I handle some maintenance.

 
This Forum is Currently Locked – Access is Read Only
You must be logged in to post Login


Lost Your Password?

Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

Feature Request – Exclude Pages/Posts and/or Exclude Outgoing Onclick

UserPost

4:59 pm
May 30, 2010


rog@popcornphotography.com.au

New Member

posts 1

Hi… I use and love this plugin and automatically include it for all of my clients, however I have come across an issue that I need help with.

In some of my sites, the Function handle_link on line 297 completely screws other code. This is because you use a combination of " & ' in your string replace. If I am using code that requires only using ' in the link string, Google Analytics breaks this.

 

Here is an example of part of a Script JS.

content: "<p><strong><?php the_title(); ?></strong><br /><br /><?php if ( in_category( '3' )) { ?><?php } else { ?><?php $values = get_post_custom_values('Phone_No');
    if (isset($values[0])) { ?><?php $key='Phone_No'; echo get_post_meta($post->ID, $key, true); ?><br /><?php } ?><?php } ?><br /><a href='<?php the_permalink() ?>' title='More details on <?php the_title(); ?>'>View Details</a></p>"

As you can see, If the Analytics code puts a (") into the permalink, the whole thing falls over.

I am wondering if this could be resolved by adding an Exclude Pages/Posts by ID in the Admin area of this plugin or even better yet… an Exclude Outgoing String Replace on Pages/Posts. This second option would still ensure that the page is being tracked by Google, AND solve the issues.

Many thanks in advance for any help you can provide on this issue

Rog

 

 


About the Xavisys Forum

Forum Timezone: America/Phoenix

Most Users Ever Online: 50

Currently Online:
1 Guest

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 3
Forums: 26
Topics: 410
Posts: 1034

Membership:

There are 794 Members
There has been 1 Guest

There are 2 Admins
There is 1 Moderator

Top Posters:

lkmweb@me.com – 9
Brayne – 8
Iain – 8
Xarzu – 8
Aaron Fineman – 8
me@joelglovier.com – 6

Recent New Members: neunkirchen@gmail.com, hammelcreative, puckles@gmail.com, kwelx@kwelx.com, kaufmanauthor@gmail.com, meesfrenkelfrank@hotmail.com

Administrators: AaronCampbell (242 Posts), Imported Questions (1 Post)

Moderators: nancy@mequoda.com (0 Posts)



 
Stop Censorship