The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Include .html file?
Hi all,
I'm trying to include a .html file within the template in vbulletin. The file contains a menu which is regularly updated, and therefore more easily maintained using one file that is updated and included in any page that requires it. I've tried the standard: PHP Code:
Please help?! Thanks |
#2
|
||||
|
||||
<a href="http://www.vbulletin.com/docs/html/main/templates_externalfiles" target="_blank">http://www.vbulletin.com/docs/html/m..._externalfiles</a>
|
#3
|
|||
|
|||
Dead link?
|
#4
|
|||
|
|||
Nope, not a dead link.
|
#5
|
|||
|
|||
You could use an iframe if you're including your own stuff that you know is safe.
I've done it a few times but the whole allow html permissions will be the big issue. ============== What about including files on the fly though Marco(or anyone)? I have a table produced for each member that I don't want to drag from the db as it's updated less than it'll be accessed. It would be named [userid]table.txt so if user 18 went to the page it would include 18table.txt for user 18 and so on - even if it was plain text with no html what would be the easiest way to include it OR I'm I reinventing the wheel and should be looking for a caching solution - and if so where? Cheers |
#6
|
||||
|
||||
Fetch the file via a plugin and assign the data to a variable. Then use that variable in your templates.
|
#7
|
|||
|
|||
I am using this in multiple locations on my forums to import rss feeds using rss2html
|
#8
|
||||
|
||||
Then use multiple plugins.
Woot! 3000th post! |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|