View Full Version : Editing vb:raw post.message
yukirina
04-27-2014, 05:25 AM
Hello, I wish to do some automatic word find and link replace (using preg_replace) any given word found on the post. I figured that in the templates, vb:raw post.message is the variable that contains every message per post, but I don't know where in the php file affects this variable. What is the final parsed variable in the php file before being pushed onto vb:raw post.message, and what php file is it located in?
cellarius
04-27-2014, 07:45 AM
See: https://vborg.vbsupport.ru/showthread.php?t=219968
Seven Skins
04-27-2014, 07:48 AM
You can make a plugin at "postbit_display_complete" hook and do preg_replace etc...
like:
$post['message'] = preg_replace('/findme/','replacewith',$post['message']);
kehindelawal
04-27-2014, 12:52 PM
can someone help with this: i want to create a home page where all the latest post are displayed. how do i do this?
cellarius
04-27-2014, 01:22 PM
Create your own thread, don't hijack other's.
kehindelawal
04-27-2014, 07:14 PM
Create your own thread, don't hijack other's.
a thousand apologies!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.