The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
is this possible for a plugin to search templates on all styles and replace code with code needed for the plugin ? cant seem to get it to work I could on vb3 but not vb4
|
#2
|
||||
|
||||
![]()
Yes, it's possible - I do it in a couple of my vB4 mods and others have also.
|
#3
|
||||
|
||||
![]()
If I recall, you want the parse_templates or template_compile hook.
I can't remember the exact hook, but I believe one of those will work. |
#4
|
|||
|
|||
![]()
so how would i go about adding summit into the postbit template example above the user title and im adding {vb:raw rank} example
|
#5
|
||||
|
||||
![]()
Yes, it is possible but I can only sotrngly advice not to do that for various reasons:
|
#6
|
|||
|
|||
![]() Quote:
Another option is using the template hooks that currently exist in the postbit. I can see three of them. I use one of them to add some custom profile fields underneath the posts. So i just have a plugin with the following code (obviously setting up the $html variable just before): PHP Code:
template_hook.postbit_userinfo_left template_hook.postbit_userinfo_right So I'd just give those three a try. userinfo_left seems the closest to what you need as it's just underneath the title and their use rank. And use the postbit_display_start hook for the plugin. Though I have to question this rank variable your wishing to use. Is it one you've set up or? Because there's already a rank that is in the template: post.rank (as it holds the user rank for each post) And that's set to display just before that userinfo_left template hook. Hopefully that answers a few of your questions. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|