vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Add-On Releases - Image Resizer (https://vborg.vbsupport.ru/showthread.php?t=176531)

D.Baker 06-30-2008 02:25 PM

Hey Alliya, to remove the yellow warning box from images embedded using IMG tags, add the following CSS to your style.

Code:

.ncode_imageresizer_warning {
    display: none;
}

After doing that you will notice that there is no way to click on the image to enlarge it, so you'll need to do the following. I don't like doing it this way because it involves editing a core file, but it's the only way I could figure it out. Maybe Jase knows a better way.

Using FTP, browse to /includes/ and edit the following line of PHP code in the file "class_bbcode.php".

PHP Code:

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

change to:
PHP Code:

return '<a target="_blank" href="' $link '"><img src="' $link '" border="0" alt="" /></a>'


This should get it working, but you will then notice that the images sit flush on top of each other (they have no margin), which looks bad when they are posted in that way (see here for an example of what I am talking about, note that I have not disabled the warning box).

YuOr 07-01-2008 01:54 AM

Installed!
i was testing it out and the information on the bar says "The original image is sized %1%2." What is that?

Yarike 07-01-2008 05:15 PM

Using this but its not resizing images even though the image is double the size the limit is set at?

Alliya 07-02-2008 02:08 PM

Hi Baker,

thanks thats fine, we don't use many pictures so only the first code is fine just in case someone doesn't know how to resize them :rolleyes:

Alliya

TCattitude 07-03-2008 06:35 PM

Jase2, just PM you the packed mod ;)

Ingress 07-03-2008 07:24 PM

Just messed with the code again, I'm really sorry ;-)

I regularly copy my complete live-board into a test-environment, which resides under testboard.domain.com.

There is a problem with the code in product-imageresizer.xml (line 122) which is

Code:

<script type="text/javascript" src="$vboptions[bburl]/clientscript/ncode_imageresizer.js?v=1.0.1"></script>

Since I don't update my bburl when I copy (and never had to with other mods) your mod didn't work any more with that absolute link. I just made the link relative which eliminates the obligation to alter bburl in ACP-Options when you do such a copy (or when people just move their board and are lazy ...).

Making it relative won't hurt and is the best way in my opinion; if you also think so you will change line 122 to

Code:

<script type="text/javascript" src="clientscript/ncode_imageresizer.js?v=1.0.1"></script>

in your next release ;-).

Kind regards and thanks for maintaing this fine mod,

Ingress

<edit>

Just noticed you also need to change the URL to the tiny symbol in js-file to achieve full relativity ;-)

Change line 119 of ncode_imageresizer.js

Code:

mimg.src = NcodeImageResizer.BBURL+'/images/statusicon/wol_error.gif';

to

Code:

mimg.src = 'images/statusicon/wol_error.gif';

and the job is fully done.

</edit>

cartooner 07-04-2008 01:36 AM

I installed and so far so good. One question, instead of the information bar how about adding an option to have a "mouse over" info bar. In members Sigs my members don't go for anything like this cluttering up their Siggie. So why not have it that when you roll your mouse over the image the pointer changes and an info box pops up. One of the older Image Resizer hacks have that....https://vborg.vbsupport.ru/showthrea...=image+resizer. But It is an older hack and It was one of the hacks I think gave me problems with "security-token" error messages several of my members were getting.

Just wondering if a mouse over is doable. Thank you.

xoutlawz00x 07-04-2008 10:10 PM

Yea i would love a mouse over instead of the yellow bar tooo. thankssss

D.Baker 07-05-2008 02:08 AM

If you want a mouse over instead of a yellow bar read post 271, I provided a hack to do it.

cartooner 07-05-2008 02:29 PM

Quote:

Originally Posted by D.Baker (Post 1567077)
If you want a mouse over instead of a yellow bar read post 271, I provided a hack to do it.



Thank you.


All times are GMT. The time now is 11:01 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.01503 seconds
  • Memory Usage 1,746KB
  • 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
  • (5)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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