![]() |
Inserting code at the end of footer using plugins
How do we do it?
Say I created a simple plugin on global_complete hook with:- echo "Hello"; Now when I view the page its inserted at the top, even above doctype. I want Hello to be printed at the bottom most of the site (above </body>) using plugins. I don't want to do any find and replace for this small purpose. Thanks |
You're going to have to use a search and replace - how else do you want to do it? (Template hooks don't cover that "low".)
global_complete PHP Code:
|
Or you could edit the footer and put if after </body>.
PHP Code:
|
Your code wouldn't work - echo() does not return a result. Anyway, if you wanted to do it like that, why wouldn't you just place "Hello" in the template itself?
|
okay problem solved. I added a new template hook at the end of footer. Footer template hooks work only from global_start hook.
|
All times are GMT. The time now is 02:40 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|