Page 1 of 3 123 LastLast
Results 1 to 10 of 25
  1. #1
    New Pligger pdo77's Avatar
    Joined
    Jun 2008
    Posts
    6

    Javascript:Vote button issue

    Hey everyone I could use some help here. The vote button on my site works fine when using the default wistie template. However, using the magazeen template, which I need to be using, the vote button does not work, making it impossible to vote up stories. Any and all suggestions on how to fix this problem are very much appreciated. Thanks.

  2. #2
    New Pligger Monny77's Avatar
    Joined
    Apr 2009
    Posts
    21
    I am same problem... With default template works vote button hand pliggsign template does not work...
    If can help you include my "link_summary.tpl" file.
    pleace help me...and sorry for my english... My site is http://www.youevent.it

    Code:
    <div class="news-summary" id="xnews-{$link_shakebox_index}"
    	{if $link_shakebox_currentuser_reports gt 0}
    	    style="opacity:0.3;filter:alpha(opacity = 30)"
    	{/if}
    	>
    
    <div class="news-header">{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}	
    <p class="thumb"><img src="http://www.artviper.net/screenshots/screener3.php?url={$url_short}&amp;q=90&amp;h=90&amp;w=200&amp;sdx=1024&amp;sdy=768" alt="{$title_short}" /></p><p class="dateAuthor">Posted: {$link_submit_timeago} {#PLIGG_Visual_Comment_Ago#}<br />{if $link_submitter neq $user_logged_in}			
    					By: <a href="javascript://" onclick="show_hide_user_links(document.getElementById('userlinks-{$link_shakebox_index}'));">
    				{else}
    					<a href="{$submitter_profile_url}">
    				{/if}
    {$link_submitter}</a></p></div>
    		
    	<div class="top"> 
    		<div class="toptitle" id="ls_thetitle-{$link_shakebox_index}">
    			{if $use_title_as_link eq true}
    				{if $url_short neq "http://" && $url_short neq "://"}
    					<a href="{$url}" {if $open_in_new_window eq true} target="_blank"{/if}>{$title_short}</a>
    				{else}
    					<a href="{$story_url}">{$title_short}</a>
    				{/if}
    		     {else}
    				{if $pagename eq "story"}
    					<a href="{$url}">{$title_short}</a>
    				{else} 
    				  <a href="{$story_url}">{$title_short}</a>
    				{/if}
    			{/if} 
    
    
    				<div class="tags">{#PLIGG_MiscWords_Category#}: <a href="{$category_url}">{$link_category}</a>
    							
    								&nbsp;&nbsp;{#PLIGG_Visual_Tags_Link_Summary#}: 
    					{section name=thistag loop=$tag_array}
    						<a href="{$tags_url_array[thistag]}" style='text-decoration: none;'>{$tag_array[thistag]}</a>
    					{/section}
    <br />
    {if $url_short neq "http://" && $url_short neq "://"}
    					<a href="{$url}" {if $open_in_new_window eq true} target="_blank"{/if}>{$url_short}</a>
    				{else}
    					({$No_URL_Name})
    				{/if}
    
    					</div> 
    
    				
    			     
    		</div>
    
    		
    		{if $viewtype neq "short"}
    		    <span class="news-body-text">
    		  		<span id="ls_contents-{$link_shakebox_index}">
    			  		{checkActionsTpl location="tpl_link_summary_pre_story_content"}
    					{if $show_content neq 'FALSE'}
    						{$story_content}
    					{/if}
    					{if $Enable_Extra_Field_1 eq 1}{if $link_field1 neq ""}<br/><b>{$Field_1_Title}:</b> {$link_field1}{/if}{/if}
    					{if $Enable_Extra_Field_2 eq 1}{if $link_field2 neq ""}<br/><b>{$Field_2_Title}:</b> {$link_field2}{/if}{/if}
    					{if $Enable_Extra_Field_3 eq 1}{if $link_field3 neq ""}<br/><b>{$Field_3_Title}:</b> {$link_field3}{/if}{/if}
    					{if $Enable_Extra_Field_4 eq 1}{if $link_field4 neq ""}<br/><b>{$Field_4_Title}:</b> {$link_field4}{/if}{/if}
    					{if $Enable_Extra_Field_5 eq 1}{if $link_field5 neq ""}<br/><b>{$Field_5_Title}:</b> {$link_field5}{/if}{/if}
    					{if $Enable_Extra_Field_6 eq 1}{if $link_field6 neq ""}<br/><b>{$Field_6_Title}:</b> {$link_field6}{/if}{/if}
    					{if $Enable_Extra_Field_7 eq 1}{if $link_field7 neq ""}<br/><b>{$Field_7_Title}:</b> {$link_field7}{/if}{/if}
    					{if $Enable_Extra_Field_8 eq 1}{if $link_field8 neq ""}<br/><b>{$Field_8_Title}:</b> {$link_field8}{/if}{/if}
    					{if $Enable_Extra_Field_9 eq 1}{if $link_field9 neq ""}<br/><b>{$Field_9_Title}:</b> {$link_field9}{/if}{/if}
    					{if $Enable_Extra_Field_10 eq 1}{if $link_field10 neq ""}<br/><b>{$Field_10_Title}:</b> {$link_field10}{/if}{/if}
    					{if $Enable_Extra_Field_11 eq 1}{if $link_field11 neq ""}<br/><b>{$Field_11_Title}:</b> {$link_field11}{/if}{/if}
    					{if $Enable_Extra_Field_12 eq 1}{if $link_field12 neq ""}<br/><b>{$Field_12_Title}:</b> {$link_field12}{/if}{/if}
    					{if $Enable_Extra_Field_13 eq 1}{if $link_field13 neq ""}<br/><b>{$Field_13_Title}:</b> {$link_field13}{/if}{/if}
    					{if $Enable_Extra_Field_14 eq 1}{if $link_field14 neq ""}<br/><b>{$Field_14_Title}:</b> {$link_field14}{/if}{/if}
    					{if $Enable_Extra_Field_15 eq 1}{if $link_field15 neq ""}<br/><b>{$Field_15_Title}:</b> {$link_field15}{/if}{/if} 		  			
    					{if $pagename neq "story"} <a href="{$story_url}">{#PLIGG_Visual_Read_More#}</a> &raquo; {/if}<br /> 
    		  		</span>
    		    </span>
    	  	{/if}
    
    <div class="news-submitted">
    						
    							{if $Voting_Method eq 2} - <strong>{#PLIGG_Visual_Vote_Average#}: <span id="mnma-{$link_shakebox_index}">{$link_rating}</span> {#PLIGG_Visual_Vote_Average_With#} <span id="mnmb-{$link_shakebox_index}">{$vote_count}</span> {#PLIGG_Visual_Vote_Average_Votes#}</strong>{/if}
    			</span>
    			
    			
    				<p>{if $isadmin eq "yes" || $user_logged_in eq $link_submitter}
    					<span id="adminlinksbuttom"> | <a href="javascript://" onclick="var replydisplay=document.getElementById('ls_adminlinks-{$link_shakebox_index}').style.display ? '' : 'none';document.getElementById('ls_adminlinks-{$link_shakebox_index}').style.display = replydisplay;">{#PLIGG_Visual_Admin_Links#}</a></span>
    				{/if}	
    			
    			<span id="userlinks-{$link_shakebox_index}" style="display:none;">
    			<a href = "{$submitter_profile_url}">{#PLIGG_Visual_LS_View_Profile#}</a>  
    				{if $FriendMD5 neq ""}
    					| 
    					{if $Allow_Friends eq 1}
    						<a href ="{$user_add_remove}">{$Friend_Text} {#PLIGG_Visual_LS_My_Friends#}</a>
    					{/if}
    				{/if}
    			</span></p>
    			<br/>
    			
    						
    				
    			<p><span id="ls_adminlinks-{$link_shakebox_index}" style="display:none">
    				{if $isadmin eq "yes"}
    					<span id="ls_admin_links-{$link_shakebox_index}">
    						<br /><a href="{$story_edit_url}">{#PLIGG_Visual_LS_Admin_Edit#}</a>
    						<br /><a href="{$story_admin_url}">{#PLIGG_Visual_LS_Admin_Status#}</a>
    				  		{checkActionsTpl location="tpl_link_summary_admin_links"}
    					</span>
    				{else}
    					{if $user_logged_in eq $link_submitter}
    						<span id="ls_user_edit_links-{$link_shakebox_index}"><br /><a href="{$story_edit_url}">{#PLIGG_Visual_LS_Admin_Edit#}</a></span>
    					{/if}
    				{/if}
    			</span></p>
    			
    		</div>
    <div id="share">
    <ul>
    
    		{if $pagename neq "story"}
    	    	    	<li><span id="ls_comments_url-{$link_shakebox_index}">
    	    		{if $story_comment_count eq 0}
    					
    	    			<span id="linksummaryDiscuss"><a href="{$story_url}" class="comments">{#PLIGG_MiscWords_Discuss#}</a> &nbsp;</span></li>
    	    		{/if}
    	    		{if $story_comment_count eq 1}
    	    			<li><span id="linksummaryHasComment"><a href="{$story_url}" class="comments2">{$story_comment_count} {#PLIGG_MiscWords_Comment#}</a> &nbsp;</span></li>
    	    		{/if}
    	    		{if $story_comment_count gt 1}
    	    			<li><span id="linksummaryHasComment"><a href="{$story_url}" class="comments2">{$story_comment_count} {#PLIGG_MiscWords_Comments#}</a> &nbsp;</span></li>
    	    		{/if}
    	   {/if}
    	    		{if $pagename eq "story"}{if $Enable_AddTo eq 1}
    				<li><span id="linksummaryAddLink">
    					<a href="javascript://" onclick="var replydisplay=document.getElementById('addto-{$link_shakebox_index}').style.display ? '' : 'none';document.getElementById('addto-{$link_shakebox_index}').style.display = replydisplay;"> {#PLIGG_Visual_LS_AddThisLinkTo#}</a>&nbsp;
    				</span></li>
    			{/if}
    				
    			{if $user_logged_in neq ""}
    				<li><iframe height="0px;" width="0px;" frameborder="0" name="add_stories"></iframe>
    				{if $link_mine eq 0}
    					<span id="linksummarySaveLink"><a target="add_stories" href="{$user_url_add_links}" onclick="show_hide_user_links(document.getElementById('stories-{$link_shakebox_index}'));">{#PLIGG_MiscWords_Save_Links_Save#}</a>&nbsp;
    				{else}
    					<span id="linksummaryRemoveLink"><a target="add_stories" href="{$user_url_remove_links}" onclick="show_hide_user_links(document.getElementById('stories-{$link_shakebox_index}'));">{#PLIGG_MiscWords_Save_Links_Remove#}</a>&nbsp;
    				{/if}
    					</span>
    					<span id="stories-{$link_shakebox_index}" style="display:none;"> &raquo; {#PLIGG_MiscWords_Save_Links_Success#} <a href="{$user_url_saved}">{#PLIGG_MiscWords_Save_Links_Go_To_Saved#}</a></span> &nbsp;
    			{/if}				
    	
    							<li><span id="ls_recommend-{$link_shakebox_index}">
    					<span id="linksummaryTellFriend">
    						<a href="javascript://" onclick="show_recommend({$link_shakebox_index}, {$link_id}, '{$instpath}');"> {#PLIGG_Visual_Recommend_Link_Text#}</a> &nbsp;
    					</span>
    				</span> </li>{/if}
    					
    						{if $link_shakebox_currentuser_votes eq 0 && $link_shakebox_currentuser_reports eq 0}
    				<li><span id="xreport-{$link_shakebox_index}"><span id="linksummaryBury"><a href="javascript:{$link_shakebox_javascript_report}">{#PLIGG_Visual_Vote_Bury#}</a></span></span></li>
    			{/if}

  3. #3
    Donor Techkr's Avatar
    Joined
    Jun 2007
    Posts
    289
    you can check what wrong with your template by

    after click vote > select vote box area > right click > view selected source (FF only)

  4. #4
    New Pligger Monny77's Avatar
    Joined
    Apr 2009
    Posts
    21
    hi, thank's for replay...
    source link for vote button is:
    javascript:vote(1,84,0,'71f2dfcccbae8969e97dfe8901 063a58',10)
    or
    my source page is:
    Code:
    <div class="news-summary" id="xnews-3"
    		>
    
    <div class="news-header">					<ul class="news-upcoming">
    						<li class="vote-publish"><a id="xvotes-3" href="/story.php?title=glasvegas--circolo-degli-artisti">1</a></li>
    				<li class="vote" id="xvote-3">
    Pleace help me....

  5. #5
    Pligg Developer chuckroast's Avatar
    Joined
    Jun 2006
    Posts
    5,478
    Can you guys please say what template your using? Some of you have said it works with one template and not another ( not naming the other) Provide a link to your site. Create a test account for people to help troubleshoot.
    Help us help you.

  6. #6
    New Pligger Monny77's Avatar
    Joined
    Apr 2009
    Posts
    21
    My template is pliggsign 9.9
    My site is YouEvent.it
    and the test account is:
    USER:testpligg
    PWS:testpligg
    with the level "god"!
    thank's for help...

  7. #7
    Donor antonio3407's Avatar
    Joined
    May 2009
    Posts
    15
    I have the same problem, my template is for version 9.9 and that does not work, can someone tell which template to modify the javascript function to add votes.
    Thank you.

  8. #8
    Pligg Developer chuckroast's Avatar
    Joined
    Jun 2006
    Posts
    5,478
    Quote Originally Posted by Monny77 View Post
    My template is pliggsign 9.9
    My site is
    [FONT=serif]YouEvent[/FONT]
    .it

    and the test account is:
    USER:testpligg
    PWS:testpligg
    with the level "god"!
    thank's for help...

    Your problem is that your trying to use a template made for Pligg Beta 9 on a site running Pligg 1.0
    See the files marked in red below being called but unretrievable

  9. #9
    Donor antonio3407's Avatar
    Joined
    May 2009
    Posts
    15
    I have corrected these errors and still does not work, I made the template loaded so you can see the error in the vote page is Wordpressing Social WordpressPublicadas
    Thank you

  10. #10
    Donor antonio3407's Avatar
    Joined
    May 2009
    Posts
    15
    I give up, but that is no longer change

Page 1 of 3 123 LastLast

Similar Threads

  1. External Vote Button (EVB) error "vote count" after vote in
    By Valver in forum Questions & Comments
    Replies: 1
    Last Post: 11-26-2011, 01:14 AM
  2. javascript vote error please help me
    By oblivision in forum Questions & Comments
    Replies: 10
    Last Post: 07-11-2011, 04:16 AM
  3. JavaScript Vote Button and Bury Links Do Not Redirect Properly
    By trueMarketing in forum Questions & Comments
    Replies: 15
    Last Post: 10-12-2009, 06:24 PM
  4. javascript:vote after upgrade
    By flukenakrab in forum Questions & Comments
    Replies: 4
    Last Post: 01-26-2009, 01:30 AM
  5. Javascript vote disallowed
    By treelovinhippie in forum Questions & Comments
    Replies: 7
    Last Post: 06-20-2007, 03:25 AM

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 Donate to Pligg CMS Dreamhost Web Hosting Host Gator Web Hosting