![]() |
Hook after all HTML contents are loaded?
Is there a hook that allows you to echo contents after everything has loaded?
I set my board to debug mode and the last hook loaded was page_templates. But when I make a plugin to test an echo, it gets rendered at the top of the page before all other HTML and breaks some AJAX. Am I doing something wrong? |
It gets rendered at the top because functions/hooks are called before any output. The output rendering is the last thing executed.
What is it what you're trying to do? |
Quote:
Template edits wouldn't give me the desired results because of this. |
So you don't want to register a template variable and render it in the template itself?
|
Quote:
--------------- Added [DATE]1411907926[/DATE] at [TIME]1411907926[/TIME] --------------- Quote:
something along the lines of: $somevar = '/somestring_' . substr(md5(rand()), 0, 2) . substr(rand(), 0, 4); and yes this is neccessary. |
Anyone?
|
Quote:
Read this on registering variables, https://vborg.vbsupport.ru/showthread.php?t=228078 Any more questions on coding need to be asked in the proper forum, https://vborg.vbsupport.ru/forumdisplay.php?f=252 |
Since the contents are not user supplied add it to the $show array through hook 'global start' or 'global setup complete', if it must be supplied from the $global.php. $show variable is a global template variable that is already registered -- should be used with caution.
Code:
$show['somevar'] = '/somestring_' . substr(md5(rand()), 0, 2) . substr(rand(), 0, 4); I am not sure how you are using this variable so I cannot say it will work for you this way. :) |
All times are GMT. The time now is 10:27 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:
|