[MODDB]Attached taken photos by you.1.0.11

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
Locked
User avatar
irdem
Registered User
Posts: 172
Joined: Sat Oct 13, 2007 10:31 pm
Contact:

[MODDB]Attached taken photos by you.1.0.11

Post by irdem »

Modification Name: "Attached Images Block"
Author: irdem

Modification Description::Display latest attached images from specified forums and random images as blocks on index with poster avatar..
if your members want to create topics dedicated their photos, i think this mod is very useful...
Modification Version:: 1.0.11

Requirements: mysql 5.x.x and higher.

Features:

* Display latest attached images from specified forums and random images as a block on index configurable on ACP.

* Auto resize imges on block with their ratio.

* Resize imges from thumbnail if thumbnail funcion is activated and no resize thumbnails if thumbnails sizes are smaller then resize after.

* Allow no-resize ability until a width defined

* Allow enable / disable block.

* Allow change forum IDs.

* Allow define number of image to display on block.

* Display user names and their avatars.

* Display reply count.

* Display view count

* Display last comment date

with version 1.0.5
* Allow define image frame height

with version 1.0.6
* Removed image frame height parameter
* added ACP module named "Attached Images Block"
* Changed: Mode name, all files names and some codes...

with version 1.0.7
* Added a "random images" block
* Added a "random images module"

with version 1.0.8
* Added no resize functionality if thumbnail function is activated and its size is smaller then resize after size
* Added thumbnail resize functionality if thumbnail function is activated and its size is bigger then resize after size.
* Some changes in file function_attached_images.php

with version 1.0.9
* Solved debug error prior to running the UMIL install file,
* Purified template files form some codes unnecessary,
* Added more DIY explanations,

with version 1.0.10
* Solved general error occurs for some mysql version,

with version 1.0.11
* Added a functionality for allow to define the number of caracteres for topic titles
* Corrected some typos in template files for W3C validation

Mod name is "Attached Images Block" since the version 1.0.6

History:
modification updated to 1.0.10 RC

if you prefer an update manually,
from 1.0.10:
-- replace all files with old ones
and,
-- run root/install_attached_images.php for update the database version.
-- purge cache.
-- refresh the template.

Screenshots:
Image

Modification Download: (Use this for uninstall version 1.0.5 and older versions) Download version 1.0.5

Modification Attached Images Block Download:Download version 1.0.11
Last edited by irdem on Wed Mar 03, 2010 8:03 pm, edited 56 times in total.
hmmmmmm
Registered User
Posts: 120
Joined: Tue Feb 17, 2009 6:17 pm
Location: Islamabad, Pakistan

Re: [BETA]attached_taken_photos_by_you.0.0.1 Beta

Post by hmmmmmm »

It Looks Very Nice To Me.. I Will Install This..
joebart72
Registered User
Posts: 743
Joined: Thu Feb 01, 2007 5:54 am

Re: [BETA]attached_taken_photos_by_you.0.0.1 Beta

Post by joebart72 »

Very interesting, I test it now :D
Ok, I've tested it : it sems we can enter only ONE forum ID. It would be nice to resize pictures to same size...

I don't think avatar is very useful... :)

Maybe choose a size in CPA... I do this for the moment :

Code: Select all

<div class="panel">
    <div class="inner">
        <span class="corners-top"><span></span></span>
            <h3>{L_TAKEN_BY_YOU}</h3>
            <table width="100%" class="bg1">                
                <tr>
            <!-- BEGIN taken_photos -->
               <td class="block_center" rowspan="4">
                    <div align="center">{L_PH_SUBJECT}&nbsp;<a href="{taken_photos.U_VIEW_TOPIC}"><b>{taken_photos.TOPICTITLE}</b></a><br /><br />    
                <a href="{taken_photos.U_FILE_POSTE}"><span class="gensmall"><img border="0" src="./download/file.php?id={taken_photos.ATTACH_ID}" height="120" width="120" alt="{taken_photos.TOPICTITLE}"/></span></a><br />
                  <hr />
                  <b>{L_ATTACH_SENDER}</b><a href="{taken_photos.U_POSTER}"></a>&nbsp;{taken_photos.ATTACH_POSTER}<br />{L_VIEW_COUNT}&nbsp;({taken_photos.REPLIES})&nbsp;&raquo;&nbsp;<a href="{taken_photos.U_LAST_POSTE}">{L_LAST_COMMENT}</a></div><br />
               </td>
            <!-- END taken_photos -->               
                </tr>                    
            </table>
        <span class="corners-bottom"><span></span></span>
    </div>
</div>
<br style="clear:both" /> 
I learn English with phpbb.com :)
User avatar
irdem
Registered User
Posts: 172
Joined: Sat Oct 13, 2007 10:31 pm
Contact:

Re: [BETA]attached_taken_photos_by_you.0.0.1 Beta

Post by irdem »

joebart72,
I think it's better to resize the image with its rate...

mod updated to RC!.
added configurable image resize functionality on ACP.
joebart72
Registered User
Posts: 743
Joined: Thu Feb 01, 2007 5:54 am

Re: [BETA]attached_taken_photos_by_you.0.0.1 Beta

Post by joebart72 »

Great ! Coud you have a look in order to select several forums ID ?

I see we can manage the width but with the height, il would have been better :oops:
I did the update but i can't see the widht setting in CPA..
Edit, (OK, you forgot to tell to update includes/acp/acp_board.php)

Be careful, you forgot :

Code: Select all

));
In

Code: Select all

language/en/mods/info_acp_attached_photo.php
Thanks :)
I learn English with phpbb.com :)
User avatar
irdem
Registered User
Posts: 172
Joined: Sat Oct 13, 2007 10:31 pm
Contact:

Re: [BETA]attached_taken_photos_by_you.0.0.1 Beta

Post by irdem »

joebart72 wrote:Great ! Coud you have a look in order to select several forums ID ?

Be careful, you forgot :

Code: Select all

));
In

Code: Select all

language/en/mods/info_acp_attached_photo.php
Thanks :)
I may be thinking the several ID function for the future...

thank you joebart, you're very carrefully :). updated..
joebart72
Registered User
Posts: 743
Joined: Thu Feb 01, 2007 5:54 am

Re: [BETA]attached_taken_photos_by_you.0.0.1 Beta

Post by joebart72 »

You're welcome, I really like this mod but can you consider height in CPA ? :D

It will be perfect like this for the moment :)
I learn English with phpbb.com :)
User avatar
irdem
Registered User
Posts: 172
Joined: Sat Oct 13, 2007 10:31 pm
Contact:

Re: [BETA]attached_taken_photos_by_you.0.0.1 Beta

Post by irdem »

good perfection..
i don't understand, sory my bad perfection :)
are you looking for height setting section on ACP?
or a fix- width fonctionnality ?
joebart72
Registered User
Posts: 743
Joined: Thu Feb 01, 2007 5:54 am

Re: [BETA]attached_taken_photos_by_you.0.0.1 Beta

Post by joebart72 »

Yes, for a pretty index, I wish to set widht and height... For the moment, ony width can be set. Thanks for your help :)
I learn English with phpbb.com :)
User avatar
irdem
Registered User
Posts: 172
Joined: Sat Oct 13, 2007 10:31 pm
Contact:

Re: [BETA]attached_taken_photos_by_you.0.0.1 Beta

Post by irdem »

i want to keep the ratio between the height and width in this mod..
but if you want a fix width :

open includes/functions_phototakenyou.php
try this..

find:

Code: Select all

			$l_vign = $max_width; 
			$taille = getimagesize($config['upload_path']."/".$file_name); 
			$reduc  = floor(($l_vign*100)/($taille[0])); 
			$h_vign = floor(($taille[1]*$reduc)/100); 
replace with:

Code: Select all

			$h_vign = $max_width; 
			$taille = getimagesize($config['upload_path']."/".$file_name); 
			$reduc  = floor(($h_vign*100)/($taille[1])); 
			$l_vign = floor(($taille[0]*$reduc)/100); 
edit: not fix width, this modif. is for fix height...
Last edited by irdem on Tue Dec 01, 2009 9:34 am, edited 1 time in total.
joebart72
Registered User
Posts: 743
Joined: Thu Feb 01, 2007 5:54 am

Re: [BETA]attached_taken_photos_by_you.0.0.1 Beta

Post by joebart72 »

No, in fact I want to choose my height like I can choose my widht ;)
I learn English with phpbb.com :)
User avatar
irdem
Registered User
Posts: 172
Joined: Sat Oct 13, 2007 10:31 pm
Contact:

Re: [RC2]attached_taken_photos_by_you.1.0.2

Post by irdem »

Modification updated to 1.0.2 RC2.

* added multiple forum choice option. (exemple: 1,2,8)
* some codes improvments..

for update with manualy from 1.0.0 RC! to 1.0.2 RC2:

run the uninstall file named "install_taken_photos_byyou.php" on root.

replace those files with olds:
-- includes/functions_phototakenyou.php
-- languages/ en/ mods/ attached_photo.php
-- languages/ en/ mods/ info_acp_attached_photo.php

open:
includes/acp/acp_board.php
find:

Code: Select all

						'forum_ids_to_show'			=> array('lang' => 'FORUM_IDS_TO_SHOW',				'validate' => 'int:0:2000',	'type' => 'text:5:6', 'explain' => true),
replace with:

Code: Select all

						'forum_ids_to_show'		=> array('lang' => 'FORUM_IDS_TO_SHOW',		'validate' => 'string',		'type' => 'text:10:200', 'explain' => true),

joebart72
Registered User
Posts: 743
Joined: Thu Feb 01, 2007 5:54 am

Re: [RC2]Attached taken photos by you.1.0.2

Post by joebart72 »

Very very great ! :D
I learn English with phpbb.com :)
plasmino
Registered User
Posts: 261
Joined: Sat Jul 25, 2009 11:12 am

Re: [RC2]Attached taken photos by you.1.0.2

Post by plasmino »

great thank...

:D

new, version added Maximum image heigth pleaseeeeee :D
joebart72
Registered User
Posts: 743
Joined: Thu Feb 01, 2007 5:54 am

Re: [RC2]Attached taken photos by you.1.0.2

Post by joebart72 »

plasmino wrote:new, version added Maximum image heigth pleaseeeeee :D
I've asked for this too but he doesn't want ;)
I learn English with phpbb.com :)
Locked

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