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

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-12-2007, 01:19 PM
New Pligger
 
Join Date: Jun 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Vote problem in 9.6

Yes I know it's not compatible, but I've been working on it and so far i've gotten it working pretty well except for a few bugs that need to be fix.

The main problem I have is that when you click vote the number doesn't update in real time, you have to refresh your browser for it to take effect. I've been search through the code and I've had no luck (I suck at coding) so if anyone could point me in the right direction so I can fix it that would be great.

Here it is running on pligg 9.6 http://cgocracy.com
Reply With Quote
  #2 (permalink)  
Old 06-22-2007, 06:59 PM
Casual Pligger
 
Join Date: May 2007
Posts: 51
Thanks: 0
Thanked 0 Times in 0 Posts
Pligg version 9.6

Last edited by GDFH; 03-17-2008 at 06:40 AM..
Reply With Quote
  #3 (permalink)  
Old 06-23-2007, 02:30 PM
New Pligger
 
Join Date: Jun 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Ah yes, I'm really curious as to how you fixed it!
Reply With Quote
  #4 (permalink)  
Old 06-23-2007, 08:30 PM
Casual Pligger
 
Join Date: May 2007
Posts: 51
Thanks: 0
Thanked 0 Times in 0 Posts
Well, first at all, sorry for my english.

I was working on it for 3 ****ing days

Open link_summary.tpl and you will find this code at the beginning:

PHP Code:
<div class="entry" id="news-{$link_shakebox_index}">
 {if 
$Voting_Method eq 1}
    {if 
$link_shakebox_currentuser_votes neq 0}
    <
div class="voted" id="cat{$category_id}">
  <
a href="javascript:{$link_shakebox_javascript_vote}">
   <
class="nv" id="mnms-{$link_shakebox_index}">{$link_shakebox_votes}</b>
   <
class="go" id="mnmlink-{$link_shakebox_index}">{#PLIGG_Visual_Vote_Cast#}</b>
  
</a>
 </
div>
 
 {else}
  
 <
div class="vote" id="cat{$category_id}">
  <
a href="javascript:{$link_shakebox_javascript_vote}">
   <
class="nv" id="mnms-{$link_shakebox_index}">{$link_shakebox_votes}</b>
   <
class="go" id="mnmlink-{$link_shakebox_index}">{if $link_shakebox_currentuser_votes eq 0}{#PLIGG_Visual_Vote_For_It#}{else}{#PLIGG_Visual_Vote_Cast#}{/if}</b>
  
</a>
 </
div>
 
 {/if}
 
 {/if} 

You have to change it for this:

PHP Code:
<div class="entry" id="xnews-{$link_shakebox_index}"
    
{if $link_shakebox_currentuser_reports gt 0}
        
style="opacity:0.3;filter:alpha(opacity = 30)"
    
{/if}
    >
    
    {if 
$Voting_Method eq 1}
        {if 
$story_status eq "published"}
            
        {else}
            
        {/if}
                <
div class="vote"><a id="xvotes-{$link_shakebox_index}" href="{$story_url}" class="vote">{$link_shakebox_votes}</a></div>
                <
span id="xvote-{$link_shakebox_index}">
                    {if 
$link_shakebox_currentuser_votes eq 0 && $link_shakebox_currentuser_reports eq 0}
                        <
div id="listo"><a href="javascript:{$link_shakebox_javascript_vote}" class="vote">{#PLIGG_Visual_Vote_For_It#}</a></div>
                    
{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}

                            {/if}    
                        {/if}
                    {/if}
                
            </
span>
    {/if} 

You have to create 2 layers in main.css, i called it vote and listo. There are several changes, first at all, i had a problem with "vote cast", and i prefered to delete this part of code {#PLIGG_Visual_Vote_Cast#}. Also i deleted all code of {if $Voting_Method eq 2}.

In main css i created:

PHP Code:
.vote span {color:#FFFFFF;font-size:24px;font-family:Arial Black, Arial, Helvetica, sans-serif;font-weight:normal;margin-top:0 10px 10px 10px;position:relative;padding:12px 0 0 0;text-decoration:none;}
.vote a:link {color:#79B5D6;font-size:24px;font-family:Arial Black, Arial, Helvetica, sans-serif;font-weight:normal;margin-top:0 10px 10px 10px;position:relative;padding:12px 0 0 0;text-decoration:none;} 
.vote a:visited {color:#79B5D6;font-size:24px;font-family:Arial Black, Arial, Helvetica, sans-serif;font-weight:normal;margin-top:0 10px 10px 10px;position:relative;padding:12px 0 0 0;text-decoration:none;} 
for voting link, and

PHP Code:
#listo{
 
display:block;
 
float:left;
 
width:60px;
 
height:30px;
 
text-align:center;
 
text-decoration:none;
 
background#333;
 
cursor:pointer;
 
position:absolute;
 
margin50px 20px 0 0;
 
_margin:50px 20px 0 -70px;
}

#listo a:hover{
 
background:#333;


_margin fix a IE error (IE sucks).


I think that's all, i hope it helps. You maybe have to change something more in main.css, in #entry. Please, change the background colors! i dont want to visit your site and see the same colors :-P ok? :-P
Reply With Quote
  #5 (permalink)  
Old 07-01-2007, 03:09 PM
New Pligger
 
Join Date: Jun 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Sorry I took so long to reply, but I've had a couple of hellish weeks at school..

I tried to do what you said but it didn't work to right, it looked really messed up.

would it be possible for you to send me the files? and don't worry I'll change the colours
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
Problem : voting no update the vote lucalo General Help 10 07-20-2007 12:56 PM
Vote problem after updated DN template daone General Help 1 03-22-2007 10:57 PM
Vote button problem cochrnj Installation and Upgrade Help 0 12-15-2006 10:24 AM
Another vote problem lithman General Help 1 05-31-2006 10:22 PM
Vote by guest problem agiacosa Bug Report 13 05-20-2006 12:02 PM


Search Engine Friendly URLs by vBSEO 3.2.0