The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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? |
#2
|
|||
|
|||
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? |
#3
|
|||
|
|||
Quote:
Template edits wouldn't give me the desired results because of this. |
#4
|
|||
|
|||
So you don't want to register a template variable and render it in the template itself?
|
#5
|
|||
|
|||
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. |
#6
|
|||
|
|||
Anyone?
|
#7
|
||||
|
||||
Take it easy, this site is run by volunteers, and all have lives, so don't expect immediate answers to your posts.
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 |
#8
|
|||
|
|||
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. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|