Quote:
Originally Posted by Head Roller
Hello.... First of all.. thanks for the fantastic mod. If I get it all sorted out it is going to be a HUGE help to me and my members.
I am not a coder, I am 100% hack... I try to add to my coding knowledge as I run into issues hacking..... I need a little bit of general information that should allow me to get this sorted out... if anyone is willing...
I have NUMEROUS additions and modifications to my board, so my postbit is huge, which is why I need this hack. The issue I am having, however, is that a large number of the mods use the template hook[postbit_userinfo_right_after_posts], so even if I move the entire hook to a tab, it is too much. That is not what I want to do though. I want to figure out where the code is in each mod that is picked up by the hook so that I can "release" it from the hook and manually configure it into my postbit. Of course, I am only assuming that this is even possible.
Is there any article already written, source or easy response to help me? I am willing to buy a book, research, read or whatever it takes... I just need pointed in the right direction.
Thanks to anyone who can point the general direction to the needle in my haystack.

|
What you can try to do is check each of your modifications plugins that use the postbit's template hook. The easiest way to do this is to go through your
Plugin Manager and peruse each of your product's plugins. Look for the plugins that use the
postbit_display_complete hook. Disable them one at a time, each time checking to see if something disappears from your forum's postbits. You've likely found the right plugin.
Now the next part is trickier. In some cases, the plugin calls a template to display it's information. So in those cases, you can turn the plugin off and look for the template it calls and copy and paste that template information into your
postbit_legacy template instead. For instance, DownloadsII postbit information is controlled via the
downloads_postbit_display_complete plugin. And all that plugin says is:
PHP Code:
global $vbulletin;
if ($vbulletin->options['ecshowmemberinfo'])
{
eval('$template_hook[postbit_userinfo_right_after_posts] .= " ' . fetch_template('downloads_memberinfo_postbit') . '";');
}
Notice the
fetch_template part calls a template called
downloads_memberinfo_postbit. That's the template you can go into and copy and paste what's in there into your
postbit_legacy, in turn turning this plugin off.
In other cases, the plugin might reference a PHP file, in which case you'd have to go to that file and search for the code to duplicate. Another case might have the postibit code worked right into the plugin itself. In all cases though, provided you can find the HTML code used, you can just disable that one plugin and post the HTML code wherever you want (and however you want it to look) in your
postbit_legacy template, removing any extraneous code inherent to PHP, like escaped quotations
\"