My EVB

Register an Account
Reply
 
Thread Tools Display Modes
  #111 (permalink)  
Old 05-26-2007, 01:14 AM
jrothra's Avatar
Constant Pligger
Pligg Version: 9.9.5
Pligg Template: Silverbullet
 
Join Date: Apr 2007
Location: Fort Worth, TX
Posts: 179
Simon,

That didn't work.

John
Reply With Quote
  #112 (permalink)  
Old 05-26-2007, 01:41 AM
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
One common source of the error seems to be hosts that enable mod_security too strictly. Could you try this code at the top of your htaccess file for starters: (taken from this blog article on 406 errors)

Code:
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
Dumb me, the first time I tried this, I put this code in my blog's .htaccess file. I put it in the .htaccess for FaithTag and now when I try voting on the site without being logged in, it works fine.
Reply With Quote
  #113 (permalink)  
Old 05-28-2007, 11:36 PM
jrothra's Avatar
Constant Pligger
Pligg Version: 9.9.5
Pligg Template: Silverbullet
 
Join Date: Apr 2007
Location: Fort Worth, TX
Posts: 179
I've got the EVB placed on my blog, but noticed a few things.

1. The large container says "Go" - I found this in the code of url.php, but the demo uses numbers. Does it say "Go" until the story is submitted?

2. Submitted story still says "Go" - I have submitted one of my blog articles that has the EVB on it.
Blog URL: http://www.jrothraministries.com/blog/archives/93
FaithTag Submission URL: http://www.faithtag.com/story.php?ti...hed-Not-Really

As you can see, the story has been voted on three times, yet the EVB shows "Go" in the box.

It seems there's something I'm not understanding or missing.
Reply With Quote
  #114 (permalink)  
Old 05-30-2007, 05:35 PM
jrothra's Avatar
Constant Pligger
Pligg Version: 9.9.5
Pligg Template: Silverbullet
 
Join Date: Apr 2007
Location: Fort Worth, TX
Posts: 179
Any thoughts from anyone? What might be causing the system to not show the votes as displayed in the demo?
Reply With Quote
  #115 (permalink)  
Old 05-30-2007, 06:10 PM
New Pligger
 
Join Date: May 2007
Posts: 12
Quote:
Originally Posted by jrothra View Post
I've got the EVB placed on my blog, but noticed a few things.

1. The large container says "Go" - I found this in the code of url.php, but the demo uses numbers. Does it say "Go" until the story is submitted?

2. Submitted story still says "Go" - I have submitted one of my blog articles that has the EVB on it.
Blog URL: http://www.jrothraministries.com/blog/archives/93
FaithTag Submission URL: http://www.faithtag.com/story.php?ti...hed-Not-Really

As you can see, the story has been voted on three times, yet the EVB shows "Go" in the box.

It seems there's something I'm not understanding or missing.
Just to let you know that you aren't the only one having difficulties, I'm having the same problem. The other websites that are using my evb just show "Go" instead of the number of votes.
Reply With Quote
  #116 (permalink)  
Old 05-30-2007, 06:57 PM
Constant Pligger
 
Join Date: Mar 2006
Posts: 537
You can change 'Go' to whatever you want in url.php (I actually changed mine to 0 for the site I use it on recently).

You should check what is being recorded in the link_url field for the story you quoted above. Remember that your EVB has the http:// removed because of your host's setup. This means that if the link_url field contains http then the 2 won't match. You need to make sure either everything uses http, or nothing does.

Example:

http://www.faithtag.com/evb/url.php?...og/archives/93 (uses http, and matches)
http://www.faithtag.com/evb/url.php?...og/archives/93 (no http, so no match)

See?
Reply With Quote
  #117 (permalink)  
Old 05-31-2007, 12:28 AM
jrothra's Avatar
Constant Pligger
Pligg Version: 9.9.5
Pligg Template: Silverbullet
 
Join Date: Apr 2007
Location: Fort Worth, TX
Posts: 179
That makes sense. So I went to look for "link_url" in url.php and button.php and only found one instance of that... here (in url.php):
Code:
$link_query = @mysql_query("SELECT link_id,link_votes FROM $db_table WHERE link_url=\"$url\" AND (link_status='published' OR link_status='queued') LIMIT 1");
I found the stuff I customize upon installation, but it wasn't called link_url. Where do I find that?
Reply With Quote
  #118 (permalink)  
Old 05-31-2007, 12:50 AM
jrothra's Avatar
Constant Pligger
Pligg Version: 9.9.5
Pligg Template: Silverbullet
 
Join Date: Apr 2007
Location: Fort Worth, TX
Posts: 179
Nevermind, I found a solution. It seemed to be a conflict between an .htaccess hack and this code in button.php:

Code:
$url_mod = 0; //change value to 1 if you are having problems with 406 errors, otherwise don't touch!
Because of the 406, I originally had 1 in there and the EVB worked. However, I then put an .htaccess hack someone here mentioned into the correct .htaccess file (I had it in the wrong one). Then the problem arose. So, I tried changing the 1 to a 0 (zero) and now everything works well, including the error I was receiving.
Reply With Quote
  #119 (permalink)  
Old 06-09-2007, 02:47 PM
Constant Pligger
 
Join Date: Mar 2006
Posts: 537
Glad you sorted it.

The $url_mod variable should always be left at 0 unless there is no other way round the 406 errors.
Reply With Quote
  #120 (permalink)  
Old 06-11-2007, 03:10 PM
New Pligger
 
Join Date: Jun 2007
Posts: 8
This EVB isn't QUITE working for me.

Sample vote button on this page

I have anonymous=true

If I am logged in (and remembered) it works fine when I click "Cook-It". I am not logged in and click "Cook-It" it does not work, it re-directs me to the login page even though I have anonymous set to true.

Am I missing a configuration issue here?
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