vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   NO images in Post New thread (https://vborg.vbsupport.ru/showthread.php?t=51302)

ga.net 04-07-2003 10:51 AM

NO images in Post New thread
 
Is there a hack for this??

Sebastian 04-07-2003 11:14 AM

there is an option in the admin cp to not allow people to upload attachments, you must go under forum permissions and use custom settings for which ever forum you want to restrict it.

ga.net 04-07-2003 09:27 PM

What I mean is unable to use the IMG tag in Post New Thread. Are you referring to this too?

Sebastian 04-08-2003 05:25 AM

its not possible to do this i dont think, i thought you mean uploading images.

Boofo 04-08-2003 07:42 AM

This is quick and dirty and not tested, but I think it should work.

In functions.php

Find:

PHP Code:

  if ($enablecensor==and $censorwords!="") { 

ABOVE it add:

PHP Code:

  if($newthread) {
    
$text preg_replace("/IMG/i"""$text);
    
$text preg_replace("/img/i"""$text);
  } 

Also add $newthread to the global line right above this.

ga.net 04-08-2003 08:53 AM

Thanks! But what do you mean by quick and dirty???

If it would cause problems, is there a way to just disable the IMG Tag?? :)

Boofo 04-08-2003 08:57 AM

It won't cause problems. Either it will work or it won't. If it doesn't work, just take the code you add out. Quick and dirty means fast and untested, is all. ;) I use code similar to this to disable a vbcode tag I use so no one else can use it.

Sebastian 04-08-2003 11:28 PM

there is really no way to just disable it when making a new thread .. all you can do it pre replace it with nothing, as boofo pointed out.

ga.net 04-10-2003 11:49 AM

Ok thanks! Ill try it out. So this hack will be able to prevent posting of images in first post??

ga.net 04-13-2003 08:01 AM

bump


All times are GMT. The time now is 08:39 AM.

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.01541 seconds
  • Memory Usage 1,723KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete