The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#31
|
|||
|
|||
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? |
#32
|
|||
|
|||
Quote:
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 |
#33
|
|||
|
|||
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. |
#34
|
|||
|
|||
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.
|
#35
|
|||
|
|||
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.
|
#36
|
|||
|
|||
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?
|
#37
|
|||
|
|||
most of the options to set are in vbulletin admin section also
|
#38
|
|||
|
|||
anyone?
|
#39
|
||||
|
||||
Quote:
When you comment the variable out, make sure you ADD this line in the template: Code:
<input type="hidden" name="cookieuser" value="yes"> |
#40
|
|||
|
|||
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 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|