My EVB

Register an Account
Reply
 
Thread Tools Display Modes
  #151 (permalink)  
Old 08-24-2007, 01:10 PM
Casual Pligger
 
Join Date: Jan 2007
Posts: 44
ok, the EVB is great, I'm using it and it works like a charm, BUT I find a big problem with bloggers, the button is pretty big and often don't fit really well on the blog template, that's why MOST of the bloggers still use the old button:

I had to keep the old button because a lot of bloggers prefer it on the new one and they don't really like having huge button that doesn't fit well on blog layout and btw not from small pligg website (we don't drive traffic as digg do)

An easy alternative should be to have a compact vote button, like digg already has:



it's much easier to implement on blogs and it take a really small space on the page.
Is it possible to have also this small widget? it'll help a lot of pligg users on increasing the visibility on their websites and of-course it'll increasing the overall pligg popularity.

Last edited by filippodb; 08-24-2007 at 01:15 PM.
Reply With Quote
  #152 (permalink)  
Old 08-24-2007, 01:28 PM
Constant Pligger
 
Join Date: Feb 2007
Posts: 226
You can modify your button's size and look & feel with CSS in url.php-file. An remember to change the iframe's size to match the button's size in button.php-file.

I think that the biggest problem is that we can't just give a code and let bloggers do the styling themselves. Many bloggers prefer more text links than buttons and they also want to decide the color size and font too.ʚWith the old code it is possible but with this great evb it's not.
Reply With Quote
  #153 (permalink)  
Old 08-24-2007, 02:59 PM
Casual Pligger
 
Join Date: Jan 2007
Posts: 44
Quote:
Originally Posted by Andtony View Post
You can modify your button's size and look & feel with CSS in url.php-file. An remember to change the iframe's size to match the button's size in button.php-file.

I think that the biggest problem is that we can't just give a code and let bloggers do the styling themselves. Many bloggers prefer more text links than buttons and they also want to decide the color size and font too.ʚWith the old code it is possible but with this great evb it's not.
ok but I like to keep the 2 evb I'm already using, so I was looking a way to implement the third one.

I'm pretty happy with the 2 previous solution on pligg, I just need this smaller one, but I want to keep all the 3 solution working together on the same pligg website.

THis worked pretty well with 2 button since I installed the first button on api directory and the new one on evb dir.

So now I want to add a third (compact) button, and my question is: it'll work together with the bigger one?
I want them both so bloggers will have to choose, and u know the more button, the more backlink popularity for a pligg website!
Reply With Quote
  #154 (permalink)  
Old 08-24-2007, 03:30 PM
Constant Pligger
 
Join Date: Feb 2007
Posts: 226
I think you can do it by making copies of button.php and url.php and renaming them something like button_compact.php and url_compact.php
Then do all necessary modifications and edit the javascript to match the new button.
Remember to change url.php to url_compact.php in your button.php-file.

I did it myself and tit works but don't know is it advisable.
Reply With Quote
  #155 (permalink)  
Old 08-24-2007, 04:17 PM
Casual Pligger
 
Join Date: Jan 2007
Posts: 44
can u share it please? I'll test it ad it'll be a good starting point. Sorry I'm not a programmer and it took 2 days to let works the 2 buttons.

also I find this on amazing script on digg and I'll open a new post, let's see what happen...
Reply With Quote
  #156 (permalink)  
Old 08-24-2007, 06:58 PM
Constant Pligger
 
Join Date: Feb 2007
Posts: 226
Quote:
Originally Posted by filippodb View Post
can u share it please?
Well there is not much to share but this is what I did.

1. I made copies of button.php and url.php and renamed the copies to button_2.php and url_2.php.
(You can rename them as you like)
2. In the new button._2.php I modified this line:
Code:
	var url2 = '<?php echo $server; ?>/evb/url.php?url='+url1;
to this
Code:
	var url2 = '<?php echo $server; ?>/evb/url_2.php?url='+url1;
3. Then I styled the button with css in url_2.php.

4. And then I changed button.php to button_2.php in the javascript that displays the button in blogs. So the code is same except the filename.

Oh, and in your button_1.php remember to change the iframe's with and height to your new button's size.

Hope this helps. If you have problems send me a private message so I'll try to help.
Reply With Quote
  #157 (permalink)  
Old 09-19-2007, 10:13 AM
New Pligger
 
Join Date: Aug 2007
Posts: 7
I loved the evb, it works great. Is there a way to add in the evb code a link back to ur site in a way the SE count it for seo purpose? tnx and sorry for my english, i hope u got it, lol
Reply With Quote
  #158 (permalink)  
Old 10-09-2007, 07:47 PM
Casual Pligger
 
Join Date: Jul 2007
Posts: 61
I just took a look at this evb thing and what I see here is either a bug or an oversight ... not too sure how to catagorize it.

The Problem is as the EVB stands now if you use this in cms sites like joomla/drupal ect with complex urls, it only returns a fragment of the URL to the button. When this happens a proper URL cannot be submitted neither can the button determine if the link already exists at the pligg site being submitted too, by reason that the button craps out on getting a correct url.

in button.php I see

Code:
function pliggit() {

	var check = window.parent.submit_url;

	if(!check) { 

		//var url1 = document.URL; 
		var url1 = encodeURIComponent(location.href);

	} else { 

		var url1 = window.parent.submit_url; 

	}

	<?php if($url_mod == 1) { ?>

	url1 = url1.replace(/http:\/\//i,'');

	<?php } ?>

	var url2 = '<?php echo $server; ?>/evb/url.php?url='+url1;

	document.write('<iframe name="pliggit" width="54" height="71" scrolling="no" frameborder="0" src="'+url2+'"></iframe>');	

}
I think encodeURIComponent(location.href) should be used instead of document.URL as this returns a properly encoded url to the button.
so we should have

Code:
function pliggit() {

	var check = window.parent.submit_url;

	if(!check) { 

		//var url1 = document.URL; 
		var url1 = encodeURIComponent(location.href);

	} else { 

		var url1 = window.parent.submit_url; 

	}

	<?php if($url_mod == 1) { ?>

	url1 = url1.replace(/http:\/\//i,'');

	<?php } ?>

	var url2 = '<?php echo $server; ?>/evb/url.php?url='+url1;

	document.write('<iframe name="pliggit" width="54" height="71" scrolling="no" frameborder="0" src="'+url2+'"></iframe>');	

}
What I am not sure about is window.parent.submit_url. What is that what is it used for what does it mean?

Moving on to url.php. Since we now have a properly formated formated url there is no reason to stip_tags or htmlspecialcharters

hence...

Code:
$url = htmlspecialchars(strip_tags($_GET['url']));
can simply be ..

Code:
//$url = htmlspecialchars(strip_tags($_GET['url']));

$url = $_GET['url'];

Out of curiosity has anyone used this with joomla? any problems? as its still corrupting the url on submission.

Has this been tested with CMS systems at all? It just isnt working. Only for urls that are simple with out long query strings.

Last edited by sefs; 10-09-2007 at 09:31 PM.
Reply With Quote
  #159 (permalink)  
Old 10-12-2007, 12:03 AM
New Pligger
 
Join Date: Oct 2007
Posts: 12
Im having trouble with this. I have added it to a page on another site but when I click the link it just gives me an error...
"URL is invalid or blocked:"

Here is the page I put it... (right column)
The Razorback Legacy | Arkansas Razorback Football Results from 1894 to 2007
Reply With Quote
  #160 (permalink)  
Old 10-13-2007, 05:55 AM
Casual Pligger
 
Join Date: Jul 2007
Posts: 61
I find that it breaks genearally with complex urls, which is most cms systems like joomla ect.

Attached are files for the developer to preview.

What I think is happening is that URL encoding is not being done correctly or consistently or in the right places.
Attached Files
File Type: php button.php (851 Bytes, 136 views)
File Type: php url.php (4.1 KB, 176 views)
File Type: php pliggit.php (3.5 KB, 151 views)
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