PDA

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


Sofia
26 May 2009, 17:17
This mod allows you to place Private Messaging in first place, on the UserCP



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



http://www.vbulletin.org/forum/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
26 May 2009, 17:27
nice work Sofia

Emrah Kaya
26 May 2009, 22:59
Thanks Sofia

Sofia
26 May 2009, 23:33
Thanks, hope you enjoy it ;)

lm3a.net
27 May 2009, 07:24
Thanks Sofy

I like it

goxy63
27 May 2009, 21:54
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
28 May 2009, 00:08
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
28 May 2009, 00:42
:up: I just got my favourite coder, Sofia :)
Installed, rated, nominated, cant wait for update

Cheers