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

   The $user routine doesn Add to del.icio.us
  Digg The $user routine doesn Digg it
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: 25411
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 12
Gizmo 10
S7ARBVCK 2
Cambridge 1
Murphdog 1
MattUK 1
Kevin H 1
Who's Online
0 Registered (), 39 Guests and 9 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
BeyondCompare v3.00
by blaaskaak
09/05/08 02:46 PM
Noob - need help, or a reality check!
by Gizmo
09/04/08 03:21 AM
Here I am! Rock me like a Hurricane!
by AllenAyres
09/02/08 03:05 PM
[7.x] Generic Page Outside of forum directory
by Gizmo
08/30/08 05:43 PM
Team UBBDev Rides Again!
by Gizmo
08/28/08 11:45 PM
Multiple Identity Detector
by MattUK
08/28/08 04:10 PM
[7.3.x] ubb.links
by AllenAyres
08/26/08 09:57 AM
New Mods
Installing FlashChat with 7.3
by Paug
08/23/08 12:14 AM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
[7.2.1] - Naked shoutbox
by sirdude
08/17/07 10:36 PM
[7.x] Generic Page Outside of forum directory
by
01/14/07 10:58 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
veedubb8, twentyseven, Claus1, welcomeback1, Paug
13327 Registered Users

 

 

 
fusionbb message board php hacks