vBulletin Mods

The Official vBulletin Modifications Site

Hiding certain bb code from guests?
by Shadowser
02 Feb 2012 18:16

Sorry, i'm not sure whether to post this here or the programming section because I don't know if it's possible to do this with vBulletin or not lol..

Is it possible to hide for example the PHP bb code from guests using vBulletin 4?

If not, is there any mod to do this? I'd program a mod for it, but I'm too new to vBulletin 4 to be able to do something like this. I don't know the hooks vBulletin uses and etc. The code itself must not be that hard, probably like if($vbulletin['user']['usergroup'] == 1) hide PHP code.

I'm not sure it's possible to edit how currently installed bb codes work.

Thanks for telling!

kh99 02 Feb 2012 18:55

I haven't tried it myself, but maybe this mod: http://www.vbulletin.org/forum/showthread.php?t=266744

Shadowser 02 Feb 2012 19:06

Thanks, though I'll need the pro version. I guess searching a bit on how to code for vBulletin is a good thing though, if I'm able to program it, you can expect it to be released free soon. THe reason I'm asking this is because I'm the owner of a developer's forum and hiding PHP from guests (for like PHP tutorials and etc) is useful ^^.

kh99 02 Feb 2012 19:14

Yeah, I have no problem with anyone selling a premium version with extra features, because I don't really agree with the idea that everything should be for free. That said, if you're a programmer I don't think it would be too hard to extend the idea to other bbcodes.

BTW, if you do it yourself starting from scratch you should know that the message part of the posts are cached to prevent having to process the bbcodes every time someone views a post. So it would be almost as easy as saying "if (guest) don't show this", but you also have to make sure the post doesn't get cached.

Shadowser 02 Feb 2012 19:31

Oh right, didn't think about that. Oh well, that's another fun challenge I guess :). Snooping around in other people's plugins will tell me how to do it haha xD..

And yeah, I also don't have any problem with developers selling their stuff, it's more than normal too imo. The fact that I'm still a student however, can already tell you that I already need to pay a lot for the studies, so I try to spare every little cents haha xD.

Thanks for the help! Really appreciated.

All times are GMT. The time now is 23:58.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.