2009-08-12, 03:08 PM
Hello,
Can you help me to add php code and result be in <head></head>. I think it is easy to make it as plugin. The idea that I want the user change website and forum them by a click on theme and store theme no in cookies "not realated to user theme in db".
The part of saving theme in cookie is ok, but how to put this php in Mybb pages?
Please note that this is not related to forum styles, I want disable forum styles and use above method, forum teplates doesn't allow adding php codes directly.
So... any idea please
Can you help me to add php code and result be in <head></head>. I think it is easy to make it as plugin. The idea that I want the user change website and forum them by a click on theme and store theme no in cookies "not realated to user theme in db".
The part of saving theme in cookie is ok, but how to put this php in Mybb pages?
<style media="screen">
<?php
$thm=$_COOKIE["thm"];
if ($thm<>""){
echo "@import url('themes/thm";
echo $thm;
echo ".css');";}
else{echo "@import url(themes/thm.css');";}
?></style>
Please note that this is not related to forum styles, I want disable forum styles and use above method, forum teplates doesn't allow adding php codes directly.
So... any idea please