coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: akhoman on January 22, 2006, 02:58:20 PM

Title: Removing and changing the buttons in "Transmission" theme
Post by: akhoman on January 22, 2006, 02:58:20 PM
Hi everyone,

I'm very very new to PHP and have been looking around for answers to my problem but without any luck.
I've read the FAQ's, sample themes and been browsing through the forum.

Basically, I can't figure out how to remove some of the side buttons as the theme.php contents are not the same as in previous versions.
I would also like to change the icons next to the home, logins,etc (so that It is like the previous versions).

Would anyone be kind enough to help me solve this problem?
Any kind of help would be appreciated.


Regards,

k :)
Title: Re: Removing and changing the buttons in "Transmission" theme
Post by: Tranz on January 22, 2006, 04:19:28 PM
Did you read the stickies in this board you posted?
Title: Re: Removing and changing the buttons in "Transmission" theme
Post by: akhoman on January 22, 2006, 09:35:03 PM
Hello,


I did read that sticky :) but having trouble implementing it to the transmission theme.
Now I understand that you have to use the "addbutton" function similar to this post right?


Quote from: tgontz on December 22, 2005, 02:42:11 PM
---
// HTML template for sys_menu
$template_sys_menu = <<<EOT
          {BUTTONS}
EOT;

// HTML template for sub_menu
$template_sub_menu = $template_sys_menu;


  // HTML template for template sys_menu spacer
  $template_sys_menu_spacer ="::";

  // HTML template for template sys_menu buttons
  $template_sys_menu_button = <<<EOT
  <!-- BEGIN {BLOCK_ID} -->
        <a href="{HREF_TGT}" title="{HREF_TITLE}">{HREF_LNK}</a> {SPACER}
  <!-- END {BLOCK_ID} -->
EOT;


    addbutton($sub_menu_buttons,'{TOPN_LNK}','{TOPN_TITLE}','{TOPN_TGT}','topn',$template_sub_menu_spacer);
    addbutton($sub_menu_buttons,'{TOPRATED_LNK}','{TOPRATED_TITLE}','{TOPRATED_TGT}','toprated',$template_sub_menu_spacer);
    addbutton($sub_menu_buttons,'{FAV_LNK}','{FAV_TITLE}','{FAV_TGT}','favpics',$template_sub_menu_spacer);
*/

    addbutton($sub_menu_buttons,'{SEARCH_LNK}','{SEARCH_TITLE}','{SEARCH_TGT}','search','');
?>


But, how can I define that for a particular button, I want to use a particular icon? (ie: user mode button, upload file, logout button, etc.)
I'm sorry if this seem like a stupid question, but I'm totally blind in PHP. :)

Could anyone please help me?


Regards,

k
Title: Re: Removing and changing the buttons in "Transmission" theme
Post by: Paver on January 24, 2006, 06:54:19 PM
There's a new sticky in town that might help you.  Please check it out.