Print Thread
Hop To
#181208 03/21/2007 1:45 PM
Joined: Sep 2006
Posts: 120
member
member
Joined: Sep 2006
Posts: 120
Well, I've beat my head against the wall too long!! mad
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 #181220 03/21/2007 6:45 PM
Joined: Jun 2006
Posts: 16,355
Likes: 125
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,355
Likes: 125
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


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Gizmo #181230 03/21/2007 7:49 PM
Joined: Jul 2006
Posts: 2,143
Pooh-Bah
Pooh-Bah
Joined: Jul 2006
Posts: 2,143
Doesn't work. seems like $user is undefined there. hmm.


This thread for sale. Click here! [Linked Image from navaho.infopop.cc]
Joined: Jun 2006
Posts: 16,355
Likes: 125
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,355
Likes: 125
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...


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Gizmo #181267 03/21/2007 10:25 PM
Joined: Sep 2006
Posts: 120
member
member
Joined: Sep 2006
Posts: 120
Well, that's good to hear because I thought it was me!!!

LarE #181332 03/22/2007 3:25 PM
Joined: Jul 2006
Posts: 2,143
Pooh-Bah
Pooh-Bah
Joined: Jul 2006
Posts: 2,143
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! [Linked Image from navaho.infopop.cc]
Joined: Sep 2006
Posts: 120
member
member
Joined: Sep 2006
Posts: 120
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. smile

LarE #181334 03/22/2007 4:10 PM
Joined: Jul 2006
Posts: 2,143
Pooh-Bah
Pooh-Bah
Joined: Jul 2006
Posts: 2,143
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! [Linked Image from navaho.infopop.cc]
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
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.

Rick #181338 03/22/2007 5:04 PM
Joined: Jul 2006
Posts: 2,143
Pooh-Bah
Pooh-Bah
Joined: Jul 2006
Posts: 2,143
Oh, so it's NOT me? \o/




This thread for sale. Click here! [Linked Image from navaho.infopop.cc]
Joined: Sep 2006
Posts: 120
member
member
Joined: Sep 2006
Posts: 120
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!!! smile
Thanks Rick.

Joined: Jun 2006
Posts: 16,355
Likes: 125
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,355
Likes: 125
AHA, I thought I had it right lol... It's rick? :x


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Gizmo #181357 03/22/2007 6:37 PM
Joined: Sep 2006
Posts: 120
member
member
Joined: Sep 2006
Posts: 120
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..
.

Joined: Sep 2006
Posts: 120
member
member
Joined: Sep 2006
Posts: 120
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 #182001 04/04/2007 12:20 AM
Joined: Jun 2006
Posts: 16,355
Likes: 125
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,355
Likes: 125
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).


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Gizmo #182021 04/04/2007 10:18 AM
Joined: Sep 2006
Posts: 120
member
member
Joined: Sep 2006
Posts: 120
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 #182036 04/04/2007 5:29 PM
Joined: Jun 2006
Posts: 16,355
Likes: 125
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,355
Likes: 125
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 :/...


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Another error
by Baldeagle - 10/07/2024 9:08 PM
Is this a cookie issue?
by Baldeagle - 10/05/2024 2:01 PM
Search button not there
by ehill - 10/02/2024 2:56 PM
Change the Order of the buttons in a post
by Unixspot - 09/19/2024 10:04 PM
Purging logs does not work
by Baldeagle - 09/12/2024 5:16 PM
Who's Online Now
1 members (Gizmo), 648 guests, and 53 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)