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
#181339 - 03/22/07 05:33 PM Re: Passing data [Re: David Dreezer]
LarE Offline
member
Registered: 09/26/06
Posts: 134
Loc: NJ
Wow, that's a relief. I'm not as dumb as I thought I was.
You don't know how many different syntax's I tried!!!
Can I get to them in a post??
If so , I can do a hidden post and operate from there until you get 7.1.1 modified.
Now I can go eat dinner and not be thinking about it!!! \:\)
Thanks Rick.
_________________________
LarE
Barnegat Fishin' Hole
Top
#181350 - 03/22/07 06:16 PM Re: Passing data [Re: David Dreezer]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
AHA, I thought I had it right lol... It's rick? :x
_________________________
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
#181357 - 03/22/07 06:37 PM Re: Passing data [Re: Gizmo]
LarE Offline
member
Registered: 09/26/06
Posts: 134
Loc: NJ
For now all I need is the Display name.
I need to hook something to a Paypal order so I can identify the people when I get a payment that will only have their real name, etc..
.
_________________________
LarE
Barnegat Fishin' Hole
Top
#181992 - 04/03/07 07:44 PM Re: Passing data [Re: David Dreezer]
LarE Offline
member
Registered: 09/26/06
Posts: 134
Loc: NJ
I go the PHP and MySQL Web Dev book by Welling and Thomson todat.
Wow!! Do I have some reading to do!!
Glad to see it's a "Sams" book. They do good work.
Look out now, I'll really be able to "BREAK" things!!!

Any idea if this $user fix will be included in 7.1.1 yet??
_________________________
LarE
Barnegat Fishin' Hole
Top
#182001 - 04/04/07 12:20 AM Re: Passing data [Re: LarE]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
I have a ton of books on my Amazon list, i have numerous lists so if you get bored just search James Corthell and you'll see my reccommendations (well, what I want anyway).
_________________________
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
#182021 - 04/04/07 10:18 AM Re: Passing data [Re: Gizmo]
LarE Offline
member
Registered: 09/26/06
Posts: 134
Loc: NJ
I ordered from Amazon but they set the shipping date to May 1 to 15. Total ridiculous. I found a little local book store that had it and it's the Third Edition where Amazon's was the 2nd!!
_________________________
LarE
Barnegat Fishin' Hole
Top
#182036 - 04/04/07 05:29 PM Re: Passing data [Re: LarE]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
The benefit of amazon is the user storefront where you can buy expensive books for very low prices (for instance, the $200 certification book I was looking for I got for a meezly $5+$3 shipping)...

The shipping date change however is kind of odd; kinda like my USB network adapters that got held in customs for 4 days on a "guarenteed 3 day shipping" from UPS :/...
_________________________
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
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