PDA

View Full Version : Encode post text.


sysdevil
06-11-2013, 11:49 AM
Hello,
while user viewing a thread need to encode the posts with Steganography (http://en.wikipedia.org/wiki/Steganography) mode (script is already done but external). The text wich have to be encoded is userid of user that viewing post.

Some one can help me from where to begin. Plugins?
Or there some similar products already availible?

Thanks.

kh99
06-11-2013, 12:10 PM
I think you could create a new plugin using hook postbit_display_complete, and change $post['message'] as needed (the message will be in html format at that point). The userid of the user viewing the post will be in $this->registry->userinfo['userid'].

If you want to see the code where the plugin is called, you can look in includes/class_postbit.php and search for postbit_display_complete.