[2.0.7] Smilies in topic titles

The cleanup is complete. This forum is now read only.

Rating:

Excellent!
8
44%
Very Good
6
33%
Good
2
11%
Fair
1
6%
Poor
1
6%
 
Total votes: 18

User avatar
Brf
Support Team Member
Support Team Member
Posts: 53400
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Post by Brf »

exeqt wrote: After adding

Code: Select all

$topic_title = str_replace(":)","",$topic_title);
$topic_title = str_replace(":cool:","",$topic_title);


Your screen print shows you actually have

Code: Select all

$topic_title = str_replace(":)","",$$topic_title);
$topic_title = str_replace(":cool:","",$$topic_title);
Notice the "$$" in there. Those should only be single "$"
exeqt
Registered User
Posts: 22
Joined: Thu Dec 21, 2006 5:03 am

Post by exeqt »

Brf wrote:
exeqt wrote:After adding

Code: Select all

$topic_title = str_replace(":)","",$topic_title);
$topic_title = str_replace(":cool:","",$topic_title);


Your screen print shows you actually have

Code: Select all

$topic_title = str_replace(":)","",$$topic_title);
$topic_title = str_replace(":cool:","",$$topic_title);
Notice the "$$" in there. Those should only be single "$"
I own you 2 box of beer :)

THANK YOU VERY MUCH
I own you 2 box of beer :)
Hans Solo
Registered User
Posts: 1
Joined: Sat Oct 13, 2007 1:08 pm

Re: [2.0.7] Smilies in topic titles

Post by Hans Solo »

For private messages. Seems to work for me. Running phpBB 2.0.19, though it does have about 200 mods already...

Thanks for a really neat mod ;)

Code: Select all

OPEN privmsg.php

FIND
$post_subject = $privmsg['privmsgs_subject'];

AFTER, ADD

// SMILIES IN TOPIC TITLE
$post_subject = smilies_pass($post_subject);
// END SMILIES IN TOPIC TITLE

FIND
$msg_subject = $row['privmsgs_subject'];

AFTER, ADD

// SMILIES IN TOPIC TITLE
$msg_subject = smilies_pass($msg_subject);
// END SMILIES IN TOPIC TITLE
Is there any way I can use a wildcard to exclude groups of smilies rather than individually?
ie

Code: Select all

$topic_title = str_replace("[i*]","",$$topic_title);
rather than

Code: Select all

$topic_title = str_replace("[i24]","",$$topic_title);
$topic_title = str_replace("[i25]","",$$topic_title);
$topic_title = str_replace("[i26]","",$$topic_title);
Post Reply

Return to “[2.0.x] MOD Database Cleanup”