Previous Thread
Next Thread
Print Thread
Rate Thread
#231247 12/30/2002 4:04 AM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Mod Name / Version - Re_LinkToProfile1.0

Description - This modification adds a Re: User NUMBER with a link to their profile in flat view of Threads 6.2 Also instruction to go one step further and look up the current display name of the person the reply is to.

Working Under - UBB.Threads 6.2

Pre-requisites - none

Author - JoshPet - www.joshuapettit.com

Credits - Jelly_Donut & Leo Laporte from leovilletownsquare.com

Files Altered - showflat.php and showflat.tmpl

Database Altered - none

New Files - none

NOTE: The first part of the Instructions only displays the user NUMBER. This adds more queries and may slow down larger forums.

The SECOND part of the Instructions Adds the display name of the user. This adds EVEN MORE queries and will probably slow down larger forums.

I haven't tested very extensively at how this may slow things down.
I would not recommend this on larger or very active forums.
On a typical showflat page, with 10 posts showing, Part 1 (showing the User number) will add 9 queries. Doing Part 2 to display the name will add 18 more queries. If people are displaying more than 10 posts per page, then there will be more queries.


There may be a better way to do this... but there is not currently a good way to do this. So try it and see if it works for you. Many have asked for it, so I wrote it. I'm not sure if I will run at my site or not. I might give it a try.
If people start complaining of the speed, or the server is acting overloaded, then I'll know this is the first thing to remove.
Attachments
62952-Re_LinkToProfile1.0.txt (0 Bytes, 44 downloads)

Sponsored Links
Joined: Apr 2002
Posts: 102
Journeyman
Journeyman
Offline
Joined: Apr 2002
Posts: 102
Oh my! You are the best!!!!!!!! Thank you

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Your site is pretty big.... use with caution and make sure it's not too much for your SQL server.

It seems to be doing well on Leoville though.

Joined: Apr 2002
Posts: 102
Journeyman
Journeyman
Offline
Joined: Apr 2002
Posts: 102
I just checked, doesn't really seem to cause any noticeable increase, and we have about 90 users online right now. Of course our server is far from maxed out, so it may cause slowdown on lower power machines.

Joined: Dec 2002
Posts: 4
Lurker
Lurker
Offline
Joined: Dec 2002
Posts: 4
Big sanks. For better compliance for old version change

$postrow[$i]['replytouser'] = " Re: <a href="{$config['phpurl']}/showprofile.php?Cat=$Cat&User=$ReplyToUser" target="_blank">$ReplyToName</a>";

on

$postrow[$i]['replytouser'] = " Re: [<a href="{$config['phpurl']}/showprofile.php?Cat=$Cat&User=$ReplyToUser" target="_blank">$ReplyToName</a>]";


Sponsored Links
Joined: Dec 2002
Posts: 4
Lurker
Lurker
Offline
Joined: Dec 2002
Posts: 4
To better classic

$postrow[$i]['replytouser'] = " <font class="small">[Re : <a href="{$config['phpurl']}/showprofile.php?Cat=$Cat&User=$ReplyToUser" target="_blank">$ReplyToName</a>]</font>";

Or better than last ))
$postrow[$i]['Subject'] = $Subject;

$postrow[$i]['replytouser'] = " <font class="small">[<a href="{$config['phpurl']}/showthreaded.php?Cat=$Cat&Board=$Board&Number=$ParentPost&page=$page&view=$view&sb=$sb&o=$o&vc=1" target="_new">re: $ReplyToName</a>]</font>";


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
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,825
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 2350
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 10
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
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)