miniBB Support Forums
|
Forums
|
Register
|
Reply
|
Search
|
Statistics
|
Manual
|
miniBB Support Forums
/
Master Class
/
Changing output of $posterText on the fly
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
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.
miniBB Support Forums
/
Master Class
/ Changing output of $posterText on the fly
↑
Top
Your Reply
Short link for this topic:
?
You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums 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.
News & Announcements
FAQ
How To
Bugs
The Other
Official Addons and Solutions
Custom Tutorials and Modifications
Master Class
Specific
Re-cycled
Suggestions
Testimonials
qwerty
Features
Requirements
Demo
Download
Showcase
Gallery of Arts
Compiler
Premium Extensions
Premium Support
License
Contacts
Worried about forum enemies?
Pre-approve postings and members with the
Premoderation add-on
!