The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hello,,,
This is my first product ![]() I am so excited about it ![]() But I have a problem in it ![]() The Product is to hide some Profiles and I tryed to do that in the plugin but it didn't work so I did it in MEMBERINFO Template. I know what is wrong but I don't know what to do to fix it. Code:
<if condition="$vboptions[on_off]"> <if condition="$userinfo['userid'] == $vboptions[profileid]"> standard_error('Sorry you are not allowed to view this profile') </if> </if> PHP Code:
|
#2
|
||||
|
||||
![]()
You cannot run PHP functions in templates.
|
#3
|
|||
|
|||
![]()
As I said I know the problem but how can it show the error message because if I use the plugin it will not show the error.
I use this code: PHP Code:
|
#4
|
|||
|
|||
![]()
You can combine all of that into a single condition...
PHP Code:
Use print_no_permission() |
#5
|
|||
|
|||
![]()
I am just a newbie so combining would be a hard thing because I need to know where is the errors, but I can't make it better that what you did
![]() I don't want to use PHP Code:
![]() I am not sure about PHP Code:
PHP Code:
I don't think there should be template change because the plugin hook is member_start |
#6
|
|||
|
|||
![]()
The current userinfo is
PHP Code:
Code:
$bbuserinfo PHP Code:
|
#7
|
|||
|
|||
![]()
I used it like that
PHP Code:
What I want is to hide the profile from all members ex. If the page was Code:
www.example.com/member.php?u=$vbulletin->options['profileid'] |
#8
|
|||
|
|||
![]() PHP Code:
|
#9
|
|||
|
|||
![]()
I did try the code but it dosn't work
![]() PHP Code:
![]() |
#10
|
||||
|
||||
![]()
What hook are you putting it at?
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|