Log in

View Full Version : How to use... $template_hook[postbit_userinfo_right_after_posts]?


Jaxel
03-21-2009, 08:56 PM
I am using this hook as follows:

<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.