[2.0.11] Resize Posted Images Based on Max Width

The cleanup is complete. This forum is now read only.

Rating:

Excellent!
46
64%
Very Good
10
14%
Good
10
14%
Fair
3
4%
Poor
3
4%
 
Total votes: 72

jmcurtusan
Registered User
Posts: 8
Joined: Sat Mar 24, 2007 7:21 pm

Re: [2.0.11] Resize Posted Images Based on Max Width

Post by jmcurtusan »

will this mod work on php 2.0.22 ???????????/
Blisk
Registered User
Posts: 270
Joined: Wed Aug 20, 2003 10:43 am
Location: Slovenia

Re: [2.0.11] Resize Posted Images Based on Max Width

Post by Blisk »

I have 2.0.22 and works!
ilmasterx
Registered User
Posts: 75
Joined: Tue Jan 11, 2005 10:08 pm
Contact:

Re: [2.0.11] Resize Posted Images Based on Max Width

Post by ilmasterx »

Blisk wrote: This mod doesn't work ok.
So I installed this one.
find this in bbcode.tpl it is only a part of file

Code: Select all

<!-- BEGIN img -->
and replace with this

Code: Select all

<!-- BEGIN img --><img src="{URL}" alt="Image" title="Image" border="0" onload="if(this.width > screen.width-454) {this.width=(screen.width-454); this.className='clickable'; }" onclick="if(this.width >= screen.width-454) { window.open('{URL}', '_blank'); return false; }" alt="Klikni za večjo sliko" /><!-- END img -->
It works in IE and Firefox


it's ok!!! this script is good
cornick
Registered User
Posts: 142
Joined: Fri May 19, 2006 12:55 am
Location: New York

Re: [2.0.11] Resize Posted Images Based on Max Width

Post by cornick »

Not a huge fan of the border around the images, is there a way of removing that?
achievehigh.org
Registered User
Posts: 300
Joined: Sat Apr 01, 2006 3:08 am
Contact:

Re: [2.0.11] Resize Posted Images Based on Max Width

Post by achievehigh.org »

http://christianfecteau.com/rmw does not work so I can't see your illustration. Please check and fix. Thanks.
User avatar
Volunteer Forum
Registered User
Posts: 400
Joined: Mon Sep 12, 2005 9:59 pm

Re: [2.0.11] Resize Posted Images Based on Max Width

Post by Volunteer Forum »

I would like to see this mod for phpBB3 also...
Everything that is not perfect is a flaw [",]
Sixes350
Registered User
Posts: 63
Joined: Sun Dec 31, 2006 7:43 pm
Location: Darwin, Australia

Re: [2.0.11] Resize Posted Images Based on Max Width

Post by Sixes350 »

cornick wrote:Not a huge fan of the border around the images, is there a way of removing that?
I agree! The pic on its own would look fine and a user can run the mouse over the pic to see the help bubble to click for a full view.

Does anyone know how to do this?

BTW, great mod! Even after telling people to have images at a certain res, they still post bigger! :) This mod does the job well! (installed with easymod in 2.0.22)

Cheers
prekill2
Registered User
Posts: 10
Joined: Mon Mar 27, 2006 4:16 pm

Re: [2.0.11] Resize Posted Images Based on Max Width

Post by prekill2 »

I want to install this mod but still give my users an option to choose rather use this resize option or not.

I want to duplicate subsilver theme and give it 2 different names:

-With resize mod
-Without resize mod

I want one of them to include the resize mod and the other wont. I want my users will have the option in the profile page under theme.

any idea on how to imply this?

thanks for the help!
terminatoronly
Registered User
Posts: 93
Joined: Wed Jun 13, 2007 7:55 pm

Re: [2.0.11] Resize Posted Images Based on Max Width

Post by terminatoronly »

Great Mod I Love it :)
Master User
Registered User
Posts: 68
Joined: Sun Apr 09, 2006 9:00 pm
Location: NZ

Re: [2.0.11] Resize Posted Images Based on Max Width

Post by Master User »

Does anyone know If you can get this mod for phpBB3 yet?
charlesbelisle
Registered User
Posts: 9
Joined: Wed May 02, 2007 11:46 pm

Re: [2.0.11] Resize Posted Images Based on Max Width

Post by charlesbelisle »

Hi.

When an image is too large according to the maximum size (of 325 px in my case) the image opens in a popup when one click above. I would like that the image opens with a bond _blank towards the image (ex http://127.0.0.1/images/Arche.jpg) instead of the popup which can cause certain problems of popup…

Voici le code du fichiers .js fournit avec le mod : http://belsima.supra-hosting.com/rmw_jslib.txt

Thanks.
Bullfn33
Registered User
Posts: 92
Joined: Mon Jan 29, 2007 2:29 am

Re: [2.0.11] Resize Posted Images Based on Max Width

Post by Bullfn33 »

I just installed this mod but I get some code that shows up in my forum under the resized photo. This part of the instructions was a little confusing so I think that's why it might be messed up. Here is an example of what shows up under the image: http://www.cfbpredictions.com/phpBB2/vi ... n+campbell


Here is the part of the instructions that includes the part that shows up:
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/bbcode.tpl
#
#-----[ FIND ]------------------------------------------
#
# around line 56
#
<!-- BEGIN img -->
#
#-----[ IN-LINE FIND ]------------------------------------------
#
<img
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
# should look like: <img resizemod="on" onload="rmw_img_loaded(this)" src="{URL}" border="0" />
#
resizemod="on" onload="rmw_img_loaded(this)"
Here is how I have that part entered on my bbcode.tpl file with the bold parts that show up as you saw from the example:
<!-- BEGIN img --><img resizemod="on" onload="rmw_img_loaded(this)" src="{URL}" border="0" />resizemod="on" onload="rmw_img_loaded(this)"

<!-- BEGIN url --><a href="{URL}" target="_blank" class="postlink">{DESCRIPTION}</a><!-- END url -->
It seems like this might be an easy fix but I'm not sure what to do and don't want to mess something up. Any help would be great!
diabolic.bg
Registered User
Posts: 447
Joined: Mon Dec 11, 2006 3:41 pm
Location: Bulgaria, Sofia
Contact:

Re: [2.0.11] Resize Posted Images Based on Max Width

Post by diabolic.bg »

Bullfn33 wrote: Here is how I have that part entered on my bbcode.tpl file with the bold parts that show up as you saw from the example:
<!-- BEGIN img --><img resizemod="on" onload="rmw_img_loaded(this)" src="{URL}" border="0" />resizemod="on" onload="rmw_img_loaded(this)"

<!-- BEGIN url --><a href="{URL}" target="_blank" class="postlink">{DESCRIPTION}</a><!-- END url -->
It seems like this might be an easy fix but I'm not sure what to do and don't want to mess something up. Any help would be great!
The right code is:

Code: Select all

<!-- BEGIN img --><img resizemod="on" onload="rmw_img_loaded(this)" src="{URL}" border="0" />

Remove other part of string. But NOT string for URL, only for image. ;)
Bullfn33
Registered User
Posts: 92
Joined: Mon Jan 29, 2007 2:29 am

Re: [2.0.11] Resize Posted Images Based on Max Width

Post by Bullfn33 »

Well that was easy. I'm wondering though, is that {Description} tag suppose to show up underneath?
diabolic.bg
Registered User
Posts: 447
Joined: Mon Dec 11, 2006 3:41 pm
Location: Bulgaria, Sofia
Contact:

Re: [2.0.11] Resize Posted Images Based on Max Width

Post by diabolic.bg »

Bullfn33 wrote:Well that was easy. I'm wondering though, is that {Description} tag suppose to show up underneath?
DESCRIPTION is the code for URL.
Post Reply

Return to “[2.0.x] MOD Database Cleanup”