Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
4 registered (Dj Aero, capnbob, Morgan, id242), 46 Guests and 16 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 04/12/04
Posts: 154
Top Posters (30 Days)
Ruben 49
DennyP 24
Gizmo 23
Dunny 18
SteveS 14
AllenAyres 12
dbremer 10
drkknght00 9
SD 9
driv 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Page 1 of 2 1 2 >
Topic Options
#181208 - 03/21/07 01:45 PM Passing data
LarE Offline
member
Registered: 09/26/06
Posts: 134
Loc: NJ
Well, I've beat my head against the wall too long!!
The local store doesn't have the php/MYsql book that was recommended in to. So I'm here for some help.
I'm playing with a Custom Island and I want to display some user info in it.
Here's the island code:
 Quote:
/* PHP CODE HERE */

/* BODY HERE */
$body = <<<EOF
This is the Username =
UUUU
This is the Display name =
DDDD
This is the user number =
NNNN
EOF;


How do I get the info and put it in where UUUU,DDDD and NNNN are?
I know it's going to be php code but I can't find any sample in looking around here and at UBBDev.

I promise this is the last "DUMMIE" question I'll ask.
I'll be ordering the book later.
Thanks for reading
_________________________
LarE
Barnegat Fishin' Hole
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#181220 - 03/21/07 06:45 PM Re: Passing data [Re: LarE]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
Well, in my pjirc chat addon at UBBDev I use this to pull the users public display name: $user.USER_DISPLAY_NAME

So i'd think ot pull the username it'd be: $user.USER_LOGIN_NAME
And the User Number: $user.USER_ID
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#181230 - 03/21/07 07:49 PM Re: Passing data [Re: Gizmo]
David Dreezer Offline

Pooh-Bah
Registered: 07/21/06
Posts: 2199
Doesn't work. seems like $user is undefined there. hmm.
_________________________
This thread for sale. Click here!
Top
#181235 - 03/21/07 08:12 PM Re: Passing data [Re: David Dreezer]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
Ahh yeh, $user would have to be defined; Rick was doing it in a header island in a demo before, I wonder what he was using...
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#181267 - 03/21/07 10:25 PM Re: Passing data [Re: Gizmo]
LarE Offline
member
Registered: 09/26/06
Posts: 134
Loc: NJ
Well, that's good to hear because I thought it was me!!!
_________________________
LarE
Barnegat Fishin' Hole
Top
#181332 - 03/22/07 03:25 PM Re: Passing data [Re: LarE]
David Dreezer Offline

Pooh-Bah
Registered: 07/21/06
Posts: 2199
No, it's not you. Doesn't answer your question though. I just have not figured out the answer yet.
_________________________
This thread for sale. Click here!
Top
#181333 - 03/22/07 03:50 PM Re: Passing data [Re: David Dreezer]
LarE Offline
member
Registered: 09/26/06
Posts: 134
Loc: NJ
Thanks David.
I just can't believe that with all the samples I've looked at in two days and with my past life as a programmer, I can't get it to work.
Of course, I didn't work in any of this modern stuff, just the old stuff, Fortran, assembly language, Cobol, and little C and C++ but none of it was Object Oriented stuff.
I crack it one of these days. It just ordered the book by Luke willing and Laura Thompson - php and MySQL Web Development. Should be some heavy reading for me. \:\)
_________________________
LarE
Barnegat Fishin' Hole
Top
#181334 - 03/22/07 04:10 PM Re: Passing data [Re: LarE]
David Dreezer Offline

Pooh-Bah
Registered: 07/21/06
Posts: 2199
Well, in this case you need to know smarty templates and how to pass variables to them for use. I've not spent any time at all with the smarty templates, hence my problem answering you.
_________________________
This thread for sale. Click here!
Top
#181336 - 03/22/07 04:38 PM Re: Passing data [Re: David Dreezer]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
It appears that I'm not making the $user array available to any of the portal islands. That's probably something I'll need to address in the base code, and might be able to get in for 7.1.1.
Top
#181338 - 03/22/07 05:04 PM Re: Passing data [Re: Rick]
David Dreezer Offline

Pooh-Bah
Registered: 07/21/06
Posts: 2199
Oh, so it's NOT me? \o/
_________________________
This thread for sale. Click here!
Top
Page 1 of 2 1 2 >



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Custom forum permissions
by ntdoc
05/18/12 02:07 PM
Forum Stats
10489 Members
36 Forums
33841 Topics
181698 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image