Removing and changing the buttons in "Transmission" theme Removing and changing the buttons in "Transmission" theme
 

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

Main Menu

Removing and changing the buttons in "Transmission" theme

Started by akhoman, January 22, 2006, 02:58:20 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

akhoman

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

Tranz


akhoman

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

Paver

There's a new sticky in town that might help you.  Please check it out.