Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jan 2001
Posts: 1,309
Member / Blamoholic
Member / Blamoholic
Offline
Joined: Jan 2001
Posts: 1,309
Hi. laugh I am trying to display info about the user in the forums summary. I am having troubles getting it to open up the profile though.

I am using the following to open the user profile and to get the info:

[code][/code]$numba is the member number. However, when the page loads it tells me "No member profile found for '0000001'. How can I open up this profile and display the info? Thanks. laugh

Sponsored Links
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
Have it print the number as well as the profile data you expect - you might find the number is wrong.

Oh, and FYI... this is faster for chompinh:

my @u_profile = &OpenProfile(...);
foreach(@u_profile) { chomp; }

(The foreach sets the default variable, $_, with the line. chomp then operates on $_. As $_ was used, the value in the array is replaced with the changed $_, thereby not needing the extra steps & the counter)

In newer Perl versions you can get away with

chomp @u_profile;

but 5.00404, the UBB.classic minimum version, chokes on that.


UBB.classic: Love it or hate it, it was mine.
Joined: Jan 2001
Posts: 1,309
Member / Blamoholic
Member / Blamoholic
Offline
Joined: Jan 2001
Posts: 1,309
Thanks for helping CC. smile Okay, I had it print the member number and it prints the correct number. I can't get it to print the profile data, because it won't open the profile. Still getting this:

No member profile found for member number: ' 00000130 '

The following code I have added is below sub PageTop in public_forum_summary.pl:

[code][/code]and I am trying to print $blamstat to get the user status to show.

I realize that assigning a bunch of javascript in $numba will probably cause the problem, but I don't know any other way that I could just call the member number through $numba. Any ideas? Thanks! laugh

Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
Uh, that won't work, man... OpenProfile requires the number and only the number. tipsy

Around what lines in the code would this be? I can find the resident current member number var pretty quickly.


UBB.classic: Love it or hate it, it was mine.
Joined: Jan 2001
Posts: 1,309
Member / Blamoholic
Member / Blamoholic
Offline
Joined: Jan 2001
Posts: 1,309
Yeah I figured that wouldn't work. wink

I am trying to get it to display in the header on my forum summary. I made a little demo here . The part where it says "Your status is:".

Thanks again. smile

Sponsored Links
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
Mmmm. Can't do that without breaking the cache, you know...


UBB.classic: Love it or hate it, it was mine.
Joined: Jan 2001
Posts: 1,309
Member / Blamoholic
Member / Blamoholic
Offline
Joined: Jan 2001
Posts: 1,309
Ah... That's what I was afraid of. Looks like that idea is scrapped. frown Thanks anyway. laugh


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
hatter
hatter
USA
Posts: 69
Joined: January 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)