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: 25452
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: 8372
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 
Who's Online
0 registered (), 20 Guests and 12 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Wisdom needed
by Gizmo
Yesterday at 10:54 AM
How to hide sub forums from summary page
by blaaskaak
12/03/08 09:54 AM
Spell Check [beta]
by Bill B
12/01/08 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
Truth, David DelMonte, nick1, Begbie, cenk
13364 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks