The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Only custom usergroups able to view html and php blocks
Hi, if someone can please create a plugin to allow me to specify who can view certain blocks, I will be very grateful - thanks in advance
|
#2
|
||||
|
||||
Please take a look at this product:
Hide BBCodes/Signatures From Guests If I were to add the ability to hide BBCodes from everyone except the usergroups you specify in the product settings, would that work for you? |
#3
|
|||
|
|||
Quote:
|
#4
|
||||
|
||||
I thought you were talking about hiding BBCodes like the CODE, HTML, and PHP blocks. If you could explain exactly what you have in mind, you would more likely be helped. Can you provide a screenshot of what it is you wish to hide?
|
Благодарность от: | ||
vze2yqtm |
#5
|
|||
|
|||
Hi, thanks so much for the help http://prntscr.com/7k1j21 What I wish to hide from guests is the Special Events poster on the top, which is a simple html sidebar block
|
#6
|
||||
|
||||
If you wish to hide just that block from guests, then I think your best bet is to change the content type to PHP, and then use a conditional to render the output. You could use the following format:
PHP Code:
|
Благодарность от: | ||
TheLastSuperman |
#7
|
|||
|
|||
Thanks so much for the suggestion, Sir, but this causes a parse error
|
#8
|
||||
|
||||
Can you post the PHP code you have? I suspect a few single quotes need to be escaped.
|
#9
|
|||
|
|||
Parse error: syntax error, unexpected '<' in /home/*****/public_html/includes/block/html.php(95) : eval()'d code on line 12
Parse error: syntax error, unexpected '<' in /home/*****/public_html/includes/block/html.php(95) : eval()'d code on line 12 |
#10
|
||||
|
||||
I mean can you post the actual PHP code you have in the block, not the resulting errors.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|