My EVB

Register an Account
Pligg Chat Room
Reply
 
LinkBack Thread Tools Display Modes
  #101 (permalink)  
Old 05-24-2007, 02:54 PM
Constant Pligger
 
Join Date: Mar 2006
Posts: 537
Good point - put it in the wrong file there. Also a good point about the submissions; correcting urls without http:// on the front, instead of barring them, might be a better way to handle things.
Reply With Quote
  #102 (permalink)  
Old 05-24-2007, 05:02 PM
jrothra's Avatar
Constant Pligger
Pligg Version: 9.9.5
Pligg Template: Silverbullet
 
Join Date: Apr 2007
Location: Fort Worth, TX
Posts: 179
On the one hand, having this trouble is disappointing... because it's not working and I want it to work. On the other hand, having these problems seems to be helping to make Pligg better ... and both of you are over my head in knowledge.
Reply With Quote
  #103 (permalink)  
Old 05-24-2007, 05:24 PM
jrothra's Avatar
Constant Pligger
Pligg Version: 9.9.5
Pligg Template: Silverbullet
 
Join Date: Apr 2007
Location: Fort Worth, TX
Posts: 179
Quote:
Originally Posted by mvandemar View Post
Simon,

In button.php, modify the following code:

Code:
function pliggit() {
	var check = window.parent.submit_url;
	if(!check) { 
		var url1 = document.URL; 
	} else { 
		var url1 = window.parent.submit_url; 
	}
	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>');
}
to look like this:

Code:
function pliggit() {
	var check = window.parent.submit_url;
	if(!check) { 
		var url1 = document.URL; 
	} else { 
		var url1 = window.parent.submit_url; 
	}
	url1 = url1.replace(http:\/\//i,'');
	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>');
}
-Michael
Michael,

I tried making this change and noticed that now the EVB on the blog's test page no longer has an error... it's blank. I'm not sure if I was supposed to (I kept the original), but thought I'd try and see what happens.

After this change, I also tested what happens when I try voting without logging in... no change, 406 error still.

I'll keep trying to let you all know what happens.
Reply With Quote
  #104 (permalink)  
Old 05-24-2007, 05:44 PM
Constant Pligger
 
Join Date: Mar 2006
Posts: 537
That change had a missing forward-slash in it. Download the EVB from the front page, its updated with the correct replacement. Just change the value of $url_mod from 0 to 1 (in button.php) to try it out.
Reply With Quote
  #105 (permalink)  
Old 05-24-2007, 05:56 PM
jrothra's Avatar
Constant Pligger
Pligg Version: 9.9.5
Pligg Template: Silverbullet
 
Join Date: Apr 2007
Location: Fort Worth, TX
Posts: 179
Quote:
Originally Posted by Simon View Post
That change had a missing forward-slash in it. Download the EVB from the front page, its updated with the correct replacement. Just change the value of $url_mod from 0 to 1 (in button.php) to try it out.
What does the $url_mod being 1 mean? (my php ignorance shows)
Reply With Quote
  #106 (permalink)  
Old 05-24-2007, 06:03 PM
Constant Pligger
 
Join Date: Mar 2006
Posts: 537
Hehe, it means that the code between if($url_mod == 1) { AND } will be used. If it is anything but 1, it won't be used.
Reply With Quote
  #107 (permalink)  
Old 05-24-2007, 06:03 PM
jrothra's Avatar
Constant Pligger
Pligg Version: 9.9.5
Pligg Template: Silverbullet
 
Join Date: Apr 2007
Location: Fort Worth, TX
Posts: 179
One solved, one left to go...

The EVB works. You can see the test here.

However, if you go to www.faithtag.com and try to vote on any of those stories without being logged in, the same 406 error occurs that was happening with the EVB.
Reply With Quote
  #108 (permalink)  
Old 05-24-2007, 06:07 PM
Constant Pligger
 
Join Date: Mar 2006
Posts: 537
Yeh I noticed it - again its the http:// issue. That will need to be removed (not quite sure where the return= string is generated right now), or (a better solution) would be your host relaxing the security a little.
Reply With Quote
  #109 (permalink)  
Old 05-24-2007, 06:16 PM
jrothra's Avatar
Constant Pligger
Pligg Version: 9.9.5
Pligg Template: Silverbullet
 
Join Date: Apr 2007
Location: Fort Worth, TX
Posts: 179
The latter is not likely to happen. But something to consider is if a fix is discovered on the programming side, then Pligg will be even stronger than before and more versitile.
Reply With Quote
  #110 (permalink)  
Old 05-24-2007, 08:34 PM
Constant Pligger
 
Join Date: Mar 2006
Posts: 537
How about (educated guess only), putting at the top of config.php:

Code:
$file_request = strip_tags($_SERVER['REQUEST_URI']);
$http_check = strpos($file_request, "http://");
if($http_check == TRUE){
    $file_request = str_replace("http://", "", $file_request);
    header('Location:'.$file_request);
}
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