php forum
php mysql forum
php mysql smarty
 
Topic Options
#182027 - 09/03/03 07:20 PM "Edited By" Message
PrimeTime Offline
Member

Registered: 11/06/01
Posts: 1046
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(

<small>*$vars_wordlets{edit_wording} $edit_date by $pubname*</small>);

And in ubb_lib_posting.cgi:

$message =~ s/(<small>)?*Q$vars_wordlets{edit_wording}E [^][]+ by [^][]+*(</small>)?$//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.
_________________________
Members Spotlight Winner
bac-Clan
--------------------

Top
Monetize Your Site
#182028 - 09/04/03 03:31 AM Re: "Edited By" Message
PrimeTime Offline
Member

Registered: 11/06/01
Posts: 1046
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
_________________________
Members Spotlight Winner
bac-Clan
--------------------

Top
#182029 - 09/04/03 03:36 AM Re: "Edited By" Message
PrimeTime Offline
Member

Registered: 11/06/01
Posts: 1046
BTW...Great job on the UBB [code] tags. They indent now. thumbsup
_________________________
Members Spotlight Winner
bac-Clan
--------------------

Top
#182030 - 09/07/03 10:25 PM Re: "Edited By" Message
PrimeTime Offline
Member

Registered: 11/06/01
Posts: 1046
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(

<small>*$vars_wordlets{edit_wording} $edit_date by $pubname*</small>);

ubb_lib_posting.cgi

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

public_post_preview.pl

$message .= qq(

<small>*$vars_wordlets{edit_wording} $edit_date by $pubname*</small>);


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

Edit 1

Edit 2

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

*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?
_________________________
Members Spotlight Winner
bac-Clan
--------------------

Top



Moderator:  Gizmo 
Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks