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 05-30-2008 05:38 AM

Hey Jase, any word on getting it to enlarge the pics using Lightbox? Or better yet, using my lytebox mod? See post 186 for reference.

totalon 05-31-2008 07:28 AM

Great addon! Works great and just what I needed. Thanks for the product!

Robert Waanders 05-31-2008 08:58 AM

Great mod, thanks, installed it immediately on my forum!

Robert

Jase2 05-31-2008 09:07 AM

Quote:

Originally Posted by D.Baker (Post 1535930)
Hey Jase, any word on getting it to enlarge the pics using Lightbox? Or better yet, using my lytebox mod? See post 186 for reference.

Sorry I haven't replied sooner, but I haven't really looked into that possibility. I've had my hands full over the past few months, so I'll try to release an update soon, but the lytebox may have to wait, as I will need to look into it fully.

D.Baker 05-31-2008 03:11 PM

Hey Jase,
No problems, keep up the good work. I think getting it working using Lightbox should be the priority. My lytebox idea can go on the to do list, don't stress.

Thanks again,
DB

abrecher 06-01-2008 08:27 AM

If I check off YES in "Clear User Settings" in Admincp and then click save, I got a blank blue page.

irishblue 06-02-2008 09:09 AM

this new version for 3.7 doesn't seem to resize images on the main vBa CMPS page. The older 3.6 ver used to be able to do this. any idea how to fix this?

Hendrizius 06-02-2008 12:19 PM

Would it be possible to remove the .css code and put it into a stylesheet instead? (Bad for SEO)

almansoori 06-02-2008 12:32 PM

Good work

Jase2 06-02-2008 02:33 PM

@ abrecher: The "Clear user settings" in ACP doesn't work. I'll fix that for the next update.

@ irishblue: I don't use vbadvanced so, I can't really get it working with that. However, this is made for vBulletin. If I do set-up a vbadvanced page, I'll be sure to get a working compatibility.

@ Hendrizius: Hmmm, never really thought about that. CSS isn't really my forte in all honesty. I only know "bits". However, it shouldn't have that much of an effect on SEO, there are a lot more factors.

SessizDunya 06-04-2008 09:13 AM

You just saved my life , thanks a lot, great hack...
Installed & Working well on VB 3.7.0

Joe1967 06-04-2008 04:57 PM

Does this work when IMG tags are used?

R1lover 06-04-2008 05:02 PM

Quote:

Originally Posted by Joe1967 (Post 1540771)
Does this work when IMG tags are used?

Thats the only thing it works on... :)

rknight111 06-05-2008 12:47 AM

Since I upgraded to 3.7.1 All my Images are coming up huge and right off the screen, I cannot get this running on my forum or on my test forum with no mods. Am I missing some settings?
I have it set to 600 wide, I even changed it to 300 and no changes.

RON

Jase2 06-05-2008 08:03 AM

rknight111, I suggest you uninstall then re-install. If the same problem occurs, you can send me an admin login to your board and ftp login details via Private Message and I shall take a look when time permits.

TCattitude 06-06-2008 04:04 PM

Quote:

Originally Posted by Jase2 (Post 1493924)
Unfortunately, I don't have the vBblog addon to test it with that. Someone else is free too do it, however. :)

I can't understand why people would want it for albums, since you can already set the preferred dimensions ;)

If there are more, please let me know. :)

An easy way to make this work for blogs is...

Create a new plugin in this hook:
blog_complete

Put this for plugin content:
PHP Code:

$content ncode_imageresizer_replace($content); 

Done ;)

I think it can be applied to the same hook bbcode_parse_complete that this product uses, but i'm too lazy to do that now. Is a thing about conditional for this_script == 'blog', and add a similar reference like $text but for $content.

Jase2, feel free to add this to the product.

Greetings!

TCattitude 06-06-2008 04:43 PM

Another quick fix, now for albums.

Create a new plugin in this hook:
parse_templates

Put this for plugin content:
PHP Code:

if (THIS_SCRIPT == 'album') {
$vbulletin->templatecache['album_pictureview'] = str_replace('\" alt=\"''\" onload=\"NcodeImageResizer.createOn(this);\" alt=\"'$vbulletin->templatecache['album_pictureview']);
}

if (
THIS_SCRIPT == 'group') {
$vbulletin->templatecache['socialgroups_picture'] = str_replace('\" alt=\"''\" onload=\"NcodeImageResizer.createOn(this);\" alt=\"'$vbulletin->templatecache['socialgroups_picture']);


In that way, the img tag in album pictures is successful modified and the ncode part is added.
I think, again, that this could be added in some part of the original plugins to alter based in a this_script conditional. But, again, i'm too lazy to keep testing.

And, again, feel free to use this ideas-code, Jase2.

Benefits: you now can setup a high limit for width and height to album pictures, and not deform your website layout when show those big images. And allow members to click to see the full image, and keep them... wallpapers, for example.

Greetings ;)

Jase2 06-06-2008 06:20 PM

Yes, that's what I had in mind for the blog. tmiland got it working for the blog, however, he simply double the code -- and I don't like doing it like that hehe.

Any more suggestions from people? Oh, that reminds me, I need to clean up the UserCP options -- my life is just so busy at the moment, with leaving school ect. If I end up going in the Royal Navy, then I may not be able to support this anymore. However, I will pop in now and again when time permits to say "HI". :)

D.Baker 06-07-2008 02:33 AM

Hey Jase,
Congrats on finishing school, that's a big deal. What are you looking to do in the Navy?

My only request is the Lightbox one I have mentioned (resized images that enlarge using Lightbox). It never occurred to me that people might use IMG tag albums, but I can see TCatitiudes suggestions being useful.

Thanks for the hard work!

montdyatna.com 06-07-2008 07:07 AM

Hi

I want to thank the product coder cause it's the best image resizer i got
all previous resizer didn't work so good ans sometimes coudln't resize some pics plus it make the threads exploring more slow

this product make exploring faster and also resize 100% of pics successfuly

Thanks ALLAH (god) that i got it and thanks for the coder

the product marek as installed also i give the it excellent :up:

Subah 06-07-2008 10:16 AM

Quote:

Originally Posted by Jase2 (Post 1542511)
Yes, that's what I had in mind for the blog. tmiland got it working for the blog, however, he simply double the code -- and I don't like doing it like that hehe.

Any more suggestions from people? Oh, that reminds me, I need to clean up the UserCP options -- my life is just so busy at the moment, with leaving school ect. If I end up going in the Royal Navy, then I may not be able to support this anymore. However, I will pop in now and again when time permits to say "HI". :)

Hope see you soon to support this mod :)
but what about edit this mod to support the blog and the albums without doing TCattitude steps ?

Jase2 06-07-2008 11:58 AM

Ok, I'll release an updated version shortly to provide compatibility with the albums and blogs, as well as fixing the clear user options in AdminCP.

D.Baker, I'm still undecided yet. I'm either going to do mechanics on helicopters, train to become a Royal Marines Commando, a pilot. mines clearance diver, or Engineering Technician. Still deciding.........
I'll see what I can do with the lytebox -- but images are resized with lytebox, right?

sross 06-08-2008 02:02 AM

:( not working on 3.7.1 for me. I am no stranger to installing mods, just can't get it to do anything. I've followed instructions 100%, the product installed and is enabled and the file has been uploaded. Tried reuploading and re-installing. img tag images still huge..

D.Baker 06-08-2008 02:11 AM

Hey Jase,
Sounds like the Navy would be fun. It's a big regret of mine.

Anyway, as for Lightbox there are a bunch of different versions of it. Lytebox is a different version, but you should just concentrate on getting Lightbox working. This is the one that comes with vB 3.7. It doesn't actually resize the images, all it does is provide a nice way of opening images in a new window. Basically, any image that has a rel="Lightbox" tag in it's HTML link tag will open in a Lightbox window.

Here is an example of the markup:

HTML Code:

<a href="http://www.example.com/example.jpg" rel="Lytebox"><img src="http://www.example.com/example.thumbnail.jpg" height="100" width="100"></a>
NOTE: It can't have target="_blank" in it.

So, what I am asking is that you add an option to "open using Lightbox" in Image Resizer's options page Then your plugin simply adds a rel="Lightbox" into the HTML link tag. This way, it will open using Lightbox and fit the style of the rest of my site (see here for example).

I actually figured out how to do this on my own and made a little mod to do it. See steps 12-14. I made it work with Lytebox (not Lightbox) but it's crude and requires some core file edits. I'd rather have Lightbox part of your mod so it's legit and not require so many hacks on my behalf.

Of course, it would be ideal if it was somewhat easy to edit a variable in your code so that I could replace rel="Lightbox" with rel="lytebox", but this is just me being demanding (or would this be possible using Replacement Variable Manager? I'm not sure if that works for plugins/products).

D.Baker 06-08-2008 02:13 AM

One more thing I picked up on.

Your plugin's "resized" images don't have the 2px margin like all other embedded thumbnails do (at least that's how it is on my board).

The best way to fix this would be to define a unique CSS class (eg. class="imageresizer") in the img tag, rather than just the ID. That way we could style the images anyway we wanted (like fix the 2px margin problem I mentioned above). I'd say this is a critical thing to implement.

Thanks for putting up with my nagging! :)

Jase2 06-08-2008 10:51 PM

sross, I'm having no problems whatsoever, neither is anyone else. Maybe you're using an image that isn't bigger than the set dimensions?

D.Baker, do you mean having an option in ACP where you can set the colour code ect. for the top bit where it gives image dimensions ect?... I like that idea -- will look into it.

Onone 06-09-2008 12:43 PM

Thanks :)

NoPretender 06-09-2008 03:06 PM

Great mod, works well. One thing that might be a good feature, is to allow certain dimension limits for signatures per usergroup. I want to allow all my users to use the IMG tag but often they're way above the dimensions I have set for SIGPIC, so have the IMG tag's diabled. I allow staff to have larger signatures then a registered member and would be great to set a limit per usergroup.

Regardless, nice mod :)

RedGTiVR6 06-09-2008 03:57 PM

I'm getting a javascript error for some reason. Anyone else get this? The item in the ' ' changes based on the setting in the AdminCP.

NcodeImageResizer is not defined:

Code:

NcodeImageResizer.MODE = 'enlarge';

D.Baker 06-10-2008 04:01 PM

Hey Jase,
I'm pretty sure you can already style the resize text box thing to a different color using the class ncode_imageresizer_warning. What I'm talking about is giving the actual image a class, so that you can style it with boarders, margins and paddings etc. At the moment you give the image an ID, but no class.

efe 06-12-2008 10:57 PM

fix it, thanx

Mecho 06-15-2008 04:52 PM

i'm using this mod for long long time and never had problem with it . i just now need to know when u get more threads (so more images) , this hack would be a reason to use CPU or RAM in ur server ?? and how much it would be effect if we have this hack or not ? i really need this to know so any reply would be great :)

thanks

ahmadatom 06-16-2008 05:57 PM

Thanks!
Installed:rolleyes:

Very Good :eek:

Jase2 06-17-2008 02:55 PM

Quote:

Originally Posted by Mecho (Post 1550132)
i'm using this mod for long long time and never had problem with it . i just now need to know when u get more threads (so more images) , this hack would be a reason to use CPU or RAM in ur server ?? and how much it would be effect if we have this hack or not ? i really need this to know so any reply would be great :)

thanks

No, not really. All images are resized clientside. No need to worry.

Sakai Ray 06-17-2008 04:42 PM

*clicks installed*

ArnyVee 06-17-2008 11:40 PM

Thanks! 3.7.1 P1 working here! :D

bot57 06-18-2008 02:01 AM

Double Post

bot57 06-18-2008 02:01 AM

Fixed it myself, just dont know how....

Mecho 06-18-2008 08:48 PM

Quote:

Originally Posted by Jase2 (Post 1551706)
No, not really. All images are resized clientside. No need to worry.

Thanks man for response :)

firestormpt 06-20-2008 09:51 AM

i fyou want i can translate to portuguese


All times are GMT. The time now is 07:46 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.01526 seconds
  • Memory Usage 1,832KB
  • 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_code_printable
  • (1)bbcode_html_printable
  • (2)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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