The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Displaying HTML file in widget and Forum Block
Currently I am updating a forum block & a widget as two separate instances even though both reflect identical information.
Both are made of plain HTML. I would like it if could simply edit a *.htm file and have the widget and forum-block both update automatically according to the contents of the *.htm file. Is this possible and if so, could you give me rough direction on how to achieve this? |
#2
|
||||
|
||||
Wow, who'd have thought a request like this was so complicated or out of people's abilities... I figured it would be a lot easier.
|
#3
|
|||
|
|||
You might be able to make your block/widget an iframe that loads your htm file. Another way would be to use a php type widget/block and include an external file, like:
Code:
ob_start(); include('something.htm'); $output = ob_get_contents(); ob_end_clean(); // forum block needs a return, widget doesn't (but it might work anyway) return $output; Remember that widgets and forum block content is cached so when you change your htm file you won't see the changes until the cache expires (unless you set cache time to 0. But it's probably good to leave it set to at least 1 minute if possible). |
Благодарность от: | ||
karlm |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|