vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Where is vB_ProfileBlock_VisitorMessaging rendered? (https://vborg.vbsupport.ru/showthread.php?t=276520)

MediaHound 01-06-2012 08:51 AM

Where is vB_ProfileBlock_VisitorMessaging rendered?
 
Where is the vB_ProfileBlock_VisitorMessaging template rendered? The only reference to that class that I can find is it's class declaration itself:
Code:

[dev@localhost forum]$ grep -ir "vB_ProfileBlock_VisitorMessaging" *
includes/class_profileblock.php:class vB_ProfileBlock_VisitorMessaging extends vB_ProfileBlock

I ask because I would like to add a new template hook before the "Post Message" and "Go Advanced" buttons on the Visitor Messages tab of the member page.

Thanks.

Yellow Slider 01-06-2012 01:46 PM

It's in the memberinfo_block_visitormessaging template.
Find:
HTML Code:

<input type="submit" id="qr_submit" class="userprof_button" value="{vb:rawphrase post_message}" name="sbutton" accesskey="s" onclick="clickedelm = this.value" tabindex="1" />
On a side note, you couldn't find vB_ProfileBlock_VisitorMessaging because it extends vB_ProfileBlock, and "vB_ProfileBlock_$class" is used to fetch the appropriate class.

MediaHound 01-06-2012 02:13 PM

Quote:

Originally Posted by Yellow Slider (Post 2284433)
It's in the memberinfo_block_visitormessaging template.
Find:
HTML Code:

<input type="submit" id="qr_submit" class="userprof_button" value="{vb:rawphrase post_message}" name="sbutton" accesskey="s" onclick="clickedelm = this.value" tabindex="1" />
On a side note, you couldn't find vB_ProfileBlock_VisitorMessaging because it extends vB_ProfileBlock, and "vB_ProfileBlock_$class" is used to fetch the appropriate class.

Thank you Yellow Slider. Yes, I did know that the template in use is memberinfo_block_visitormessaging as it is exactly in that template that I intend to put the hook!

Thanks.

Yellow Slider 01-06-2012 03:06 PM

Quote:

Originally Posted by MediaHound (Post 2284442)
Thank you Yellow Slider. Yes, I did know that the template in use is memberinfo_block_visitormessaging as it is exactly in that template that I intend to put the hook!

Thanks.

Oh, sorry, missed the template hook part.


All times are GMT. The time now is 08:20 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.01193 seconds
  • Memory Usage 1,720KB
  • 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
  • (2)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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