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

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-06-2007, 05:53 AM
New Pligger
 
Join Date: Oct 2007
Location: bangkok
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Post Step to make custom vote button.

Hi All,
Let me request for advise for how to edit the classic vote button to my custom style.Thank you so much.
__________________
AutoSoci
Reply With Quote
  #2 (permalink)  
Old 11-06-2007, 06:32 AM
Casual Pligger
 
Join Date: Aug 2007
Posts: 70
Thanks: 13
Thanked 1 Time in 1 Post
Great request but I have a doubt that you will get any help.
__________________
http://www.ladipp.com
Reply With Quote
  #3 (permalink)  
Old 11-06-2007, 07:03 AM
Yankidank's Avatar
Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 1,823
Thanks: 110
Thanked 182 Times in 128 Posts
Send a message via AIM to Yankidank Send a message via Skype™ to Yankidank
It would help if you gave us some direction on how you plan to design the button. Its really simple for the most part, you just plug in the code into the design. The only trick to it is that you need to leave in list element <li> so that the vote number will ajax update automatically when pressing "vote".

Here's the original segment of code from link_summary.tpl that pertains to the vote number and vote button:
Code:
{if $Voting_Method eq 1}
        {if $story_status eq "published"}
            <ul class="news-upcoming">
        {else}
            <ul class="news-upcoming2">
        {/if}
                <li class="vote-publish"><a id="xvotes-{$link_shakebox_index}" href="{$story_url}">{$link_shakebox_votes}</a></li>
                <li class="vote" id="xvote-{$link_shakebox_index}">
                    {if $link_shakebox_currentuser_votes eq 0 && $link_shakebox_currentuser_reports eq 0}
                        <a href="javascript:{$link_shakebox_javascript_vote}">{#PLIGG_Visual_Vote_For_It#}</a>
                    {else}
                        {if $link_shakebox_currentuser_reports neq 0}
                            <span>{#PLIGG_Visual_Vote_Report#}</span>
                        {else}
                            {if $pagename eq "user" && $user_logged_in neq $link_submitter}
                                <a href="javascript:{$link_shakebox_javascript_unvote}">{#PLIGG_Visual_Unvote_For_It#}</a>
                            {else}
                                <span>{#PLIGG_Visual_Vote_Cast#}</span>
                            {/if}    
                        {/if}
                    {/if}
                </li>
            </ul>
    {/if}
For the most part, you can tweak this however you want by adding elements, but when you start subtracting things you might begin causing small errors like the number not increasing without a page refresh. I suggest just taking this code as is and surrounding certain elements with <div> and <span> classes to style it to your liking.
If you don't have a clue how to style items, or you are a beginner I suggest you either pay someone to help you out or read several articles to help you out. I have no doubt that a lot of you will try to edit this and end up making a lot of mistakes and reporting them on the forum like it's a problem with Pligg, when in fact its a customization issue.
__________________
Need a Pligg Host?
Get 3 free months
when you buy a year of hosting.
Use the coupon PLIGG at either...
MidPhase hosting starting at $7.95/month.
ANhosting hosting starting as low as $4.95/month.
Reply With Quote
  #4 (permalink)  
Old 11-06-2007, 08:07 AM
Yankidank's Avatar
Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 1,823
Thanks: 110
Thanked 182 Times in 128 Posts
Send a message via AIM to Yankidank Send a message via Skype™ to Yankidank
I think I will provide more of a tutorial/example of how to do this using Steve Lam's date stamp for wordpress modification for the K2 theme. Hopefully by the end of the weekend I will have enough spare time to do this.
__________________
Need a Pligg Host?
Get 3 free months
when you buy a year of hosting.
Use the coupon PLIGG at either...
MidPhase hosting starting at $7.95/month.
ANhosting hosting starting as low as $4.95/month.
Reply With Quote
  #5 (permalink)  
Old 11-06-2007, 10:35 PM
New Pligger
 
Join Date: Oct 2007
Location: bangkok
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
I would say thank you so much "Yankidank" for reply my thread, for now my site (autosoci) just need to redesign for some number of different graphic buttons that generated and selected from differently of car makers logo, such Toyota logo appeared on vote button when a user submit a news in to toyota catalog, it just to modify of graphic works, but I'm just a newbie for pligg. now I try to read many posts for how to do like this step by step that was a good thing to do, but I think asking is better and faster to reach it.
__________________
AutoSoci
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
Example vote button with Vote down? coreyvf General Help 0 09-23-2008 01:51 PM
External Vote Button (EVB) Yankidank Modification Tutorials 59 07-24-2008 07:51 PM
Need help with External Vote Button Please! bbrian017 General Help 10 01-30-2008 05:28 PM
Submit Step 3 - Re-edit button supudo Bug Report 1 09-26-2007 07:47 AM
Vote button links to story page after voted canadaka Suggestions 1 04-02-2007 11:12 AM


Search Engine Friendly URLs by vBSEO 3.2.0