![]() |
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. |
use phpMyAdmin to change the field's default to "Undisclosed"
|
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. |
Better yet, do this:
Open functions.php - Find: PHP Code:
PHP Code:
|
i'd use this:
PHP Code:
|
*lol @ the many different ways to do the same(ish) thing*
;) |
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 |
LOL! True, Stefan, very classy. :)
trim is better than (!$post[field2]) as well then. Still, for most users ! or "" would work. |
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. |
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. |
All times are GMT. The time now is 04:25 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|