Log in

View Full Version : End-User Options - Private Messaging in first place on UserCP


Sofia
05-25-2009, 10:00 PM
This mod allows you to place Private Messaging in first place, on the UserCP



http://www.picdo.net/Fichiers/1e61e36f149af9a99be601e4a9affbe/pmess.png



https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=214590

1. Upload

Upload all images into images/misc




2. Template


In the template USERCP_SHELL,


Find and delete:


<if condition="$show['pmmainlink']">
<tr>
<td class="thead" nowrap="nowrap">
<span id="nav_pmfolders">$vbphrase[private_messages] <if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("nav_pmfolders"); </script></if></span>
<if condition="$show['popups']">
<div class="vbmenu_popup" id="nav_pmfolders_menu" style="display:<if condition="$show['popups']">none<else />block</if>">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead" nowrap="nowrap">$vbphrase[folders]</td>
</tr>
$cpnav[pmfolders]
</table>
</div>
</if>
</td>
</tr>
<tr><td class="$navclass[pm_messagelist]" nowrap="nowrap"><a class="smallfont" href="private.php$session[sessionurl_q]">$vbphrase[list_messages]</a></td></tr>
<if condition="$show['pmsendlink']">
<tr><td class="$navclass[pm_newpm]" nowrap="nowrap"><a class="smallfont" href="private.php?$session[sessionurl]do=newpm">$vbphrase[send_new_message]</a></td></tr>
</if>
<if condition="$show['pmtracklink']">
<tr><td class="$navclass[pm_trackpm]" nowrap="nowrap"><a class="smallfont" href="private.php?$session[sessionurl]do=trackpm">$vbphrase[track_messages]</a></td></tr>
</if>
<tr><td class="$navclass[pm_editfolders]" nowrap="nowrap"><a class="smallfont" href="private.php?$session[sessionurl]do=editfolders">$vbphrase[edit_folders]</a></td></tr>
</if>
In the same template (USERCP_SHELL),

Find:

<!-- usercp nav -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0">
<tbody>
<tr><td class="tcat" nowrap="nowrap"><a href="usercp.php$session[sessionurl_q]">$vbphrase[your_control_panel]</a></td></tr>Add below:


<if condition="$show['pmmainlink']">
<tr>
<td class="thead" nowrap="nowrap">
<span id="nav_pmfolders">$vbphrase[private_messages] <if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("nav_pmfolders"); </script></if></span>
<if condition="$show['popups']">
<div class="vbmenu_popup" id="nav_pmfolders_menu" style="display:<if condition="$show['popups']">none<else />block</if>">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead" nowrap="nowrap">$vbphrase[folders]</td>
</tr>

$cpnav[pmfolders]

</table>
</div>
</if>
</td>
</tr>
<tr><td style="vertical-align: middle" class="$navclass[pm_newpm]" nowrap="nowrap"><img src="images/misc/pm.gif" border="0" align="left" />&nbsp;<a class="smallfont" href="private.php?folderid=0$session[sessionurl_q]">$vbphrase[inbox]</a>
<br /><img src="images/misc/tree_ltr.gif" border="0" align="left" /><img src="images/misc/pm.gif" border="0" align="left"/>&nbsp;<a class="smallfont" href="private.php?folderid=-1$session[sessionurl_q]">$vbphrase[sent_items]</a></td></tr>


<if condition="$show['pmsendlink']">
<tr><td class="$navclass[pm_newpm]" nowrap="nowrap"><img src="images/misc/userfield.gif" border="0" align="left"/>&nbsp;<a class="smallfont" href="private.php?$session[sessionurl]do=newpm">$vbphrase[send_new_message]</a></td></tr>
</if>
<if condition="$show['pmtracklink']">
<tr><td class="$navclass[pm_trackpm]" nowrap="nowrap"><img src="images/misc/track_pm.png" border="0" align="left"/>&nbsp;<a class="smallfont" href="private.php?$session[sessionurl]do=trackpm">$vbphrase[track_messages]</a></td></tr>
</if>
<tr><td class="$navclass[pm_editfolders]" nowrap="nowrap"><img src="images/misc/folder_edit.gif" border="0" align="left"/>&nbsp;<a class="smallfont" href="private.php?$session[sessionurl]do=editfolders">$vbphrase[edit_folders]</a></td></tr>
</if>

abouahmed
05-26-2009, 03:27 PM
nice work Sofia

Emrah Kaya
05-26-2009, 08:59 PM
Thanks Sofia

Sofia
05-26-2009, 09:33 PM
Thanks, hope you enjoy it ;)

lm3a.net
05-27-2009, 05:24 AM
Thanks Sofy

I like it

goxy63
05-27-2009, 07:54 PM
Thanks Sofia for this cool hack

But if you dont mind me asking can you please think of upgrading this mod!?

I would love to see these edits within user CP, or atleast some of them:

1. 'Settings & Options' just below 'private messaging' with some icons if possible
2. 'Subscribed Threads' & 'Networking' with some icons
3. Maybe all other, or those bit more important options with icons (Or drop-down manu, same as here on vb.org)

Atleast 1 & 2 would be just fine with me :D

Thanks

Sofia
05-27-2009, 10:08 PM
Thanks Sofia for this cool hack

But if you dont mind me asking can you please think of upgrading this mod!?

I would love to see these edits within user CP, or atleast some of them:

1. 'Settings & Options' just below 'private messaging' with some icons if possible
2. 'Subscribed Threads' & 'Networking' with some icons
3. Maybe all other, or those bit more important options with icons (Or drop-down manu, same as here on vb.org)

Atleast 1 & 2 would be just fine with me :D

Thanks

I'll think to do this.

goxy63
05-27-2009, 10:42 PM
:up: I just got my favourite coder, Sofia :)
Installed, rated, nominated, cant wait for update

Cheers