The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Hide number of votes in poll
Hi again guys.
I'm looking for a plugin or any other method to hide the number of votes in polls. I found Sakera's Hide Poll Results, but that plugin only hide the result and not the number of voters. Any suggestion? |
#2
|
|||
|
|||
Quote:
HTML Code:
<dl class="stats"> <dt class="totalvotes">{vb:rawphrase voters}</dt> <dd><span class="totalvotes">{vb:raw pollinfo.numbervotes}</span>. {vb:raw pollstatus}</dd> </dl> you can set conditional permission that allow mods and admins to see that content only... Solved? |
#3
|
|||
|
|||
Thanks
But is there any way to add this change only for one sub-forum and not the entire forum? |
#4
|
|||
|
|||
Quote:
Show in one forum: Remember to change x HTML Code:
<vb:if condition="$forum[forumid] == x">Show this if forum id is x</vb:if> HTML Code:
<vb:if condition="in_array($forum['forumid'], array(1,2,3))">Show this to forum 1, 2 and 3</vb:if> this is a good link for more info: vB4 Template Conditionals List |
#5
|
|||
|
|||
Again, thanks.
Will give it a try. --------------- Added [DATE]1413913272[/DATE] at [TIME]1413913272[/TIME] --------------- Did not work for me. I've googled it and some claims that $forum[forumid] have to be registered to the template. Not much more info is given. --------------- Added [DATE]1413917060[/DATE] at [TIME]1413917060[/TIME] --------------- No wonder why it doesn't work. First of, it seems as <vb:if condition="$forum[forumid] != x"> is not supported anymore https://vborg.vbsupport.ru/showpost....&postcount=399 Second. Even if i remove HTML Code:
<dl class="stats"> <dt class="totalvotes">{vb:rawphrase voters}</dt> <dd><span class="totalvotes">{vb:raw pollinfo.numbervotes}</span>. {vb:raw pollstatus}</dd> </dl> |
#6
|
||||
|
||||
Try this, and make sure you are editing the right style.
Code:
<vb:if condition="$GLOBALS[forumid] == X"></vb:if> |
#7
|
|||
|
|||
Quote:
I don't think it is problems with the code. As i said before, even if i remove HTML Code:
<dl class="stats"> <dt class="totalvotes">{vb:rawphrase voters}</dt> <dd><span class="totalvotes">{vb:raw pollinfo.numbervotes}</span>. {vb:raw pollstatus}</dd> </dl> The text "Voters: xx" is gone, but the votes is also shown next by the diagram. --------------- Added [DATE]1413969320[/DATE] at [TIME]1413969320[/TIME] --------------- After some time of testing i finally find out which one to change. But still, <vb:if condition="$GLOBALS[forumid] == X"></vb:if> wont work |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|