Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2005
    Location
    Vic, Oz
    Posts
    1,905
    Plugin Contributions
    5

    Default AddThis Social Networking vs ZenId

    I want to add "AddThis" social networking buttons to areas of my site.
    The default setup uses the current URL
    Sometimes this includes a ZenId

    I want to be able to reconstruct the the current URL and remove the ZenId if present so that this can be passed as the link to this page.

    Anybody have some code to build the new URL

    Perhaps using HTTP_REFERER and add the $_GET variables one by one (excluding the ZenId if present)

  2. #2
    Join Date
    Jan 2008
    Posts
    43
    Plugin Contributions
    0

    Default Re: AddThis Social Networking vs ZenId

    I added this line in the javascript section of addthis:

    Code:
    var pageUrl = location.href.replace("&zenid=<?php echo $_GET['zenid']; ?>", "");

 

 

Similar Threads

  1. Social Networking Sidebar
    By cfisupply in forum All Other Contributions/Addons
    Replies: 73
    Last Post: 7 Nov 2018, 12:21 PM
  2. social networking sidebar mod problems
    By bluelightnin6 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 10 Feb 2012, 11:31 PM
  3. Zen Cart and social networking?
    By wearethecure in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 2 Mar 2010, 07:19 AM
  4. Adding business/social networking to site
    By NYsista872 in forum General Questions
    Replies: 2
    Last Post: 28 Oct 2009, 04:40 PM
  5. Social Networking Site Sidebox
    By Angkorthom in forum Addon Sideboxes
    Replies: 1
    Last Post: 21 Aug 2009, 12:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg