![]() |
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"> So any help much appreciated. This is the last step then I can update the mod on here. Thanks Steve |
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:
|
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:
|
You forgot to escape your quotes in the template_hook.
PHP Code:
|
Quote:
Code:
<vb:if condition.......> |
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? |
What is the other issue? The member blocks? What is the exact issue with that?
|
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.
|
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?
|
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.
|
Glad you got it working.
|
All times are GMT. The time now is 12:34 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:
|