My EVB

Register an Account
Reply
 
Thread Tools Display Modes
  #71 (permalink)  
Old 05-04-2007, 09:02 PM
New Pligger
 
Join Date: Mar 2007
Posts: 22
Dear Simon,

yes, you are correct. I was just confused .. but your description is true .. it's only a shortcut

I want to ask you a question:
In your URL.php you use some english strings .. I need to replace them with arabic strings saved at 'lang.conf' file [there's an encoding problem when editing the url.php directly]

How can I include the lang.conf so i can do something like this:
PHP Code:
$web2 $main_smarty->get_config_vars("PLIGG_Visual_Name"); 
Thanks in advance.
Reply With Quote
  #72 (permalink)  
Old 05-06-2007, 10:39 PM
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
Is that the actual name of your pligg links table, as opposed to something like pligg_links?

Also, remove the slash at the end of the $server variable in button.php - it will cause // to appear in the paths, which will produce an error.
I've changed the coding to the following:

button.php
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
url.php
Code:
$web1 = 'faithtag.com'; //will appear within tooltip
$web2 = 'FaithTag'; //will appear on evb
$db_table = 'pligg_links'; //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 changes made include

- changing the $server in both files to http://www.faithtag.com instead of http://www.faithtag.com/

- changing the $db_table to pligg_links instead of MYPREFIX_faithtag

I used the same test script on the WordPress 2.1 blog I have as:
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>
Yet, the result is the same as before... no changes (see screenshot)
Attached Thumbnails
My EVB-ss-pliggtest3.jpg  
Reply With Quote
  #73 (permalink)  
Old 05-06-2007, 10:50 PM
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
Javascript where you execute an xmlhttprequest (ie. actually vote) from a remote domain?

Remember, the actual EVB javascript works. This is just the auto-voting that causes problems. I've not seen a digg button that allows you to vote from another domain. Can you show me where 1 exists?

Unless anyone can show me otherwise, i'll remove the voting code tomorrow, and leave it at just a digg style submit and view button. I always wondered why digg never had the option to let users vote directly from the button...
If you go to www.jrothraministries.com/blog you can click on "digg it" on any of them and it votes from that EVB. No need to go to the Digg URL first and then vote. Note, this is only true if you are logged into Digg already. Otherwise, it takes you to Digg and makes you log in. But if you are logged in, then it votes remotely.

Last edited by jrothra; 05-06-2007 at 11:32 PM.
Reply With Quote
  #74 (permalink)  
Old 05-06-2007, 11:37 PM
Constant Pligger
 
Join Date: Mar 2006
Posts: 537
I can't really comment on the problem with the with the url forwarding wrongly, since I haven't experienced it myself so far.

As for this whole voting business, the Digg EVB does take you to a digg.com url (I didn't mean the story url itself) and then logs a vote, which is a short-cut, rather than remote voting via xmhttp, which is what I was unable to get working due to XSS issues. Anyone is welcome to re-create the diggthis.php vote url - you just need a new php file, that inserts a new vote upon clicking if logged in, updates the total for that link, then bounces the user back to the original page - but I have no plans to add it just yet.
Reply With Quote
  #75 (permalink)  
Old 05-06-2007, 11:39 PM
jrothra's Avatar
Constant Pligger
Pligg Version: 9.9.5
Pligg Template: Silverbullet
 
Join Date: Apr 2007
Location: Fort Worth, TX
Posts: 179
Gotcha!

Anyway, any ideas on the problem I'm experiencing?
Reply With Quote
  #76 (permalink)  
Old 05-13-2007, 06:03 PM
warefare's Avatar
Casual Pligger
 
Join Date: Mar 2007
Posts: 38
Is there any way to make an EVB that offers "voting" on the another site ?

All current EVB's only offer the possibilty to visit the story on the pligg site and vote there, but I want to vote for a story on another site.

Example:
http://mmorpg.qj.net/Final-Fantasy-X...g/49/aid/92220

Currently im using this EVB here
Extrernal Vote Button (EVB) Fixup
Reply With Quote
  #77 (permalink)  
Old 05-14-2007, 05:06 PM
Constant Pligger
 
Join Date: Feb 2007
Posts: 226
Great work Simon. Just installed this and it seems to work perfectly.

I'm just wondering is there a way to make some kind of customization that gives users the ability to style the links?
When you put the code in to blog or somewhere the link is inside iframe so the look and feel of the link is not adjustable by the referer.
Reply With Quote
  #78 (permalink)  
Old 05-15-2007, 10:54 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 know I've posted some of this info, but I've redone everything and tried again. Here's the info for the new attempt:

I re-downloaded the May 2, 2007 file and still have problems. I'm not sure what's going on... please help. I'm going nuts here!

Here's the code from the section of the url.php and button.php files that we edit:

button.php:
Code:
$server = 'http://www.faithtag.com'; //enter the url to your pligg installation (no trailing slash)
url.php
Code:
$web1 = 'FaithTag.com'; //will appear within tooltip
$web2 = 'FaithTag'; //will appear on evb
$db_table = 'pligg_links'; //the name of your links database table
$server = 'http://www.faithtag.com'; //enter the url to your pligg installation (no trailing slash)
I've tested the EVB using the following code:
Code:
<script type="text/javascript">submit_url = 'http://www.jrothraministries.com/blog/archives/93';</script>
<script type="text/javascript" src="http://www.faithtag.com/evb/button.php"></script>
The submit_url is static to test it.

The result is the screenshot below:
Attached Thumbnails
My EVB-ss-faithtagtest.jpg  

Last edited by jrothra; 05-16-2007 at 01:26 AM.
Reply With Quote
  #79 (permalink)  
Old 05-16-2007, 05:10 PM
jrothra's Avatar
Constant Pligger
Pligg Version: 9.9.5
Pligg Template: Silverbullet
 
Join Date: Apr 2007
Location: Fort Worth, TX
Posts: 179
Could the problem be somewhere in this code from url.php:
Code:
$connect = @mysql_connect(EZSQL_DB_HOST, EZSQL_DB_USER, EZSQL_DB_PASSWORD);
$database = @mysql_select_db(EZSQL_DB_NAME, $connect);
This is the default that came with it. Could it be that since the db name/user/password are not specified, that it fails?
Reply With Quote
  #80 (permalink)  
Old 05-19-2007, 04:09 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've checked, rechecked, read, re-read, and still it doesn't work. I get the same result (see previous post with screen shot). The code I used area also posted above. What in the heck is going on?????????
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