forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: MrBiggZ on May 09, 2008, 02:46:05 pm

Title: [Solved]: Does anybody have a coppermine for dummies instructional out there?
Post by: MrBiggZ on May 09, 2008, 02:46:05 pm
Is there any other sources of 'how to' theme for this app? ???  I used coppermine in the past and getting the theme blended in with my site wasn't that difficult.

So what I'm looking for is a more laid out how to.  Just looking at some of the themes and the theme.php file are just out of this world.  I've googled my butt off and really haven't found anything.  Maybe somebody is harboring a good source!

Hope u can help!
Thx!
Title: Re: Does anybody have a coppermine for dummies instructional out there?
Post by: Hein Traag on May 09, 2008, 02:57:27 pm
Read this as well  ? http://forum.coppermine-gallery.net/index.php/topic,24056.0.html (http://forum.coppermine-gallery.net/index.php/topic,24056.0.html)
Title: Re: Does anybody have a coppermine for dummies instructional out there?
Post by: MrBiggZ on May 09, 2008, 03:29:32 pm
Yeah .. i read that one even before the post.  I sit at look and see this 'if bot =' blah blah blah stuff in the theme.php file and wonder what the hell is it. 

There's really nothing about using unordered lists for the sys,sub or admin menus.  This is why I ask.   And christopher, everything in tables!  Why?!  Tables suck!  What's going to happen when they phase out html tables and everything is css.  I went of on a tangent there, sorry.  Oh, looking at a theme.php for another theme I saw the items listed for the admin menu had the actual variable names in braces {}.  Where is that stuff located in the doc .. i never could find it.

See I got my header and footer to work and it blends right in with the rest of my site.  Its just I don't like the way the menus look.  Just trying to find more and more info on them.
Title: Re: Does anybody have a coppermine for dummies instructional out there?
Post by: Joachim Müller on May 09, 2008, 05:07:34 pm
Take a look at the preliminary docs for cpg1.5.x, they contain more detail about theming, and most of the stuff in it is true for cpg1.4.x as well: http://documentation.coppermine-gallery.net/theme.htm
Title: Re: Does anybody have a coppermine for dummies instructional out there?
Post by: MrBiggZ on May 09, 2008, 05:15:51 pm
I'll dig up what i'm talking about when i get home tonight.  I have no way to access what I need here at work.
Title: Re: Does anybody have a coppermine for dummies instructional out there?
Post by: MrBiggZ on May 09, 2008, 11:13:13 pm
Ok here we go.  Found the file that has things I questions about!  It's the project_vii theme.  Where can I find all the info about the 'tokens' {} that are in this file??  This is the stuff I don't see in the doc!  Please please please .. point me to it! *in a begging manner*

Code: [Select]
// HTML template for sub_menu
if ($CONFIG['custom_lnk_url'] != '') {

$template_sub_menu = <<<EOT
                        <table border="0" cellpadding="0" cellspacing="0">
                                <tr>
<!-- BEGIN custom_link -->
                                                                                <td class="top_menu_left_bttn">
                                                <a href="{CUSTOM_LNK_TGT}" onmouseover="MM_showHideLayers('SYS_MENU','','hide')" title="{CUSTOM_LNK_TITLE}">{CUSTOM_LNK_LNK}</a>
                                        </td>
                                        <td><img src="themes/project_vii/images/menu_spacer.gif" width="2" height="35" border="0" alt="" /><br /></td>
<!-- END custom_link -->
                                        <td class="top_menu_bttn">
                                                <a href="{ALB_LIST_TGT}" onmouseover="MM_showHideLayers('SYS_MENU','','hide')" title="{ALB_LIST_TITLE}">{ALB_LIST_LNK}</a>
                                        </td>
                                        <td><img src="themes/project_vii/images/menu_spacer.gif" width="2" height="35" border="0" alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="javascript:;" onmouseover="MM_showHideLayers('SYS_MENU','','show')">@</a>
                                        </td>
                                        <td><img src="themes/project_vii/images/menu_spacer.gif" width="2" height="35" border="0"  alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="{LASTUP_TGT}" onmouseover="MM_showHideLayers('SYS_MENU','','hide')" title="{LASTUP_TITLE}">{LASTUP_LNK}</a>
                                        </td>
                                        <td><img src="themes/project_vii/images/menu_spacer.gif" width="2" height="35" border="0"  alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="{LASTCOM_TGT}" onmouseover="MM_showHideLayers('SYS_MENU','','hide')" title="{LASTCOM_LNK}">{LASTCOM_LNK}</a>
                                        </td>
                                        <td><img src="themes/project_vii/images/menu_spacer.gif" width="2" height="35" border="0"  alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="{TOPN_TGT}" onmouseover="MM_showHideLayers('SYS_MENU','','hide')" title="{TOPN_LNK}">{TOPN_LNK}</a>
                                        </td>
                                        <td><img src="themes/project_vii/images/menu_spacer.gif" width="2" height="35" border="0"  alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="{TOPRATED_TGT}" onmouseover="MM_showHideLayers('SYS_MENU','','hide')" title="{TOPRATED_LNK}">{TOPRATED_LNK}</a>
                                        </td>
                                        <td><img src="themes/project_vii/images/menu_spacer.gif" width="2" height="35" border="0"  alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="{FAV_TGT}" onmouseover="MM_showHideLayers('SYS_MENU','','hide')" title="{FAV_LNK}">{FAV_LNK}</a>
                                        </td>
                                        <td><img src="themes/project_vii/images/menu_spacer.gif" width="2" height="35" border="0"  alt="" /><br /></td>
                                        <td class="top_menu_right_bttn">
                                                <a href="{SEARCH_TGT}" onmouseover="MM_showHideLayers('SYS_MENU','','hide')" title="{SEARCH_LNK}">{SEARCH_LNK}</a>
                                        </td>
                                </tr>
                        </table>
EOT;



} else {
$template_sub_menu = <<<EOT
                        <table border="0" cellpadding="0" cellspacing="0">
                                <tr>
<!-- BEGIN custom_link -->
<!-- END custom_link -->
                                        <td class="top_menu_left_bttn">
                                                <a href="{ALB_LIST_TGT}" onmouseover="MM_showHideLayers('SYS_MENU','','hide')" title="{ALB_LIST_TITLE}">{ALB_LIST_LNK}</a>
                                        </td>
                                        <td><img src="themes/project_vii/images/menu_spacer.gif" width="2" height="35" border="0" alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="javascript:;" onmouseover="MM_showHideLayers('SYS_MENU','','show')">@</a>
                                        </td>
                                        <td><img src="themes/project_vii/images/menu_spacer.gif" width="2" height="35" border="0"  alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="{LASTUP_TGT}" onmouseover="MM_showHideLayers('SYS_MENU','','hide')" title="{LASTUP_TITLE}">{LASTUP_LNK}</a>
                                        </td>
                                        <td><img src="themes/project_vii/images/menu_spacer.gif" width="2" height="35" border="0"  alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="{LASTCOM_TGT}" onmouseover="MM_showHideLayers('SYS_MENU','','hide')" title="{LASTCOM_LNK}">{LASTCOM_LNK}</a>
                                        </td>
                                        <td><img src="themes/project_vii/images/menu_spacer.gif" width="2" height="35" border="0"  alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="{TOPN_TGT}" onmouseover="MM_showHideLayers('SYS_MENU','','hide')" title="{TOPN_LNK}">{TOPN_LNK}</a>
                                        </td>
                                        <td><img src="themes/project_vii/images/menu_spacer.gif" width="2" height="35" border="0"  alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="{TOPRATED_TGT}" onmouseover="MM_showHideLayers('SYS_MENU','','hide')" title="{TOPRATED_LNK}">{TOPRATED_LNK}</a>
                                        </td>
                                        <td><img src="themes/project_vii/images/menu_spacer.gif" width="2" height="35" border="0"  alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="{FAV_TGT}" onmouseover="MM_showHideLayers('SYS_MENU','','hide')" title="{FAV_LNK}">{FAV_LNK}</a>
                                        </td>
                                        <td><img src="themes/project_vii/images/menu_spacer.gif" width="2" height="35" border="0"  alt="" /><br /></td>
                                        <td class="top_menu_right_bttn">
                                                <a href="{SEARCH_TGT}" onmouseover="MM_showHideLayers('SYS_MENU','','hide')" title="{SEARCH_LNK}">{SEARCH_LNK}</a>
                                        </td>
                                </tr>
                        </table>
EOT;
}

?>
Title: Re: Does anybody have a coppermine for dummies instructional out there?
Post by: just_some_guy on May 09, 2008, 11:24:07 pm
I'm not sure if there is any written explanation about the tokens for cpg 1.4.x, did you check the preliminary cpg 1.5.x docs?

In a nut shell - the tokens represent data that has been defined in the server-side theme files, such as file paths etc. This data can then be used in the template.html file as "tokens". In the code you posted above the tokens represent the information about the menu elements; {SEARCH_TGT}, i assume means the link to the search file and {SEARCH_LNK} being the text of the link. If you wish to see how the tokens are defined etc. you should look at the sample theme's theme.php.
Title: Re: Does anybody have a coppermine for dummies instructional out there?
Post by: MrBiggZ on May 10, 2008, 12:33:19 am
Yeah I know what the tokens are/do. 

But what about things like MM_showHideLayers where is this stuff in the doc?



I did check the 1.5 doc too.
Title: Re: Does anybody have a coppermine for dummies instructional out there?
Post by: Nibbler on May 10, 2008, 04:54:35 am
It's a minor detail in a handful of themes; it's not a part of core code so not documented.
Title: Re: Does anybody have a coppermine for dummies instructional out there?
Post by: MrBiggZ on May 12, 2008, 02:16:33 pm
Ok cool .. I can live with that.  I accomplished what I set out to do.  Thanks all for your help!