Previous Thread
Next Thread
Print Thread
Rate Thread
#182027 09/03/2003 7:20 PM
Joined: Nov 2001
Posts: 1,080
Member
Member
Offline
Joined: Nov 2001
Posts: 1,080
Aside from ubb_edit_post.cgi:

sub perform_edit {

And ubb_lib_posting.cgi:

sub prep_for_edit {

Are there any other files or sub routines I need to check to modify the look?

For half a year I've had it as:

*Edited at 03. September 2003, 03:58 PM by bactest3*

Instead of the original:

[ March 27, 2003, 08:38 AM: Message edited by: bactest3 ]

What I've noticed is that sometimes when users edit their post twice, instead of one edit message appearing they'll get two. If they edit three times they end up with three "Edited by" messages instead of just one.

Here is how I modified it (ubb_edit_post.cgi):

$message .= qq(

*$vars_wordlets{edit_wording} $edit_date by $pubname*);

And in ubb_lib_posting.cgi:

$message =~ s/()?*Q$vars_wordlets{edit_wording}E [^][]+ by [^][]+*()?$//gi;

**These are 2 (new) modifications I did a few minutes ago. I don't know if it will work or not without repeating "Edited by" messages.

Sponsored Links
#182028 09/04/2003 3:31 AM
Joined: Nov 2001
Posts: 1,080
Member
Member
Offline
Joined: Nov 2001
Posts: 1,080
I made yet another adjustment and so far it's working:

in ubb_lib_posting.cgi:

Code
$message =~ s/*Q$vars_wordlets{edit_wording}E [^][]+ by [^][]+*?$//gi;
and in ubb_edit_post.cgi

Code


*$vars_wordlets{edit_wording} $edit_date by $pubname*);
After several tests when a user edits a post multiple times the edit message doesn't stack...Meaning it only shows up one time, as it should. I hope it continues. smile

#182029 09/04/2003 3:36 AM
Joined: Nov 2001
Posts: 1,080
Member
Member
Offline
Joined: Nov 2001
Posts: 1,080
BTW...Great job on the UBB [code] tags. They indent now. thumbsup

#182030 09/07/2003 10:25 PM
Joined: Nov 2001
Posts: 1,080
Member
Member
Offline
Joined: Nov 2001
Posts: 1,080
Charles? I noticed that when HTML is turned off + displayed names with characters of "[ ]" only seem to get the error of raw html codes displaying when Quote and Quick Quote is applied or when the posts are edited more than one time. Posts that are edited more than one time has the "Edited by..." displayed more than once with the raw HTML codes.

Files edited:

ubb_edit_post.cgi (sub perform_edit)
ubb_lib_posting.cgi (sub prep_for_edit)
public_post_preview.pl (sub just_do_it)

Changes made:

ubb_edit_post.cgi

$message .= qq(

*$vars_wordlets{edit_wording} $edit_date by $pubname*);

ubb_lib_posting.cgi

$message =~ s/()?*Q$vars_wordlets{edit_wording}E [^][]+ by [^][]+*()?$//gi;

public_post_preview.pl

$message .= qq(

*$vars_wordlets{edit_wording} $edit_date by $pubname*);


Only nicks with characters [ ] cause errors such as:
Quote
quote:

Edit 1

Edit 2

*Edited at 07. September 2003, 07:12 PM by bactest[4]*

*Edited at 07. September 2003, 07:13 PM by bactest[4]*
Is there a way to fix this? If so what would I need to do?


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
isaac
isaac
California
Posts: 1,153
Joined: July 2001
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 520
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 24
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
Morgan 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)