Welcome to the E-Blah Community!
We would like to welcome you to our community and invite you to register an account or login.
Being a registered member is important, as it gives you several advantages over the normal Guest status. After registering you will be able to download files and images, post messages, and access member-only portions of the forum - just to name a few. Registration is quick and simple, and only takes about a minute of your time.

E-Blah Community    Modifications    Mod Requests and Support  ›  ImgTagResize Moderators: 10 Series Support Team
Users Browsing Forum
No Members and 1 Guests

ImgTagResize  This thread currently has 478 views. Print
1 Pages 1 Recommend Thread
whiskymac
June 22, 2007, 1:08pm Report to Moderator Report to Moderator

www.breathemini.co.uk
Posts: 302
Gender: Male
Posts Per Day: 0.28
Reputation: 100.00%
Reputation Score: +1 / -0
Time Online: 2 days 10 hours 47 minutes
Location: Preston
Great mod Martin, just what I've been looking for - however, is there anyway to get it to ignore images in signatures as its adjusting them too and they are ending up a bit small - they dont stretch the screen so dont need changing.

cheers

EDIT: Just found a bug as well (I think!) in Opera and IE once the image has loaded and then reduced the webpage then reduces in size to fit on the screen (if it was stretched) in Firefox, even when the image resizes the page stays stretched out.  (firefox 2.0.0.4)




A growing community for the classic Mini - Come Join in
http://www.BreatheMini.co.uk

Revision History (2 edits)
whiskymac  -  June 22, 2007, 1:25pm
whiskymac  -  June 22, 2007, 1:24pm
Logged Offline
Site Site Private Message Private message
Martin
June 22, 2007, 2:59pm Report to Moderator Report to Moderator

I love E-Blah
10 Series Support Team
Posts: 4,558
Gender: Male
Posts Per Day: 3.13
Reputation: 98.60%
Reputation Score: +211 / -3
Time Online: 35 days 19 hours 25 minutes
Location: UK
Age: 50
I'll look into it and delete the mod in the mean time.



Martin's Reputation: Increase
Logged Offline
Site Site Private Message Private message Reply: 1 - 14
whiskymac
June 22, 2007, 4:52pm Report to Moderator Report to Moderator

www.breathemini.co.uk
Posts: 302
Gender: Male
Posts Per Day: 0.28
Reputation: 100.00%
Reputation Score: +1 / -0
Time Online: 2 days 10 hours 47 minutes
Location: Preston
i've got round the sig issue by using html to size the image




A growing community for the classic Mini - Come Join in
http://www.BreatheMini.co.uk
Logged Offline
Site Site Private Message Private message Reply: 2 - 14
whiskymac
June 23, 2007, 9:46am Report to Moderator Report to Moderator

www.breathemini.co.uk
Posts: 302
Gender: Male
Posts Per Day: 0.28
Reputation: 100.00%
Reputation Score: +1 / -0
Time Online: 2 days 10 hours 47 minutes
Location: Preston
Think i've found another bug too!

in this thread

http://www.breathemini.co.uk/forum/m-1181736235

The user "RetroDash" his signature has been increased in size and not reduced, clicking opens the original size!

sorry!




A growing community for the classic Mini - Come Join in
http://www.BreatheMini.co.uk
Logged Offline
Site Site Private Message Private message Reply: 3 - 14
Martin
June 29, 2007, 1:38pm Report to Moderator Report to Moderator

I love E-Blah
10 Series Support Team
Posts: 4,558
Gender: Male
Posts Per Day: 3.13
Reputation: 98.60%
Reputation Score: +211 / -3
Time Online: 35 days 19 hours 25 minutes
Location: UK
Age: 50
Try this one.



This post contains attachments; to download them you must login.




Martin's Reputation: Increase
Logged Offline
Site Site Private Message Private message Reply: 4 - 14
iCONICA
February 13, 2008, 6:27pm Report to Moderator Report to Moderator

E-Blah Member
Posts: 762
Gender: Male
Posts Per Day: 2.38
Reputation: 97.14%
Reputation Score: +34 / -1
Time Online: 11 days 3 hours 12 minutes
Location: Manchester UK
hi, im having trouble with this too. I get the following error, it says code not found in source.

Source Code:


         $tempinput =~ s~\[img\](http|ftp|mms|https)://(.[^\s\n<>]+?)\[/img\]~<img src="$1://$2" alt="" />~gsi;
         $tempinput =~ s~\[img width=([1-9][^\s]*?) height=([1-9][^\s]*?)\](http|ftp|mms|https)://(.[^\s\n<>]+?)\[/img\]~<img src="$3://$4" width="$1" height="$2" alt="" />~gsi;
         $tempinput =~ s~\[img width=([1-9][^\s]*?) height=([1-9][^\s]*?) align=(right|left)\](http|ftp|mms|https)://(.[^\s\n<>]+?)\[/img\]~<img src="$4://$5" width="$1" height="$2" class="$3img" alt="" />~gsi;
         $tempinput =~ s~\[img align=(right|left)\](http|ftp|mms|https)://(.[^\s\n<>]+?)\[/img\]~<img src="$2://$3" class="$1img" alt="" />~gsi;

Replace:

         $tempinput =~ s~\[img\](http|ftp|mms|https)://(.[^\s\n<>]+?)\[/img\]~<img class="imgcode" src="$1://$2" alt="" />~gsi;
         $tempinput =~ s~\[img width=([1-9][^\s]*?) height=([1-9][^\s]*?)\](http|ftp|mms|https)://(.[^\s\n<>]+?)\[/img\]~<img class"imgcode" src="$3://$4" width="$1" height="$2" alt="" />~gsi;
         $tempinput =~ s~\[img width=([1-9][^\s]*?) height=([1-9][^\s]*?) align=(right|left)\](http|ftp|mms|https)://(.[^\s\n<>]+?)\[/img\]~<img class"imgcode" src="$4://$5" width="$1" height="$2" class="$3img" alt="" />~gsi;
         $tempinput =~ s~\[img align=(right|left)\](http|ftp|mms|https)://(.[^\s\n<>]+?)\[/img\]~<img class="imgcode" src="$2://$3" alt="" />~gsi;



I uploaded the js file in binary and the v2m file in ascii but its saying code not found and "will not install properly"?

I've used the latest nightly no other problems.

Thanks.



The Best Free Online Technical Support Community! (Click Here)

i-CONICA's Reputation: Increase

Visit The Best Free Technical Support Community In The World!
Logged Offline
Site Site Private Message Private message Windows Live Messenger WLM Reply: 5 - 14
Martin
February 14, 2008, 12:44am Report to Moderator Report to Moderator

I love E-Blah
10 Series Support Team
Posts: 4,558
Gender: Male
Posts Per Day: 3.13
Reputation: 98.60%
Reputation Score: +211 / -3
Time Online: 35 days 19 hours 25 minutes
Location: UK
Age: 50
You don't need this mod anymore, Justin added it as part of the release code.

Edit common.js and change the 750 in the following line to your desired resize.

Code
	var _resizeWidth = 750;



Martin's Reputation: Increase
Logged Offline
Site Site Private Message Private message Reply: 6 - 14
iCONICA
February 14, 2008, 1:43am Report to Moderator Report to Moderator

E-Blah Member
Posts: 762
Gender: Male
Posts Per Day: 2.38
Reputation: 97.14%
Reputation Score: +34 / -1
Time Online: 11 days 3 hours 12 minutes
Location: Manchester UK
Thanks for your reply, I've search the Common.js file with eyes and with a search and the above line of code isn't there. I must have an old common.js. ive attached it, maybe you could have a look?

what is this going to do? resize all images on a certain percentage or all to a particular pixel size? I'm not sure I understand?

Anyway Thanks for helping me.

Ps. will this new thing Justin has done be included in a new nightly?



This post contains attachments; to download them you must login.




The Best Free Online Technical Support Community! (Click Here)

i-CONICA's Reputation: Increase

Visit The Best Free Technical Support Community In The World!
Logged Offline
Site Site Private Message Private message Windows Live Messenger WLM Reply: 7 - 14
Martin
February 14, 2008, 4:07am Report to Moderator Report to Moderator

I love E-Blah
10 Series Support Team
Posts: 4,558
Gender: Male
Posts Per Day: 3.13
Reputation: 98.60%
Reputation Score: +211 / -3
Time Online: 35 days 19 hours 25 minutes
Location: UK
Age: 50
You seem to have and older version of common.js, maybe you didn't upload it when you upgraded!

Download the latest E-Blah from here: http://www.eblah.com/?v=downloads&f=10/eblah10-3-3.zip

Just upload the .js files to your forum.



Martin's Reputation: Increase
Logged Offline
Site Site Private Message Private message Reply: 8 - 14
iCONICA
February 14, 2008, 4:15am Report to Moderator Report to Moderator

E-Blah Member
Posts: 762
Gender: Male
Posts Per Day: 2.38
Reputation: 97.14%
Reputation Score: +34 / -1
Time Online: 11 days 3 hours 12 minutes
Location: Manchester UK
Ok, I will do, is upgrading the forum as simple as swapping over the file? replace the old with the new? what directories should i not touch? i.e the ones with my boards and member info. id presume the template folder, members any others?

Thanks.



The Best Free Online Technical Support Community! (Click Here)

i-CONICA's Reputation: Increase

Visit The Best Free Technical Support Community In The World!
Logged Offline
Site Site Private Message Private message Windows Live Messenger WLM Reply: 9 - 14
Martin
February 14, 2008, 7:47am Report to Moderator Report to Moderator

I love E-Blah
10 Series Support Team
Posts: 4,558
Gender: Male
Posts Per Day: 3.13
Reputation: 98.60%
Reputation Score: +211 / -3
Time Online: 35 days 19 hours 25 minutes
Location: UK
Age: 50
It usually is with the later versions but it is always better to run the Setup.pl.

If doing a full upgrade:

1. Uninstall all mods or delete all .installed files in the Mods folder
2. Upload all .js files to /blahdocs
3. Upload the Code folder, Languages folder, Blah.pl to your forum folder
4. Run Setup.pl

If you are uploading from the nightly to incorporate all bug fixes then just carry out 1 to 3 above.

In both cases, reinstall any mods.

NB: Some mods may need to be changed to install correctly after upgrading.





Martin's Reputation: Increase
Logged Offline
Site Site Private Message Private message Reply: 10 - 14
iCONICA
February 15, 2008, 12:15am Report to Moderator Report to Moderator

E-Blah Member
Posts: 762
Gender: Male
Posts Per Day: 2.38
Reputation: 97.14%
Reputation Score: +34 / -1
Time Online: 11 days 3 hours 12 minutes
Location: Manchester UK
ok ive updated the file and found this code


// Image Resize; from Martin's Mod for E-Blah

function resizeImg() {
     var _resizeWidth = 300;
     var ResizeMsg = 'Click to view original size ...';

     var _resizeClass = 'imgcode';
     var imgArray = document.getElementsByTagName('img');

     for(var i = 0; i < imgArray.length; i++) {
          var imgObj = imgArray[i];
          
          if(imgObj.className == _resizeClass && imgObj.width > _resizeWidth) {
               imgObj.style.width = _resizeWidth + 'px';
               imgObj.onclick = ImagecodeWinOpen;
               imgObj.title = ResizeMsg;
               imgObj.style.cursor = 'pointer';
          }
     }
}


as you can see i changed 750 to 300 and uploaded the changes, its not scalliing down images though? they use the [img] [/img] tag but they are still the original size?

for example http://www.i-conica.co.uk/forum/Blah.pl?m-1201969790/s-0/

PS i am right in thinking i didnt  need to install the mod anymore? cos its not installed now..



The Best Free Online Technical Support Community! (Click Here)

i-CONICA's Reputation: Increase

Visit The Best Free Technical Support Community In The World!

Revision History (1 edits)
iCONICA  -  February 15, 2008, 12:25am
Logged Offline
Site Site Private Message Private message Windows Live Messenger WLM Reply: 11 - 14
Martin
February 15, 2008, 1:23am Report to Moderator Report to Moderator

I love E-Blah
10 Series Support Team
Posts: 4,558
Gender: Male
Posts Per Day: 3.13
Reputation: 98.60%
Reputation Score: +211 / -3
Time Online: 35 days 19 hours 25 minutes
Location: UK
Age: 50
Not sure why it isn't working. I can take a look if you want, just pm ftp details.



Martin's Reputation: Increase
Logged Offline
Site Site Private Message Private message Reply: 12 - 14
Martin
February 15, 2008, 9:28am Report to Moderator Report to Moderator

I love E-Blah
10 Series Support Team
Posts: 4,558
Gender: Male
Posts Per Day: 3.13
Reputation: 98.60%
Reputation Score: +211 / -3
Time Online: 35 days 19 hours 25 minutes
Location: UK
Age: 50
All working now. I think it is a bit slow because the images are linked to the Belkin website. You would be better of saving them from the Belkin site to your own site and relinking them.



Martin's Reputation: Increase
Logged Offline
Site Site Private Message Private message Reply: 13 - 14
iCONICA
February 15, 2008, 6:56pm Report to Moderator Report to Moderator

E-Blah Member
Posts: 762
Gender: Male
Posts Per Day: 2.38
Reputation: 97.14%
Reputation Score: +34 / -1
Time Online: 11 days 3 hours 12 minutes
Location: Manchester UK
I will do, good idea, I'll do that for large Hi-Res images in future.
Won't bother with the Belkin ones though because i've not really noticed them being slow? maybe just maintenance of Belkin's website when you were there?

But Again Thank you for all your hard work, I really appreciate that!


i-CONICA



The Best Free Online Technical Support Community! (Click Here)

i-CONICA's Reputation: Increase

Visit The Best Free Technical Support Community In The World!
Logged Offline
Site Site Private Message Private message Windows Live Messenger WLM Reply: 14 - 14
1 Pages 1 Recommend Thread
Print

E-Blah Community    Modifications    Mod Requests and Support  ›  ImgTagResize