Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Commissioned by ScottCargill.

This substitutes an icon (of your choice) as a link to a user's home page in the user list. This keeps things from getting stretched out of whack with long URLs.

Instructions:

##
## Upload home.gif image of your choice to your threads images directory. I attached a suggested image.... not sure if Infopop would allow it to be used in threads. It's from Infopop Community. But you may prefer something else.


##
## Open showmembers.php
##

#
# Find this:
#

if ($Home) {
$Home = "<a href="http://$Home" target="new">$Home</a>";
}


#
# Change to this:
#

if ($Home) {
$Home = "<div align="center"><a href="http://$Home" target="new">
<img src="{$config['imageurl']}/home.gif" border="0" alt="$Home" /></a></div>";
}
Attachments
73063-home.gif (0 Bytes, 44 downloads)

Sponsored Links
Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268


On line 62 in the showmembers.tmpl file there is an ASCII space that causes the home.gif file to be positioned toward the top of the table. Removing it causes the home.gif file to center in the table perfectly.

Find:

Code
 <td class="{$userrow[$i]['color']}"> <br />{$userrow[$i]['Home']} &nbsp; 


and replace it with:

Code
 <td class="{$userrow[$i]['color']}"> <br />{$userrow[$i]['Home']} 


There is another ASCII space a few lines down that I removed as well.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Thanks!

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
Thanks for the cool mod

I've found a lot of ASCII white space in the templates, almost like someone is using a WYSIWYG editor on them...

Joined: Jan 2003
Posts: 338
Enthusiast
Enthusiast
Offline
Joined: Jan 2003
Posts: 338
Thx, very nice mod & image

Sponsored Links
Joined: Jan 2003
Posts: 338
Enthusiast
Enthusiast
Offline
Joined: Jan 2003
Posts: 338
On my forum all is ok after mod. olny showmembers.php

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
I don't understand. Is it working? Or is there a problem?

Joined: Jan 2003
Posts: 338
Enthusiast
Enthusiast
Offline
Joined: Jan 2003
Posts: 338
its working without any modyfication in *.tmpl file.

Joined: Feb 2001
Posts: 104
Journeyman
Journeyman
Offline
Joined: Feb 2001
Posts: 104
Thanks JOSH!! Worked like a Champ!

Slam Dunk.


Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
It will work just fine, but depending on the browser you use the icon won't be centered in the table cell due to that ASCII space.

Sponsored Links
Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
thanks works great


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
AllenAyres
AllenAyres
Texas
Posts: 21,079
Joined: March 2000
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)