coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: Darkwoods on February 22, 2006, 05:31:51 PM

Title: Categories And Layout
Post by: Darkwoods on February 22, 2006, 05:31:51 PM
Hello first i wlil say thx you for the great script u done  one of the best script ever Coppermine

i love this script its what i really need but the problem is on the site i have there is not only photo i have music videos and mp3 songs....

so im asking if i can have different style on each categorie? for example the video and album categorie layout will be diferent from the image categorie

i mean each categorie have its own layout please help me on that you will solve my life porblem  :'(  ::)plz
Title: Different Layout in Category
Post by: Darkwoods on February 23, 2006, 12:19:50 PM
hello i wonder how can i have different layout on each category? what files do i have to change plz help me on this  ::)

i want to have different layout category because i will have videos and songs so i want it too look nice
Title: Re: Categories And Layout
Post by: Joachim Müller on February 23, 2006, 03:45:48 PM
merged your identical threads. In the future: don't!
Title: Re: Categories And Layout
Post by: Nibbler on February 23, 2006, 05:05:56 PM
You can have different themes for different albums, search the board for the mods.
Title: Re: Categories And Layout
Post by: Darkwoods on February 24, 2006, 08:12:40 PM
Quote from: GauGau on February 23, 2006, 03:45:48 PM
merged your identical threads. In the future: don't!

sorry for that...

Quote from: Nibbler on February 23, 2006, 05:05:56 PM
You can have different themes for different albums, search the board for the mods.

well yes i did and i find this mode http://forum.coppermine-gallery.net/index.php?topic=25471.0 and i have tested it but it is not what i really want on this mod the whole page layout change and its not really what i want

i want only the layout in thumbnails.php and displayimage.php to change not the whole page i am ready to pay if someone can help me with this

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fimg503.imageshack.us%2Fimg503%2F8496%2Fcoppermine14ho.jpg&hash=cb4adfa5034d00954384aa8eea823622a5e7e4db)
Title: Re: Categories And Layout
Post by: Joachim Müller on February 25, 2006, 01:25:45 AM
well, then create three themes that just differ in the way thumbnails are presented - make copies of the classic theme...
Title: Re: Categories And Layout
Post by: Darkwoods on February 28, 2006, 01:35:48 AM
Quote from: GauGau on February 25, 2006, 01:25:45 AM
well, then create three themes that just differ in the way thumbnails are presented - make copies of the classic theme...

well yes i thought about doing that...

but i still have a problem... how can i change the layout of the thumbnails page wish file should i change and where?

i want to change the thumnail page layout
i want to remove the thumbnail image and pute insted (text) Download (linked to the file) and i want to show the file info on the thumbnail page  :-\

maybe its too much   ;D
Title: Re: Categories And Layout
Post by: Nibbler on February 28, 2006, 01:40:37 AM
Find the relevent code in themes/sample/theme.php, copy it to your theme's theme.php and modify.
Title: Re: Categories And Layout
Post by: Darkwoods on February 28, 2006, 03:43:24 PM
in wish line can i find the code for displayimage page i cant find it in theme.php  :-\ i am really noob in php

is it possible to do a direct link from the thumbnail without messing with displayimage.php ?
Title: Re: Categories And Layout
Post by: Darkwoods on March 01, 2006, 04:04:41 AM
i have been over 12 hour on the site searching in this forum i cant find anything plz can any one help me with this?

i want to have direct link from the thumbnail to the full link i prefer if the change can only be in theme.php

but if i must change in other files no problem  :-\ but plz give me the solution
Title: Re: Categories And Layout
Post by: Joachim Müller on March 01, 2006, 09:53:51 AM
depends on what you want to see changed, however// HTML template for thumbnails display
$template_thumbnail_view = <<<EOT

<!-- BEGIN header -->
        <tr>
<!-- END header -->
<!-- BEGIN thumb_cell -->
        <td valign="top" class="thumbnails" width ="{CELL_WIDTH}" align="center">
                <table width="100%" cellpadding="0" cellspacing="0">
                        <tr>
                                <td align="center">
                                        <a href="{LINK_TGT}">{THUMB}<br /></a>
                                        {CAPTION}
                                        {ADMIN_MENU}
                                </td>
                        </tr>
                </table>
        </td>
<!-- END thumb_cell -->
<!-- BEGIN empty_cell -->
                <td valign="top" class="thumbnails" align="center">&nbsp;</td>
<!-- END empty_cell -->
<!-- BEGIN row_separator -->
        </tr>
        <tr>
<!-- END row_separator -->
<!-- BEGIN footer -->
        </tr>
<!-- END footer -->
<!-- BEGIN tabs -->
        <tr>
                <td colspan="{THUMB_COLS}" style="padding: 0px;">
                        <table width="100%" cellspacing="0" cellpadding="0">
                                <tr>
                                       {TABS}
                                </tr>
                        </table>
                </td>
        </tr>
<!-- END tabs -->
<!-- BEGIN spacer -->
        <img src="images/spacer.gif" width="1" height="7" border="" alt="" /><br />
<!-- END spacer -->

EOT;
might be a good place to start with.
Title: Re: Categories And Layout
Post by: Darkwoods on March 01, 2006, 03:33:54 PM
thx you but it is the same code i dont see anything new in it... im trying to have a direct link to the full file from the thumnails i have searched the forum  already and cant find anything

sorry i know i am asking to much  :-X
Title: Re: Categories And Layout
Post by: Stramm on March 01, 2006, 07:23:34 PM
http://forum.coppermine-gallery.net/index.php?topic=15671.0
Title: Re: Categories And Layout
Post by: Darkwoods on March 01, 2006, 07:45:24 PM
Quote from: Stramm on March 01, 2006, 07:23:34 PM
http://forum.coppermine-gallery.net/index.php?topic=15671.0

does this mod work on 1.4.2 ?
Title: Re: Categories And Layout
Post by: Joachim Müller on March 01, 2006, 08:30:04 PM
why don't you find it out and tell us?
Title: Re: Categories And Layout
Post by: Darkwoods on March 01, 2006, 08:39:54 PM
well i am trying  :)

but its not working i think the problem is on theme.php
i tryed to replace the code on line 1739 and 1802 withe code mention above

Quote from: donnoman on March 20, 2005, 07:48:59 PM
You have to edit the theme.php of every theme you would like to exhibit this behavior.
theme.php - function theme_display_thumbnails - find:

                    '{LINK_TGT}' => "displayimage.php?album=$aid$cat_link&pos={$thumb['pos']}", 

replace with:

                    //'{LINK_TGT}' => "displayimage.php?album=$aid$cat_link&pos={$thumb['pos']}",  //next line for thumb to fullsize mod
                    '{LINK_TGT}' => "javascript:;\" onClick=\"MM_openBrWindow('displayimage.php?pid={$thumb['pid']}&fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=yes,status=yes,resizable=yes,width={$thumb['pwidth']},height={$thumb['pheight']}')",


Title: Re: Categories And Layout
Post by: Stramm on March 04, 2006, 11:49:13 AM
works for me, you just need to adapt the popup to your likings. Eg. toolbar and the popup size doesn't match the image. So it needs changes in functions.inc.php too