PDA

View Full Version : Where is vB_ProfileBlock_VisitorMessaging rendered?


MediaHound
01-06-2012, 08:51 AM
Where is the vB_ProfileBlock_VisitorMessaging template rendered? The only reference to that class that I can find is it's class declaration itself:

[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:
<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
It's in the memberinfo_block_visitormessaging template.
Find:
<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
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.