Quote:
Today at 04:53 AM reismarktq2 said this in Post #43
Logician: I have had a request from one of my administrators for a feature that would allow us to set the style to be used with the templates regardless of which style the user has selected for his profile. This is because the pages we are converting into WebTemplates will not display aesthetically properly in certain existing styles, and it's too much work to convert the pages to display properly with all styles. I hope this isn't too difficult to pull off... can you help?
|
If you want to force the webtemplate's look, why don't you depend on vb styles? Even if it is a style in your board you want to apply, just apply it via HTML. In other words instead of using:
<normaltext>Hello</normaltext>
use:
<font face="Times New Roman" color="#FF0000" size="4">Hello</font>
So user's style will not matter.
It is not easy to force a vb style in webtemplates because style issue in vbulletin is not handled in the relevant .php file, but in global.php which runs before everything else. It runs before webtemplate's view.php script too, so webtemplates just gets the style id from it. To change this behaviour either webtemplate need to reform the style in view.php (which means additional queries in every webtemplates) or global.php should be hacked so that if requested script is view.php, style behavior will change.
Thus my suggestion seems the easiest solution.