vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   how do i *force* a user to rate when submitting a reply? (https://vborg.vbsupport.ru/showthread.php?t=38070)

212rikanmofo 04-30-2002 09:39 AM

how do i *force* a user to rate when submitting a reply?
 
what template do i edit, and what do i change in order to force a user to select a rating for when they reply to a thread?

Admin 04-30-2002 09:54 AM

Edit newreply_ratethread template and removed this:
Code:

                <option value="0"$rate[0]>Select a rating (optional)</option>
And it might even work! :)

BTW, you might want to replace this:
Code:

                <option value="3"$rate[3]>3 .. Average</option>
With this:
Code:

                <option value="3"$rate[3]$rate[0]>3 .. Average</option>
So Average will be selected by default.

212rikanmofo 04-30-2002 10:25 AM

doesnt work :(

you know when you goto REPLY to a thread, it has a pulldown box to let you select 1 -5? well if a user doesnt select anything, how do you make it popup a window and say "Please rate this before submitting"? in other words the user is forced to select a rating, if he doesn't then a popup window will prompt the user to rate it, kind of like a required field... thats what i want to do.

Admin 04-30-2002 10:28 AM

Works for me.

212rikanmofo 04-30-2002 10:54 AM

it does? so if you dont select a rating, it will pop up a window and tell you to rate it b4 submitting?

on mine, if i dont select anything, it still submits the post, which i dont want it to...

i want it to popup a window if a user doesnt select a rating, telling him/her to select a rating from the dropdown list b4 he continues.

thats what im trying to do....

Admin 04-30-2002 10:56 AM

My way just doesn't let users choose the "No Rating" option.

212rikanmofo 04-30-2002 11:12 AM

do you think you can make it where it pops up a window if a user doesnt select anything from the rating drop down list? do you know how to do it like that please? :(

Admin 04-30-2002 11:46 AM

Nope.

212rikanmofo 04-30-2002 11:51 AM

nope you don't know how to do it, or nope you don't want to tell me? please help me out

NTLDR 04-30-2002 01:28 PM

I think what FireFly means is that you should try to do it yourself instead of asking others to do it all for you.

That way you will learn something.


All times are GMT. The time now is 10:55 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.01600 seconds
  • Memory Usage 1,723KB
  • 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
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete