![]() |
Hide Images from Guests? class_bbcode.php
Hi,
I would like to hide images from my guests - I tried many different ideas such as this one that comes pretty close: https://vborg.vbsupport.ru/showpost....44&postcount=5 But after all it doesn't work because my code is different. So basically we have to modify "inlcudes/class_bbcode.php" Then the interesting part looks like this: Code:
// If you wanted to be able to edit [img] when editing a post instead of seeing the image, add the get_class() check from above |
Try this:
PHP Code:
|
That stops converting img in general - so both guests and registered users can not view imgs anymore - in addition it shows the url to the image to guests - But I would like to replace the url and the img tag with a text such as "please register ..."
|
Hmm ok, see if this one works, just change please register ... to what you want
PHP Code:
|
That replaces all img tag including guests and registered users ...
|
Have you tried this? https://vborg.vbsupport.ru/showthread.php?t=256054
|
No but I tried this one for vb3 and it worked:
https://vborg.vbsupport.ru/showthread.php?t=219631 I saw this mod before but some user said it doesn't work - but in fact it works :) - Thanks anyway for your immediate help :) |
Ah ok, good! :D lol
|
All times are GMT. The time now is 01:37 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:
|