[MODDB] ReIMG Image Resizer

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Ideas Centre
Mr_makaveli
Registered User
Posts: 1159
Joined: Sun Oct 26, 2008 3:34 pm

Re: [DEV] ReIMG Image Resizer

Post by Mr_makaveli »

can you give me a find code please and remove or add after :)
www.tgzforum.com, a new forum for all types of people
User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 17462
Joined: Thu Jan 06, 2005 1:30 pm
Location: Fishkill, NY
Name: David Colón
Contact:

Re: [DEV] ReIMG Image Resizer

Post by DavidIQ »

No no...it's not a problem in code. This is a problem in settings so change it in Post Settings in the ACP. ;)
Apply to become a Jr. Extension Validator
My extensions | In need of phpBB services? | Was I helpful today?
No unsolicited PMs unless you're planning on asking for paid help.
Mr_makaveli
Registered User
Posts: 1159
Joined: Sun Oct 26, 2008 3:34 pm

Re: [DEV] ReIMG Image Resizer

Post by Mr_makaveli »

Maximum relative image width: 10%

Normalize landscape/portrait: No

Zooming method: Lightbox
www.tgzforum.com, a new forum for all types of people
User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 17462
Joined: Thu Jan 06, 2005 1:30 pm
Location: Fishkill, NY
Name: David Colón
Contact:

Re: [DEV] ReIMG Image Resizer

Post by DavidIQ »

Try this in includes/bbcode.php:

Find:

Code: Select all

         '#\[img(.*?)\](.*?)\[\/img(.*?)\]#is' => '<img src="\\2" alt="" />',
Replace with:

Code: Select all

         '#\[img(.*?)\](.*?)\[\/img(.*?)\]#is' => '<img src="\\2" alt="" class="reimg" onload="reimg(this);" onerror="reimg(this);" />',
Clear cache and check for the MOD again.
Apply to become a Jr. Extension Validator
My extensions | In need of phpBB services? | Was I helpful today?
No unsolicited PMs unless you're planning on asking for paid help.
Mr_makaveli
Registered User
Posts: 1159
Joined: Sun Oct 26, 2008 3:34 pm

Re: [DEV] ReIMG Image Resizer

Post by Mr_makaveli »

Oh wow, we have a winner, your a godsend thankyou so very much

EDITI hear highslide has safety risks, i used the one that you said was safer, so how safe is this mod :)
www.tgzforum.com, a new forum for all types of people
User avatar
wojtula
Registered User
Posts: 24
Joined: Mon Nov 17, 2008 8:52 pm
Location: Poland
Contact:

Re: [DEV] ReIMG Image Resizer

Post by wojtula »

Mod work great but i can'y find seetings in acp ?? :(

Can anybody hel me ?
Mr_makaveli
Registered User
Posts: 1159
Joined: Sun Oct 26, 2008 3:34 pm

Re: [DEV] ReIMG Image Resizer

Post by Mr_makaveli »

ACP/GENERAL/POST SETTINGS
www.tgzforum.com, a new forum for all types of people
User avatar
wojtula
Registered User
Posts: 24
Joined: Mon Nov 17, 2008 8:52 pm
Location: Poland
Contact:

Re: [DEV] ReIMG Image Resizer

Post by wojtula »

THX :D
User avatar
jmaraujo
Registered User
Posts: 240
Joined: Fri Jun 01, 2007 9:48 pm
Location: Rivera - Uruguay
Name: Juan

Re: [DEV] ReIMG Image Resizer

Post by jmaraujo »

Hi. I must have done something wrong because I'm getting this error when trying to change the mod config in the ACP:

Code: Select all

Error General
SQL ERROR [ mysql4 ]

Duplicate entry 'reimg_rel_width' for key 1 [1062]

SQL

INSERT INTO phpbb_config (config_name, config_value, is_dynamic) VALUES ('reimg_rel_width', 0, 0)

BACKTRACE

FILE: includes/db/mysql.php
LINE: 174
CALL: dbal->sql_error()

FILE: includes/functions.php
LINE: 156
CALL: dbal_mysql->sql_query()

FILE: includes/acp/acp_board.php
LINE: 433
CALL: set_config()

FILE: includes/functions_module.php
LINE: 518
CALL: acp_board->main()

FILE: adm/index.php
LINE: 75
CALL: p_master->load_active()
Can anyone help me with that? ;)

EDIT: Now I'm not getting that error anymore when trying to change the mod config. :?
czero
Registered User
Posts: 13
Joined: Wed Apr 29, 2009 6:35 pm

Re: [DEV] ReIMG Image Resizer

Post by czero »

where is the configuration options? cant find them in the acp.
Mr_makaveli
Registered User
Posts: 1159
Joined: Sun Oct 26, 2008 3:34 pm

Re: [DEV] ReIMG Image Resizer

Post by Mr_makaveli »

czero wow i should learn too read three posts above
Mr_makaveli wrote:ACP/GENERAL/POST SETTINGS
www.tgzforum.com, a new forum for all types of people
czero
Registered User
Posts: 13
Joined: Wed Apr 29, 2009 6:35 pm

Re: [DEV] ReIMG Image Resizer

Post by czero »

its not showing up under post settings for me
User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 17462
Joined: Thu Jan 06, 2005 1:30 pm
Location: Fishkill, NY
Name: David Colón
Contact:

Re: [DEV] ReIMG Image Resizer

Post by DavidIQ »

You've either not made the admin edits or not purged the cache.
Apply to become a Jr. Extension Validator
My extensions | In need of phpBB services? | Was I helpful today?
No unsolicited PMs unless you're planning on asking for paid help.
czero
Registered User
Posts: 13
Joined: Wed Apr 29, 2009 6:35 pm

Re: [DEV] ReIMG Image Resizer

Post by czero »

DavidIQ wrote:You've either not made the admin edits or not purged the cache.
i did purge the cache and checked over my edits, especially the includes/acp/acp_board.php and includes/acp/acp_styles.php.

However, the mod seems to be working, it just doesn't seem to be appearing in post settings in the acp.
Notam
Registered User
Posts: 28
Joined: Mon Oct 06, 2008 10:46 am

Re: [DEV] ReIMG Image Resizer

Post by Notam »

The instruction file for subsilver2 is not clear. how do i read it. when i click on it it opens ups in ie and everything is jumbled up
Locked

Return to “[3.0.x] MODs in Development”