vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Private Messages Enhancements - New PM button in messagelist (https://vborg.vbsupport.ru/showthread.php?t=179113)

Mazinger 05-12-2008 10:00 PM

New PM button in messagelist
 
This is a modification to show 'send pm' button in messagelist -- screenshot attached.


Style Manager -> Edit Templates -> pm_messagelist

Find:

HTML Code:

<if condition="$show['pagenav']">
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
<tr valign="bottom">
<if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if>
</tr>
</table>
</if>

Replace it with:


HTML Code:

<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
<tr valign="bottom">
<td><a href="private.php?do=newpm"><img src="$stylevar[imgdir_button]/sendpm.gif" alt="$vbphrase[send_new_message]" border="0" /></a></td>
 <if condition="$pagenav">
<td align="$stylevar[right]">$pagenav</td></if>
</tr>
</table>


Then save.



You may change $stylevar[imgdir_button]/sendpm.gif to any other image.



Please click INSTALLED to get support for this modification


JadedSouls 05-14-2008 12:59 AM

Nice idea! *installed*

Forensic 05-14-2008 03:59 PM

Quote:

Originally Posted by JadedSouls (Post 1518915)
Nice idea! *installed*

Ditto.

Thanks

Super Jinni 05-16-2008 02:27 PM

nice one

thanks

but it doesn't show only if there is a message or more in the inbox or in the outbox

if any of them is empty, the button doesn't show up..

that what I wanted to point to..

thanks

Mazinger 05-16-2008 02:43 PM

Yes, as the whole table disappear the buttons should disappear too.

Super Jinni 05-16-2008 08:26 PM

why not make it appear when there is table just like the new thread button when there is no threads?

I think that will be better if possible of course....

^-^

AzH 05-16-2008 08:36 PM

Installed. Thanks. Nice and simple.

Mazinger 05-17-2008 10:53 AM

Quote:

Originally Posted by Super Jinni (Post 1521994)
why not make it appear when there is table just like the new thread button when there is no threads?

I think that will be better if possible of course....

^-^

I'll put this under consideration when I look again into it. Thanks for your suggestion - it's logical. :)

karnevil 06-06-2008 09:36 PM

Nice one, installed, thanks

DssCrazy 06-07-2008 08:45 AM

Thanks:)


All times are GMT. The time now is 09:11 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01173 seconds
  • Memory Usage 1,737KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete