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: i2Theme-1.1-Classic (Right Edition) for CPG 1.4.x and WordPress 2.6.x  (Read 12465 times)

0 Members and 1 Guest are viewing this topic.

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos

Hello CPG Users!

Here is the single right-hand sidebar version of the i3Theme 1.7 Classic (Center Edition) WordPress theme I ported eariler. Below are the contents of the readme.txt file and please take notice of the requirements that the links must be retained in the footer (either modified or unmodified) if you use this theme.

I've overwritten some of the configuration settings by using variables in the theme.php file and added a new variable for retrieving the album description. The reason for this is to prevent the standard settings in the Configuration tables set by you from "breaking" the theme. If you wish to change these settings, do so here or delete them altogether and use the Configuration Manager in Coppermine. These changes are:

// These parameters overide what the user inputs in the Configuration setup to prevent the theme from breaking.
$CONFIG['max_film_strip_items'] = 4; //overrides the number of thumbnails.
$CONFIG['thumbcols'] = 4; //overrides the number of columns for thumbnails.
$CONFIG['main_table_width'] = '100%'; //overrides the Width of the main table (pixels or %).
$CONFIG['picture_table_width'] = '100%'; //overrides the Width of the table for file display (pixels or %).
$CONFIG['album_list_cols'] = 2; // sets "Number of columns for the album list = 2"
$CONFIG['first_level'] = 0 ; //sets "Show first level album thumbnails in categories = no".
$album_desc = get_album_desc($_GET[album]);

This theme has the first level of album thumbnails turned off to make large galleries look move attractive. This will prevent the main page from being cluttered with thumbnails and easier to chose a particular category. There is also a new function for truncating the album descriptions when viewing on the index or category pages. When you view a single album, the full description is printed out at the top of the album. This makes the index and category pages much cleaner looking. I've also adapted it to truncate long image captions when viewing on a thumbnail page but prints the full caption when viewing the intermediate image.

To edit the number of characters in the truncated album description, find in 2 places in the theme.php file - '{ALB_DESC}' => myTruncate($album['album_desc'], 20, " "), and change the number (20) to any length your desire. You can also change the padding characters (...) to any other set of characters by editing function myTruncate($string, $limit, $break=".", $pad="...") in the theme.php file.

To edit the number of characters in the truncated image caption, find in 2 places in the theme.php file - '{CAPTION}' => myTruncate($caption, 120, " "), // changing the number changes the # of characters printed for the thumbnail caption. and change the number (120) to an length you desire. This number doesn't seem to be match the string length but it is consistant so change it and view the results.

I've also adapted the compute_img_size($width, $height, $max) function to manage the size of the intermediate image. As in some cases (example would be the Coppermine demo page), some galleries have intermediate images of different sizes. This function was changed and added to the theme.php to make view all intermediate images at 400px wide. This function is now compute_img_size_max($width, $height) and you can change the view size by editing $max = 400;. If you have intermediate images smaller than 400px wide then this function will increase the image size when viewing which could result in a distorted image. Since the default size in Coppermine is "400", this should not be a problem unless you've decreased it. This setting in the theme.php file does not affect the setting in your Coppermine configuration but only resizes the images in the browser. Here's a link to additional info in the manual - http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#admin_picture_thumbnail.

Another edit I made was remove the thumbnail from the categories list. These category thumbnails are added to the gallery in the Category Manager with no way in the configuration to turn them off so I remove the {CAT_THUMB} from the $template_cat_list variable in the theme.php. Below is how you add it back in if you wish.
____________________________________________________________
Find in theme.php:

Code: [Select]
<td class="catrow" align="left"><table border="0"><tr><td><span class="catlink"><b>{CAT_TITLE}</b></span>{CAT_DESC}</td></tr></table></td>

And replace with:

Code: [Select]
<td class="catrow" align="left"><table border="0"><tr><td>{CAT_THUMB}</td><td><span class="catlink"><b>{CAT_TITLE}</b></span>{CAT_DESC}</td></tr></table></td>____________________________________________________________

I've tested this theme without issue on FireFox 3.0.1 (Mac & PC), Safari 3.1.2 and IE 7.0.5.X & IE 6.X (PC).

Items to note:
1.   If you want to add more sidebars with different icons, check in the image folder as there are lots of other icons to use.
2.   When using Internet Explorer, some of the fill-in boxes in the admin forms run off the main content area. This doesn't hurt anything but does look sort of strange when compared to FireFox. These boxes can be made to fit by editing the various pages (ie. profile.php, etc). By the way, Internet Explorer sucks!

Please enjoy the theme.

Cheers,

Billy
« Last Edit: September 23, 2008, 01:50:34 am by Gizmo »
Logged
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: i2Theme-1.1-Classic (Right Edition) for CPG 1.4.x and WordPress 2.6.x
« Reply #1 on: September 23, 2008, 07:29:45 am »

Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: i2Theme-1.1-Classic (Right Edition) for CPG 1.4.x and WordPress 2.6.x
« Reply #2 on: September 23, 2008, 09:27:55 am »

Thanks Billy for uploading this theme. How can i set it the theme to be left aligned on screen? I need the whole gallery to start from the left of the screen to fit into a other site i'm constructing.

Cheers
Hein
Logged

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: i2Theme-1.1-Classic (Right Edition) for CPG 1.4.x and WordPress 2.6.x
« Reply #3 on: September 23, 2008, 11:30:44 am »

In the style.css

find:
Code: [Select]
#wrapper {
width: 770px;
margin: 0px auto;
position: relative;
}


change to:
Code: [Select]
#wrapper {
width: 770px;
margin: 0 0 0 30px;
position: relative;
}


Change the margin's 30px to whatever value you want to move it from the left edge. Make sure you check this in IE since I've only looked at in FF on Mac.
Logged
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: i2Theme-1.1-Classic (Right Edition) for CPG 1.4.x and WordPress 2.6.x
« Reply #4 on: September 23, 2008, 11:36:32 am »

Thanks Gizmo. I'd buy you a coffee if you we were here  ;)
Logged

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: i2Theme-1.1-Classic (Right Edition) for CPG 1.4.x and WordPress 2.6.x
« Reply #5 on: September 23, 2008, 09:55:08 pm »

Thanks Hein! :D I'm glad this theme is working out for you. At least I know one person is using all this work!
Logged
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: i2Theme-1.1-Classic (Right Edition) for CPG 1.4.x and WordPress 2.6.x
« Reply #6 on: September 24, 2008, 08:21:40 am »

I'm totally impressed by the amount of themes you released in short succesion and the quality of those themes. Thanks for your hard work!

At least I know one person is using all this work!
Well, there are two at least: your themes run just fine on the demo as well. ;)
Logged

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: i2Theme-1.1-Classic (Right Edition) for CPG 1.4.x and WordPress 2.6.x
« Reply #7 on: September 24, 2008, 12:28:47 pm »

Thanks Joachim. :) Now that I'm no longer a world traveler and I've been reacquainted with my family and friends, it's fun to be back helping out here with the best open source photo gallery application in existence. I'm also impressed with WordPress and it's community that I've started working on some themes for that app as well and it's really taught me a lot about php and css that you just can't learn from books. The only problem I see for the near future is having to upgrade all these themes when CPG1.5 come out!  :o Thanks again!
Logged
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 22 queries.