Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Categories And Layout  (Read 7560 times)

0 Members and 1 Guest are viewing this topic.

Darkwoods

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 27
  • Freedom!
Categories And Layout
« 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
Logged
Freedom

Darkwoods

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 27
  • Freedom!
Different Layout in Category
« Reply #1 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
Logged
Freedom

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Categories And Layout
« Reply #2 on: February 23, 2006, 03:45:48 pm »

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

Nibbler

  • Guest
Re: Categories And Layout
« Reply #3 on: February 23, 2006, 05:05:56 pm »

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

Darkwoods

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 27
  • Freedom!
Re: Categories And Layout
« Reply #4 on: February 24, 2006, 08:12:40 pm »

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

sorry for that...

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://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fimg503.imageshack.us%2Fimg503%2F8496%2Fcoppermine14ho.jpg&hash=cb4adfa5034d00954384aa8eea823622a5e7e4db)
« Last Edit: February 24, 2006, 08:50:01 pm by Darkwoods »
Logged
Freedom

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Categories And Layout
« Reply #5 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...
Logged

Darkwoods

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 27
  • Freedom!
Re: Categories And Layout
« Reply #6 on: February 28, 2006, 01:35:48 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
Logged
Freedom

Nibbler

  • Guest
Re: Categories And Layout
« Reply #7 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.
Logged

Darkwoods

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 27
  • Freedom!
Re: Categories And Layout
« Reply #8 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 ?
« Last Edit: February 28, 2006, 06:00:40 pm by Darkwoods »
Logged
Freedom

Darkwoods

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 27
  • Freedom!
Re: Categories And Layout
« Reply #9 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
Logged
Freedom

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Categories And Layout
« Reply #10 on: March 01, 2006, 09:53:51 am »

depends on what you want to see changed, however
Code: [Select]
// 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.
Logged

Darkwoods

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 27
  • Freedom!
Re: Categories And Layout
« Reply #11 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
Logged
Freedom

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt

Darkwoods

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 27
  • Freedom!
Logged
Freedom

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Categories And Layout
« Reply #14 on: March 01, 2006, 08:30:04 pm »

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

Darkwoods

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 27
  • Freedom!
Re: Categories And Layout
« Reply #15 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

You have to edit the theme.php of every theme you would like to exhibit this behavior.
theme.php - function theme_display_thumbnails - find:
Code: [Select]
                    '{LINK_TGT}' => "displayimage.php?album=$aid$cat_link&pos={$thumb['pos']}", 
replace with:
Code: [Select]
                    //'{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']}')",

Logged
Freedom

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Categories And Layout
« Reply #16 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
Pages: [1]   Go Up
 

Page created in 0.025 seconds with 20 queries.