Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-21-2006, 08:48 AM
Jarllax Jarllax is offline
 
Join Date: Jun 2006
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 06-21-2006, 10:04 AM
Jarllax Jarllax is offline
 
Join Date: Jun 2006
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 />
Reply With Quote
  #3  
Old 09-05-2006, 01:25 AM
Jarllax Jarllax is offline
 
Join Date: Jun 2006
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 10-07-2006, 03:17 AM
Evil X Evil X is offline
 
Join Date: Sep 2005
Location: naptown
Posts: 386
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

bump.. can someone release a mod like this?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:25 AM.


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.05945 seconds
  • Memory Usage 2,207KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete