1 Attachment(s)
[release] Sidebar for s0wh4t CMS
Someone requested a sidebar, so I threw one together.
credits: s0wh4t for the CMS
the people who invented CSS and photoshop, and notepad++. o.O
There is a SS below.
First, you will want to download this image:
http://i34.tinypic.com/b9gbwz.png
and place it in [rootfolder]/images/
whereas rootfolder can be either www or htdocs, or whatever.
Then, open "style.css"
add this at the bottom:
Code:
.sidebar {
margin-left: 850px;
width: 270px;
height: 550px;
z-index:24;
position:absolute;
background-image: url(/images/sidebarbg.png);
}
then open "top.php"
find:
Code:
<BODY class="page">
add under it:
Code:
<div class="sidebar">
<table width="170" border="0" bordercolor="#FFB129" cellspacing="0" cellpadding="0">
<tr>
<td align=center>
<h1>Vote YourStory!</h1>
</td>
</tr>
<tr>
<td align=center>
<a href=""><img border="0" src="http://www.mmorpgtop200.com/votenew.jpg" /></a><br><br>
<a href=""><img src="http://www.xtremeTop100.com/votenew.jpg" border="0"></a><br><br>
<a href=""><img border="0" src="http://www.gamesitestop100.com/images/votebutton.jpg" /></a><br><br>
<a href=""><img src="http://www.gtop100.com/images/votebutton.jpg" border="0"></a>
<br><br>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="encrypted" value="">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
<br>
<?php
$result = mysql_query("SELECT * FROM accounts");// Account section
$num_rows = mysql_num_rows($result);
$result2 = mysql_query("SELECT * FROM characters");// Character section
$num_rowsc = mysql_num_rows($result2);
$result15 = mysql_query("SELECT * FROM guilds");// Character section
$num_rowsg = mysql_num_rows($result15);
$result4 = mysql_query("SELECT * FROM accounts where banned = 1");// Account section
$num_rowsb = mysql_num_rows($result4);
$result5 = mysql_query("SELECT * FROM accounts where loggedin = 2");// Account section
$num_rowsl = mysql_num_rows($result5);
echo "
<b>".getOnline()."</b> WebUsers Online<br />
<b>".$num_rowsl."</b> Users Playing<br><br>
<b>".$num_rows."</b> Accounts<br>
<b>".$num_rowsc."</b> Characters<br>
<b>".$num_rowsg."</b> Guilds<br><br>
<b>".$num_rowsb."</b> Banned Hackers<br>
";
?>
<br>
<?php
echo $logserv_name;
$fp = @fsockopen($serverip, $loginport, $errno, $errstr, 1);
if (!$fp) {
echo $offline;
} else {
echo $online;
}
@fclose($fp);
?>
</td>
</tr>
</table>
</div>
You can change anything in that table to whatever you want, make sure to change the links to yours! on the vote buttons, and the paypal. Right now they don't take you anywhere.
Enjoy!
Re: [release] Sidebar for s0wh4t CMS
wasnt this released liek 3 times now or is it all in my head.. 0.o
Re: [release] Sidebar for s0wh4t CMS
A dude, dalvinci, released some leeched kind of copies, but took them down, and someone asked me for one, so this is the one that ISN'T leeched. and will stay up.
Re: [release] Sidebar for s0wh4t CMS
ooooh.... well good work then
Re: [release] Sidebar for s0wh4t CMS
lols. glad to be of help. And I think I gave proper credits. Either that, or I went overboard. o.O lols
you know, i wonder if anyone released a s0wh4t library. There are enough customizations and stuff out there for one. o.O
Re: [release] Sidebar for s0wh4t CMS
Re: [release] Sidebar for s0wh4t CMS
Merci, beacoup, monsieur!
That means, "thanks a bunch, dude"
in my french.
Re: [release] Sidebar for s0wh4t CMS
there is a difference between yours and davinci's. davinci's one is javascript and it floats according to movement of the page, but this on the other hand is static on the right side of the page :O and i think there is enough mods for now, its just getting kinda out of maple.
Re: [release] Sidebar for s0wh4t CMS
Yeah the amount of MODS is overflowing the the System ~.O
Re: [release] Sidebar for s0wh4t CMS
O.O this should be a static side bar isn't it lookin at the code this is nicer then davinci's 1 i agree with SaintIans hahas
Re: [release] Sidebar for s0wh4t CMS
lols. done modding. I wanted to work on other things, but I can't come up with any ideas. :(
I fail. lols
Re: [release] Sidebar for s0wh4t CMS
Re: [release] Sidebar for s0wh4t CMS
Very nice. Thanks for releasing this. I like the picture too.
xD
Re: [release] Sidebar for s0wh4t CMS
You guys are always welcome. ...and, I don't think I'll have any more updates with this thread. and that image is transparent, so it will work on any background. the traditional white, or if you changed it, it will still work. -.^
Re: [release] Sidebar for s0wh4t CMS
i keep getting this error:
$num_rowsg = mysql_num_rows($result15); $result4 = mysql_query("SELECT * FROM accounts where banned = 1");// Account section $num_rowsb = mysql_num_rows($result4); $result5 = mysql_query("SELECT * FROM accounts where loggedin = 2");// Account section $num_rowsl = mysql_num_rows($result5); echo " ".getOnline()." WebUsers Online
".$num_rowsl." Users Playing
".$num_rows." Accounts
".$num_rowsc." Characters
".$num_rowsg." Guilds
".$num_rowsb." Banned Hackers
"; ?>
-Topic: Nice Realease dude :D keep up the good work :D