Go Back   Pligg CMS Forum > Pligg Development > Modification Tutorials

Reply
 
LinkBack Thread Tools Display Modes
  #51 (permalink)  
Old 02-27-2007, 08:26 PM
Banned
Pligg Version: 9.8.
Pligg Template: Custom
 
Join Date: Feb 2007
Location: Canada
Posts: 849
Thanks: 74
Thanked 49 Times in 45 Posts
I dont see a pligg button in the example, did I miss it?

Geoserv
Reply With Quote
  #52 (permalink)  
Old 02-27-2007, 09:22 PM
dollars5's Avatar
Pligg is my love :)
 
Join Date: Dec 2006
Location: India
Posts: 2,154
Thanks: 290
Thanked 266 Times in 177 Posts
Unfortunately from the link provided by kb - the EVB image is removed
Reply With Quote
  #53 (permalink)  
Old 03-05-2007, 02:06 AM
New Pligger
 
Join Date: Mar 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
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, 06:33 PM
Pligg Donor
 
Join Date: Mar 2007
Posts: 34
Thanks: 8
Thanked 3 Times in 3 Posts
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, 06:36 PM
kbeeveer46's Avatar
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,547
Thanks: 254
Thanked 649 Times in 513 Posts
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.
__________________
I accept donations for my time helping users like you on the forum and IRC.
Reply With Quote
The Following User Says Thank You to kbeeveer46 For This Useful Post:
  #56 (permalink)  
Old 03-14-2007, 07:07 PM
Pligg Donor
 
Join Date: Mar 2007
Posts: 34
Thanks: 8
Thanked 3 Times in 3 Posts
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
The Following User Says Thank You to Critter183 For This Useful Post:
  #57 (permalink)  
Old 03-15-2007, 03:00 AM
Casual Pligger
 
Join Date: Jan 2007
Posts: 35
Thanks: 12
Thanked 4 Times in 1 Post
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, 12:53 AM
Constant Pligger
Pligg Version: 9.7 - updating is a MAJOR task
Pligg Template: Custom - complete redesign needed to update
 
Join Date: Apr 2007
Posts: 155
Thanks: 19
Thanked 2 Times in 2 Posts
Still having trouble...

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, 01:00 AM
kbeeveer46's Avatar
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,547
Thanks: 254
Thanked 649 Times in 513 Posts
maybe you should check this thread out. It's a lot newer and has more features My EVB
__________________
I accept donations for my time helping users like you on the forum and IRC.
Reply With Quote
  #60 (permalink)  
Old 07-24-2008, 07:51 PM
New Pligger
Pligg Version: 9.8.2
Pligg Template: Yget
 
Join Date: Dec 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
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
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Example vote button with Vote down? coreyvf General Help 0 09-23-2008 01:51 PM
External Vote Button and Google mankal General Help 1 03-27-2008 11:27 AM
Need help with External Vote Button Please! bbrian017 General Help 10 01-30-2008 05:28 PM
External Vote Button Bug pornlord Bug Report 4 05-15-2007 09:59 AM
Vote button links to story page after voted canadaka Suggestions 1 04-02-2007 11:12 AM


Search Engine Friendly URLs by vBSEO 3.2.0