PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro How Do I...? (http://www.photopost.com/forum/photopost-pro-how-do-i/)
-   -   Hide vote tallies till vote ends? (http://www.photopost.com/forum/photopost-pro-how-do-i/123952-hide-vote-tallies-till-vote-ends.html)

jstarkweather March 22nd, 2006 02:13 PM

Hide vote tallies till vote ends?
 
Has this already been done or suggested? I am running several contests on site that are now using the gallery for voting and the participants SEEING the vote totals before the contest ends is a bit of a problem.

Thanks,
Jim

snoopy5 August 16th, 2006 12:15 PM

I agree, pleaaaase give us this feature. It was asked so many times...

pengrus August 23rd, 2006 05:55 PM

It'd be great to have this feature.

Chuck S August 23rd, 2006 06:36 PM

template edit showgallery.php note the line here

Code:

Content visible to verified customers only.
change to this

Code:

Content visible to verified customers only.

pengrus August 24th, 2006 09:58 AM

many thanks!

pengrus September 4th, 2006 06:01 PM

I have just implemented this code change today, and found it does not show the votes even after the voting is ended. I checked the code change several times, and it is changed correctly. Not sure why this did not work.

pengrus September 6th, 2006 09:49 PM

Anyone else got this working?

Chuck S September 7th, 2006 08:25 AM

Works fine. Simple conditional around the row that says $takevotes == 2 then show the number of votes.

$takesvotes equals 2 means voting has ended.

Code:

Content visible to verified customers only.

pengrus September 18th, 2006 10:17 PM

I found that "x votes" is not shown after "ending vote" with your code change. It only shows "You picked this image" with no votes count for any image.

pengrus September 21st, 2006 06:44 PM

Any help?

pengrus September 23rd, 2006 12:57 PM

Quote:

Originally Posted by Chuck S (Post 1169371)
template edit showgallery.php note the line here

Code:

Content visible to verified customers only.
change to this

Code:

Content visible to verified customers only.

I followed this instruction, changed showgallery.tmpl (note not showgallery.php), but when the voting is ended, it does not show number of votes each photo got. It only shows which one you picked and ranked with order, no number of votes displayed.

Could anyone please try and confirm this? I am on the latest version.

Thank you very much!

pengrus October 1st, 2006 09:37 PM

Chuck,

Could you please help? I know it should work, but it does not. When the voting is ended, it does not show number of votes each photo got. It only shows which one you picked and ranked with order, no number of votes displayed.

Chuck S October 1st, 2006 10:00 PM

The variable is $takevotes not $takesvotes

clarke_kent November 13th, 2006 03:26 PM

Just wanted to say I love the support you guys give for code changes, makes my life sooo much easier.

Just implemented this and it works great!

Abel21 December 29th, 2006 09:41 PM

Chuck... does this template mod work with 5.62?

thanks

edit:
i made the code changes and still no go... i logged in with another non admin account to verify...

Chuck S December 30th, 2006 08:16 AM

I beleive so although this is not something I support sorry

http://www.photopost.com/forum/showp...71&postcount=4

snoopy5 January 29th, 2007 06:19 AM

Hi

I tried it with PP 5.62, but it does not work really.

First, it hides the votes as expected. But the problem is that it does not show neither a way how to vote.

I assume the reason for this is because the hack is in the template and not in a php file.

I also changed the wording as suggested by the way:

Quote:

Originally Posted by Chuck S (Post 1174089)
The variable is $takevotes not $takesvotes

So how to achive, that voting is possible, but the result is not visible unless I want to disclose it to all after the voting period ended?

The same hack would be interesting for ratings by the way...

Thanks in advance

snoopy5 January 31st, 2007 05:31 PM

any hints?

scrapster February 21st, 2007 11:06 PM

so i just added that line ( if ( $takevotes == 2) {) and now if you click my gallery or a personal gallery it gives you an error. something about something unexpected on line 50. i didn't have time to copy that, sorry, had to fix it for those freaking out. (they're easy to scare). any ideas why that messed up the view of the gallery???

scrapster February 21st, 2007 11:07 PM

ooh, yet another member sent it to me.
Parse error: syntax error, unexpected $end in /home/digital/public_html/gallery/templates/vb3enhanced/showgallery.tmpl on line 350


All times are GMT -5. The time now is 08:06 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97