Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: [Solved]: Does anybody have a coppermine for dummies instructional out there?  (Read 6224 times)

0 Members and 1 Guest are viewing this topic.

MrBiggZ

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 24

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!
« Last Edit: May 13, 2008, 08:14:53 am by Joachim Müller »
Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Logged

MrBiggZ

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 24

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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de

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
Logged

MrBiggZ

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 24

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

MrBiggZ

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 24

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

?>
Logged

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D

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.
« Last Edit: May 09, 2008, 11:51:15 pm by just_some_guy »
Logged
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

MrBiggZ

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 24

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

Nibbler

  • Guest

It's a minor detail in a handful of themes; it's not a part of core code so not documented.
Logged

MrBiggZ

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 24

Ok cool .. I can live with that.  I accomplished what I set out to do.  Thanks all for your help!
Logged
Pages: [1]   Go Up
 

Page created in 0.029 seconds with 19 queries.