PDA

View Full Version : If condition for blog this post


John Lester
06-20-2014, 05:53 PM
Is there an if condition that I could use to hide the "blog this post" from everyone except the post author?

tbworld
06-21-2014, 10:03 AM
STEP1: Modify Plugin
-------------------------------------------------
Product: vBulletin Blog
Plugin: Add links to blog

Find:

$this->registry->userinfo['userid']
Replace:

$this->registry->userinfo['userid'] === $thread['postuserid']



STEP2: Modify PHP Code (If needed)
-------------------------------------------------
blog_post.php, #785, "if ($_REQUEST['do'] == 'newblog')"
if needed, add your permission logic to permanently block the use of 'newblog' from forums.

(You indirectly mentioned template code (since you said "hide"), but I thought it prudent to remind you of actual code permissions. Although, I doubt you need it. :))


Hopefully that gets you started. :)

-

John Lester
06-22-2014, 02:55 AM
Thanks tb I'll get on this tomorrow (hopefully :D )

--------------- Added 1403474314 at 1403474314 ---------------

Thanks tb I'll get on this tomorrow (hopefully :D )

Works great thanks :)