Categories And Layout Categories And Layout
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Categories And Layout

Started by Darkwoods, February 22, 2006, 05:31:51 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Darkwoods

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
Freedom

Darkwoods

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
Freedom

Joachim Müller

merged your identical threads. In the future: don't!

Nibbler

You can have different themes for different albums, search the board for the mods.

Darkwoods

#4
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)
Freedom

Joachim Müller

well, then create three themes that just differ in the way thumbnails are presented - make copies of the classic theme...

Darkwoods

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
Freedom

Nibbler

Find the relevent code in themes/sample/theme.php, copy it to your theme's theme.php and modify.

Darkwoods

#8
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 ?
Freedom

Darkwoods

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
Freedom

Joachim Müller

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.

Darkwoods

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
Freedom


Darkwoods

Freedom

Joachim Müller

why don't you find it out and tell us?

Darkwoods

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']}')",


Freedom

Stramm

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