The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#4
|
|||
|
|||
![]() Quote:
A plugin is some php code that gets executed at a certain point in the vbulletin code, so that might be what you want. You can look at a vbulletin script and see where the plugins are executed. For example, if you look at showthread.php line 118 (in vb4.2.0 PL2), there's this: Code:
($hook = vBulletinHook::fetch_hook('showthread_start')) ? eval($hook) : false; That gets all the plugin code for hook location 'showthread_start' and executes it by calling eval. I think it can be confusing to newcomers (as it was to me) because it seems like there should be documentation of what you can do at different hook locations, but really they're just selected points in the vbulletin scripts, and what you can do at each one depends on how that script is written. So it's kind of like a puzzle sometimes to figure out how to get things done using just plugins. Of course there's no real reason you couldn't just modify the vbulletin files to do whatever you want, except that when you want to upgrade you'd have to edit the files again. Quote:
You might be able to use a plugin, but it depends on exactly what you're trying to do. Another possibility is to edit the template and use <vb:if>...<vb:else />..</vb:if> tags, but what you can do there is limited so a lot of times you also need a plugin to set up the variables you need. (Edit: here's the onlien manual: http://www.vbulletin.com/manual/ . If you haven't looked at it already, you might want to search for "template syntax" and "adding plugin" (select your vb version fromthe dropdown before searching). I know it's confusing. It's hard to explain it in a short space (well, hard for me. Maybe someone else can do a better job). |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|