![]() |
If condition for blog this post
Is there an if condition that I could use to hide the "blog this post" from everyone except the post author?
|
STEP1: Modify Plugin
------------------------------------------------- Product: vBulletin Blog Plugin: Add links to blog Find: Code:
$this->registry->userinfo['userid'] Code:
$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. :) - |
Thanks tb I'll get on this tomorrow (hopefully :D )
--------------- Added [DATE]1403474314[/DATE] at [TIME]1403474314[/TIME] --------------- Quote:
|
All times are GMT. The time now is 03:58 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|