The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Location 'Undisclosed'.
I couldn't find this within about 6 pages of the request forum.
Basically, I'm using a table in the postbit now, and the location field is sometimes left blank, which means the table is not complete. I was wondering how to make the location as 'Undisclosed' by default. Sorry if this has already been requested but I'm in a foul mood tonight and I didn't want to search further than 2 pages. Dave. |
#2
|
||||
|
||||
use phpMyAdmin to change the field's default to "Undisclosed"
|
#3
|
|||
|
|||
Which gives me an idea, I'll just add value="Undisclosed" in the registration templates and set the field to "must be completed" thanks mr e.
Dave. |
#4
|
||||
|
||||
Better yet, do this:
Open functions.php - Find: PHP Code:
PHP Code:
|
#5
|
||||
|
||||
i'd use this:
PHP Code:
|
#6
|
||||
|
||||
*lol @ the many different ways to do the same(ish) thing*
|
#7
|
||||
|
||||
it's not the same thing.
if a user has entered a space the string is " " and so there wouldn't be undisclosed.... with trim() it would show undisclosed |
#8
|
||||
|
||||
LOL! True, Stefan, very classy.
trim is better than (!$post[field2]) as well then. Still, for most users ! or "" would work. |
#9
|
|||
|
|||
I used Xenon's since he had a good point about the leaving the field blank.
Thanks both of you . BTW@Rose I would suggest a new host for your banner because not only did it take about 3 minutes to load on ADSL (........), but it also didn't load - it was a red x. That might lag 56k surfers (). Dave. |
#10
|
||||
|
||||
Quote:
Yeah, I'll update that - thanks! I am cancelling the host it's currently located on, and since I've alreadys witched the domain addy, it's not pointing right. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|