Quick Skinning Guide By roosevelt Published: November 1, 2006
Print Email
header.html & footer.html file explained - In the beginning of header.html file add this code:
<?php $roosevelt->LoadSettings(); ?> Just before the </head> tag of header.html file add this code: <?php $roosevelt->CommonCss("radmincp/"); ?> <script type="text/javascript" src="radmincp/roosevelt.js"> </script> Here are some other tags you can use in your header.html or footer.html files Now you may use the following variables and functions to display especial contents. <?php echo rsettings['SiteTitle']; ?> = Displays the website title. <?php echo rsettings['SiteDesc']; ?> = Displays the website description. <?php echo rsettings['SiteKeys']; ?> = Displays the website keywords. <?php $rgames->AllGamesMenu(); ?> = Displays the drop down menu of games <?php $rtemp->GameCats(); ?> = Displays the game categories <?php $rgames->LatestGames(10); ?> = Displays latest 10 games <?php $rgames->TopGames(10); ?> = Displays top 10 games And use the following codes to display the game search box: <form action='index.php?id=search' method='post' enctype='application/x-www-form-urlencoded' name='form1' id='form1'> <b>Find Results with: </b><br> Any of these words: <input type="text" size='15' name="any" /> <br> All of these words: <input type="text" size='15' name="all" /> <br> None of these words: <input type="text" size='15' name="none" /> <br> <input type="submit" value="Search" /> </form> To display the login/registration links use the following codes: <?php if (session_is_registered("rgames_user")) { $changepasslink = $rtemp->RGameLinkParser(4, "cp", "Change Pasword"); $logout = $rtemp->RGameLinkParser(4, "logout", "Log Out"); echo "- $changepasslink - $logout"; } else { $registerlink = $rtemp->RGameLinkParser(4, "register", "Register"); $login = $rtemp->RGameLinkParser(4, "login", "Log-in"); echo "- $registerlink - $login"; } ?>
« Previous Page | Page 2 of 3 | Next Page »
View Comments (0) |