miniBB ®
 
miniBB Community Forum
 | Forums | File Bank | Sign Up | Reply | Search | Statistics | Manual |
Captcha Addon for miniBB Fight the automated spam - protect your miniBB-forums, getting the Captcha add-on!
Master Class miniBB Community Forum / Master Class /
Short link for this topic:

Changing output of $posterText on the fly

Author janu
Guest
#1 | Posted: 7 May 2007 08:06
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
Author Paul
CEO
#2 | Posted: 7 May 2007 08:44 | Edited by: Paul
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.
Master Class miniBB Community Forum / Master Class / Changing output of $posterText on the fly Top
Your Reply Click this icon to move up to the quoted message

» 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, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.

 
miniBB Community Forum Powered by Free Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts