vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   BB Code Enhancements - Restrict external images in [img] BBCode (https://vborg.vbsupport.ru/showthread.php?t=180865)

Sph1nX 05-28-2008 10:00 PM

Restrict external images in [img] BBCode
 
For what?
If u have your own imagehost and you hate the speed of other hosts like imageshack,
this will be great for you ;)

For which version?
Tested only on vBulletin 3.6.10 and works fine for me
it`s simple php so it should work on all versions

Where does this work?
It`s global, so it works for posts and signatures

How does it work?
It checks the url in every picture included by [img] bbcode and replaces the image with
a text if the host is not you or the one you want

File edits: 1
Supported: no
Time to install: <1 minute
Level: easy
You have to replace YOUDOMAIN.com with your own domain ;)

If you like it, please click as installed

Update:
-Images will be replaced with a message AND linked to the wrong uploaded image!
-Images will be scaled to 400x300 (if liked)
-Resized images will be displayed using lytebox (if wanted)

redlabour 05-29-2008 01:19 PM

Not a Product and File edits. :down:

MrZeropage 05-29-2008 04:34 PM

so sad there is no hook in the in class_bbcode so this really could be done using a plugin... but I know there is NO other way to do this, so *cheers*

Hornstar 05-30-2008 05:35 AM

hopefully if enough people request that hook, vb will include that hook within 8 weeks ^^

etom 06-12-2008 05:26 PM

Why not make use of any global hooks or a postbit-hook meanwhile ?

pnosko31 07-25-2008 05:23 AM

is there a way to make it display the text in a popup before actually making the post so that I dont have a bunch of threads with just the message in it?

Sph1nX 07-30-2008 11:34 AM

Quote:

Originally Posted by pnosko31 (Post 1583588)
is there a way to make it display the text in a popup before actually making the post so that I dont have a bunch of threads with just the message in it?

This is possible, you just have to add a popupcode or the message in the newreply/newthread template.
then making a post/thread will display a popup...but popups just suck so a textmessage near the postingbutton would be better ;)

Rocket_Man 09-15-2008 07:24 PM

This only allows one URL/imagehost? If I have a list of allowed imagehosts, say 10 URLs, how do I allow those?


All times are GMT. The time now is 01:10 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.00956 seconds
  • Memory Usage 1,725KB
  • 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)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