Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: nguyen on February 11, 2008, 03:56:58 PM

Title: Yahoo!Mail button in menu
Post by: nguyen on February 11, 2008, 03:56:58 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1089)

This will insert a Yahoo!Mail button in the main menu for default theme, and you can change it to other email...
For other theme and please see install file. You can change link and text in next version
Title: Re: Yahoo!Mail button in menu
Post by: nicknitro71 on February 13, 2008, 03:04:29 PM
I'm using dilber mc what do I need to change?

Thanks
Title: Re: Yahoo!Mail button in menu
Post by: nguyen on February 14, 2008, 07:02:19 PM
Hi,
If you use other theme, you can see install file and do it by manual. Or see how to do in 3 steps:

1. open themes/dilbermc/index.template.php find code

// Show the [help] button.
echo'
<td align="center" class="menubg' , $current_action == 'help' ? '2' : '' , '">
<a href="', $scripturl, '?action=help">' , $txt[119] , '</a>
</td>';


2. copy code below and add before

// Show the [QTO email] button.
echo'
<td align="center" class="menubg' , $current_action == 'Picture' ? '2' : '' , '">
<a href=http://yourlink', ' target="_blank">', $txt['Email'], '</a>
</td>';


3. open index.yourlanguage.php


add $txt['Email'] = 'Yahoo!mail'; or any if you want before ?>


Good luck,
Title: Re: Yahoo!Mail button in menu
Post by: Apllicmz on October 28, 2010, 10:24:17 PM
When update incluide portuguese_pt

<file name="$themedir/languages/index.portuguese_pt.php" error="skip">
        <operation>
        <search position="before"><![CDATA[$txt[121] = 'Remover a mensagem';]]></search>
<add><![CDATA[$txt['Yahoo!Mail'] = 'Mail do Yahoo!';
                ]]></add>
        </operation>
        </file>
       
        <file name="$themedir/languages/index.portuguese_pt-utf8.php" error="skip">
        <operation>
        <search position="before"><![CDATA[$txt[121] = 'Remover a mensagem';]]></search>
<add><![CDATA[$txt['Yahoo!Mail'] = 'Mail do Yahoo!';
                ]]></add>
        </operation>
        </file>