vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Programming Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=188)
-   -   New Image Tag to reduce Imagesize (https://vborg.vbsupport.ru/showthread.php?t=94250)

ggiersdorf 10-18-2005 11:58 AM

Quote:

Originally Posted by utw-Mephisto
The only way to change the [img] is in that file (class_bbcode.php) - I don't know another way ...

I understand that, but the link you sent me to was not a way to replace the IMG tag with this shrinking tag, it was a way to make the img tag leave the image the size it is but add scroll bars to it, I wanted a way to make the img tag by default (shrink the image) to size X

ricker 03-06-2006 04:29 PM

How do we specify that this new image tag (mine's called "sized") created can't be used in signatures? I've had someone find the loophole.

seg 03-10-2006 04:02 PM

There is "Allow [IMG] Code in Signatures" in vBulletin Options. Is there a loop hole to get around this?

Quote:

Originally Posted by ricker
How do we specify that this new image tag (mine's called "sized") created can't be used in signatures? I've had someone find the loophole.

I am sure others have done this. I wanted to restrict the image size, but allow readers to click out to the original image for copyright purposes. I adpated this code from: https://vborg.vbsupport.ru/showpost....6&postcount=22

In the file: /includes/class_bbcode.php

Find:
PHP Code:

return '<img src="' .  $link '" border="0" alt="" />'

Replace with:
PHP Code:

return '<table width="300 border="0"><tr><td><a href="' .  $link '" target="_blank"><img src="' .  $link '" border="0" alt="" style="max-width: 300px;" /></td></tr><tr><td><div align="center" style="font-size: 10px;"><a href="' .  $link '" target="_blank">View Original Image</a></div></table>'


beano33 04-11-2006 09:48 PM

Quote:

Originally Posted by HR3rdGen
How can I just replace the standard IMG tags with this?

Just turn them off in forums and signatures so they can't be used.

In the Add New BB Code field for Button Image put in the path for your insert image button.
eg. Button Image: images/editor/insertimage.gif

Then your editor toolbars will have the same button using the new bbcode.

G_Man 06-21-2006 12:21 AM

Worked a trick for me. Certainly not foolproof, but what is!?!? Fools are so ingenius afterall. ;)

Thanks

X-Vert 12-28-2006 04:17 PM

anyone here? lol

sorry for bringing back and old thread but I need some help.

I installed the new tags and they work great. Now... how can i get the tag image to show up in quick replies? It only shows up when ever I "Go Advanced".

Please reply asap, thanks !


All times are GMT. The time now is 01:27 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01278 seconds
  • Memory Usage 1,730KB
  • 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
  • (3)bbcode_quote_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
  • (6)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