Log in

View Full Version : Force Style on non-forum page?


Killsparer
06-01-2003, 11:44 AM
Hullo,

i?m currently using the following code in the file test_template.php to display a... well... test_template:

<?php
error_reporting(7);

require('./global.php');

eval("dooutput(\"".gettemplate('test_template')."\");");

?>

Currently, the content is shown in the style the user has chosen. But is there a way to force a specific style to be shown, just for this page?

Something like "dooutput (.getstyle(1));" ;)

Xenon
06-01-2003, 02:19 PM
normally you should be able to put $styleid=xx; before the require global.php.

i think it'll work

Killsparer
06-01-2003, 02:46 PM
Thanks, it worked.

But while i continue to surf the board,
it does not return to the default-style the user has chosen.

Any way to achieve this, too?

Killsparer
06-06-2003, 08:27 PM
*push*

Still found no way to reset the style after leaving the specified page. Anyone has an idea?