vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Which hook? (https://vborg.vbsupport.ru/showthread.php?t=208947)

HMBeaty 03-20-2009 09:38 PM

Which hook?
 
I'm trying to make a plugin for one of my products but can't figure out which hook to use. The TEMPLATE its going in is memberinfo_block_aboutme and its going to display something obviously in the "About Me" section in the member's profile. I figured the hook would be either member_complete or member_customfields but its neither of those. So before I go and start trying each one....which one is it?

--------------- Added [DATE]1237590367[/DATE] at [TIME]1237590367[/TIME] ---------------

Or is there even a hook for that area?

Lynne 03-20-2009 10:19 PM

If you go into debug mode, the list of plugins for that page get listed on the bottom. You might want to look there. Or, try member_profileblock_fetch_unwrapped

HMBeaty 03-20-2009 10:22 PM

Nope, that's not it. I'm in debug mode now going through each one. I know my template edit works....it worked before. Just the template got all changed around after I guess 3.7

--------------- Added 20 Mar 2009 at 18:27 ---------------

To show the actual code I'm using now, it's

PHP Code:

<plugin active="1" executionorder="5">
<
title><![CDATA[[Premier Team Manager] - Add to Member Info]]></title>
<
hookname>member_complete</hookname>
<
phpcode><![CDATA[if (!empty($userinfo[premierteam]) AND $vbulletin->options['premierteammanagermemberinfo'])
{
$block_data[fields] .= "
<tr>
<td>
<strong>
$vbphrase[my_premierteam]:</strong>
<br />
<img src=\"images/premier/" 
$userinfo['premierteam'] . ".gif\" border=\"0\" />
<td>
</tr>
"
;
}]]></
phpcode>
</
plugin


Lynne 03-20-2009 10:51 PM

Have you tried just adding it to the template? Also, you can't use <tr> and <td> there cuz that is not going to be correct right there. Take a look at the page source to see what you need to use.

HMBeaty 03-20-2009 10:53 PM

My template edit....
HTML Code:

<if condition="!empty($userinfo[premierteam])">
<strong>$vbphrase[my_premierteam]:</strong>
<br />
<img src="$vboptions[bburl]/images/premier/$userinfo[premierteam].gif" border="0" />
</if>

That works just fine, but how would I add that to the about me section of the profile in my plugin?


All times are GMT. The time now is 01:24 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.01740 seconds
  • Memory Usage 1,729KB
  • 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_html_printable
  • (1)bbcode_php_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