Voting works on page 1, not page 2

Register an Account
Pligg Chat Room
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-30-2007, 11:30 PM
jrothra's Avatar
Constant Pligger
Pligg Version: 9.9.5
Pligg Template: Silverbullet
 
Join Date: Apr 2007
Location: Fort Worth, TX
Posts: 179
A couple of problems or glitches with the voting on my site (www.faithtag.com):
Problem/Glitch 1:
If you are on the main index.php page (page 1), you can vote on the stories. When you click to any subsequent page (page 2 and after), you can't vote on a story. What in the code might be the difference? Is there something different in the way the pages work?

Problem/Glitch 2:
When you click "Vote" (or on my page, "Tag It"), generally it will automatically change to "Voted" or "Tagged". However, on my page I have to refresh the page to see the change. I don't remember changing anything about the voting button except the background image and the font color of the text.

What part of the code affects this?

Last edited by jrothra; 08-01-2007 at 04:14 AM.
Reply With Quote
  #2 (permalink)  
Old 07-31-2007, 06:23 PM
jrothra's Avatar
Constant Pligger
Pligg Version: 9.9.5
Pligg Template: Silverbullet
 
Join Date: Apr 2007
Location: Fort Worth, TX
Posts: 179
For some reason, glitch one is not a glitch anymore... checked it today and it's fine: I can vote on subpages.

However, glitch two remains a problem. What causes the "vote" to change to "voted" after you vote without having to refresh the page?

I can't seem to find it in the code (I'm probably overlooking the obvious).

Here's the code I used that seems to control the voting button display (from link_summary.tpl):
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}
I checked it against the one for yget and it's exactly the same, yet something seems to not be working. What am I missing?

Pligg version: 9.7

Last edited by jrothra; 08-02-2007 at 12:28 AM.
Reply With Quote
  #3 (permalink)  
Old 08-02-2007, 12:36 AM
dollars5's Avatar
Pligg Donor
 
Join Date: Dec 2006
Location: India
Posts: 1,961
I just checked - I seem to get a JS error probably you changed tag that is needed by xmlhttp.php to process - hence the Js error on vote. You can also refer http://forums.pligg.com/bug-report/7...r-upgrade.html
Reply With Quote
  #4 (permalink)  
Old 08-02-2007, 12:45 AM
jrothra's Avatar
Constant Pligger
Pligg Version: 9.9.5
Pligg Template: Silverbullet
 
Join Date: Apr 2007
Location: Fort Worth, TX
Posts: 179
Checked that thread... the files displayed (in the circled parts) are exactly what those files show on my site. Also, when I try to vote in IE7 and FF 2.0.0.5, I can't duplicate the error. I do have anonymous voting turned off, though. Voting works, since the number does go up. But the text doesn't change. Very strange.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Page Variables Yankidank Wiki Articles 1 08-13-2008 03:59 AM
Direct user to web page after voting sevittopcu Questions and Comments 1 03-16-2008 08:45 AM
RSS import works but on on main page but feed not added to category and ... doit Questions and Comments 2 06-27-2007 02:24 PM
Sneak Page - works in FFox, doesn't work in I.E. (Screen Shots In Thread!) fire Questions and Comments 1 08-05-2006 11:11 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development