u can accordingly add your stuff ......for ex if u want sun in the morning u can put the background image of the sunn.....at the night u can do it with a image of a moon...!!!!!!!!!!!!!!!!!!! thanks ......only for u my brother farhad may your soul rest in peace ...................
SCRIPTS FOR SALE BY SUBZERO
Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
_______…
1 line so its cleaner and if date fails for whatever reason the else param is called and the day.css file is included .. this way the site will always work and no error messages
thats alot of options u dnt reali need lol should make it bit neater
lol yeah.. thats not for everybody, just the geeky ones use it, others use default themes.. 😀
Ppl mess it up pretty easily, if they dont know what they're doing..
currently only admin can do it once i get time and hopefully with another new script users can fully edit anything regarding a theme
background images, text effects etc etc the lot hopefully
ive actually been working on a new css based theme system.. hears a few ideas ive been playing with that might help you
What about storing an entire CSS file in a text/Blob field, u cud use blob for a quick and easy way to store the css file or use a serialised string in a text field which you can the parse into a basic css file for inclusion
Once you have a more efficient way of storing it, what about load times.. everyone knows the best way to lower load times is with caching .. so lets cache the css. Personally id have an unlimited time cache, and only update the cached file when the user updates the css (you could directly update teh cache, or delete the cached file and on next page load a new css will be generated)
So we have a prety efficient system. But i hate uneeded data in a database. especially since i make any site i create easily scaleable. So maybe we could rip out all the stored css files and store them independantly. Its easy to parse information from a file, if your not good with regex then have a serialised string commented at the top of the css file. so when a users comes to edit the css settings, u read from that string using explode or something. much easier way of doing it
so we have a css file that doesnt rely on the database, a theme engine which doesnt require table lookups on every page load, a way to save the css file and a way to edit the file. Then all u need is a way of checking for a valid file, so thats just a conditional statement in the head tags of the document.
$uid = 1; // example i dunno what u use for user ids
if(file_exists("cache/usrcss/$uid.css"))
echo "<link rel='stylesheet' type='text/css' href='cache/usrcss/$uid.css' />";
else
echo "<link rel='stylesheet' type='text/css' href='default.css' />";
simple bit of code and thats a nice, semi optimised theme engine that is far more scalable than the current theme engines your using (ive only seen 3 sites theme engines however but since the owners are idiots, im guessing its some default copy and paste theme code since the screenprints above look similar to theirs)
anyway just a few ideas i jotted down, it could be optimised further and be made for complex for a truely unique engine but i aint giving away all my ideas 🙂
oh and heres how i do my themes users can create there own thru database thee is only 1 theme file i wont give my css code or how it interacts with the database but heres how to get it started make a php file call it style.php and add this
<?php
header("Content-type: text/css");
header("Cache-Control: no-cache, must-revalidate");
require('modules/db.php');
$uid=$_GET["uid"];
$bgcolor=users_table("bgcolor",$uid);
$txtcolor=users_table("txtcolor",$uid);
$linkcolor=users_table("linkcolor",$uid);
$stylishcolor=users_table("stylishcolor",$uid);
$navcolor=users_table("navcolor",$uid);
$font=users_table("font",$uid);
if(empty($bgcolor))$bgcolor="fff";
if(empty($txtcolor))$txtcolor="000";
if(empty($linkcolor))$linkcolor="3366ff";
if(empty($stylishcolor))$stylishcolor="4a4839";
if(empty($navcolor))$navcolor="3366ff";
if(empty($font))$font="medium";
?>
body {background-color:#<?=$bgcolor?>; color:#<?=$txtcolor?>; font-family:Verdana,Arial,Helvetica,sans-serif; font-size:<?=$font?>; margin:0px; padding:2px;}
#etc etc jus add ur codes and use <?=$ and the php bits as defined above its quite easy
SCRIPTS FOR SALE BY SUBZERO
Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
_______…
currently only admin can do it once i get time and hopefully with another new script users can fully edit anything regarding a theme
background images, text effects etc etc the lot hopefully
oh and heres how i do my themes users can create there own thru database thee is only 1 theme file i wont give my css code or how it interacts with the database but heres how to get it started make a php file call it style.php and add this
<?php
header("Content-type: text/css");
header("Cache-Control: no-cache, must-revalidate");
require('modules/db.php');
$uid=$_GET["uid"];
$bgcolor=users_table("bgcolor",$uid);
$txtcolor=users_table("txtcolor",$uid);
$linkcolor=users_table("linkcolor",$uid);
$stylishcolor=users_table("stylishcolor",$uid);
$navcolor=users_table("navcolor",$uid);
$font=users_table("font",$uid);
if(empty($bgcolor))$bgcolor="fff";
if(empty($txtcolor))$txtcolor="000";
if(empty($linkcolor))$linkcolor="3366ff";
if(empty($stylishcolor))$stylishcolor="4a4839";
if(empty($navcolor))$navcolor="3366ff";
if(empty($font))$font="medium";
?>
body {background-color:#<?=$bgcolor?>; color:#<?=$txtcolor?>; font-family:Verdana,Arial,Helvetica,sans-serif; font-size:<?=$font?>; margin:0px; padding:2px;}
#etc etc jus add ur codes and use <?=$ and the php bits as defined above its quite easy
users dnt generate css files theres 1 php file that has the css code in it and jus gets the colors from what users hav saved thru database hav look at the code i posted its all there lol