My EVB

Register an Account
Reply
 
Thread Tools Display Modes
  #21 (permalink)  
Old 04-21-2007, 06:45 AM
Casual Pligger
 
Join Date: Jan 2007
Posts: 68
Thanks for the module.
Just wanted to tell that the new version of url.php doesn't work. The one that includes config.php works well.

I wonder if we can track the websites that use our evbs?
Reply With Quote
  #22 (permalink)  
Old 04-21-2007, 10:30 AM
Constant Pligger
 
Join Date: Mar 2006
Posts: 537
Hmmm it should work. What version of pligg are you using? I removed config.php in favour of dbconnect.php specifically because it means less to process. I installed it from scratch and didn't have a problem.

What doesn't work in url.php? It could be something simple like your version of dbconnect.php not using the same variables to define your mysql settings. Also make sure you configured the 4 variables at the top of that page (especially important is the $server variable that should point to your pligg root directory, same goes for button.php).

I'm sure you could track what sites it was placed on, although that might be expensive in terms of queries - it already uses 1 query on your own database everytime the button is displayed.
Reply With Quote
  #23 (permalink)  
Old 04-22-2007, 07:50 AM
Casual Pligger
 
Join Date: Jan 2007
Posts: 68
I found where the problem is, the new version is using pligg_links, I use just links. So there should be a variable that asks the database table prefix.

I don't know how to implement tracking function. Can we implement other tracking websites like Google Analytics or statcounter?

Last edited by formicin; 04-22-2007 at 08:07 AM.
Reply With Quote
  #24 (permalink)  
Old 04-22-2007, 09:15 AM
Constant Pligger
 
Join Date: Mar 2006
Posts: 537
Thanks, I've updated it with the extra variable.

I tried Statcounter with it, but the only information you'll get is the number of times the button gets loaded (each time is counted as a page view) and the number of unique visitors. I don't think it's possible to make it record the page its viewed on with SC (could be wrong), since its a parent page of an iframe. It also makes it dead slow to load, so I dont really know if its worth it.

Last edited by Simon; 04-22-2007 at 09:42 AM.
Reply With Quote
  #25 (permalink)  
Old 04-23-2007, 08:22 PM
Casual Pligger
 
Join Date: Jan 2007
Posts: 68
Nope..

I added statcounter code in button.php document.write part. I included the statcounter code inside a <div style="display:none">statcounter-code</div>
Now it works like a charm

BTW, removing "AND (link_status='published' OR link_status='queued')" wasn't a good idea. There are lots of duplicate links which are discarded(never gone to step 2, but recorded because of how pligg works)
If a user tries to send a duplicate link, the EVB is borken, because it gets the wrong ID from DB.

In evb.zip, you got thumbs.db file. WinXP sux.
Reply With Quote
  #26 (permalink)  
Old 04-23-2007, 08:36 PM
Constant Pligger
 
Join Date: Mar 2006
Posts: 537
Ah right, serves me right for using my own code as a base lol - I delete discarded entries to keep the table cleaner. The one step submit process should help with that in the future. Added the extra WHERE clause back in for now. You might want to put an index on the link_url and link_status fields, if there isn't one already, for faster searching.

Good work on getting statcounter going - you did better than me.

Last edited by Simon; 04-23-2007 at 08:41 PM.
Reply With Quote
  #27 (permalink)  
Old 04-24-2007, 04:14 PM
New Pligger
 
Join Date: Mar 2007
Posts: 22
Hello Mr Simon,

you look very active .. your work is nice too ..

but I recognized that your code did not use "vote-02.png" at all ... so y do u add the pic ?

Another question please..
did you update the attached file at the beginning of this topic ? .. or you put your latest EVB somewhere else ?

Thanks in advance.
Tarek
Reply With Quote
  #28 (permalink)  
Old 04-24-2007, 04:27 PM
Constant Pligger
 
Join Date: Mar 2006
Posts: 537
Latest code is always at the beginning of the thread. The other image was used as an onmouseover rollover effect, but I removed it. I left the image there in case anyone felt like adding the rollover effect back in.
Reply With Quote
  #29 (permalink)  
Old 04-26-2007, 04:13 AM
New Pligger
 
Join Date: Mar 2007
Posts: 22
Thanks Simon ..

I still have a problem ..
I guess when I click on the number shown on the button .. and auto/anonymous voting is allowed .. I guess the number increases by 1 ..

This does not happen .. !
please c this blog where I am testing the 'MY EVB' ..

http://test4ef7at.blogspot.com/

is this related to choosing vote/menealo.php .. I currently have v9.1 and am using vote.php ..

Thanks in advance
Reply With Quote
  #30 (permalink)  
Old 04-28-2007, 03:01 AM
jrothra's Avatar
Constant Pligger
Pligg Version: 9.9.5
Pligg Template: Silverbullet
 
Join Date: Apr 2007
Location: Fort Worth, TX
Posts: 179
I'm not a programmer, so I'm baffled by this (many of the posts here are way over my head )

I've configured the url.php and button.php files. I've deleted the old evb directory and completely replaced it with the new one. I just downloaded the new version today and and configured it. Yet, all I get as the result is the screenshot.

The code used for the button.php file is:
Code:
$server = 'http://www.faithtag.com/'; //enter the url to your pligg installation
$vote_file = 'menealo.php' //if your installation uses menealo.php, please use that instead
The code used for the url.php file is:
Code:
$web1 = 'faithtag.com'; //will appear within tooltip
$web2 = 'FaithTag'; //will appear on evb
$db_table = 'MYPREFIX_faithtag'; //the name of your links database table
$auto_vote = 0; //1=yes, no=0 (requires anonymous voting to be set to true in pligg admin panel)
$server = 'http://www.faithtag.com/'; //enter the url to your pligg installation
Note, I left the "auto_vote" at 0 because I don't have anonymous voting turned on nor do I plan on turning it on.

The code I used on my blog to test it was:
Code:
<script type="text/javascript">submit_url = 'http://www.jrothraministries.com/blog/archives/87';</script>
<script type="text/javascript" src="http://www.faithtag.com/evb/button.php"></script>
I used the URL of an actual blog post rather simply for testing purposes. I'll change it to the permalink URL once the test is a success.
Any thoughts?
Attached Thumbnails
My EVB-ss-pliggtest2.jpg  
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