vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   vb IMG code = only from our server? (https://vborg.vbsupport.ru/showthread.php?t=44480)

jamoss 10-10-2002 06:17 PM

vb IMG code = only from our server?
 
Is there a hack where I can restrict the vb IMG code to only accept images from our server?

I'd like to make a repository of graphics (not smilies) that people can put in their sigs, but the last time I enabled the vb IMG code, they were using HUGE-O graphics from other sites.

THANKS!!!

:cheeky: Jennifer.

jamoss 10-10-2002 06:37 PM

The lines I have to change are in admin/functions.php after:

// do [ img ]xxx[ /img ]

-- I just don't know the syntax.

help??!?!?

g-force2k2 10-10-2002 07:16 PM

you'll probably have to alter the bbcodeparse function and add some php to not parse the [img] tags if they don't include the url to your site... you would have to use expressions but im not good with them sorry >_O... but it is a good idea ;) maybe i will see what i can do if i get the time...

g-force2k2

Erwin 10-10-2002 08:12 PM

Use the Signature Systems Hack that does just that - allows people to upload images for their sigs. You can then just disable the img tags in sigs.

jamoss 10-10-2002 08:38 PM

I don't want them to upload images. We are going to have an image page where we will have images to offer. That way, we can control the content and size.

Jennifer.

jamoss 10-12-2002 07:01 AM

I just created a new vb code called [gr].. which references only a local file directory on the server. No hacks needed.

If you are interested in this code.. email me and I'll tell you the details.

jennifer@babynames.com

Chris M 10-13-2002 06:51 PM

Email Sent:D

Satan

Marshalus 10-14-2002 06:20 AM

No offence, but why not just post it here?


All times are GMT. The time now is 05:02 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.02248 seconds
  • Memory Usage 1,720KB
  • 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
  • (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