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: 25432
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
2 Registered (Gizmo, blaaskaak), 27 Guests and 5 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Blogs, love em or hate em?
by AllenAyres
10/07/08 02:05 PM
What do you use to edit the files
by Ian_W
10/05/08 03:33 PM
BeyondCompare v3.00
by Ian_W
10/05/08 03:32 PM
Glossy Black Theme with Image Reflection
by Gizmo
10/05/08 02:17 PM
ShareThis
by Gizmo
09/28/08 05:06 AM
[7.3] Viewing MySQL logfiles made easier
by AllenAyres
09/27/08 09:57 PM
Looking for a simple upload script
by Murphdog
09/26/08 08:45 PM
New Mods
[7.3] Viewing MySQL logfiles made easier
by blaaskaak
09/24/08 05:39 PM
[7.3.1] add search to showmembers page
by blaaskaak
09/07/08 04:50 AM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
pisa666, ghengis317, NitroX, Dogan, EliYah-
13345 Registered Users
Top Posters Last 30 Days
AllenAyres 12
blaaskaak 8
tackaberry 7
FREAK1 5
Gizmo 4
Mike L_dup1 4
Chris Bale 4

 

 

 
fusionbb message board php hacks