Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Removing and changing the buttons in "Transmission" theme  (Read 3444 times)

0 Members and 1 Guest are viewing this topic.

akhoman

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Removing and changing the buttons in "Transmission" theme
« 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 :)
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Removing and changing the buttons in "Transmission" theme
« Reply #1 on: January 22, 2006, 04:19:28 pm »

Did you read the stickies in this board you posted?
Logged

akhoman

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Removing and changing the buttons in "Transmission" theme
« Reply #2 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?


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

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1609
  • Paul V.
Re: Removing and changing the buttons in "Transmission" theme
« Reply #3 on: January 24, 2006, 06:54:19 pm »

There's a new sticky in town that might help you.  Please check it out.
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.