1 djhors Jan 31, 2008 16:25
3 djhors Jan 31, 2008 17:08
exacly this is hack ho i use 2 years ago but i don't have time to publish yet. I have only one think, becouse give acces for users posibilty edit php skript this is not good idea :) but i work now on changes some b2template.php to translated skript to special words how: {blog} {links} {calendar}.
This is simple one page layout from polish blogs:
<HTML><HEAD><TITLE>M�j blog</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-2">
<STYLE>
TD.FRAME { background-color: #4E5872; }
TD.TOP { background-color: #8899B0; }
TD.LEFT { background-color: #8796B2;
text-align: center;
vertical-align: top; }
TD.RIGHT { background-color: #BAD0DD;
text-align: center;
vertical-align: top; }
P { font-family: arial,helvetica,tahoma,verdana,sans-serif; }
P.BLOG { margin : 0pt;
padding: 20pt;
font-weight: normal;
color: #333333;
font-size: 9pt;
text-align: justify; }
A { font-family: arial,helvetica,tahoma,verdana,sans-serif; }
P.LEWY { margin: 0pt;
padding: 3pt 5pt 3pt 5pt;
text-align: center;
color: #000000;
font-size: 9pt;
font-weight: bold;
line-height: 15pt; }
A:LINK,A:VISITED,A:ACTIVE { font-size: 9pt;
color: #333333;
text-decoration: none;
font-weight: bold; }
A:HOVER { text-decoration: underline; }
P.KSYWKA { margin: 0pt;
padding-right: 20pt;
text-align: right;
vertical-align: middle;
color: #ffffff;
font-size: 9pt;
font-weight: bold;}
BODY {
SCROLLBAR-FACE-COLOR: D2E1EA; SCROLLBAR-HIGHLIGHT-COLOR: D2E1EA; SCROLLBAR-SHADOW-COLOR: 999999; SCROLLBAR-3DLIGHT-COLOR: 999999; SCROLLBAR-ARROW-COLOR: 999999; SCROLLBAR-TRACK-COLOR: D2E1EA; SCROLLBAR-DARKSHADOW-COLOR: D2E1EA
}
</STYLE>
</HEAD>
<BODY bgcolor="#D2E1EA">
<center>
<img SRC="http://szablonownia.atcsites.com/szabl/blogi/011/header.jpg" width="600" height="158"> <br>
<table width="600" border="0" bordercolor="#000000" cellspacing="0" cellpadding="0">
<tr>
<td colspan="4" width="600" height="2" class="frame"><img SRC="http://szablonownia.atcsites.com/szabl/blogi/011/pixel.gif" width="600" height="2"></TD>
</TR>
<tr>
<td width="2" class="FRAME"><img SRC="http://szablonownia.atcsites.com/szabl/blogi/011/pixel.gif" width="2" height="2"></TD>
<td width="596" height="25" class="TOP" colspan="2">
<P class="KSYWKA">bloguje : <i>tu_wpisz_swoj�_ksywk�</i></P>
</TD>
<td width="2" class="FRAME"><img SRC="http://szablonownia.atcsites.com/szabl/blogi/011/pixel.gif" width="2" height="2"></TD>
</TR>
<tr>
<td width="2" class="FRAME"><img SRC="http://szablonownia.atcsites.com/szabl/blogi/011/pixel.gif" width="2" height="2"></TD>
<td width="150" class="LEFT" >
<br>
<P class="LEWY">Linki:</P>
<P class="LEWY">
{linki}
</P>
<br>   <br>
<P class="LEWY">
{archiwum}
</P>
<br>   <br>
<P class="LEWY">
<a HREF="/xiega/index.php">Ksi�ga go�ci</A>
</P>
<br>   <br>
<P class="LEWY">
projekt:
<a HREF="http://szablonownia.atcsites.com">Szablonownia</A>
</P>
</TD>
<td width="446" class="RIGHT" >
<P class="BLOG">
{blog}
</P>
</TD>
<td width="2" class="FRAME"><img SRC="http://szablonownia.atcsites.com/szabl/blogi/011/pixel.gif" width="2" height="2"></TD>
</TR>
<tr>
<td colspan="4" width="600" height="2" class="frame"><img SRC="http://szablonownia.atcsites.com/szabl/blogi/011/pixel.gif" width="600" height="2"></TD>
</TR>
</TABLE>
</CENTER>
</body></html>
and try copy this code to main.php (before delete all code). And what we se - exacly preety layout and special words. I have idea to include something this to b2evolution.
Hi djhors,
I reviewed your solution and I think it is a great idea. I would like somebody to write how to enable the users to edit their new skin.
I did remove the link to the file you presented for upload. It contained a function able to delete a complete directory structure. Since you don't use this function in your hack I believe it is better to only put the fragments that are able to copy a directory in one's server.
This is the edited file _dirtool.class.php you want to put in the inc/_misc/ folder:
Any one interested in the original file can PM either me or djhors.
I would love to hear some feedback on the concept of a user able to edit their skin. Are there a lot of users in a Multiblog situation using this possibility?
In the 2.x series a blogger is able to edit the css file of a skin. I have not yet experimented with this feature.
Have fun