The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Hi everyone i'd like to create a plugin that change a specified code for example {vb:raw navbar} in a specified template for example forumhome with a specified code for example "<div class="example_menu">
i'm searching for this all the day but i didn't found anything.. there isn't many tutorials for vb4 plugin coding thanks in advance ![]() |
#2
|
|||
|
|||
![]()
Maybe this areticle will help: https://vborg.vbsupport.ru/showthread.php?t=228078
It's about how to write a plugin to make new variables to use in templates. If you want to change an existing one without editing the template, that's probably a little more difficult. |
#3
|
||||
|
||||
![]()
Really not i have already see that someone else?
|
#4
|
||||
|
||||
![]() Quote:
I'm a little need to know the 'more difficult' .. it seems there is no way ever your best shot is using ad_location and template hooks but if you need to change or delete or add to an existing template it's impossible with vb4 or please tell me if you know a way~?!!! |
#5
|
|||
|
|||
![]()
OK, to be honest I'm not sure exactly what you want to do. If you want to change what's displayed somewhere, the easiest thing to do is to just edit the template. If you need to set a variable to use in a template, then you need to write a plugin and you can refer to the link I posted above.
If for some reason you don't want to edit a template (and I'm not sure why that would be), then you'd need to either change the value of an existing variable or else modify the template in a plugin, and both are a little difficult to explain. It would be easier if you could post exactly what you want to do. |
#6
|
||||
|
||||
![]()
I already know how to change the value of an existing variable, I want to modify the template in a plugin
for example I need to render newpost_quote template as empty of it's content for specific users using a plugin. it's mean without needing to update the template manually. code to replaced and rendered whenever the specific users come into that place PHP Code:
now, what I suppose to do to make $coco work? ![]() |
#7
|
||||
|
||||
![]()
Hi al3bed do you got it working?
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|