vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How do I add instructions to Private Message screen? (https://vborg.vbsupport.ru/showthread.php?t=274944)

Richard E 12-02-2011 06:05 AM

How do I add instructions to Private Message screen?
 
On another vBulletin site, I see this text whenever I compose a private message:

WARNING
The Administrator or Moderators will not respond to technical questions through PM's.
For problems please visit our Help Desk
Thank you for your understanding!

Where would I enter this?

Thanks,
Richard

Lynne 12-02-2011 04:44 PM

You can just edit the template.

To find the template to modify, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. (Sometimes the template is the one mentioned at the very top of the page source.)

Richard E 12-03-2011 12:50 AM

I need a bit more help with this since I am a total php-newbie.

I'm in the private.php file. Is this the place I need to change?

Code:

// ############################### start new pm ###############################
// form for creating a new private message
if ($_REQUEST['do'] == 'newpm')
{
        if ($permissions['pmquota'] < 1)
        {
                print_no_permission();
        }
        else if (!$vbulletin->userinfo['receivepm'])
        {
                eval(standard_error(fetch_error('pm_turnedoff')));
        }

        if (fetch_privatemessage_throttle_reached($vbulletin->userinfo['userid']))
        {
                eval(standard_error(fetch_error('pm_throttle_reached', $vbulletin->userinfo['permissions']['pmthrottlequantity'], $vbulletin->options['pmthrottleperiod'])));
        }

        require_once(DIR . '/includes/functions_newpost.php');

        ($hook = vBulletinHook::fetch_hook('private_newpm_start')) ? eval($hook) : false;

Where do I paste in the boilerplate text? :confused:

Thanks,
Richard

Lynne 12-03-2011 10:17 PM

No, you need to edit the template. Templates are in Style Manager > find style > edit templates. I posted instructions on how to find the exact template to modify.

Richard E 12-04-2011 01:30 AM

Thanks Lynne. I found the right template and made the change.

Best,

Richard


All times are GMT. The time now is 02:15 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.00912 seconds
  • Memory Usage 1,716KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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