mailbox - translate or delete a button

hi,

in dashboard -> my account -> we have the "mailbox". right?

we have inbox, sent, trash, contacts, write ........ 

and under write we have the sentences "compose a new mail" or something like that... 

below contacts we have "friends, faves, contacted" 
... i am looking for this string to translate it!

friends is _friends ,etc.
but i am searching the code where is {0} {1} {2} or something like that.. because i want change the button-content full!
if you havent understand me, than try pls to translate "friends, faves, contacted" for example into "xyxyxyxyxyxy".
you will see you cant do it so easy... ;-)

hope somebody can help me..

best regards!

ps: how i can delete the full button "contacts", but just from the tabel "mailbox"?
can somebody post a instruction? i am not sure, i want just translate the box, or delete it. ^^

--- call me asa! ;-)
Quote · 19 Mar 2011

Hi there,

I just did it on my website ;-)

Here we go:

go to  /member.php

about line 59 you'll find this:

function getBlockCode_Mailbox () {

$sInboxC = _t('_Inbox');

$sSentC = _t('_Sent');

$sWriteC = _t('_Write');

$sTrashC = _t('_Trash');

$sContactsC = _t('_Contacts');

$sLettersC = _t('_letters');

$sUnreadC = strtolower(_t('_Unread'));

$sUnopenedC = strtolower(_t('_Unopened'));

$sComposeNewLetterC = strtolower(_t('_COMPOSE_H'));

$sFriendsC = strtolower(_t('_Friends'));

$sFavesC = strtolower(_t('_Faves'));

$sContactedC = strtolower(_t('_Contacted'));

1 - You can change the three red words, add them as a new language key from your admin panel and write what you like.

2 - You can comment the lines " // " e remove the word you don't want to show.

 

If You want remove the whole contacts button from your account page follow this:

 

in your member.php about line 149 You'll find this:

/*$aContactsKeys = array (

'notify_icon' => $sContactsIcon,

'notify_caption' => '<a href="' . BX_DOL_URL_ROOT . 'communicator.php">' . $sContactsC . '</a>',

'notify_text1' => $sFriendsC . ', ' . $sFavesC . ', ' . $sContactedC,

'notify_text1_class' => 'smallShortInfoUnit',

'bx_if:allow_2nd_line' => array(

'condition' => false,

'content' => array()

)

);

$sContacts = $GLOBALS['oSysTemplate']->parseHtmlByName('member_mail_notify_box.html', $aContactsKeys);*/

 

$sInboxClick = "location.href='" . BX_DOL_URL_ROOT . 'mail.php?mode=inbox' . "'";

$sInboxBlock = $GLOBALS['oFunctions']->genNotifyMessage($sInbox, 'none', true, $sInboxClick);

 

$sOutboxClick = "location.href='" . BX_DOL_URL_ROOT . 'mail.php?mode=outbox' . "'";

$sSentBlock = $GLOBALS['oFunctions']->genNotifyMessage($sSent, 'none', true, $sOutboxClick);

 

$sComposeClick = "location.href='" . BX_DOL_URL_ROOT . 'mail.php?mode=compose' . "'";

$sWriteBlock = $GLOBALS['oFunctions']->genNotifyMessage($sWrite, 'none', true, $sComposeClick);

 

$sTrashClick = "location.href='" . BX_DOL_URL_ROOT . 'mail.php?mode=trash' . "'";

$sTrashBlock = $GLOBALS['oFunctions']->genNotifyMessage($sTrash, 'none', true, $sTrashClick);

 

//$sContactsClick = "location.href='" . BX_DOL_URL_ROOT . 'communicator.php' . "'";

//$sContactsBlock = $GLOBALS['oFunctions']->genNotifyMessage($sContacts, 'none', true, $sContactsClick);

 

 

Just comment the red lines as I did  ;-)

Take care

Quote · 5 Apr 2011

Thank you very much!! Works more than great!! 

Best regards from germany!!

--- call me asa! ;-)
Quote · 17 Apr 2011
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.