Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #31  
Old 02-21-2003, 02:40 PM
PeetaGTS PeetaGTS is offline
 
Join Date: Feb 2003
Location: Gaithersburg, Maryland
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for all your help guys,.. i have one last questions regarding this.. i am editing the templates right now and i see that some of the options such as the querstion:

Automatically login when u return to the site?

O YES
O NO

or

Browse board with cookies?

O YES
O NO

in the registration field...

if i were to comment these things out.. do thoughs features set to default like if i take the automatically login when visiting the site option in the resgistration out.. by default would it set it to yes?

and for browse board with cookies... if i took that option to answer yes or no out.. would it be set to yes by default?
Reply With Quote
  #32  
Old 02-21-2003, 02:53 PM
pifemaster pifemaster is offline
 
Join Date: Feb 2003
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by PeetaGTS

if i were to comment these things out.. do thoughs features set to default like if i take the automatically login when visiting the site option in the resgistration out.. by default would it set it to yes?


and for browse board with cookies... if i took that option to answer yes or no out.. would it be set to yes by default?

PeetaGTS,

I am no expert at this but I tried EXACTLY what you are talking about. I found that wether I Commented them out from the template, after a person would register they all defaulted to "NO". I did not like this since I wanted to have certain items default to yes unless the user changed them in their profile. So I ended up adding them all back to the registration form.

I also did find that by changing the default setting from "ON" to "Off" did save the result unless the person registering physically switched it. So it seems to me that they must be shown in the registration form in oreder for the result to be set to yes.

I would love for someone to explain how to change this, possibly in a different template or in the PHP.


Hope this answers your question
Reply With Quote
  #33  
Old 02-21-2003, 06:26 PM
PeetaGTS PeetaGTS is offline
 
Join Date: Feb 2003
Location: Gaithersburg, Maryland
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes, thats exactly what i saw.. when i took a look at the coding.. i saw where you would be able to set the default to either yes or no..... what i am thinking is it is possible to comment the acual display of the options that you don't want out , but leave the line of code that sets the default to either a yes or no. for example:

<tr>
<td bgcolor="{firstaltcolor}"><normalfont><b>Automatic ally login when you return to the site? (uses cookies)</b></normalfont></td>
<td bgcolor="{firstaltcolor}"><normalfont>
<input type="radio" name="cookieuser" value="yes" checked> yes
<input type="radio" name="cookieuser" value="no"> no
</normalfont></td>
</tr>

this line of code is a option to set "Automatically login when you return from the site." on or off

the line of code:

value="yes" checked> yes

is the default option for yes.
Reply With Quote
  #34  
Old 02-21-2003, 06:32 PM
pifemaster pifemaster is offline
 
Join Date: Feb 2003
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, I tried & even though I left the default set to yes, as soon as you comment the code out it does not seem to recognize it & ends up defaulting to no.
Reply With Quote
  #35  
Old 02-21-2003, 06:34 PM
pifemaster pifemaster is offline
 
Join Date: Feb 2003
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think in order to get this to work when you comment the code out so it does not appear in the registration form, it is probably going to involve a PHP hack. Unfortunately, I am still very new to this & thats as far as I could take it.
Reply With Quote
  #36  
Old 02-21-2003, 06:46 PM
PeetaGTS PeetaGTS is offline
 
Join Date: Feb 2003
Location: Gaithersburg, Maryland
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm ok.. i thought so... =(... well does anyone have a hack for this or a codes that set whatever you disable to a default yes or no?
Reply With Quote
  #37  
Old 02-21-2003, 06:47 PM
PeetaGTS PeetaGTS is offline
 
Join Date: Feb 2003
Location: Gaithersburg, Maryland
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

most of the options to set are in vbulletin admin section also
Reply With Quote
  #38  
Old 02-23-2003, 05:13 AM
PeetaGTS PeetaGTS is offline
 
Join Date: Feb 2003
Location: Gaithersburg, Maryland
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anyone?
Reply With Quote
  #39  
Old 02-23-2003, 05:51 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by pifemaster
No, I tried & even though I left the default set to yes, as soon as you comment the code out it does not seem to recognize it & ends up defaulting to no.

When you comment the variable out, make sure you ADD this line in the template:

Code:
<input type="hidden" name="cookieuser" value="yes">
Anywhere between the <form and </form> tags.
Reply With Quote
  #40  
Old 02-23-2003, 01:21 PM
pifemaster pifemaster is offline
 
Join Date: Feb 2003
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Erwin,

Thank you VERY much.

This is exactly what I was looking for. Knowing this, I was able to trim my registration page quite a bit but still keep the defaults I wanted. I actually "deleted" all the unwanted fields off of the "registeradult" template. I figured since I wanted to eliminate all of them, why bother slowing down page load time by including alot of "hidden comment code" (although I sure not a major difference, every little bit helps). I just set the variables for each using your line. If anyone else is a BEGINER like me & wants to eliminate all of the radio buttons on the registeradult (or registercoppa) template, here is the list of all of the variables.

<input type="hidden" name="allowmail" value="yes">
<input type="hidden" name="invisible" value="no">
<input type="hidden" name="showemail" value="yes">
<input type="hidden" name="cookieuser" value="yes">
<input type="hidden" name="nosessionhash" value="yes">
<input type="hidden" name="receivepm" value="yes">
<input type="hidden" name="emailonpm" value="yes">
<input type="hidden" name="pmpopup" value="yes">
<input type="hidden" name="emailnotification" value="yes">
<input type="hidden" name="vbcode" value="yes">
<input type="hidden" name="showsignatures" value="yes">
<input type="hidden" name="showavatars" value="yes">
<input type="hidden" name="showimages" value="yes">

Just change the "yes" or "no" according to how you would like it to default and either "delete" or "comment out" (as mentioned earlier in this post) the unwanted fields.

Thanks again for everyones help on this. My registration page looks MUCH BETTER!!!

Robert Pfeifer
Reply With Quote
Reply

Thread Tools
Display Modes

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 04:13 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06108 seconds
  • Memory Usage 2,249KB
  • Queries Executed 13 (?)
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
  • (1)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete