Page Index Toggle Pages: 1 [2] 3 4  Send TopicPrint
Very Hot Topic (More than 25 Replies) Smart Image Resize Mod (Read 27578 times)
tompocz
Full Member
***
Offline


The WORST day fishing
is better than the BEST
day

Posts: 124
Location: Adelaide
Joined: Dec 27th, 2002
Gender: Male
Re: Smart Image Resize Mod
Reply #15 - Dec 31st, 2005 at 3:13pm
Print Post  
True, but  I have seen mods that also do not have such files and are intergrated into existing perl scripts in the Admin & Sources dir  like

Online on messagedisplay
Distilled Email Domains
New_Member_Notification
Member Delete Lock
Smart Image Resize Smiley

You are more than welcome to do it your way if you like, but given my current comfort zone in coming to grips with writing mods, I will leave it as it is. I dont think though it is possible, as specific changes MUST be made to scripts like Load, Profile, Display etc to incorporate the new rule sets governing the sizes of images.

cheers
Tom
  

The WORST day fishing is better than the BEST day working !
Back to top
WWW  
IP Logged
 
Larian
Senior Member
****
Offline



Posts: 316
Location: Leipzig
Joined: Oct 22nd, 2002
Gender: Male
Re: Smart Image Resize Mod
Reply #16 - Jan 4th, 2006 at 12:20pm
Print Post  
Last Beta works great Smiley

The new German Language File:

Quote:
#----------------------------------------------------------------------#
# Smart_Image_Resize.lng (Smart_Image_Resize txt definitions)#
# for YaBB 2                                                 #
# by Tom Poczman                                           #
#----------------------------------------------------------------------#
# Copyright: 2006 'Smart_Image_Resize' - All Rights Reserved                     #
# Released: January 1, 2006                                     #
# e-mail:      webadmin@fishsa.com                         #
#----------------------------------------------------------------------#
# Any redistribution of this script without the expressed written      #
# consent of 'cd-profil as' is strictly prohibited. Copying any             #
# of the code contained within this script and claiming it as             #
# your own is also prohibited.                                     #
#----------------------------------------------------------------------#
# By using this script you agree to indemnify 'Smart_Image_Resize'               #
# from any liability that might arise from its use.                   #
#----------------------------------------------------------------------#
# You may not remove any of these header notices.                   #
#----------------------------------------------------------------------#

%Smart_Image_Resize_txt = (
'1' => "Smart Image Resize",
'2' => "Maximale Avatar Größe (0 = ohne Limit)",
'3' => "Maximale Bild Größe (0 = ohne Limit)",
'4' => "Maximale Signatur Bild Größe (0 = ohne Limit)",
'5' => "Maximale Anhangs Bild Größe (0 = ohne Limit)",
'6' => "Breite:",
'7' => "Höhe:",
'8' => "Autor: Tom Poczman",
);

1;
  
Back to top
 
IP Logged
 
tompocz
Full Member
***
Offline


The WORST day fishing
is better than the BEST
day

Posts: 124
Location: Adelaide
Joined: Dec 27th, 2002
Gender: Male
Re: Smart Image Resize Mod
Reply #17 - Jan 4th, 2006 at 1:20pm
Print Post  
Will incorporate the german language file in the next beta 4

cheers and thanks for the feedback
Tom
  

The WORST day fishing is better than the BEST day working !
Back to top
WWW  
IP Logged
 
tompocz
Full Member
***
Offline


The WORST day fishing
is better than the BEST
day

Posts: 124
Location: Adelaide
Joined: Dec 27th, 2002
Gender: Male
Re: Smart Image Resize Mod
Reply #18 - Jan 4th, 2006 at 1:43pm
Print Post  
Added new beta 4 - only difference between 3 & 4 is the addition of the german language file. Beta 4 can be downloaded from first post.

cheers
Tom
  

The WORST day fishing is better than the BEST day working !
Back to top
WWW  
IP Logged
 
RuKo
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 20
Location: Netherlands
Joined: Dec 2nd, 2005
Re: Smart Image Resize Mod
Reply #19 - Jan 5th, 2006 at 1:23pm
Print Post  
Hi,
Thanks Tom,
Very easy with these mod to make a photograph gallery, with the link to original format under the rezised pics.

see my test here.
.http://forums4all.nl.eu.org/forums/forums4all/YaBB.pl?num=1136457570

I also made the Dutch translation (see attach)

regards,
RuKo
  

Languages.zip ( 0 KB | Downloads )

have a nice day
RuKo
Back to top
 
IP Logged
 
jans
Senior Member
****
Offline


Oooops!

Posts: 374
Location: Meppel
Joined: Oct 27th, 2005
Gender: Male
Re: Smart Image Resize Mod
Reply #20 - Jan 5th, 2006 at 3:01pm
Print Post  
does not work with latest CVS yabbc.pl

attached

cold install gives error on step 15

and with A.D.C installed it too goes wrong at step 11.
  

jans_YaBBC.zip ( 5 KB | Downloads )
Back to top
WWW  
IP Logged
 
tompocz
Full Member
***
Offline


The WORST day fishing
is better than the BEST
day

Posts: 124
Location: Adelaide
Joined: Dec 27th, 2002
Gender: Male
Re: Smart Image Resize Mod
Reply #21 - Jan 5th, 2006 at 10:31pm
Print Post  
The mod has been design around the native/vanilla version of YaBB 2.1, as this is what the norm is and what most people use. Most are not aware of the cvs versions, even though this is what I too use at home on my dev environment. WIll have a look at the cvs issue tonight once I get home from work.

What is A.D.C ??

WIll incorporate the Dutch Language in the next beta, as well as address the above, and incorporate thos changes, should they be required.

cheers
Tom
  

The WORST day fishing is better than the BEST day working !
Back to top
WWW  
IP Logged
 
tompocz
Full Member
***
Offline


The WORST day fishing
is better than the BEST
day

Posts: 124
Location: Adelaide
Joined: Dec 27th, 2002
Gender: Male
Re: Smart Image Resize Mod
Reply #22 - Jan 6th, 2006 at 11:28am
Print Post  
@Jans

The original YaBBC.pl in 2.1 is ver 1.22
You are using ver 1.35 which is the latest in the CVS Repository

I cant help you with step 11 as I still dont know what A.D.C is ??

Replace with the following for Step 15 - only if you are using Sources/YaBBC.pl ver 1.35

<search for>
     $char_160  = chr(160);
     $message =~ s~\[img\]_160)*\[/img\]~<img src="https\:\/\/$2" alt="" border="0" />~isg;
     $message =~ s~\[img\]_160)*\[/img\]~<img src="http\:\/\/$2" alt="" border="0" />~isg;
     $message =~ s~\[img width=(\d+) ardspace|$char_160)*\[/img\]~restrictimage($1,$2,'http://'.$4)~eisg;
</search for>

<replace>
     $char_160  = chr(160);
     $message =~ s~\[img(.*?)\]60)*\[/img\]~restrictimage($1, 'http'.$2.'://'.$3)~eisg;
</replace>
  

The WORST day fishing is better than the BEST day working !
Back to top
WWW  
IP Logged
 
tompocz
Full Member
***
Offline


The WORST day fishing
is better than the BEST
day

Posts: 124
Location: Adelaide
Joined: Dec 27th, 2002
Gender: Male
Re: Smart Image Resize Mod
Reply #23 - Jan 6th, 2006 at 11:37am
Print Post  
Added new beta 5 - only difference between 4 & 5 is the addition of the dutch language file. Beta 5 can be downloaded from first post.

cheers
Tom
  

The WORST day fishing is better than the BEST day working !
Back to top
WWW  
IP Logged
 
jans
Senior Member
****
Offline


Oooops!

Posts: 374
Location: Meppel
Joined: Oct 27th, 2005
Gender: Male
Re: Smart Image Resize Mod
Reply #24 - Jan 7th, 2006 at 6:47pm
Print Post  
A.D.C. stands for, Attachment Download Counter/List YaBB2  XTC  2.0 

One of the other mods here.

It seems both of you use an insertion point or so that is the same or conflicts. Could you please see what can be done about that ?
  
Back to top
WWW  
IP Logged
 
Jeff
God Member
*****
Offline


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: Smart Image Resize Mod
Reply #25 - Jan 7th, 2006 at 7:01pm
Print Post  
Hi Jans
what you get error with Attachment Download counter have 1 space in this line between $showattach =:

Code
Select All
					$showattach = qq~<div class="scroll" style="max-height: 400px; width: 100%; overflow: auto;" align="center"><img src="$uploadurl/$mfn" alt="$mfn" border="0" /></div>~;
 



Without Attachment Download Counter mod there  2 space between this $showattach  =
  

greetings
Jeff
Back to top
WWW  
IP Logged
 
jans
Senior Member
****
Offline


Oooops!

Posts: 374
Location: Meppel
Joined: Oct 27th, 2005
Gender: Male
Re: Smart Image Resize Mod
Reply #26 - Jan 7th, 2006 at 7:18pm
Print Post  
After applying your changes YaBB still will not run after this mod is been installed.
  
Back to top
WWW  
IP Logged
 
jans
Senior Member
****
Offline


Oooops!

Posts: 374
Location: Meppel
Joined: Oct 27th, 2005
Gender: Male
Re: Smart Image Resize Mod
Reply #27 - Jan 7th, 2006 at 7:22pm
Print Post  
Quote:
Hi Jans
what you get error with Attachment Download counter have 1 space in this line between $showattach =:

Code
Select All
					$showattach = qq~<div class="scroll" style="max-height: 400px; width: 100%; overflow: auto;" align="center"><img src="$uploadurl/$mfn" alt="$mfn" border="0" /></div>~;
 



Without Attachment Download Counter mod there  2 space between this $showattach  =


Right, found this myself 10 seconds ago, and was going to post it.

Board runs fine now ( my bad thinking, forgot to copy the file to the variables folder)


I've got an ADC compatible mod now.

Can you both get together to sort this minor difference out and change it for other users to come please ?   thanks.
  
Back to top
WWW  
IP Logged
 
Larian
Senior Member
****
Offline



Posts: 316
Location: Leipzig
Joined: Oct 22nd, 2002
Gender: Male
Re: Smart Image Resize Mod
Reply #28 - Jan 18th, 2006 at 10:36am
Print Post  
Some Users reportet, that images aren't shown in Opera. For myself i found out that konqueror has the same problem. Is there any problem with your javascript in opera?

Lari
  
Back to top
 
IP Logged
 
tompocz
Full Member
***
Offline


The WORST day fishing
is better than the BEST
day

Posts: 124
Location: Adelaide
Joined: Dec 27th, 2002
Gender: Male
Re: Smart Image Resize Mod
Reply #29 - Jan 18th, 2006 at 11:11am
Print Post  
I have noticed also a prob in firefox - will look into it asap
  

The WORST day fishing is better than the BEST day working !
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1 [2] 3 4 
Send TopicPrint