mini
bb
®
Fight the automated spam - protect your miniBB-forums,
getting the Captcha addon!
Click here to read more
.
Community Forum
|
Forums
|
File Bank
|
Sign Up
|
Reply
|
Search
|
Statistics
|
Manual
|
miniBB Community Forum
/
Master Class
/
Changing output of $posterText on the fly
janu
Guest
#1
|
Posted: 7 May 2007 08:06
Reply
Hello Community,
does anybody have an idea how to manipulate the post text without manipulating the database entry? I don't want to change the post text in the database, words should be replaced by loading the template / just in time.
Thanks!
Kind greetings,
janu
Paul
CEO
#2
|
Posted: 7 May 2007 08:44
|
Edited by: Paul
Reply
Do you mean $posterText which is displayed in the message thread?
If so, you could use parseMessage() function which has to be pasted in bb_plugins.php. For example, this will return text with no HTML:
function parseMessage(){
$GLOBALS['postText']=strip_tags($GLOBALS['postText']);
}
This function is used widely for many plugins, for example, file upload addon, premoderation or moving replies. Be sure to set it up properly - it requires programming knowledge.
Your reply
»
Username
»
Password
You are welcome to post anonymously by entering a nickname with no password (if that nickname has not been taken by another member) or by leaving both fields empty. If you have a forums membership account, you can also sign in from this page without posting a message, or sign in and post at once.
Before posting, be sure your message is compliant with our
forum posting rules
. If not, it may be locked or deleted with no explanation.
News & Announcements
FAQ
How To
Bugs
Other
Official Addons and Solutions
Custom Tutorials and Modifications
Master Class
Specific
Re-cycled
Suggestions
Testimonials
qwerty
Online now: Guests - 35
Members - 0
Most users ever online: 191 [24 Dec 2007 14:33]
Guests - 191 / Members - 0
Forums are powered by
miniBB
®