Go Back   Pligg CMS Forum > Pligg Development > Pligg Templates > Template Support > "yget"

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-30-2007, 09:02 PM
Pligg Donor
 
Join Date: Aug 2006
Posts: 41
Thanks: 3
Thanked 0 Times in 0 Posts
How to add 'votes' to xvotes? Like 'diggs' at digg.com

I'd like to add the word votes under the numeral number of votes in the xvotes box. I would like to have a similar look to what digg.com has. If you haven't seen the way digg.com does it, it's a number then the word 'diggs' under it and then under than is a link 'digg it'. I'm wanting to add 'votes' where the word 'diggs' appears in the digg.com example

I found the code in link_summary.tpl, but my attempts to change it has not given me the results I've wanted. Adding the word 'votes' within the list element produces the word 'votes' in a very large font on the same line as the number. Taking it out of the list element puts the text in the area that the normal 'vote' link should belong.

Any help in fixing this is greatly appreciated.
Reply With Quote
  #2 (permalink)  
Old 07-01-2007, 12:22 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
One way would be to edit the image to have "Votes" as part of the xvotes image. However, it wouldn't be dynamic and show a singular "vote" with the numeral one (1 vote versus 2 votes).

Just one idea.
Reply With Quote
The Following User Says Thank You to jrothra For This Useful Post:
  #3 (permalink)  
Old 07-01-2007, 08:13 PM
Pligg Donor
 
Join Date: Aug 2006
Posts: 41
Thanks: 3
Thanked 0 Times in 0 Posts
Great idea! Rather than banging my head I can just make it say Votes. If I get around to it, I can put a check to see if the vote total equals one and then display a different image.
Reply With Quote
  #4 (permalink)  
Old 07-01-2007, 09:24 PM
Pligg Donor
 
Join Date: Aug 2006
Posts: 41
Thanks: 3
Thanked 0 Times in 0 Posts
Well it did work, but now I'm trying to move the vote number up a few pixels. I've messed with the padding and the line height but I just can't move the vote number without affecting the Vote text/link . Can someone PLEASE lend a hand? I know what I'd like to do, I just can't get it to behave the way I would like.
Reply With Quote
  #5 (permalink)  
Old 07-02-2007, 01:20 PM
Pligg Donor
 
Join Date: Aug 2006
Posts: 41
Thanks: 3
Thanked 0 Times in 0 Posts
So I'm a lot closer now. I edited the main.css file and adjusted the line-height to 34px and things look pretty good. The problem comes when someone votes. The javascript is called and then the word 'voted' appears in the wrong place and I can't figure out where I need to make the modifications to get it top display correctly. If I reload the page everything looks good. It's best to try it and see for yourself if my explanation doesn't make sense:

LouisianaNewz / Popular News

Again, I understand that most people who read these forums are probably up to their ears in their own problems, but if you could take a moment out of your day to help me out it would be greatly appreciated. I only have a few things left to do on my site before I can go live and this is one that I need to have fixed as soon as possible.

If these requests are better served with some sort of monetary reward, please contact me via pm with details and cost estimates.
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
[mod] count clicks instead of votes abcdefgary Modification Tutorials 8 06-14-2008 11:34 PM
Change God from anonymous votes graphicsguru General Help 7 04-27-2008 11:37 PM
Inflate Votes Manually? blaze General Help 2 01-21-2008 01:53 PM
users total votes? inggenia General Help 2 07-09-2007 07:44 AM
Counting Clicks instead of Votes kahunabear Modification Tutorials 13 04-03-2007 09:18 AM


Search Engine Friendly URLs by vBSEO 3.2.0