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?


![]() |
| | Thread Tools | Display Modes |
| |||
|
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? |
| |||
|
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. |
| |||
|
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. |
| |||
|
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. |
| |||
|
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. |
| |||
|
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. |
| |||
|
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 |
| |||
|
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.
|
| |||
|
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 |
| ||||
|
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 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 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> Any thoughts? |
![]() |
| Thread Tools | |
| Display Modes | |
| |