Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: codnerd on August 12, 2008, 08:32:20 PM

Title: Page peel smf mod on php page...
Post by: codnerd on August 12, 2008, 08:32:20 PM
How do I make the page peel mod I am using for smf, work on my website, which is just straight php pages...

Website (http://www.cracked-gaming.com/community/index.php)
Forum (http://www.cracked-gaming.com/community/forum/index.php) (page peel is at top right)
Page peel mod (http://custom.simplemachines.org/mods/index.php?mod=1305)

Here is my index.php for my main websites home page: (nothing to do with forum)

<?php require("forum/SSI.php"); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Cracked-Gaming Community - Official Website</title>
<script type="text/javascript" > 
<!--  function ctRoster(usrName)  {  var div = document.getElementById("roster_data"); var textnode = document.createTextNode(usrName); div.appendChild(textnode); }  function ctRosterClean()  {  var label = document.getElementById("roster_data")  while( label.hasChildNodes() ) { label.removeChild( label.lastChild ); } }  // -->  </script> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> <!-- Main wrapper -->
<div id="wrap">
<div id="header">
<table width="998px" height="44px" background="images/topbar.jpg" cellpadding="5" cellspacing="0"> <tr> <td valign="bottom"> <p><b><font size="2"><font color="#ffffff"><center><?php ssi_welcome(); ?></center></font></font></b></p> </td> </tr> </table>
<div id="innerheader" style="font-size: 10px;">
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="forum/">Forums</a></li>
<li><a href="about.php">About CGC</a></li>
<li><a href="join.php">Join CGC</a></li>
<li><a href="donate.php">Donate</a></li>
<li><a href="servers.php">Servers</a></li>
<li><a href="cggs.php">Buy Servers</a></li>
<li><a href="http://www.cracked-gaming.com/files">Files</a></li>
</ul>

</div>
</div>
<div id="content">
<div class="side_column">
<h1>Latest<small>News</small></h1>
<ul>
<li><b>
<a href="">Lots of News...</b> - 8/11
</a></li>
<li><b>
<a href="">CGC Newsletter Released</b> - 8/4
</a></li>
<li><b>
<a href="">New Ventrilo</b> - 8/4
</a></li>
<li><b>
<a href="">CGC Looking into the Future</b> - 8/4
</a></li>
<li><b>
<a href="">Meeting and FUNDAY Moved</b> - 8/1
</a></li>
</ul>
<h1>Recent<small>Topics</small></h1>
<?php ssi_recentTopics(); ?>
</div>
<!-- END LEFT COLUMN -->
<div id="middle" >
<div id="server_select">
<h1><span>Select Server</span></h1>
<a href="xfire:join?game=cod4mp&server=74.86.232.75:28960"><img src="images/tdm_svr_button.jpg" alt="Team Deathmatch Server" /></a>
<a href="xfire:join?game=cod4mp&server=74.86.232.75:28961"><img src="images/fun_svr_button.jpg" alt="Fun Day 24/7 Server" /></a>
<a href="xfire:join?game=cod4mp&server=74.86.232.75:28962"><img src="images/zom_svr_button.jpg" alt="Zombie Mod Server" /></a>
<a href="xfire:join?game=cod4mp&server=74.86.232.75:28963"><img src="images/s&d_svr_button.jpg" alt="Search & Destroy Server" /></a>  </div>
<div id="breadcrum">Home</div>
<h1>Cracked-Gaming News</h1>
<!-- ENTER MAIN CONTENT HERE -->
<div class="content">
<h2>Call of Duty: Cracked Warfare</h2>
<p>&nbsp;&nbsp;&nbsp;<font color="#255d20"><b>CGC</b></font> will be hosting a Call of Duty tournament for Cracked Clans to compete against each other. Clans will be competing for the bragging rights, in which if they win, they will get their Clan name on the Golden Sock.</p>
<p>&nbsp;&nbsp;&nbsp;<font color="#255d20"><b>This tournament</b></font> will start on Thursday or Friday, depending on what day your Clan wants to start. Semi-finals will be on Saturday. Sunday will be the Final Match for the Golden Sock.</p>
<p>&nbsp;&nbsp;&nbsp;<font color="#255d20"><b>Clans from all over</b></font> will be competing in this Tournament, such as the NoBS Clan, and the UTDM Clan. The Competition will be ran on CGGS Servers, in which we will have a practice Server running now up to the Tournament. Look at the Discussion Section for more details.</p>
<center><a href="http://www.cracked-gaming.com/community/forum/index.php?c=12" target="_blank"><b>CoD:CW Forum Discussion</b></a></center><br>
<h2>CGC Server Stats</h2>
<p>&nbsp;&nbsp;&nbsp;<font color="#255d20"><b>CGC</b></font> has brought Stats back to the Community. You can now see the sats of every thing in game from who is the biggest whiner, to how many times syou shot someone in the balls.</p>
<center><a href="http://Stats.Cracked-Gaming.com" target="_blank"><b>Stats.Cracked-Gaming.com</b></a></center><br>
<h2>New CGC S&D Server Up!</h2>
<p>&nbsp;&nbsp;&nbsp;<font color="#255d20"><b>CGC</b></font> has added a 24 Slot S&D Hardcore Server to our Server list. We are hoping that everyone will try their hardest to get it started and filled. Please just go to the server sometime with a friend and stay there until is starts to fill up.</p>
<center><a href="xfire:join?game=cod4mp&server=74.86.232.75:28963" target="_blank"><b>IP: 74.86.232.75:28963</b></a></center><br>
</div>
<div class="content">
<h2>SuperCharged Sunday</h2>
<p>&nbsp;&nbsp;&nbsp;<font color="#255d20"><b>At last nights meeting</b></font>, we chose that this Sunday will be Supercharged Sunday. Instead of Funmaps, we will have more serious and detailed maps. The maps will be mp_burg, mp_ic_cod, mp_sconsegrad, mp_yard, and mp_freeb for the map rotation. We may also turn the speed up just a little, and maybe turn the gravity just a hair. The maps are not too big in size, but if you are worried about how long it will take to download, then you can download them before sunday by downloading the installer below.</p><br>
<a href="http://www.cracked-gaming.com/files/ss_fastdl.exe" target="_blank"><b>SuperCharged Sunday Fast DL Installer</b></a>
</div>
<div class="content">
<h2>CGC Newsletter Released</h2>
<br>
Hello yall, this is our First Newsletter.<br><br>

&nbsp;&nbsp;CGC has been having a great month so far. We redesigned our
website, and added a homepage with many other sub-pages. Our Zombie
server is repopulating, and our TDM server is still the same in rank,
like always. We also have a FUNDAY server now, in which after each
FUNDAY we put what we did on FUNDAY on that server. We have also
opened up a 24 slot S&D Server. Check the site for server details and
IP's.<br><br>

&nbsp;&nbsp;CGC has opened up a GSP called Cracked-Gaming Game Servers (CGGS),
in which we will sell game servers. We would really love for everyone
to help us out with advertising for CGGS by putting sigs or telling
your friends how great of a community it is run by. The URL to CGGS is <a href="http://www.cracked-gaming.com/community/buy_servers.php">Here</a>.
Please help us out on this one, so we don't have to depend on
donations...<br><br>

&nbsp;&nbsp;Also, our forums are definitely not as active as they used to be.
Get on them, be social, and gain some respect from other members.
Also, tell me if you like Fake or Real boobs. Look on the forum for
that post. lol.<br><br>

&nbsp;&nbsp;We have also opened a <a href="http://www.wegame.com/group/cgc/">WeGame Community</a>. <a href="http://www.wegame.com">WeGame</a>
is a video recorder that so damn simple to use. You go in game,
record, click the upload button, and watch. This FREE program also
does not lower your FPS like Fraps.<br><br>

CGC is planning to expand rapidly, even more than it is now.<br><br>

  &nbsp;- We will be looking for clans to come into us.<br>
  &nbsp;- Admins will be given positions such as Recuriter, Server
Manager, etc.<br>
  &nbsp;- We will be deleting the ban list on all servers.<br>
  &nbsp;- We are opening a Game Server Provider, in which we will sell
servers.<br>
  &nbsp;- We will be assigning more server admins.<br>
  &nbsp;- We will be focusing on getting a Sponsor to support our servers
money wise.<br><br>

<b>Next CGC Meeting is Thursday, August 7th on <a href="http://cracked-gaming.com/files/ventmix122setup.exe">Ventrilo</a>.</b><br>
IP: Vent.Cracked-Gaming.com<br>
Port: 3784<br><br>

Regards,<br>
CGC | Larry<br>
Cracked-Gaming Community<br>
<a href="http://www.cracked-gaming.com/">www.Cracked-Gaming.com</a><br><br>

<font size="5"><b>Git-Er-Done</b></font>
</div>
<div class="content">
<h2>New Ventrilo</h2>
<p>&nbsp;&nbsp;&nbsp;<font color="#255d20"><b>CGC</b></font> now has a new ventrilo. To all yall who don't know what ventrilo is, it is a voice program that CGC members use to communicate while in-game and on the computer. It is totaly free, no sign-ups or anything. I would really like to see more people on our ventrilo.<br>
<br>
<b><u>Steps</u></b><br>
<a href="http://Cracked-Gaming.com/files/ventmix122setup.exe">Download Ventrilo</a><br>
Install Ventrilo Mix<br>
Open and Press the Ventrilo 2.3 Picture<br>
Press the arrow right of Username<br>
Press "New" and make a name<br>
Press the arrow right of Server<br>
IP: Vent.Cracked-Gaming.com<br>
Port: 3784<br>
</p>
(Nothing to do with CoD4 Servers)
</div>
<div class="content">
<h2>CGC Looking into the Future.</h2>
<p>&nbsp;&nbsp;&nbsp;<font color="#255d20"><b>CGC</b></font> is looking to get bigger. To do so, we are going to make new changes such as:
<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- We will be looking for clans to come into us.
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- Admins will be given positions such as Recuriter, Server Manager, etc.
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- We will be deleting the ban list on all servers.
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- We will be assinging more server admins.
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- We will be focusing on getting a Sponsor to support our servers money wise.
<br>
<br>
<a href="http://www.cracked-gaming.com/community/forum/index.php?topic=647.0">Comment Here...</a>
</p> </div>
<div class="content">
<h2>Meeting and FUNDAY Moved</h2>
<p>&nbsp;&nbsp;&nbsp;<font color="#255d20"><b>CGC</b></font> will be having our CGC Meeting tomorrow night in our Ventrilo. We will talk about sponsorship, admin roles in the community, and <b>FUN DAY</b>! The meeting will start <b>Saturday, August 2nd, at 8:00pm EST</b>.</p> <p>&nbsp;&nbsp;&nbsp;<font color="#255d20"><b>FUNDAY</b></font> is now going to be on Sunday, not monday. We thought that more people woould be available on weekends rather that weekdays. We will choose at the meeting what <b>FUNDAY</b> will consist of.</p>
</div>

<!-- END MAIN CONTENT -->
</div>
<div class="side_column" id="right">
<h1>Forum<small>Login</small></h1>
<center>
<?php ssi_whosOnline(); ?>
</center>
<?php ssi_login(); ?>
</p>
</form> 
<h1>Official<small>Affiliates</small></h1>
<a href="http://www.macerhosting.net" target="_blank">
<img src="images/macer_hosting_cgc_ad_right.jpg" alt="Advertise Here" />
<a href="http://www.cracked-gaming.com/community/advertising.php" target="_blank">
<img src="images/ad_here_cgc_ad_right.jpg" alt="Advertise Here" />
<img src="images/ad_here_cgc_ad_right.jpg" alt="Advertise Here" />
</a> </div> 
</div>
<div id="footer">
<p>Copyright 2008 &copy; Cracked-Gaming Community - CGC does not take any responsiblity for any posts made by members or guests.</p> </div>
</div>
<!-- / main wrapper -->
</body>
</html>