php forum
php mysql forum
php mysql smarty
 
Topic Options
#314613 - 06/26/07 05:04 PM The $user routine doesn't work
gtho4 Offline
Newbie

Registered: 01/16/03
Posts: 19
Loc: sydney, oz downunder
Version: UBB.threads 6.5.5
Board: funtrivia.com/forums

I'm trying to read a custom field which was created in reg'n settings. I've added these two lines to the myhome.tmpl:
  • $user[U_Username]
    $user[U_Extra3]
When I go to MyHome the first line returns gtho4, but the second line returns a blank.

I've checked that the data for custom-field extra3 exists in the same file (it's visible in showprofile) by running these two SQL commands. Both return the number 30176, which is the correct value for extra3 belonging to uid 539 (myself):
  • SELECT U_Extra3 FROM w3t_Users WHERE U_Number='539'
    SELECT U_Extra3 FROM w3t_Users WHERE U_Username='gtho4'
What am I doing wrong .. is it do-able? I think I've done everything correctly, but have nothing more than a rudimentary knowledge of what's going on / what I'm doing, lol

Top
#314615 - 06/26/07 05:44 PM Re: The $user routine doesn't work [Re: gtho4]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25373
Loc: Texas
It looks correct to me.
_________________________
- Allen wavey
- What Drives You?

Top
#314619 - 06/27/07 12:25 PM Re: The $user routine doesn't work [Re: AllenAyres]
Rick Offline
Guru

Registered: 05/11/99
Posts: 8371
Loc: Olympia, WA
Make sure you're requesting the U_Extra3 field in the authentication routine on that particular script. Only certain fields are requested in each script. Just look for the authenticate() call in the script and you'll see the list of fields. If you don't see the field you need, just add it to the list.
_________________________
StogieSmokers.com

Top
#314620 - 06/27/07 05:05 PM Re: The $user routine doesn't work [Re: Rick]
gtho4 Offline
Newbie

Registered: 01/16/03
Posts: 19
Loc: sydney, oz downunder
ok, gotcha.
I've read a lot of threads in here over the last few days with references to the authenticate routine. I'll re-read them, and have a bash at it over the weekend. *fingers crossed*
thanks mate

Top


Moderator:  Gizmo 
Top Posters Last 30 Days
AllenAyres 58
Gizmo 25
sirdude 25
Zarzal 17
blaaskaak 10
willing 3
tackaberry 3
Who's Online
0 Registered (), 32 Guests and 7 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Auto repair table
by blaaskaak
Yesterday at 06:16 PM
User Authentication Class
by swebs
07/18/08 06:19 PM
[7.3.x] ubb.links
by AllenAyres
07/18/08 05:09 PM
Team UBBDev Rides Again!
by AllenAyres
07/18/08 05:08 PM
ubb.social
by willing
07/17/08 06:29 PM
Multiple Identity Detector
by Detangler
07/16/08 05:59 AM
how do I change textcolor in shoutbox
by sirdude
07/14/08 05:14 PM
New Mods
[7.3+] CustomTag - Photobucket Slideshow
by Gizmo
07/12/08 11:14 AM
[7.3.x] Copy forum permissions
by blaaskaak
07/09/08 02:37 PM
Protect users emails
by Basil Fawlty
06/29/08 08:44 AM
[7.3.x] Scheduled board close for backup
by blaaskaak
06/26/08 04:01 AM
[7.3+] CustomTag - Audo Embedding
by Gizmo
06/24/08 07:52 PM
Newest Members
Stanley, NazzaN, mmem700, Tyler, nunny
13309 Registered Users

 

 

 
fusionbb message board php hacks