The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#8
|
|||
|
|||
![]()
Ok, sorry for the lack of information :]
The code to show up in the profiles can be put in one of two places I believe. I decided to put it in the hook "mymodification" under "member_build_blocks_start". This is as is the tutorial I linked in the first post says to do. The code for the whole thing is the following: Code:
$blocklist = array_merge($blocklist, array( 'mymodification' => array( 'class' => 'MyModification', 'title' => 'XBL', 'hook_location' => 'profile_left_last' ) )); class vB_ProfileBlock_MyModification extends vB_ProfileBlock { var $template_name = 'memberinfo_block_mymodification'; function confirm_empty_wrap() { return false; } function confirm_display() { return ($this->block_data['mymodification'] != ''); } function prepare_output($id = '', $options = array()) { $this->block_data['mymodification'] = '<iframe src="http://gamercard.xbox.com/$profilefield[field5].card" scrolling="no" frameBorder="0" height="140" width="204">$profilefield[field5]</iframe>'; } } Code:
<div class="alt1 block_row"> <ul class="list_no_decoration"> $block_data[mymodification] </ul> </div> Thanks for trying to help btw :] |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|