miniBB ® 

miniBB

®
Support Forums
  
 | Start | Register | Search | Statistics | File Bank | Manual |
Master Class miniBB Support Forums / Master Class /  
 

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
Lead Developer 
#2 | Posted: 7 May 2007 08:44 
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 Support Forums / Master Class /
 Changing output of $posterText on the fly
 Share Topic's Link

Your Reply Click this icon to move up to the quoted message


  ?
Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.


Before posting, make sure your message is compliant with forum rules; otherwise it could be locked or removed with no explanation.

 

 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Install the Captcha add-on: protect your miniBB-forums from the automated spam and flood.


  ⇑