The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
so you want
Option ON Guest View and Admin View Registered can NOT VIEW Option OFF Guest View Admin and Registered can NOT VIEW |
#12
|
||||
|
||||
Quote:
im playing with it too. i attached the file also if you didnt see that post --------------- Added [DATE]1456518810[/DATE] at [TIME]1456518810[/TIME] --------------- it really seems like Code:
<if condition="$show['registerbutton'] OR ($vboptions[drc_rb_edt] == 1 AND ($vboptions[drc_rb_edt] == 1 AND $show['admin']))"> |
#13
|
|||
|
|||
Are you setting $show['admin'] anywhere in your add-on?
--------------- Added [DATE]1456520096[/DATE] at [TIME]1456520096[/TIME] --------------- Wait a second, this should work... Code:
<if condition="$show['registerbutton'] AND (($vboptions['drc_rb_edt'] == 0 AND !$userinfo['userid']) OR (($vboptions['drc_rb_edt'] == 1 AND !$userinfo['userid']) OR ($vboptions['drc_rb_edt'] == 1 AND $show['admin'])))"> The rest takes care of the other options. You may need to change userinfo to bbuserinfo. It's been a very long time since I did anything with vB3. |
#14
|
||||
|
||||
wholly wow thats a long condition lol, but i have tried that with no avail.
replace userinfo with bbuserinfo, and userid with 1 and still nothing =/ i didnt think this would be this difficult to achieve =/ and no i dont set show admin anywhere in the addon, it is attached up a little further side note: even with all this code it is viewable from a guest, so somethings partially right lol |
#15
|
|||
|
|||
OK, so a guest can view it with or without the option set?
Then the problem is the admin, correct? If that's the case then this should show it to the admin... Code:
<if condition="(($show['registerbutton'] AND $vboptions['drc_rb_edt'] == 0) OR (($show['registerbutton'] AND $vboptions['drc_rb_edt'] == 1) OR ($vboptions['drc_rb_edt'] == 1 AND $show['admin'])))"> |
Благодарность от: | ||
Dr.CustUmz |
#16
|
||||
|
||||
that didnt work either, i broke it down like:
Code:
<if condition="$show['registerbutton']"> REG ON </if> <if condition="$vboptions[drc_rb_edt] == 1 AND $show['admin']"> IS ADMIN OPTION ON </if> <if condition="$vboptions[drc_rb_edt] == 1"> OPTION ON </if> <if condition="$show['admin']"> IS ADMIN </if> Code:
is_member_of($bbuserinfo, 6) --------------- Added [DATE]1456522127[/DATE] at [TIME]1456522127[/TIME] --------------- Code:
<if condition="$show['registerbutton'] OR ($vboptions[drc_rb] == 1 AND ($vboptions[drc_rb_edt] == 1 AND is_member_of($bbuserinfo, 6)))"> wholly crap that was too much lol, but why didnt the show admin work... there should have been no issue there.... |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|