Previous Thread
Next Thread
Print Thread
Rate Thread
#269654 02/21/2004 11:05 AM
Joined: Aug 2002
Posts: 51
Power User
Power User
Offline
Joined: Aug 2002
Posts: 51
I have a forum called "have lists" where my members can post a list of all the items they "have" to trade or sell.

I configured the 'extra2' field as Have lists and members enter the post# of their have list within the "have lists
" forum in this field.

I am trying to modify showprofile.php so that when you view a members profile it will provide a link straight to their post in the "have lists" forum. I modified showprofile.php like this:

if ($config['extra2']) {
$extra2 = "
</td></tr><tr><td valign="top" class="darktable">
{$config['extra2']}
</td><td colspan="2"><a href="http://www.pokemon-trading-cards.net/forums/showflat.php?Cat=&Number=$Extra2">Click to View Have List
";
}


the only trouble I am having is that if a member has not added anything into the extra2 field in their profile it still creates the link but doesnt work as the post# isnt added to the end of the url.

I would like to know how to modify the code so that if the extra2 field is empty it wont put anything there.

an example profile with the extra2 field populated is here

an example of a profile without the extra2 field populated here

hope this makes sense. any and all help would be greatly appreciated

Sponsored Links
Entire Thread
Subject Posted By Posted
modifying showprofile.php webwolfe_dup1 02/21/2004 6:05 PM
Re: modifying showprofile.php Anno 02/22/2004 4:27 AM
Re: modifying showprofile.php webwolfe_dup1 03/01/2004 5:36 AM
Re: modifying showprofile.php webwolfe_dup1 03/03/2004 4:15 AM
Re: modifying showprofile.php JoshPet 03/03/2004 7:36 AM

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:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,825
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 1948
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 12
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
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-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)