My EVB

Register an Account
Reply
 
Thread Tools Display Modes
  #121 (permalink)  
Old 06-11-2007, 03:22 PM
New Pligger
 
Join Date: Jun 2007
Posts: 8
I just added this to pliggit.php and works now:

Code:
if(!anonymous_vote)
Reply With Quote
  #122 (permalink)  
Old 06-11-2007, 04:02 PM
Constant Pligger
 
Join Date: Mar 2006
Posts: 537
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.
Reply With Quote
  #123 (permalink)  
Old 06-16-2007, 07:18 PM
1uk3's Avatar
New Pligger
 
Join Date: Jun 2007
Location: Cheshire, UK
Posts: 6
Send a message via ICQ to 1uk3 Send a message via AIM to 1uk3 Send a message via MSN to 1uk3 Send a message via Yahoo to 1uk3
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>
but this doesn't have any effect. Any ideas anyone?
Reply With Quote
  #124 (permalink)  
Old 06-17-2007, 10:04 AM
New Pligger
 
Join Date: Jun 2007
Posts: 8
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.
Reply With Quote
  #125 (permalink)  
Old 06-17-2007, 10:23 AM
1uk3's Avatar
New Pligger
 
Join Date: Jun 2007
Location: Cheshire, UK
Posts: 6
Send a message via ICQ to 1uk3 Send a message via AIM to 1uk3 Send a message via MSN to 1uk3 Send a message via Yahoo to 1uk3
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;
to

Code:
var check = window.blank.submit_url;
but I'm guessing that is wrong because the button doesn't even show when I tried this.

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();
Reply With Quote
  #126 (permalink)  
Old 06-17-2007, 11:11 AM
Constant Pligger
 
Join Date: Mar 2006
Posts: 537
Wrong file.

Open up url.php, and change all instances of target="_parent" to target="_blank".
Reply With Quote
  #127 (permalink)  
Old 06-17-2007, 11:23 AM
1uk3's Avatar
New Pligger
 
Join Date: Jun 2007
Location: Cheshire, UK
Posts: 6
Send a message via ICQ to 1uk3 Send a message via AIM to 1uk3 Send a message via MSN to 1uk3 Send a message via Yahoo to 1uk3
Thank you Simon. I couldn't see the wood for the trees!
Reply With Quote
  #128 (permalink)  
Old 06-28-2007, 07:52 PM
New Pligger
 
Join Date: Jun 2007
Posts: 12
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!
Reply With Quote
  #129 (permalink)  
Old 06-28-2007, 10:33 PM
Constant Pligger
 
Join Date: Mar 2006
Posts: 537
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.
Reply With Quote
  #130 (permalink)  
Old 06-29-2007, 01:01 AM
New Pligger
 
Join Date: Jun 2007
Posts: 12
... ok I think I will go hide in a box now.
Reply With Quote
Reply

Thread Tools
Display Modes




Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development