vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Can somone just tell me where I can find this code (https://vborg.vbsupport.ru/showthread.php?t=69484)

kau 09-15-2004 07:28 PM

Can somone just tell me where I can find this code
 
I just want to know where the code is that validates whether a specific forum can use the IMG tags or not. Anyone?

Thanks!

Colin F 09-15-2004 07:34 PM

IIRC correctly that's all done when outputting the file, so it should be in the includes/bbcodeparse.php file.

kau 09-15-2004 07:50 PM

Ok that is a good start. Any clue on what functions. I know very little about vB.

Thanks!

Colin F 09-15-2004 07:53 PM

the whole file bbcodeparse.php is used to parse the bbcode.

actually checking the forumpermissions is done in another file (fetchforumpermissions() or something), but the parsing is done in bbcodeparse.php. And IIRC you want to add [img] tag per usergroup, so you would probably have to add the code in the bbcodeparse.php file.

kau 09-15-2004 07:56 PM

So wait this function:
function handle_bbcode_img($bbcode, $dobbimagecode)

That is what makes the IMG tag work.
So I set it like
user_id != 1 or however then it would not parse when they did it and thus not work.

Right?!!!? If so that would be awesome.

kau 09-15-2004 08:04 PM

Also what is the correct PHP to make an IF statement.

I want to say like IF this user group is anything but this one then do this.

Colin F 09-16-2004 04:32 AM

you'll have to add a usergroup permission and check it using that I think.

I'm not that good with bitfield permissions, but I'll try to get back to you if I have time.


All times are GMT. The time now is 03:42 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.00914 seconds
  • Memory Usage 1,714KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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