vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   How to use... $template_hook[postbit_userinfo_right_after_posts]? (https://vborg.vbsupport.ru/showthread.php?t=209045)

Jaxel 03-21-2009 08:56 PM

How to use... $template_hook[postbit_userinfo_right_after_posts]?
 
I am using this hook as follows:

Code:

<plugin active="1" executionorder="5">
        <title>Ranking Ladder Postbit Crowns</title>
        <hookname>postbit_display_start</hookname>
        <phpcode><![CDATA[if ($vbulletin->options['rankingladder_postbit'] && $post['rank_ladder'])
        {
                $filename = $vbulletin->options['rankingladder_filename'];
                $thumbdir = $vbulletin->options['rankingladder_thumbdir'];
                eval('$template_hook[postbit_userinfo_right_after_posts] = "' . fetch_template('rankings_postbit') . '";');
        }]]></phpcode>
</plugin>

It works GREAT in public postbits... but it doesnt seem to be working in PM postbits. Am I using the wrong hookname?

Antivirus 03-21-2009 09:29 PM

i haven't messed around with hacking the PM system, but try hook: private_messagelist_messagebit

Jaxel 03-22-2009 02:58 AM

Naw... sadly, that didn't do it.

I think the problem is that I am using $post and that array doesnt exist in a PM. What should I be using instead of $post?

Lynne 03-22-2009 03:13 AM

Maybe $userinfo?

To find out, locate where the hook "postbit_display_start" is in the code and see what is being used right above there.

Jaxel 03-22-2009 03:20 AM

well $post works in forum posts, but it doesnt seem to work in the private message posts.


All times are GMT. The time now is 10:19 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.01978 seconds
  • Memory Usage 1,717KB
  • 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