Previous Thread
Next Thread
Print Thread
Rate Thread
#232219 01/07/2003 6:45 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Mod Name / Version - Quote Username 1.0

Description - This modification shows who you are quoting.

Working Under - UBB.Threads 6.2

Pre-requisites - none

Author - JoshPet - www.joshuapettit.com

Credits - BryanDS for requesting it

Files Altered - newreply.php

Database Altered - none

New Files - none

NOTE: This stores the name of the person being quoted with the quote (in the message body). It's simple, and you can edit, but it won't change if the person being quoted changes their username. On the upside, it's a very simple tweak. No worse than the person typing the name in the message.
Attachments
64011-QuoteUsername1.0.txt (0 Bytes, 340 downloads)

Sponsored Links
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
I tested this out but its weird as nothing changes. The name and the word said do not appear. I see where the variable $ResUsername is called throughout the file and it should work but if I quote nothing but the regular quote happens.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Hmmm.... That's all I changed. Are you sure you uploaded the file.

You can test it here:

http://www.measurection.com/forums/postlist.php?Cat=&Board=josh

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
LOL

I uploaded it alrighty. Right to my beta test site

It works if I uploaded it to the right place.

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


Sponsored Links
Joined: Aug 2002
Posts: 239
Member
Member
Joined: Aug 2002
Posts: 239
AWESOME!!!!!!!! ThankYOU Josh!!!!!


Some people read their stars..... I choose to write my own
Joined: Nov 2001
Posts: 126
Junior Member
Junior Member
Offline
Joined: Nov 2001
Posts: 126
Actually modified this a bit to look more aesthetically loverly ;-)


# From this:


// ---------------------------------------------------------------
// If we are quoting then we need to wrap the body in quote markup
$QuoteBody = "";
if ($q == 1) {
$QuoteBody = $html -> undo_markup($Body);
$QuoteBody = str_replace("<br />","\n",$QuoteBody);
$QuoteBody = "[{$ubbt_lang['TEXT_QUOTE']}]$ResUsername said:\n$QuoteBody [/{$ubbt_lang['TEXT_QUOTE']}]";


_________

Everything stays the same except this line
_________


$ResUsername said:[/i][/b]\n \n$QuoteBody [/{$ubbt_lang['TEXT_QUOTE']}]";

_________


All it does is add a spacer between "Username said" and the actual quote body.

-B

Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
[]$ResUsername said:[/i][/b]\n \n$QuoteBody [/{$ubbt_lang['TEXT_QUOTE']}]";[/]
Or you could use something like:

[:"red"]From the big mouth of $ResUsername:[/]...



Warm regards

Nikos


Nikos
Joined: Nov 2001
Posts: 126
Junior Member
Junior Member
Offline
Joined: Nov 2001
Posts: 126
*snicker*

The things you can do with this ;-)

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

Yeah, it's an easy tweak to customize how you like it to look.

My users are enjoying it.

Sponsored Links
Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
Yet another awesome hack Josh, thanks!

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
This is ready for "finished" status. I've reposted this here and am closing this thread.


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
Posts: 70
Joined: January 2007
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 20240430)