UBB.Dev
Posted By: Dom Finished-[6.4] Quote Username (B) - 04/03/2004 3:23 AM
Mod Name / Version: Quote Username (B)

Description: As JoshPet's Quote Username 1.0, but this uses the syntax [Quote:Username] to add the Username next to the "Quote:" text instead of within the quote text.

Working Under: UBB.Threads 6.4

Mod Status: Beta

Any pre-requisites:

Author(s): Dom

Date: 04/02/04

Credits: JoshPet for doing the original

Files Altered: ubbt.inc.php, newreply.tmpl

New Files: None

Database Altered: No

Info/Instructions:

Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.

Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.


Attached File
111434-QuoteUsernameB.txt  (170 downloads)
Posted By: Sapphy Re: Finished-[6.4] Quote Username (B) - 04/03/2004 2:23 PM
Lovely jubbly.
Posted By: Dom Re: Finished-[6.4] Quote Username (B) - 04/23/2004 6:15 PM

Apologies to anyone who's already installed this, but I found I'd left out a step in the instructions to convert back to UBB code for editing a post. Last step of the instructions has now been added and it'll do the trick.
Posted By: Maze Re: Finished-[6.4] Quote Username (B) - 05/08/2004 6:34 PM
Thanks for the nice hack.

It seems like there's still a problem while converting back. If you edit a post that has several quotes of both types [ quote ] and [ quote:username ] it won't work...
Posted By: Maze Re: Finished-[6.4] Quote Username (B) - 05/08/2004 7:51 PM
Think I got it fixed. The last step should be:

Code
##<br /># Find this:<br />#<br /><br />       $Body = preg_replace("/<\/font><blockquote><font class=\"small\">.*?:<\/font><hr \/><br \/>/","[{$ubbt_lang['TEXT_QUOTE']}]",$Body);<br /><br />#<br /># REPLACE it with:<br />#<br /><br />       $Body = preg_replace("/<\/font><blockquote><font class=\"small\">[a-zA-Z\s]*?:<\/font><hr \/><br \/>/","[{$ubbt_lang['TEXT_QUOTE']}]",$Body);<br />       $Body = preg_replace("/<\/font><blockquote><font class=\"small\">.*?:\s(.*?)<\/font><hr \/><br \/>/","[{$ubbt_lang['TEXT_QUOTE']}:\\1]",$Body);<br />
Posted By: Gregori Re: Finished-[6.4] Quote Username (B) - 05/14/2004 5:45 PM
[]Maze said:
Think I got it fixed. The last step should be:

Code
##<br /># Find this:<br />#<br /><br />       $Body = preg_replace("/<\/font><blockquote><font class=\"small\">.*?:<\/font><hr \/><br \/>/","[{$ubbt_lang['TEXT_QUOTE']}]",$Body);<br /><br />#<br /># REPLACE it with:<br />#<br /><br />       $Body = preg_replace("/<\/font><blockquote><font class=\"small\">[a-zA-Z\s]*?:<\/font><hr \/><br \/>/","[{$ubbt_lang['TEXT_QUOTE']}]",$Body);<br />       $Body = preg_replace("/<\/font><blockquote><font class=\"small\">.*?:\s(.*?)<\/font><hr \/><br \/>/","[{$ubbt_lang['TEXT_QUOTE']}:\\1]",$Body);<br />
[/]

Is this an extra step, or does it replace the last step in the file?
Posted By: prohozhiy_dup1 Re: Finished-[6.4] Quote Username (B) - 07/02/2005 11:09 AM
can anyone come up with an update of this mod for 6.5?

would be greatly appreciated
© UBB.Developers