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.