![]() |
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 |
<a href="http://www.vbulletin.com/docs/html/main/templates_externalfiles" target="_blank">http://www.vbulletin.com/docs/html/m..._externalfiles</a>
|
Dead link?
|
Nope, not a dead link.
|
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 |
Fetch the file via a plugin and assign the data to a variable. Then use that variable in your templates.
|
I am using this in multiple locations on my forums to import rss feeds using rss2html
|
Then use multiple plugins.
Woot! 3000th post! :) |
All times are GMT. The time now is 10:06 AM. |
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:
|