Code:
if(!anonymous_vote)

![]() |
| | Thread Tools | Display Modes |
| |||
|
I just added this to pliggit.php and works now: Code: if(!anonymous_vote) |
| |||
|
Ah thanks for catching that one, I'll add it in later today. *Now added* Last edited by Simon; 06-11-2007 at 04:47 PM. |
| ||||
|
This might be a really dumb question and I might be doing something wrong that's really simple but I'd like the EVB to open my Pligg site in a new window so users aren't taken away from the site/story they voted for. I tried adding target="_blank" as in the code below Code: <script type="text/javascript" src="http://www.adult-dig.com/evb/button.php" target="_blank"></script> |
| |||
|
You would need to modify button.php as this is where the code is that generates the reference to your site. I don't have button.php in front of me, but thats the spot.
|
| ||||
|
I've had a look at the file button.php but not sure what to change really. I tried changing the code Code: var check = window.parent.submit_url; Code: var check = window.blank.submit_url; I'm sure you're right that it is something in button.php but I don't know what to do. Here is button.php in it's full glory: Code: <?php
header('Content-Type: text/javascript; charset=UTF-8');
header("Expires: " . gmdate("D, d M Y H:i:s", time() + 3600) . " GMT");
header("Cache-Control: max-age=3600, must-revalidate");
$server = 'http://www.adult-dig.com'; //enter the url to your pligg installation (no trailing slash)
$url_mod = 0; //change value to 1 if you are having problems with 406 errors, otherwise don't touch!
?>
function pliggit() {
var check = window.parent.submit_url;
if(!check) {
var url1 = document.URL;
} else {
var url1 = window.parent.submit_url;
}
<?php if($url_mod == 1) { ?>
url1 = url1.replace(/http:\/\//i,'');
<?php } ?>
var url2 = '<?php echo $server; ?>/evb/url.php?url='+url1;
document.write('<iframe name="pliggit" width="54" height="71" scrolling="no" frameborder="0" src="'+url2+'"></iframe>');
}
pliggit(); |
| |||
|
Wrong file. ![]() Open up url.php, and change all instances of target="_parent" to target="_blank". |
| ||||
|
Thank you Simon. I couldn't see the wood for the trees! |
| |||
|
Hi, I am having problems. I am running pligg version 9.6. I replaced the EVB folder with the new one in the attachment and uploaded pliggit.php as well. I made a test page with the EVB and made the URL one that has been submitted to my pligg site. However when I try to vote it just takes me to the submit page as if it doesn't acknoledge that the url is already there. I modified all the variables said in your first post and the table for links is deffenatly correct. I made sure annonymous voting is also allowed in my pligg configuration. I also tried just doing going to pliggit.php directly with the website in the url and that did the same thing. My pligg website: Blurpalicious / Published News test page: www.blurpalicious.com/evb/test.html Please help me! |
| |||
|
It does work, don't worry. When you set it up, you included the wrong url in the javascript. Wrong: http://www.customg.com Right: http://www.customg.com/blog Check out the result here. The 2nd vote is mine, made through the evb. |
![]() |
| Thread Tools | |
| Display Modes | |
| |