forum.coppermine-gallery.net

Support => cpg1.4 themes/skins/templates => cpg1.4.x Support => Older/other versions => cpg1.4 theme contributions => Topic started by: Gizmo on August 09, 2006, 07:00:02 pm

Title: Connections-Theme for cpg1.4.x and WordPress 1.5
Post by: Gizmo on August 09, 2006, 07:00:02 pm
Hey All,

After being away for many weeks this summer (mostly working but still having fun in France and the US Mid-West  :D), I worked on a new Coppermine theme to break up the travel. Meeting several people who write blogs and wanting to incorporate a photo gallery into their blogs, I decided to look to see what I could come up with. I came across a competition for WordPress themes, so, I decided to port the winner, "Connections" byPatricia Muller - http://www.patriciamuller.com/ (http://www.patriciamuller.com/) for use in Coppermine. I think it's a very good theme and have found many variations of it on the web. The contest link is http://www.alexking.org/software/wordpress/themes/blog/2005/02/27/theme-competition/ (http://www.alexking.org/software/wordpress/themes/blog/2005/02/27/theme-competition/).

The width of the gallery table is 520 pixels so to prevent the scroll bar from being visible, it's best to use 4 columns for thumbnails (Config => Thumbnail view => Number of columns on thumbnail page = 4) and 4 items in the film strip (Config => Image view => Number of items in film strip = 4). The scroll bar allows for a couple of the configuration menu items to display correctly since the table width is less than 600 pixels.

[Edit] Also, this theme is really geared towards intermediate photos sizes of less than 460 pixels. The default in Coppermine is 400 and works great but if you try to go above 460 or so, you will get the scroll bar as when viewing the Coppermine demo. The popup size can be any size though. This setting is in Config => Files and thumbnails settings => Max width or height of an intermediate picture/video ** = 400 (default).

I'm also nearly finished with "Red Train" theme that won the "Mini Poobah" award and should have it posted over the weekend. I'd like to also port the "Plain Ol� Poobah - Rin" theme but it has a much smaller main content window and will require some extra work and testing. Testing themes is what takes all the time!   ;)

The screenshots show the theme with and without the configuration menu.

Enjoy!

Cheers,

Billy
Title: Re: Connections-Theme for cpg1.4.x and WordPress 1.5
Post by: Sami on August 09, 2006, 09:33:57 pm
Nice work Billy & welcome back :)
Title: Re: Connections-Theme for cpg1.4.x and WordPress 1.5
Post by: Joachim Müller on August 10, 2006, 12:04:18 am
Demo (http://coppermine-gallery.net/demo/cpg14x/index.php?theme=connections) - Download (http://prdownloads.sourceforge.net/coppermine/cpg1.4.x_theme_connections.zip?download) Download (http://downloads.sourceforge.net/coppermine/cpg1.4.x_theme_connections_v1.1.zip) [Edit GauGau] Reflecting release of new version with a new download link [/Edit]

Excellent work. I added the custom_header token to the zip - it must be there, won't hurt if you don't use it.
Title: Re: Connections-Theme for cpg1.4.x and WordPress 1.5
Post by: Gizmo on August 10, 2006, 01:07:03 am
Thanks guys and sorry GauGau about the header tag missing, I knew there was something I was suppose to add and just couldn't think of it and figured someone would point it out.
Title: Re: Connections-Theme for cpg1.4.x and WordPress 1.5
Post by: Davide Renda on August 10, 2006, 11:53:53 pm
Very nice theme which I'd like to use, but doesn't work on my modded gallery (Stramm's mod). It bugs when calling login.php and logout.php, sending back to an error page; I had to maually erase the folder as I could not log back in.
I suppose it has to deal with the login form, but can't figure out how to work around it. Any idea?
Title: Re: Connections-Theme for cpg1.4.x and WordPress 1.5
Post by: Gizmo on August 11, 2006, 12:59:53 am
I downloaded the theme from GauGau's link above and it ran fine on my gallery. Logging in and out gave no problems so I'll have to download Stramm's mod and install it since my galleries are standard CPG installs with only minor, tried and trusted plugins.
Title: Re: Connections-Theme for cpg1.4.x and WordPress 1.5
Post by: Sami on August 11, 2006, 07:12:43 am
@lontano: can you post the error message here?
Title: Re: Connections-Theme for cpg1.4.x and WordPress 1.5
Post by: Davide Renda on August 11, 2006, 08:06:55 am
@lontano: can you post the error message here?
I will re-install it this evening and paste a screen-shot (sorry, but must go to work now!!)
Title: Re: Connections-Theme for cpg1.4.x and WordPress 1.5
Post by: Davide Renda on August 11, 2006, 07:32:49 pm
Here's the error message I get after having logged out

Code: [Select]
Template error
Failed to find block 'my_friends'(#(<!-- BEGIN my_friends -->)(.*?)(<!-- END my_friends -->)#s) in :

                                        <ul id="topnav">

<!-- BEGIN home -->
                                                <li><a href="{HOME_TGT}" title="{HOME_TITLE}">{HOME_LNK} | </a></li>
<!-- END home -->
<!-- BEGIN my_gallery -->
                                                <li><a href="{MY_GAL_TGT}" title="{MY_GAL_TITLE}">{MY_GAL_LNK} | </a></li>
<!-- END my_gallery -->
<!-- BEGIN allow_memberlist -->
                                                <li><a href="{MEMBERLIST_TGT}" title="{MEMBERLIST_TITLE}">{MEMBERLIST_LNK} | </a></li>
<!-- END allow_memberlist -->

<!-- BEGIN faq -->
                                                <li><a href="{FAQ_TGT}" title="{FAQ_TITLE}">{FAQ_LNK} | </a></li>
<!-- END faq -->


<!-- BEGIN upload_pic -->
                                                <li><a href="{UPL_PIC_TGT}" title="{UPL_PIC_TITLE}">{UPL_PIC_LNK} | </a></li>
<!-- END upload_pic -->
<!-- BEGIN register -->
                                                <li><a href="{REGISTER_TGT}" title="{REGISTER_TITLE}">{REGISTER_LNK} | </a></li>
<!-- END register -->
<!-- BEGIN login -->
                                                <li><a href="{LOGIN_TGT}" title="{LOGIN_LNK}">{LOGIN_LNK}</a></li>
<!-- END login -->

                                        </ul>

The only way to have the gallery up and running again is to erase the "connection" folder from ftp and log in with the standard theme.

I must add I also run "Final Extract" plugin and have removed the LOGIN field (as there is already a login form with the Stramm's mod).
Title: Re: Connections-Theme for cpg1.4.x and WordPress 1.5
Post by: Joachim Müller on August 11, 2006, 07:37:28 pm
Happens because you use Stramm's mod pack. Will happen with all regular coppermine themes that haven't specifically been modified to be used with Stramm's modpack. Clearly, this is a modpack issue, not an issue of this particular theme (which works fine with regular coppermine installs) and should therefor not be discussed in this thread. If you have issues related to the modpack, you should reply to the one and only modpack thread - because that's the only place we allow modpack questions to be posted. Make sure to have read the instructions that come with the modpack before asking questions.
Title: Re: Connections-Theme for cpg1.4.x and WordPress 1.5
Post by: Sami on August 11, 2006, 07:39:22 pm
as the error said you probably should have a button with my_friends name it's not regular button and as you are using stramm's mod so it's related to his mod ,BTW you can add these two tags to your button definition before <!-- BEGIN home -->
Code: [Select]
<!-- BEGIN my_friends -->
<!-- END my_friends -->
and then it should work ...

Edit:
sorry I didn't see the post of Gaugau , he is right let's take this issue to modpack threads !
Title: Re: Connections-Theme for cpg1.4.x and WordPress 1.5
Post by: Stramm on August 11, 2006, 08:42:50 pm
in $template_sys_menu
Code: [Select]
<!-- BEGIN my_friends -->
                                                <li><a href="{MY_BUDDY_TGT}" title="{MY_BUDDY_LNK}">{MY_BUDDY_LNK} | </a></li>
<!-- END my_friends -->

Title: Re: Connections-Theme for cpg1.4.x and WordPress 1.5
Post by: Davide Renda on August 11, 2006, 08:50:26 pm
Oki doki, didn't mean to mess around with the thread ;-)

PS. Since 3 years I'm using CPG I never had such error message for a theme, so I panicked!!  ::)

PS2. with that little amendment it works fine also on the modded CPG - thx all  :)
Title: Re: Connections-Theme for cpg1.4.x and WordPress 1.5
Post by: Tranz on September 22, 2006, 07:14:56 pm
Thanks for creating and providing these Wordpress themes, Gizmo! It's pretty nifty... I modified the links between the blog and gallery so that when switching between the apps, the same theme is used for both. I also used Connections as the basis of porting my blog theme, Ocadia, to Coppermine. I tried to start from an existing Coppermine theme, but that failed pretty quickly. Thanks for providing the themes and the starting point for future WP themes. :)
Title: Re: Connections-Theme for cpg1.4.x and WordPress 1.5
Post by: Gizmo on September 23, 2006, 02:38:33 am
Hey Tranz,

Thanks for the kind words but believe me, the hardest part was already done by the talented people who created these WordPress themes. It's funny that you use Ocadia as I have nearly finished this port to Coppermine. I find Rebecca's themes to be really elegant and have a couple in the starting phases so keep a look out for them. If only I had that kind of artistic ability but since I don't, the least I can do for the Coppermine community is port some great themes for everyone to use.

Cheers  :D

Gizmo
Title: Re: Connections-Theme for cpg1.4.x and WordPress 1.5
Post by: Tranz on September 23, 2006, 02:44:48 am
Yeah, I really like Rebecca's sense of artistry. I would like to redo the header but wouldn't know where to start.

I'm glad that you are porting Ocadia. I had to resist the urge to make the request since you've done so much anyway.  I couldn't wait, plus I'm on vacation so I had time to kill. It would be great if you release the port because that means I don't have to prep my theme for release. I would do it, but as you said, testing takes a lot of time. It was a huge accomplishment for myself to even make it work for my site, but to make it generic for others to use... aiya. :)

I'm looking forward to those upcoming themes. Thanks!
Title: Re: Connections-Theme for cpg1.4.x and WordPress 1.5
Post by: linx on November 05, 2006, 03:49:15 am
Only thing i miss in this theme is the button "Upload files" for registered users... Am i the only thats missing that?
Title: Re: Connections-Theme for cpg1.4.x and WordPress 1.5
Post by: Gizmo on November 05, 2006, 05:20:12 am
Did you look at the very top of the page to the left of the logout button? It's there for me if I login in as a registered users (non-admin).
Title: Re: Connections-Theme for cpg1.4.x and WordPress 1.5
Post by: danibo on November 17, 2006, 09:18:47 am
Hallo

Thanks for the wonderful work.
After solving the problem with Stramms Mod, which I use only because the thumbnails become much nicer
I adapted the very nice and clean layout to a more neutral one.

http://www.bilderbank.ch/cpg149_test (http://www.bilderbank.ch/cpg149_test)

If anybody is interested let me know.

The only problem I have is, that "Final Extrac" works only for the links on the top-menue (login, etc) and not for the ones on the right side in the Gallery-Menue like "search".

For the moment I do not use the theme in connection with WordPress.

Thanks
Daniel
Title: Re: Connections-Theme for cpg1.4.x and WordPress 1.5
Post by: Gizmo on November 17, 2006, 12:09:26 pm
Glad you like it. Unfortunately the Final_Extract plugin doesn't work on every menu structure (at least not yet) but you can remove the menus by removing or commenting out (the preferred method) the links in the theme.php file. If any menu you wish to remove has a BEGIN and END tag, you must leave them there and only edit what's between them. To remove the search link this is what the code for the $template_sub_menu would like like...

Code: [Select]
// HTML template for sub menu
$template_sub_menu = <<<EOT
                                        <ul>
<!-- BEGIN custom_link -->
                                            <li><a href="{CUSTOM_LNK_TGT}" title="{CUSTOM_LNK_TITLE}">{CUSTOM_LNK_LNK}</a></li>
<!-- END custom_link -->
<!-- BEGIN album_list -->
                                            <li><a href="{ALB_LIST_TGT}" title="{ALB_LIST_TITLE}">{ALB_LIST_LNK}</a></li>
<!-- END album_list -->
                                            <li><a href="{LASTUP_TGT}" title="{LASTUP_LNK}">{LASTUP_LNK}</a></li>
                                            <li><a href="{LASTCOM_TGT}" title="{LASTCOM_LNK}">{LASTCOM_LNK}</a></li>
                                            <li><a href="{TOPN_TGT}" title="{TOPN_LNK}">{TOPN_LNK}</a></li>
                                            <li><a href="{TOPRATED_TGT}" title="{TOPRATED_LNK}">{TOPRATED_LNK}</a></li>
                                            <li><a href="{FAV_TGT}" title="{FAV_LNK}">{FAV_LNK}</a></li>
                                            <!-- <li><a href="{SEARCH_TGT}" title="{SEARCH_LNK}">{SEARCH_LNK}</a></li> -->
                                        </ul>

EOT;
Title: Re: Connections-Theme for cpg1.4.x and WordPress 1.5
Post by: kenjadams on December 02, 2006, 05:15:47 pm
Hi Billy, i love the Connections theme, great work. However i have a problem using it, the scroll bars continue to exist even if i reduce the number of the thumbnails. Here's what i mean;

[Edit GauGau] Replaced hotlinked images with attachments [/Edit]

Does that have to do with the width of the gallery table? Is it possible to increase it? Thanks!
Title: Re: Connections-Theme for cpg1.4.x and WordPress 1.5
Post by: Gizmo on December 02, 2006, 07:20:00 pm
Thanks Kenj for the compliment. I believe this was my first adventure into creating a narrow theme with a sidebar so there are probably some issues. I may not have been clear in the initial post on what settings you should use in the Config and I have since learned (through the help of this forum I might add) that I can set the proper Config settings through the theme.php file. This way I can prevent some of these issues. I've attached a new theme.php file in the attachment so please download, unzip, upload and give it a try.

The Config settings I am controlling through this file are below and you can find them near the top in the file:
Code: [Select]
// 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"
$CONFIG['first_level'] = 0; //sets "Show first level album thumbnails in categories = no".

Let me know how you make out.

Cheers,

Gizmo
Title: Re: Connections-Theme for cpg1.4.x and WordPress 1.5
Post by: danibo on December 04, 2006, 10:10:39 am
Hallo

When you have long Filenames and you want to show them under the thumbnails in Albumview and in the Filmstrip, it happens, that the thumbnails do not fit in the frame...
If you reduce the number of shown thumbnails it works of course...  Took me a while to find that out, because in some albums the same-size-thumbs where fitting in the frame and in others not...
Anyway. I like the design very much.
Would it be very difficult to make the framesettigs wider (bigger). If  you do not use it with Wordpress it should not bother...

Thanks
Daniel


Title: Re: Connections-Theme for cpg1.4.x and WordPress 1.5
Post by: Gizmo on December 04, 2006, 01:17:53 pm
Thanks Daniel. If you look at the header and main content images, you'll see that they are fixed width images. These would have to be redone and then the css adjusted to make it all fit. Give it a try and if you succeed, I'm sure a lot of people would download and use it. I had to make a decision on all the themes I've ported to either go with the WP layout or redo them with wider widths but I chose WP as it would be a lot easier (and I use WP). I do like the fact that a lot of people like these themes and ask to have them widened and hoped it would drive people to try it themselves and maybe learning something cool in the process. I had very little experience in theming when I posted my first theme and I've gained ALOT of knowledge about html, css and php in the process. This knowledge isn't only for Coppermine but can be carried over to WordPress, SMF or making individual websites not to mention the 100's of packages out there. I will warn you though, this learning process can be very addicting so be prepared to make room in your head for all that you will learn!  ;D
Title: Re: Connections-Theme for cpg1.4.x and WordPress 1.5
Post by: kenjadams on December 10, 2006, 12:37:27 am
Thanks Kenj for the compliment. I believe this was my first adventure into creating a narrow theme with a sidebar so there are probably some issues. I may not have been clear in the initial post on what settings you should use in the Config and I have since learned (through the help of this forum I might add) that I can set the proper Config settings through the theme.php file. This way I can prevent some of these issues. I've attached a new theme.php file in the attachment so please download, unzip, upload and give it a try.

The Config settings I am controlling through this file are below and you can find them near the top in the file:
Code: [Select]
// 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"
$CONFIG['first_level'] = 0; //sets "Show first level album thumbnails in categories = no".

Let me know how you make out.

Cheers,

Gizmo

Hi Billy, thanks for your answer, I no longer have that problem. However, now a question mark appears at the top of the page;

[Edit GauGau] Replaced hotlinked images with attachments [/Edit]

and the homepage is aligned to the left however when i open a category, it is centered. You could see it in the above pics.
Thanks again,
Ken
Title: Re: Connections-Theme for cpg1.4.x and WordPress 1.5
Post by: Gizmo on December 10, 2006, 04:22:08 am
It's hard to tell from the images but it looks like you have a rouge ?> closing php tag. Did you add any php code to your template.html? Check your theme.php file as well. If you can't find it, post a link to your gallery. It's possible that once you fix this issue, them pages may correct themselves.
Title: Re: Connections-Theme for cpg1.4.x and WordPress 1.5
Post by: kenjadams on December 10, 2006, 02:21:23 pm
Thanks Billy, i checked the theme.php file and there was an additional "?>" at the end. I erased it and now everything works fine. Thanks again. :)
Title: Re: Connections-Theme for cpg1.4.x and WordPress 1.5
Post by: kenjadams on January 13, 2007, 09:14:36 pm
Hi Billy, it's me again.  I dont know how to tell this but i'd like to know if its possible to put pictures near the category name at the home page of the gallery. Like this one; http://lnx.mariahlambsunited.net/gallery/
Thanks.

Title: Re: Connections-Theme for cpg1.4.x and WordPress 1.5
Post by: Gizmo on January 13, 2007, 11:41:34 pm
Are you talking about category thumbnails? If so here's the manual link - http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#cat_cp (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#cat_cp).
Title: Re: Connections-Theme for cpg1.4.x and WordPress 1.5
Post by: kenjadams on January 14, 2007, 10:38:53 am
Thanks i did not know how to do that.  :)
Title: Re: Connections-Theme for cpg1.4.x and WordPress 1.5
Post by: demogirl on January 24, 2007, 01:30:04 pm
Hello,
I have just donwloaded CPG1.4 and uploaded the template.  I am receiving the following error:

config.php

?>
Fatal error: Call to undefined function: pageheader() in /home/httpd/vhosts/mydomain.com/httpdocs/v2/config.php on line 475

When I go to that particular line reference, code is:

pageheader($lang_config_php['title']);

Seems pretty normal to me.

The installation was a simple upload and no alterations have been made - it's just a default install.  Only change was to upload the templates (this one and K2) and it's broken my installation.

If anyone could kindly offer some suggestions as to a possible workaround that would be fab. This is an awesome template!

Thanks,

Lolla




Title: Re: Connections-Theme for cpg1.4.x and WordPress 1.5
Post by: Gizmo on January 24, 2007, 02:18:36 pm
I assume that the gallery is working with the themes that came with the CPG installation such as the Classic theme. One question, after downloading, did you unzip the themes before uploading to your FTP site?
Title: Re: Connections-Theme for cpg1.4.x and WordPress 1.5
Post by: Nibbler on January 24, 2007, 02:21:58 pm
Are you sure you are not using 1.3?
Title: Re: Connections-Theme for cpg1.4.x and WordPress 1.5
Post by: demogirl on January 25, 2007, 03:03:40 am
Hi Gizmo, Nibbler...
Thanks very much for the speedy reply.  I actually checked the version and it was the older version. I have since upgraded to the latest version and run the template again without a hitch.

Thanks for the very easy fix.  This is still all very new to me.

Kind Regards,
Lolla
Title: Re: Connections-Theme for cpg1.4.x and WordPress 1.5
Post by: Farnsi on May 08, 2007, 09:22:58 pm
Hi guys, i have this little problem with this wonderful theme. I got this user who likes to write some more information to his albums then the others. so far so good, but it "destroys" the way the albumview looks.
i made a screenshot, so you can have a look at what i'm talking about. I guess there has to be some sort of tag in the css-sheet or anywhere else, that puts the thumbnail of the album on top.
could you tell me how i can change this?

thanks a lot!  :)
Title: Re: Connections-Theme for cpg1.4.x and WordPress 1.5
Post by: Nibbler on May 08, 2007, 10:22:14 pm
Easier if you post a link so we can play with the css ourselves.
Title: Re: Connections-Theme for cpg1.4.x and WordPress 1.5
Post by: Farnsi on May 15, 2007, 01:11:40 pm
sorry, a bit late, got a lot of work to do right now.
here you go: Link to the User-Gallery where the problem appears (http://Link to the User-Gallery where the problem appears)
Tell me if you need anything more, for example a test login or else.
Thank you!  :)
Title: Re: Connections-Theme for cpg1.4.x and WordPress 1.5 - modpack
Post by: Joachim Müller on July 09, 2007, 08:46:03 am
Stramm has ported this theme to be used with his modpack as well. All users running Stramm's modpack who would like all modpack features to work with this theme should review his thread "Theme connections for modpack - download (http://forum.coppermine-gallery.net/index.php?topic=45047.0)".
Title: Re: Connections-Theme for cpg1.4.x and WordPress 1.5
Post by: Bernique on November 20, 2007, 11:31:53 am
Hello all,

to make it quick, I'm a newbies in Coppermine unless I have some experience with phpBB (see my forum about old moped http://cyclogalet.celeonet.fr/forumcyclogalet/ )

By the way, I need to create a photo gallery to replace an existing related site which is a nightmare to maintain with the existing solution (actual site to be replaced with Coppermine solution: http://bernique.free.fr/documathequecyclogalet/ ).

So I made a test at this location: http://documatheque.galet.free.fr/

As you can see, I'm trying to use Connections' theme with some minor modifications (top picture)... and this is where I'm looking for some experience :)
I whish I could do the following:
Thanks for your help on those basics questions ;D
Title: Re: Connections-Theme for cpg1.4.x and WordPress 1.5
Post by: Joachim Müller on November 20, 2007, 03:34:24 pm
change the order of the left side menus (GALLERY, ABOUT THE SITE...)... but I cannot easily find those in the theme.php file ???
Oh well... the theme comes with three files that you could possibly edit with a plain text editor, yet you were not able to look at those three files?
Anyway, edit themes/connections/template.html and find
Code: [Select]
About the Siteand edit as you see fit. This question clearly doesn't belong into this thread - we expect you to be able to use a plain text editor and hit [Ctrl]+[F] in that editor.


in the random file section, display 4 thumbs instead of 6 for evident design issues
This theme doesn't override the number of files displayed in one row - it takes into account whatever you specify in coppermine's config. Subsequently, you'll need to specify 6 columns per thumbnail row.

and the same in Last addition section
Same answer applies


Thanks for your help on those basics questions ;D
Those are indeed very basic questions that don't belong into an announcement thread for a particular theme contribution. If you need to see this discussed more detailed, start a thread of your own (and remember our "one question per thread" policy on the support board).
Title: Re: Connections-Theme for cpg1.4.x and WordPress 1.5
Post by: skidpics on December 25, 2007, 09:04:08 am
awesome theme!  I am using the modpack version.

Question: How do I get the album descriptions to show under the thumbnail, rather to the side and make it only show a specified lenght?

Title: Re: Connections-Theme for cpg1.4.x and WordPress 1.5
Post by: Joachim Müller on December 25, 2007, 02:55:42 pm
Announcement threads for particular themes (and that's what this very thread here is) are meant to explain how to get the theme workring in the first place. You require a modification of the theme, which should be discussed in a separate thread. Start a thread of your own, posting a link to your gallery and attaching your zipped theme. Of course an explnanation what you're trying to accomplish should be posted in that thread as well.
You have been told very often already how this forum is organized - you better start respecting board rules if you want continued support! >:(
Title: Re: Connections-Theme for cpg1.4.x and WordPress 1.5
Post by: Gizmo on August 14, 2008, 02:25:14 pm
Hello All,

I've upgraded Connections with many of the features that I've added to the other ported Wordpress themes I've done. Since few people read the "readme.txt" files in downloads, I've copied the contents here but it's long. Please read through this carefully before asking questions. Take special note of my removing the thumbnail from the category lists. The CPG demo site has quite an expansive category and album layout and I wanted to see how this looked on the demo site so this is also my test.

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'] = 5; //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 = 3"
$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 (PC). Sorry I do not have IE 6.X on my PC and will not test this browser version. As always let me know here if you encounter any problems but if you have questions about editing or changing this theme please post a new thread.

Enjoy and make all the changes you need to suit your gallery but please leave the credits in the template.html to support my work as well as the theme author.

Cheers,

Billy