Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
  #1  
Old 02-02-2012, 06:16 PM
Shadowser Shadowser is offline
 
Join Date: Jan 2012
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Hiding certain bb code from guests?

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!
Reply With Quote
  #2  
Old 02-02-2012, 06:55 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I haven't tried it myself, but maybe this mod: https://vborg.vbsupport.ru/showthread.php?t=266744
Reply With Quote
  #3  
Old 02-02-2012, 07:06 PM
Shadowser Shadowser is offline
 
Join Date: Jan 2012
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 ^^.
Reply With Quote
  #4  
Old 02-02-2012, 07:14 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Благодарность от:
Shadowser
  #5  
Old 02-02-2012, 07:31 PM
Shadowser Shadowser is offline
 
Join Date: Jan 2012
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:28 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09846 seconds
  • Memory Usage 2,193KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (1)post_thanks_box_bit
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete