vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Horizontal poll system? (https://vborg.vbsupport.ru/showthread.php?t=119239)

Jarllax 06-21-2006 08:48 AM

Horizontal poll system?
 
I've searched the forums for this and have been unable to find anything resembling this. What I am looking for is some sort of poll system that could be unique to a specific forum or forums that would be like the poll system found at http://hotornot.com and other similar rating sites.

Perhaps starting this sort of poll could be done with a simple check of a box in the "Post a Poll" options. The poll would then be 1 through 10 as the options.

For this mod, the results page could be the same even. Just the look of the poll before someone votes would need to be changed to a horizontal layout.

I'm pretty new to the vbulletin boards, so I am still figuring out the whole template modifications and addons thing, otherwise I would try to do it myself...if what I've explained is too vague, just let me know. :p

Jarllax 06-21-2006 10:04 AM

1 Attachment(s)
Here is what I have done, pretty much the easy part, but this is how I'd prefer it to be displayed. The first attached image is what I'd like the viewed poll to look like, and the second image is what I'd like the posting options to look like. If those two check boxes could also be made into radio buttons so that only one can be selected that would be keen, but not necessary.

Attachment 49768Attachment 49769

Code to go into polloption template:
Code:

<td width="50"><label for="rb_optionnumber_$option[number]"><input type="radio" name="optionnumber" value="$option[number]" id="rb_optionnumber_$option[number]" />$option[question]</label></td>

Code to go into polloptions_table template:
Code:

<form action="poll.php" method="post">
<input type="hidden" name="s" value="$session[dbsessionhash]" />
<input type="hidden" name="do" value="pollvote" />
<input type="hidden" name="pollid" value="$pollinfo[pollid]" />

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="tcat">
                <if condition="$show['editpoll']"><span class="smallfont" style="float:$stylevar[right]"><a href="poll.php?$session[sessionurl]do=polledit&amp;pollid=$pollinfo[pollid]">$vbphrase[edit_poll]</a></span></if>
                $vbphrase[poll]<span class="normal">: $pollinfo[question]</span>
        </td>
</tr>
<if condition="$show['pollenddate']">
<tr>
        <td class="thead" align="center" style="font-weight:normal"><phrase 1="$pollenddate" 2="$pollendtime">$vbphrase[this_poll_will_close_on_x_at_y]</phrase></td>
</tr>
</if>
<tr>
        <td class="panelsurround" align="center">
        <div class="panel">
                <div style="width:$stylevar[formwidth]" align="$stylevar[left]">
               
                        <if condition="$show['publicwarning']">
                        <div class="fieldset">$vbphrase[public_poll_users_see_choices]</div>
                        </if>
               
                        <fieldset class="fieldset">
                                <legend>$vbphrase[poll_options]</legend>
                                <div style="padding:$stylevar[formspacer]px">
                                        <div style="margin-bottom:$stylevar[formspacer]px"><strong>$pollinfo[question]</strong></div>
                                        <table cellpadding="0" cellspacing="0" border="0" align="center"><tr>
                                        $pollbits
                                        </tr></table>
                                </div>
                        </fieldset>
                       
                        <div>
                                <span style="float:$stylevar[right]"><a href="poll.php?$session[sessionurl]do=showresults&amp;pollid=$pollinfo[pollid]">$vbphrase[view_poll_results]</a></span>
                                <input type="submit" class="button" value="$vbphrase[vote_now]" />
                        </div>
               
                </div>
        </div>
        </td>
</tr>
</table>

</form>

<br />


Jarllax 09-05-2006 01:25 AM

Bump, is anyone willing to do this? Don't think it would take too much work from someone who knows their way around vb well.

And if someone is willing to do it could the results page also be changed to display a an average of all the votes. Say one person votes a 5 and another 7, the results page would show that the rating was a average of 6.

Evil X 10-07-2006 03:17 AM

bump.. can someone release a mod like this?


All times are GMT. The time now is 01:04 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00982 seconds
  • Memory Usage 1,731KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete