vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Select usergroups get [IMG] use (https://vborg.vbsupport.ru/showthread.php?t=69502)

kau 09-15-2004 10:00 PM

Select usergroups get [IMG] use
 
In the handle_bbcode_img function of bbcode_parse add this:

IF ($post['usergroupid'] != WHATEVER)
....
....
....
}

Johnny 09-16-2004 11:41 AM

what?

can you please provide some better directions

What does WHATEVER mean?
where is handle_bbcode_img located?

Colin F 09-16-2004 12:29 PM

:)

First off, great that you got it, kau!

Johnny: find the function handle_bbcode_img() in the includes/bbcodeparse.php file and surround the while code (between function handle_bbcode_img(XXX) { and } with the code he posted above:

if ($bbuserinfo[usergroupid != 5)
{


}

Like this, any users in the usergroup 5 won't be able to use the image code at all.

Johnny 09-16-2004 05:22 PM

thankyou colin,

that is what suppose to be on the first post a complete instruction on what to open and where to add the code.

but nice mod kau, this will come handy.

kau 09-16-2004 09:12 PM

Thanks Colin your hint led me to the answer!

kall 09-16-2004 09:45 PM

Not to be a rule nazi.. but...

Quote:

Originally Posted by Read this first before you post a hack
Only licensed vBulletin users may release and/or download hacks. Please make sure you either attach the hack in a file, or within [code] / [php] vB Code tags. vBulletin Lite hacks cannot be distributed.


snyx 09-17-2004 03:08 AM

Quote:

Originally Posted by kall
Not to be a rule nazi.. but...

shutup, it's not even 30 characters long.

thanks, I shall use this to my advantage kau.

Kruppa 03-01-2005 03:01 PM

I created a tag called [simg]xxx[/simg] (in the hopes I could apply this hack to it) and I was wondering if there was a way to do the same with that code has with the default https://vborg.vbsupport.ru/ tag. Anyone have any ideas?


All times are GMT. The time now is 09:57 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
  • Page Generation 0.01162 seconds
  • Memory Usage 1,715KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete