vb.org Archive

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

Mazinger 10-29-2007 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.

Mr_Snob 10-31-2007 07:15 AM

interesting :D

yoyoyoyo 10-31-2007 09:33 AM

Quote:

<img src="$stylevar[imgdir_button]/new_pm.gif" alt="$vbphrase[send_new_message]" border="0" />
I don't have a new_pm.gif button... I have a sendpm.gif button

Mazinger 10-31-2007 12:23 PM

Quote:

Originally Posted by yoyoyoyo (Post 1372645)
I don't have a new_pm.gif button... I have a sendpm.gif button

Fixed.

karabaja3 01-15-2008 07:10 PM

Your replace code ruins appearance.

Please, replace with this one:

PHP Code:

<if condition="$show['pagenav']">
      <
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> 


Mazinger 02-14-2008 08:13 AM

Why you think it ruins appearance?


All times are GMT. The time now is 09:57 PM.

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.01008 seconds
  • Memory Usage 1,735KB
  • 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
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete