Results 1 to 3 of 3
  1. #1
    Junior Member alenaryana's Avatar
    Joined
    May 2012
    Posts
    3
    Thanks
    Received:0
    Given: 0
    Version
    1.2.0

    Question share button for use in other sites for pligg

    hi i design this button for easy share to my site in other site:

    HTML Code:
    <a href="http://www.mysite.com/" onclick="window.location='http://www.mysite.com/submit.php?phase=1&url='+ window.location + '&title=' + document.title + '&bodytext=' + ((navigator.appName.indexOf('Microsoft')!= -1&&parseInt(navigator.appVersion)>=4)?document.selection.createRange().text:window.getSelection());return false;"> <img src="http://www.mysite.com/images/buttons/btn2.png" alt="Add to Openfaves!" border="0" /></a>
    and now But when you click the publish button, I get this error "Wrong Referrer 'http://test.blogspot.com/'"

    And also make several buttons for publication in other standard sites and blogs

    tanx

  2. #2
    Pligg Founder/Coder/Designer Yankidank's Avatar
    Joined
    Dec 2005
    Location
    San Francisco, CA
    Posts
    5,513
    Thanks
    Received:85
    Given: 14
    Site
    http://pligg.com/demo/
    You probably need to comment out line 21 in submit.php to disable the referrer check.
    PHP Code:
     // check_referrer(); 
    The Facebook Module for Pligg CMS!
    Register, Login, and Submit Stories with Facebook. An absolute MUST HAVE for all Pligg sites!

  3. #3
    Senior Member JoeWa's Avatar
    Joined
    Mar 2012
    Location
    Prague, Czech Republic
    Posts
    172
    Thanks
    Received:13
    Given: 35
    Great idea! Thanks for the code, it works brilliantly (following Yankidank's suggestion). And for extended functionality on the same theme here is the External Vote Button EVB module.
    Last edited by JoeWa; 07-05-2012 at 04:03 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Web Hosting Services by Midphase Dreamhost Web Hosting Donate to Pligg