The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to create a plugin to add 4 lines at the end of footer?
I want to add 4 lines at the end of the footer, and i would like to know if i can do this making a plugin
i dont want to add code manually, i want to do it automatically because i have too many styles and a few forums where i want to set the lines thank you very much |
#2
|
||||
|
||||
Possibly....
Might help if you elaborate (Where exactly in the footer, what code you're trying to use, etc) |
#3
|
|||
|
|||
i only want to insert an ad code, its nothing complicated, only html. Imagine its google adsense code
|
#4
|
||||
|
||||
Ok....so why not use the advertisement feature built into vBulletin for this?
|
#5
|
|||
|
|||
i dont want mate, please be friendly,
i want to learn how to add code below the footer with a plugin. I would use this function for other things with html at the future |
#6
|
|||
|
|||
For the footer you might be able to use hook location process_templates_complete and just do something like:
Code:
$footer .= "<BR/>Extra Footer Stuff<BR/>"; There's a way that you can modify any template using hook cache_templates, but at that point what's in the cache is some php code that produces the output, so you can't just tack HTML on to the end. I've seen code to do it posted before but I don't have it handy. |
#7
|
||||
|
||||
Borbole has a mod here: https://vborg.vbsupport.ru/showthread.php?t=250093
You could edit and add in a few lines of code for 4 different inputs, some plugins depend on how you want to go about it for example you mentioned ad codes etc then reference the differences between these two by downloading and viewing the code: https://vborg.vbsupport.ru/showthread.php?t=251787 https://vborg.vbsupport.ru/showthread.php?t=259340 So as you can see there's different ways to go about different codes, different locations and more etc however one of those will give you a idea how to go about it . |
Благодарность от: | ||
borbole |
#8
|
|||
|
|||
thank you very much
but, I have used the code of kh99 and it works perfectly with html the problem is i need to use 2 vbulletin conditionals, "if user came from search engine" and "if user is unregistered". I cant imagine how to do this... with a plugin :S |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|