Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Feb 2002
Posts: 8
SKB
Offline
Lurker
Lurker
Joined: Feb 2002
Posts: 8
Argh. I have a headache. I'd appreciate any help on this matter. []https://www.ubbdev.com/threads/php/images/icons/smile.gif[/] I'm going from UBB 5.something to UBBThreads.

In my UBB, I had a little routine that basically checked to see if the user had term in a certain field. If it was the right text, and they had a URL input, it would then place a "Visit my website" link underneath their name.

Anyway, I'm not a programmer, and that was just something easy. But can I get it to work on UBBThreads? No! []https://www.ubbdev.com/threads/php/images/icons/smile.gif[/]

Here is the code I got sort of working, and put it in my showflat.php file:

/ Sort out the URL for under premium members' names
$URLofUser = $user['U_Homepage'];
if ($user['U_StaffStatus'] == "B5LR.com staff" or $user['U_StaffStatus'] == "Premium member" or $user['U_StaffStatus'] == "B5LR cast") {
if ($URLofUser == "") {
$URLUnder = "";
}
else {
$URLUnder = "<a href="http://$URLofUser" target="_blank">Visit my<br>website</a>";
}
} else {
$URLUnder = "";
}


Worked... sort of. As you can probably realize, instead of looking to see if the poster is applicable and paste their URL, it's actually seeing if the viewer meets the requirements. So I, the viewer, was seeing my URL posted under everybody's names!

Anyway, can anyone help clear me up on this please? I'd really appreciate it. I basically fiddle and learn. []https://www.ubbdev.com/threads/php/images/icons/smile.gif[/] But I need to know where the poster's information is coming from, and use that, not the viewer's.

Many thanks.

Sponsored Links
Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
I would REALLY like to get this feature working myself... on my last board it would display the user's location under their name, since we're all somewhat local it was a great feature []https://www.ubbdev.com/threads/php/images/icons/frown.gif[/]


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
isaac
isaac
California
Posts: 1,157
Joined: July 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)