The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Usergroup Permissions not working properly
I have usergroup perms setup to allow each person of the usergroup to:
For the life of me the vars I use won't work. So here it is. Plugin: global_start - Usergroup Permissions PHP Code:
PHP Code:
HTML Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="thead" width="25%">Quoted Who</td> <td class="thead" width="<if condition="$candeleteown OR $candeleteothers">65%<else />75%</if>">Quote</td> <if condition="$candeleteown OR $candeleteothers"> <td class="thead" width="10%">Options</td> </if> </tr> <div class="alt1 block_row"> <ul class="list_no_decoration"> $block_data[bfc_quote] </ul> </div> </table> So any help much appreciated. This is the last step then I can update the mod on here. Thanks Steve |
#2
|
||||
|
||||
Two things, if you want to use a template hook, you eval it this way - you don't use str_replace:
PHP Code:
PHP Code:
|
#3
|
|||
|
|||
Ok I did it the way you suggested and I get an error. Honestly I made that back before I knew how to use template hook's.
PHP Code:
Code:
Parse error: syntax error, unexpected T_STRING in /usercp.php(949) : eval()'d code(4) : eval()'d code on line 1 Now memberinfo_block_bfc_quote is pulled in another plugin which I will show below. member_build_blocks_start - BFC-Quote Profile Block PHP Code:
|
#4
|
||||
|
||||
You forgot to escape your quotes in the template_hook.
PHP Code:
|
#5
|
|||
|
|||
Quote:
Code:
<vb:if condition.......> <vb:else /> ...... </vb:if> |
#6
|
|||
|
|||
Maria, this is vB3 not vB4 LOL.
Lynne, yeah forgetting that always happens to me. Its fixed. Now to figure out the other issue. I can't use PHP with those as they only apply to a minor part of the template. Any suggestions for those? |
#7
|
||||
|
||||
What is the other issue? The member blocks? What is the exact issue with that?
|
#8
|
|||
|
|||
Yeah the member_block_bfc_quote template in my first post, the usergroup variables are not working. I can still see the delete option even though I have that turned off.
|
#9
|
||||
|
||||
You are defining the permissions all in global_start. Have you tried putting that code at the beginning of your memberinfo_block plugin and seeing if it works? Or tried spitting out the variables instead of using them in the condition?
|
#10
|
|||
|
|||
I'm idiot Lynne, I didn't have the if condition in my other template as well that displays the delete link. Fixed and working, thanks for all the help.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|