Aug 29

After getting most of the WordPress theme ports updated it was time to start on another cool theme port. Well, lo and behold Fabri came along just in time to suggest such a theme. So i3theme 1.7 Classic (Center Edition) by N.Design Studio was tackled and if I say so myself, I believe it turned out quite nice (after a couple of hiccups of course).

There are a lot of changes and additions to the theme.php file so be sure to read the “readme.txt” that is in the directory. I know… who reads the readme.txt but don’t complain if you spend hours trying to figure something out and it’s been right in your face the whole time.

The Coppermine admin config has a couple of wide tables which can wreck havoc on a fixed width theme mainly the groups and users managers. There are times when using tables are necessary and this is one of them but still…. I HATE IE! I got tired of hacking css to deal with IE and scroll bars that I figured out a simple script to determine when to use a scroll bar when these pages are accessed. The below code will switch the css styling to use a scroll bar but only on these pages. Now IE won’t go off and show scroll bars because it’s cranky. The function looks like this:

function scrollbar()
{
	if ($_SERVER['PHP_SELF'] == 'usermgr.php' || $_SERVER['PHP_SELF'] == 'groupmgr.php') {
		$content = '<div id="content_scrollbar">';
	} else {
		$content = '<div id="content">';
	}
	return $content;
}

Assign this function to a {TOKEN} in the pageheader:

function pageheader($section, $meta = '')
{
...
    $template_vars = array('{LANG_DIR}' => $lang_text_dir,
        '{TITLE}' => $CONFIG['gallery_name'] . ' - ' . strip_tags(bb_decode($section)),
        '{CHARSET}' => $charset,
        '{META}' => $meta,
        '{GAL_NAME}' => $CONFIG['gallery_name'],
        '{GAL_DESCRIPTION}' => $CONFIG['gallery_description'],
        '{SYS_MENU}' => theme_main_menu('sys_menu'),
        '{SUB_MENU}' => theme_main_menu('sub_menu'),
        '{ADMIN_MENU}' => theme_admin_mode_menu(),
        '{CUSTOM_HEADER}' => $custom_header,
        '{SCROLLBAR}' => scrollbar(),
        );
...
}

then place this {SCROLLBAR} token in the template.html page where the content <div> is located.

...
<!-- custom token for setting conditional CSS style for scrollbar in content area.
This instead of <div id="content"> -->
{SCROLLBAR}
    {GALLERY}
    <div class="cpg_footer">
	{THEME_SELECT_LIST}{LANGUAGE_SELECT_LIST}
	{LANGUAGE_SELECT_FLAGS}
	{VANITY}
    </div>
<!-- End custom token for content -->
...

What’s nice about this is now I don’t have to deal with IE hacks and it’s sure to work with all browsers.

Other features that were added are:

i3theme-1-7-classic

*truncated album descriptions*
*truncated image captions*
*simple search bar*
*opacity driven image links*
*cool admin menu icons by Francois Keller*

Check it out on the Coppermine demo site.

Later!

written by Billy \\ tags: , , , ,


3 Responses to “WordPress Theme: i3theme 1.7 Classic (Center Edition) ported to Coppermine”

  1. 1. Fabri (from cpg forum) Says:

    Hi, I’m posting just to thank you for this theme. You just made an excelent work. I’m using it since release. Honestly, before public release ;)

    My site it’s under construction yet, and it’s just for personal purpouses but this theme gives a good looking.

    Thanks again,

    Cheers,
    -Fabri-

  2. 2. Terry Colbert Says:

    Billy, What’s up?

    Please take a gander at my website on Firefox, Safari and IE8. Looks GREAT on everything but IE8…what’s new right?

    Can you direct me how to fix the theme for IE7/8? Or I can pay you to fix it if it is a lot of coding. Either way I will donate.

    I really love the theme, and want to keep it but if IE8 does nto work I have to dump it. right?

    /Terry \TC\

  3. 3. Billy Says:

    Hi Terry,

    When I visited your site I got a Error 403 – Forbidden so you’ll need to fix that first.

Leave a Reply

i3Theme sponsored by Top 10 Web Hosting, Hosting in Colombia and Web Hosting Reviews