If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Removing Number of Voters  XML
Forum Index » Support Forum
Author Message
Anonymous



How do I remove the number of votes on the poll? I just want to show the percentages or breakdown of the votes.

Any help would be great.

j
amber222
Graduate

Joined: 07/05/2004 21:13:07
Messages: 586
Offline

http://proxy2.de/forum/viewtopic.php?t=3300&highlight=votes
Anonymous



i am sorry, but i dont know what form he is speaking of, and what commenting out means. i am somewhat of a novice...

please anyone?? i really need the assistance on how to remove the 'number of votes' from displaying.
amber222
Graduate

Joined: 07/05/2004 21:13:07
Messages: 586
Offline

Anonymous wrote:i am sorry, but i dont know what form he is speaking of, and what commenting out means. i am somewhat of a novice...

please anyone?? i really need the assistance on how to remove the 'number of votes' from displaying.

It is very easy to find information about things you don't know just by visiting Google.com and typing it in a search box. For instance, if you search for "comment out" on Google, you will probably get thousands of results. You should always do a search, either on the forum or on Google, before you post a question.

Here's a site that explains commenting out: http://www.htmlite.com/php006.php -
I hope you will read it.

Here is one of their examples:
  • // This is an example of commenting.

    # This is also an example of commenting.

    echo "This text will appear on the web page. <br />";

    // echo "This text will not appear.";

    echo "Some more example text."; // That prints, not this.
    Commenting more than one line of coding is done using /* and */. Everything between these two tags will be commented. They can be used on a single line to many lines.

  • So, you would comment out code instead of deleting it, so it is there if you make a mistake or if you decide later you want to use it again.
    I actually figured out how to do this myself. Thanks to another post.

    I was able to go into the template and comment out the total number of votes display in the display footer template.

    I have not tried this myself, but I believe they are speaking of the Admin Panel, "Templates", "Poll Result", "result_foot". You want to get rid of the code that references the total votes.

    Before doing anything, you should make sure you read Auron's instructions. Search for poll instructions, and you will find his thread for "new" instructions. In it, he also mentions another thread you should read.

    Good luck.
    Anonymous



    i use google religiously and thank you for your reply.

    here is the footer code...i have tried removing it, and not working. can someone give me the way to do this?? thanks!!



    </table>
    <font face="$pollvars[font_face]" color="$pollvars[font_color]" size="1"><br>
    $pollvars[total_text]: <font color="#CC0000">$total_votes</font><br>
    $VOTE<br><br><div align="center">
    $COMMENT&nbsp;</div></font>
    </td></tr>
    <tr><td height="2">&nbsp;</td></tr>
    </table>
    <font face="$pollvars[font_face]" size="1"><a href="http://www.proxy2.de" target="_blank" title="Advanced Poll">Version $pollvars[poll_version]</a></font></td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    Anonymous



    Hi Guest

    Don't mind that other guy. He just thinks that because he has the time and interest in learning programming languages, that everybody else should also. It's like if someone asks you the directions somewhere and you tell them to go and buy a map.

    Anyway, what I did, is go to 'Templates' then clicked on 'Poll Result'. I then scrolled down until I found result_foot.

    I couldn't work out how to comment out the code, but I just deleted teh line in question.



    I deleted this -->

    Obviously, make sure that you copy all thecode first and paste it into a plain text file as a backup, in case anything goes wrong.

    Good luck.
     
    Forum Index » Support Forum
    Go to:   
    Based on the open source JForum