coppermine-gallery.com/forum

Support => cpg1.4 themes/skins/templates => cpg1.4.x Support => Older/other versions => cpg1.4 theme contributions => Topic started by: simkin on March 01, 2006, 12:29:01 PM

Title: ~new theme: Oxygen (PunBB)
Post by: simkin on March 01, 2006, 12:29:01 PM
Hi everyone,

I've been trying to modify the classic theme of Coppermine (http://coppermine-gallery.net/) to match the one in PunBB forum software (http://www.punbb.org/).
I know it could have been done a lot better (I should be ported to divs to be tableless like punbb), but I was too short of time to do that, and my only objective was to obtain a "similar" look with the forum since the integration betwen coppermine and punbb is officially supported.

If you can improve this theme to look even more similar to original Oxygen punbb theme, please feel free to modify it and share with us :)

Thanks CPG && PunBB, I love you!

(Same topic at PunBB Forums) (http://forums.punbb.org/viewtopic.php?pid=63628)

Edit: removed the demo mention, GauGau added the theme to the official demo: thanks!
Title: Re: ~new theme: Oxygen (PunBB)
Post by: Joachim Müller on March 01, 2006, 09:19:56 PM
Demo (http://coppermine-gallery.net/demo/cpg14x/index.php?theme=oxygen) - Download (http://prdownloads.sourceforge.net/coppermine/cpg1.4.x_theme_oxygen.zip?download)
Title: Re: ~new theme: Oxygen (PunBB)
Post by: polle on August 21, 2006, 11:21:09 AM
Hi.
Any idea why albums are not shown in homepage ?
I have the categories and some albums in them, also the admin has set to "yes" the display albums, but they just dont, using classic theme it work, but just changing it to oxygen stopped working.

Any ideas ?


Thanks.
Title: Re: ~new theme: Oxygen (PunBB)
Post by: Nibbler on August 21, 2006, 12:46:52 PM
$template_cat_list does not have the {CAT_ALBUMS} tag. Either add it in yourself in a way that fits the theme or remove the $template_cat_list template from the theme.php.
Title: Re: ~new theme: Oxygen (PunBB)
Post by: polle on August 21, 2006, 01:30:52 PM
Quote from: Nibbler on August 21, 2006, 12:46:52 PM
$template_cat_list does not have the {CAT_ALBUMS} tag. Either add it in yourself in a way that fits the theme or remove the $template_cat_list template from the theme.php.

Thanks for answering, I have this line :
$template_cat_list = <<<EOT

Should I jus remove it completely ?

Thanks.
Title: Re: ~new theme: Oxygen (PunBB)
Post by: Nibbler on August 21, 2006, 01:35:22 PM
What you have is this:


$template_cat_list = <<<EOT

<!-- BEGIN header -->

        <tr>

                <td class="tableh1" width="80%" align="left"><b>{CATEGORY}</b></td>

                <td class="tableh1" width="10%" align="center"><b>{ALBUMS}</b></td>

                <td class="tableh1" width="10%" align="center"><b>{PICTURES}</b></td>

        </tr>

<!-- END header -->

<!-- BEGIN catrow_noalb -->

        <tr>

                <td class="catrow_noalb" colspan="3"><table border="0"><tr><td align="left">{CAT_THUMB}</td><td align="left"><span class="catlink"><b>{CAT_TITLE}</b></span>{CAT_DESC}</td></tr></table></td>

        </tr>

<!-- END catrow_noalb -->

<!-- BEGIN catrow -->

        <tr>

                <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>

                <td class="catrow" align="center">{ALB_COUNT}</td>

                <td class="catrow" align="center">{PIC_COUNT}</td>

        </tr>



<!-- END catrow -->

<!-- BEGIN footer -->

        <tr>

                <td colspan="3" class="tableh1" align="center"><span class="statlink"><b>{STATISTICS}</b></span></td>

        </tr>

<!-- END footer -->

<!-- BEGIN spacer -->

        <img src="images/spacer.gif" width="1" height="7" border="" alt="" /><br />

<!-- END spacer -->



EOT;


Removing it would make it look like this:



Title: Re: ~new theme: Oxygen (PunBB)
Post by: polle on August 21, 2006, 01:41:58 PM
Quote from: Nibbler on August 21, 2006, 01:35:22 PM
What you have is this:


$template_cat_list = <<<EOT

<!-- BEGIN header -->

        <tr>

                <td class="tableh1" width="80%" align="left"><b>{CATEGORY}</b></td>

                <td class="tableh1" width="10%" align="center"><b>{ALBUMS}</b></td>

                <td class="tableh1" width="10%" align="center"><b>{PICTURES}</b></td>

        </tr>

<!-- END header -->

<!-- BEGIN catrow_noalb -->

        <tr>

                <td class="catrow_noalb" colspan="3"><table border="0"><tr><td align="left">{CAT_THUMB}</td><td align="left"><span class="catlink"><b>{CAT_TITLE}</b></span>{CAT_DESC}</td></tr></table></td>

        </tr>

<!-- END catrow_noalb -->

<!-- BEGIN catrow -->

        <tr>

                <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>

                <td class="catrow" align="center">{ALB_COUNT}</td>

                <td class="catrow" align="center">{PIC_COUNT}</td>

        </tr>



<!-- END catrow -->

<!-- BEGIN footer -->

        <tr>

                <td colspan="3" class="tableh1" align="center"><span class="statlink"><b>{STATISTICS}</b></span></td>

        </tr>

<!-- END footer -->

<!-- BEGIN spacer -->

        <img src="images/spacer.gif" width="1" height="7" border="" alt="" /><br />

<!-- END spacer -->



EOT;


Removing it would make it look like this:






Actually from the line I removed "$template_cat_list =" and just leave "<<<EOT" and it work.

Will this affect anything else that I should be awere of ?

Or I should make this another way ?

Thank you.
Title: Re: ~new theme: Oxygen (PunBB)
Post by: Nibbler on August 21, 2006, 01:44:15 PM
You should remove the entire template $template_cat_list template as suggested.
Title: Re: ~new theme: Oxygen (PunBB)
Post by: polle on August 21, 2006, 01:51:57 PM
Quote from: Nibbler on August 21, 2006, 01:44:15 PM
You should remove the entire template $template_cat_list template as suggested.

Sorry its not very clear for me.

By remove the entire template $template_cat_list template you mean deleting:



$template_cat_list = <<<EOT

<!-- BEGIN header -->

        <tr>

                <td class="tableh1" width="80%" align="left"><b>{CATEGORY}</b></td>

                <td class="tableh1" width="10%" align="center"><b>{ALBUMS}</b></td>

                <td class="tableh1" width="10%" align="center"><b>{PICTURES}</b></td>

        </tr>

<!-- END header -->

<!-- BEGIN catrow_noalb -->

        <tr>

                <td class="catrow_noalb" colspan="3"><table border="0"><tr><td align="left">{CAT_THUMB}</td><td align="left"><span class="catlink"><b>{CAT_TITLE}</b></span>{CAT_DESC}</td></tr></table></td>

        </tr>

<!-- END catrow_noalb -->

<!-- BEGIN catrow -->

        <tr>

                <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>

                <td class="catrow" align="center">{ALB_COUNT}</td>

                <td class="catrow" align="center">{PIC_COUNT}</td>

        </tr>



<!-- END catrow -->

<!-- BEGIN footer -->

        <tr>

                <td colspan="3" class="tableh1" align="center"><span class="statlink"><b>{STATISTICS}</b></span></td>

        </tr>

<!-- END footer -->

<!-- BEGIN spacer -->

        <img src="images/spacer.gif" width="1" height="7" border="" alt="" /><br />

<!-- END spacer -->



EOT;


I am not really familiar with this, so if you can please clarify what do you mean by that I will really apreciate it.

Because removing all the quoted code it simply switch to classic theme.

And deleting "$template_cat_list =" from the line make it work.

Thanks.
Title: Re: ~new theme: Oxygen (PunBB)
Post by: polle on August 28, 2006, 02:56:42 AM
Anyone else ?

Thanks
Title: Re: ~new theme: Oxygen (PunBB)
Post by: Stramm on August 28, 2006, 02:59:56 AM
Quote from: polle on August 21, 2006, 01:51:57 PM
By remove the entire template $template_cat_list template you mean deleting:
...


Yes