External Vote Button (EVB)

Register an Account
Reply
 
Thread Tools Display Modes
  #51 (permalink)  
Old 02-27-2007, 09:26 PM
Banned
Pligg Version: 9.8.
Pligg Template: Custom
 
Join Date: Feb 2007
Location: Canada
Posts: 796
I dont see a pligg button in the example, did I miss it?

Geoserv
Reply With Quote
  #52 (permalink)  
Old 02-27-2007, 10:22 PM
dollars5's Avatar
Pligg Donor
 
Join Date: Dec 2006
Location: India
Posts: 1,960
Unfortunately from the link provided by kb - the EVB image is removed
Reply With Quote
  #53 (permalink)  
Old 03-05-2007, 03:06 AM
New Pligger
 
Join Date: Mar 2007
Posts: 1
I got the the half cut off Not on my test page as well. Here is what you need to fix to make it work

1) If your pligg install is under a subdir for example mysite.com/pligg rather then just mysite.com then you will need to edit evb/check_url.php and look for the 3 image paths. The first one reads

$mnm_over = "/evb/img/over-01.png";

you need to change it to have your directory at the front


$mnm_over = "/pligg/evb/img/over-01.png";

do that for the other two images as well. this will make it so the images work.

2) There is a typo in evb/check_url.js.php
Look for the line that looks like

var url = 'httpblahblahblah ?>/api/check_url.php?url='document.URL;

You need to replace api with evb for example

var url = 'httpblahblahblah ?>/evb/check_url.php?url='document.URL;

and if you were using a subdirectory for your install (#1 above), then you will need to add that path also, for example

var url = 'httpblahblahblah ?>/pligg/evb/check_url.php?url='document.URL;

hopefully someone who does the nightly builds can make these fixes.
Reply With Quote
  #54 (permalink)  
Old 03-14-2007, 07:33 PM
Pligg Donor
 
Join Date: Mar 2007
Posts: 33
I've got this feature working on a test site at the moment. I made up some new images, and it's ok, but it would be nice to get the vote total to show up on the external site. On mouseover, I do see the vote total as the link title, but has anyone worked out how to get the vote total to disply over the image?

If you make new images for it, you have to change the image sizes at 2 locations in check_url.js.php at about line 17 and line 20.

I tried a few mods to check_url.php, but none achieved the desired result. I guess it is beyond my limited ability.
Reply With Quote
  #55 (permalink)  
Old 03-14-2007, 07:36 PM
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,215
You can put echo $res->link_votes; to get the number of votes. It doesn't have to only be in the title when you hover.
Reply With Quote
  #56 (permalink)  
Old 03-14-2007, 08:07 PM
Pligg Donor
 
Join Date: Mar 2007
Posts: 33
Thanks! I think I got it now!

There were a few things I had to do. I had to enlarge my sizes on check_url.js.php so there was room for the vote count to show under the images, and I had to use:

PHP Code:
echo ''.$res->link_votes.' '._('votes').''
to get it to show: 3 Votes

Now, after dinner, I am going to work it out to get it exactly the way I want it to display, over the images, and then post it here for posterity.

Regards,

Jim
Reply With Quote
  #57 (permalink)  
Old 03-15-2007, 04:00 AM
New Pligger
 
Join Date: Jan 2007
Posts: 20
Quote:
Originally Posted by Critter183 View Post
Thanks! I think I got it now!

There were a few things I had to do. I had to enlarge my sizes on check_url.js.php so there was room for the vote count to show under the images, and I had to use:

PHP Code:
echo ''.$res->link_votes.' '._('votes').''
to get it to show: 3 Votes

Now, after dinner, I am going to work it out to get it exactly the way I want it to display, over the images, and then post it here for posterity.

Regards,

Jim
We are waiting
I think that the best way to make digg style button (like digg it!) (with another images) with vote count.
Thanks.
Reply With Quote
  #58 (permalink)  
Old 04-28-2007, 01:53 AM
jrothra's Avatar
Constant Pligger
Pligg Version: 9.9.5
Pligg Template: Silverbullet
 
Join Date: Apr 2007
Location: Fort Worth, TX
Posts: 179
A couple of things I want to mention.

First, I'm still having trouble getting the EVB to work. I've read this entire thread and still it fails.

- The 'evb' file and all contents are located on the server.
- My pligg is not in a subdirectory... the pligg is www.faithtag.com
- The code in the URL line in the check_url.js.php file is as follows:
Code:
var url = 'http://<?php echo $_SERVER['SERVER_NAME']; ?>/evb/check_url.php?url='+document.URL;
- The test URL is http://www.jrothraministries.com/blog/archives/87 (screenshot of the results are attached).
- The code used on my blog test page is as follows:
Code:
<script type="text/javascript" src="http://www.faithtag.com/evb/check_url.js.php">
What's going wrong?

Second, I found it interesting that the promotion example shown in the ad above my form field box displayed a Digg-like count box with a "vote" button underneath (see second screenshot), but that this feature is not yet available.
Attached Thumbnails
External Vote Button (EVB)-ss-pliggtest.jpg   External Vote Button (EVB)-ss-pliggad.jpg  
Reply With Quote
  #59 (permalink)  
Old 04-28-2007, 02:00 AM
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,215
maybe you should check this thread out. It's a lot newer and has more features My EVB
Reply With Quote
  #60 (permalink)  
Old 07-24-2008, 08:51 PM
New Pligger
Pligg Version: 9.8.2
Pligg Template: Yget
 
Join Date: Dec 2007
Posts: 1
Is there a way to set a specific url to vote for instead of the script automatically fetching urls?
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vote button not updating dynamically aufotookbigfoot Questions and Comments 5 04-18-2008 04:16 PM
External Vote Button and Google mankal Questions and Comments 1 03-27-2008 12:27 PM
Need help with External Vote Button Please! bbrian017 Questions and Comments 10 01-30-2008 06:28 PM
External Vote Button Bug pornlord Questions and Comments 4 05-15-2007 10:59 AM
Vote button links to story page after voted canadaka Questions and Comments 1 04-02-2007 12:12 PM


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