Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Nov 2003
Posts: 7
Dom
Offline
Lurker
Lurker
Joined: Nov 2003
Posts: 7
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.
Attachments
111434-QuoteUsernameB.txt (0 Bytes, 170 downloads)

Sponsored Links
Joined: Sep 2003
Posts: 67
Power User
Power User
Joined: Sep 2003
Posts: 67
Lovely jubbly.

Joined: Nov 2003
Posts: 7
Dom
Offline
Lurker
Lurker
Joined: Nov 2003
Posts: 7

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.

Joined: Oct 1999
Posts: 282
Enthusiast
Enthusiast
Offline
Joined: Oct 1999
Posts: 282
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...

Joined: Oct 1999
Posts: 282
Enthusiast
Enthusiast
Offline
Joined: Oct 1999
Posts: 282
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 />

Sponsored Links
Joined: Sep 2002
Posts: 151
Member
Member
Offline
Joined: Sep 2002
Posts: 151
[]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?

Joined: Feb 2005
Posts: 2
Lurker
Lurker
Offline
Joined: Feb 2005
Posts: 2
can anyone come up with an update of this mod for 6.5?

would be greatly appreciated


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
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)