[BETA] Tamzi d Tihli, resize & beautifulize

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!
Suggested Hosts
User avatar
numediaweb
Registered User
Posts: 37
Joined: Mon May 12, 2008 9:33 am

[BETA] Tamzi d Tihli, resize & beautifulize

Post by numediaweb » Sun Aug 03, 2008 1:13 pm

Modification Name: Tamzi d Tihli, resize & beautifulize

Author: numediaweb

Modification Description:
This mod dynamically fits big images on your forum (such as; attached images, linked images) and scale them according to a size you specify.
This mod also adds automatic links to minimized images, when you click on it, the image is shown using the beautiful Lytebox library (see http://www.dolem.com/lytebox).
The reason for developing this mod is to fix problems related to big sized image when inserted/attached on posts as they *destroy* forum style and layout.
Before installing this mod, view it in action at; http://cinema.numediastudio.com/viewtopic.php?f=44&t=93
The name of the mod comes from the ancient Tamazight/berber language spoken in north Africa; Tamzi means smallness and Tihli means Beauty.

Modification Version: 1.0.2

Requirements:
* phpBB 3.0.0 or above

Author Notes:
* This mode is based on Auto Image Resizer w Lytebox - phpBB 3.0.1 GOLD by darkera13, but it's simpler to integrate on forum and includes a script to resize images and also works for all styles (including serenity).

* Tested on phpbb v3.0.2 but may work also with other versions.

* If you use any WYSIWYG editors check that they do not auto parse bbcode of [ img ]: if you use HotEditor MOD, open common.php and tweak the line near ;

Code: Select all

$patterns[] = "#\[img(.*?)\](.*?)\[\/img(.*?)\]#si";
$replacements[] = '<a href="$2" rel="lytebox" title="$1"><img src="$2" /></a>';
* I dedicate this mod to my love; lela, you keep inspiring me ;-)

Features:
  • * Fix problems related to big sized image when inserted/attached on posts as they *destroy* forum style and layout.
    * Resize the image preserving its aspect ratio
    * Adds automatic links to minimized images and displays them using Lytebox library
    * Compatible with serenity style (and many more)
    * Support of WYSIWYG editors such as Hoteditor
    * Easy to set up; we don't need to edit a lot of files
Screenshots:
* Befor the mod is installed, the image destroys forum style and layout
Image

* After the mod is installed, images get cropped
Image

* When we click an image, it gets bigger like this
Image

Demo URL:
http://cinema.numediastudio.com/viewtopic.php?f=44&t=93

Modification Download:
Download v 1.0.3 from here
Last edited by numediaweb on Mon Sep 08, 2008 8:35 pm, edited 2 times in total.

User avatar
numediaweb
Registered User
Posts: 37
Joined: Mon May 12, 2008 9:33 am

image resizer, what do you think

Post by numediaweb » Sun Aug 03, 2008 3:33 pm

what do you think guys.

waiting for your feedback.

:mrgreen:

usenet2you
Registered User
Posts: 407
Joined: Sat Mar 22, 2008 7:31 pm
Location: The Netherlands

Re: [BETA] Tamzi d Tihli, resize & beautifulize

Post by usenet2you » Sun Aug 03, 2008 3:57 pm

This mod is already made.

User avatar
numediaweb
Registered User
Posts: 37
Joined: Mon May 12, 2008 9:33 am

Re: [BETA] Tamzi d Tihli, resize & beautifulize

Post by numediaweb » Mon Aug 04, 2008 10:28 am

usenet2you wrote:This mod is already made.
Well, actually this mod is a mix between tow mods, there's a previous version of this mod but it doesn't do the folowing things;
  • Support serenity styles (and many more)
    Support of WYSIWYG editors such as Hoteditor
    Resize the image preserving its aspect ratio
    easy to set up; we don't need to edit a lot of files
If you found a mod doing all this, then please would you like to post it here.

Thanx

User avatar
upsD
Registered User
Posts: 133
Joined: Thu Feb 07, 2008 1:26 am
Location: Freiburg (Black-Forest - Germany)

Re: [BETA] Tamzi d Tihli, resize & beautifulize

Post by upsD » Mon Aug 04, 2008 10:48 am

question

who are the next and the prev button?

grüße
ups
sorry me englisch, i am german, need traduktor ;-)
hallo, ich versteh nur die hälfte auf englisch, bitte langsam schreiben ;-) danke
http://translate.google.de/

User avatar
numediaweb
Registered User
Posts: 37
Joined: Mon May 12, 2008 9:33 am

Re: [BETA] Tamzi d Tihli, resize & beautifulize

Post by numediaweb » Mon Aug 04, 2008 11:01 am

upsD wrote:question

who are the next and the prev button?

grüße
ups
The next and previous buttons are used when we create a slideshow of images.
For the moment, slideshows and grouped images are not yet implemented on the script, but, I will implement this features in the next release, after this mod has passed validation by phpBB mod team.

User avatar
upsD
Registered User
Posts: 133
Joined: Thu Feb 07, 2008 1:26 am
Location: Freiburg (Black-Forest - Germany)

Re: [BETA] Tamzi d Tihli, resize & beautifulize

Post by upsD » Mon Aug 04, 2008 11:07 am

ok...

i will wait :-)

ups
sorry me englisch, i am german, need traduktor ;-)
hallo, ich versteh nur die hälfte auf englisch, bitte langsam schreiben ;-) danke
http://translate.google.de/

usenet2you
Registered User
Posts: 407
Joined: Sat Mar 22, 2008 7:31 pm
Location: The Netherlands

Re: [BETA] Tamzi d Tihli, resize & beautifulize

Post by usenet2you » Mon Aug 04, 2008 11:32 am

numediaweb wrote:
usenet2you wrote:This mod is already made.
Well, actually this mod is a mix between tow mods, there's a previous version of this mod but it doesn't do the folowing things;
  • Support serenity styles (and many more)
    Support of WYSIWYG editors such as Hoteditor
    Resize the image preserving its aspect ratio
    easy to set up; we don't need to edit a lot of files
If you found a mod doing all this, then please would you like to post it here.

Thanx
Okay, I will test it soon. :D

User avatar
numediaweb
Registered User
Posts: 37
Joined: Mon May 12, 2008 9:33 am

Re: [BETA] Tamzi d Tihli, resize & beautifulize

Post by numediaweb » Tue Aug 19, 2008 10:13 am

the mod is still on pending process (v 1.0.3) because of some licence uncompatiblity;
:idea:
The Lytebox javascript is released under a Creative Commons license, and your MOD is released under the GPL. The two are not compatible licenses, making your MOD legally questionable.

:P
gonna fix that and reupload the mod to phpBB MOD database for approval.

Exhuminator
Registered User
Posts: 6
Joined: Tue Aug 19, 2008 4:54 am

Re: [BETA] Tamzi d Tihli, resize & beautifulize

Post by Exhuminator » Sat Aug 23, 2008 11:35 am

Hello.

I've installed your MOD but i'm facing problems with resizing top-forum banner also (which shoujld be intact, as it ruins the layout): Check it here - the pictures below are being properly resized, but the banner was resized too (which shouldn't happen).

Do you have any solutions for this one? I'm assuming it has something to do with edits inside "viewtopic_body.html" file.


Cheers,


Ex.

User avatar
numediaweb
Registered User
Posts: 37
Joined: Mon May 12, 2008 9:33 am

Re: [BETA] Tamzi d Tihli, resize & beautifulize

Post by numediaweb » Sat Aug 23, 2008 12:17 pm

Exhuminator wrote: Do you have any solutions for this one? ..
I have the same thing on my forum; in the viewtopic I got the site's banner resized too, so I bypassed this by putting the banner in the background of a table (I edited the overall_header template)

the second solution is to cut the banner into small peaces and integrate it on a table.

please check my website to see how it looks; http://cinema.numediastudio.com/

PS;in the coming version, this will be fixed somehow.

Exhuminator
Registered User
Posts: 6
Joined: Tue Aug 19, 2008 4:54 am

Re: [BETA] Tamzi d Tihli, resize & beautifulize

Post by Exhuminator » Sat Aug 23, 2008 7:16 pm

Hello.

Can you tell me (step-by-step) how did you solve your case? I'm kinda new in this whole phpbb community. Can i send the files needed (or just paste the code) to you and you'll show me where to edit?


Regards,


Ex.

User avatar
numediaweb
Registered User
Posts: 37
Joined: Mon May 12, 2008 9:33 am

Re: [BETA] Tamzi d Tihli, resize & beautifulize

Post by numediaweb » Sun Aug 24, 2008 10:15 am

Exhuminator wrote: Can you tell me (step-by-step) how did you solve your case?
the solution I use right now is;
go to Administration Control Panel --> Styles --> Templates --> upon where you installed theis MOD, chooseEditnext to the template name --> Select template file overall_header.html.
now you have to edit the code next to the logo session of your file, mine looks like this after I fixed the above bug, note the code next to : background="{T_IMAGESET_PATH}/logo_banner.jpg

Code: Select all

</head>
<body class="{S_CONTENT_DIRECTION}">
<div id="wrapper">

<table border="0" cellspacing="0" cellpadding="0" width="{$CA_WIDTH}" id="maintable" align="center">
<tr>
	<td align="center" height="100" background="{T_IMAGESET_PATH}/logo_banner.jpg"></td>
</tr>
<tr>
	<td class="navtd">
play with it, you should success resolving the logo banner auto resize bug.

denu
Registered User
Posts: 28
Joined: Sun Aug 31, 2008 10:27 am

Re: [BETA] Tamzi d Tihli, resize & beautifulize

Post by denu » Sun Sep 07, 2008 2:32 am

Does this mod works with an external-linked images?

I can click image which is attached to a post, an then I see Lytebox.
But an image posted by an user with [ img ] bbcodes isn't resized at all even when it exceeds the limit i put on it in viewtopic_body.html file.

ps. i'm using the VistaXFull template and while editing attachment.html i've found only one string:

Code: Select all

<a href="{_file.U_DOWNLOAD_LINK}"><img src="{_file.THUMB_IMAGE}"
Other files i've edited according to install instructions were just like in prosilver.
sorry for meeztakez

User avatar
numediaweb
Registered User
Posts: 37
Joined: Mon May 12, 2008 9:33 am

Re: [BETA] Tamzi d Tihli, resize & beautifulize

Post by numediaweb » Sun Sep 07, 2008 12:54 pm

Does this mod works with an external-linked images?
yes I works for external linked images and all images on your board :)

But an image posted by an user with [ img ] bbcodes isn't resized at all

Do you use any WYSIWYG Mods? if so they modify the functions of bbcode.php, try the latest version of the mod; 1.0.3, it contains fixes on bbcode.php
i'm using the VistaXFull template and while editing attachment.html i've found only one string
Many templates change the code scheme of the prosilver original theme, it's okay, you have just to find where the original code is hidden;

Code: Select all

<img src="{_file.U_INLINE_LINK}" alt="{_file.DOWNLOAD_NAME}" onclick="viewableArea(this);" />
I downloaded AeroBlueX Full because I think it's the same as VistaXFull and found that you should change this intead in attachment.html

Code: Select all

<img src="{_file.U_INLINE_LINK}" alt="{_file.DOWNLOAD_NAME}" />
to this

Code: Select all

<a href="{_file.U_INLINE_LINK}" rel="lytebox" class="image-resize"><img src="{_file.U_INLINE_LINK}" alt="{_file.DOWNLOAD_NAME}" /></a>
and it'll work :lol:

Locked

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