The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
eval $vbulletin->templatecache not working!
hi,
I have a problem but I don't know where exactly? look at the code please PHP Code:
the template 'ain_adsense_manager_bit' will take data and show it in home template but my problem is that $ain_adsense_bit not working inside any template! and the table is not empty |
#2
|
||||
|
||||
Variables get called in different ways depending on the hook location. Find your hook in the code. Look at the code above it to see how the variables are being called. You may not using the correct variable syntax.
|
#3
|
||||
|
||||
i use misc_start hook .. it's look like:
PHP Code:
my code is like forumbit code but not working i mean only the part of the loop: eval('$ain_adsense_bit .= "' . $vbulletin->templatecache['ain_adsense_manager_bit'] . '";'); |
#4
|
||||
|
||||
That isn't normally the way you would eval a template.
PHP Code:
|
#5
|
||||
|
||||
what is your way?
|
#6
|
||||
|
||||
I posted it.
|
#7
|
||||
|
||||
oh sorry i don't notice that ..
fetch_template work great .. thanks but why $vbulletin->templatecache not working for me .. it's work before! |
#8
|
||||
|
||||
I've only ever used $vbulletin->templatecache to access a template that is cached and do something like a str_replace in it. I don't know how you have used it before, so I can't comment on why it worked before and not now.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|