Results 1 to 7 of 7
  1. #1
    New Pligger jmundane's Avatar
    Joined
    Apr 2007
    Posts
    4
    Thanks
    Received:0
    Given: 0

    Question customize vote box next to story.

    Hi,

    I searched and was unable to find the answer. Thanks in advance for your help.

    On any page that shows a story (summary or otherwise), it will also show the vote box next to it. Clicking the number of votes takes you to the story page.

    I would like to change the action to counting a vote. So, when a user clicks on the number of votes, it would behave as if the user clicked on the vote button beneath the number of votes.

    Using pligg 9.5.

    Could someone point me to the name of the file that would need to be changed? Also would greatly appreciate insight as to how the code should look?

    Total newbie here and I greatly appreciate your help.

    Thanks,
    JM

  2. #2
    New Pligger brewyet's Avatar
    Joined
    Apr 2007
    Posts
    8
    Thanks
    Received:0
    Given: 0
    Yeah I'm tying to figure this out also. I'm not a newb at css or programing, but I diffently not good. but I'm having a hard time finding where the code for the vote button is, so I can make the button add a vote, and not just the bottom part. If someone can point me where the code is for the vote button that would be great.

  3. #3
    Pligg Donor dollars5's Avatar
    Joined
    Dec 2006
    Posts
    1,960
    Thanks
    Received:0
    Given: 0
    Edit /templates/yget/link_summary.tpl:
    change
    Code:
    <li class="vote-publish"><a id="xvotes-{$link_shakebox_index}" href="{$story_url}">{$link_shakebox_votes}</a></li>
    to
    Code:
    <li class="vote-publish"><a id="xvotes-{$link_shakebox_index}" href="javascript:{$link_shakebox_javascript_vote}">{$link_shakebox_votes}</a></li>
    Not tested - but should work - let me know if some issues arise.

  4. #4
    New Pligger brewyet's Avatar
    Joined
    Apr 2007
    Posts
    8
    Thanks
    Received:0
    Given: 0
    That makes the the number and the "vote" box on the bottom work but I want it to work on the whole button.

  5. #5
    New Pligger brewyet's Avatar
    Joined
    Apr 2007
    Posts
    8
    Thanks
    Received:0
    Given: 0
    Anyone got an idea on how to do this? Am I not using the search well?

  6. #6
    Pligg Donor dollars5's Avatar
    Joined
    Dec 2006
    Posts
    1,960
    Thanks
    Received:0
    Given: 0
    If you want a customized vote box - that can accomodate this - but existing vote box is a list - so accommodating your requirement is almost not possible, except the way that I proposed.

  7. #7
    Junior Member brazini1's Avatar
    Joined
    Mar 2011
    Posts
    13
    Thanks
    Received:0
    Given: 4
    guys, how can I align to the left?
    my box voting

Similar Threads

  1. Want to delete all story who have 1 vote
    By shuvo007 in forum Questions & Comments
    Replies: 4
    Last Post: 03-10-2012, 10:38 PM
  2. customize story box to contain vote sytem
    By sweetmove in forum Questions & Comments
    Replies: 2
    Last Post: 06-22-2009, 11:27 PM
  3. ability to vote down a story?
    By pxlpshr in forum Questions & Comments
    Replies: 4
    Last Post: 09-21-2008, 11:51 AM
  4. Customize story listing
    By titaniumtommy in forum Questions & Comments
    Replies: 3
    Last Post: 06-21-2006, 08:12 PM
  5. How to customize story layout
    By titaniumtommy in forum Questions & Comments
    Replies: 4
    Last Post: 03-24-2006, 01:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Web Hosting Services by Midphase Dreamhost Web Hosting Donate to Pligg