The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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?
|
#2
|
|||
|
|||
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. - |
Благодарность от: | ||
John Lester |
#3
|
|||
|
|||
Thanks tb I'll get on this tomorrow (hopefully )
--------------- Added [DATE]1403474314[/DATE] at [TIME]1403474314[/TIME] --------------- Works great thanks |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|