Add a button for private messages in your Easy UCP

Forum_easyUCP_Desc

Add a button for private messages in your Easy UCP

Beitragvon Demalii » 19. Okt 2004 01:59

Open:
easy_ucp.tpl

Find:
Code: Alles auswählen
<input type="submit" name="ucp_require" class="liteoption" style="width: 100" value={L_REGISTRATION_INFO}></input>&nbsp;&nbsp;


Before, Add:
Code: Alles auswählen
<input type="button" class="liteoption" style="width: 100" value="PMessages" onclick="parent.location='privmsg.php?folder=inbox'"></input>&nbsp;&nbsp;


Close & Save

And there you have a button for users to get into their inbox instead of having to goto the main forum pages to get a link to it.
Demalii
 
Beiträge: 9
Registriert: 11. Okt 2004 04:14

Beitragvon mgutt » 19. Okt 2004 12:55

little change:

Code: Alles auswählen
                  <input type="button" class="liteoption" style="width: 80%" value={L_PM_INFO} onclick="parent.location='privmsg.php?folder=inbox'"></input><br /><br />


add on:

open language/lang_english/lang_main.php

find:

Code: Alles auswählen
$lang['Registration_info'] =


before add:

Code: Alles auswählen
$lang['PM_info'] = 'PM Box';


open language/lang_german/lang_main.php

find:

Code: Alles auswählen
$lang['Registration_info'] =


before add:

Code: Alles auswählen
$lang['PM_info'] = 'PN Box';


open includes/usercp_viewprofil.php

find:

Code: Alles auswählen
   'L_REGISTRATION_INFO' => $lang['Registration_info'],


before add:

Code: Alles auswählen
   'L_PM_INFO' => $lang['PM_info'],


in addition i changed in the lang_main the description of "Registration_info" because the buttons were to big.
mgutt
User
 
Beiträge: 63
Registriert: 14. Okt 2004 22:23

Beitragvon mgutt » 19. Okt 2004 13:01

hm... there must be a little fault. because it won't show "PM Box"... it shows "PM" only.. ?
mgutt
User
 
Beiträge: 63
Registriert: 14. Okt 2004 22:23

Beitragvon mgutt » 19. Okt 2004 13:04

ok i changed:

Code: Alles auswählen
                  <input type="button" class="liteoption" style="width: 80%" value={L_PM_INFO} onclick="parent.location='privmsg.php?folder=inbox'"></input><br /><br />


to:

Code: Alles auswählen
                  <input type="button" class="liteoption" style="width: 80%" value="{L_PM_INFO}" onclick="parent.location='privmsg.php?folder=inbox'"></input><br /><br />


now it works.
mgutt
User
 
Beiträge: 63
Registriert: 14. Okt 2004 22:23


Zurück zu easy UCP



Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 17 Gäste

cron