2010-05-09, 12:03 AM
Post: #1 |
Need some help please
Hi. One question; I'm developing a main page and website for my forums, http://dotrb.net and I'm getting a little frustrated with my code. Everything works, it's just messy. Since I'm using PHP in it for some stuff, I want to know how to make PHP variables using HTML. Like MyBB does. For example; Instead of doing:
[Image: image1.png]
IP Address: Logged
Need some help please
Hi. One question; I'm developing a main page and website for my forums, http://dotrb.net and I'm getting a little frustrated with my code. Everything works, it's just messy. Since I'm using PHP in it for some stuff, I want to know how to make PHP variables using HTML. Like MyBB does. For example; Instead of doing:
<div id="header"> <div id="welcomeblock> lol </div> <div align="left"><div class="logo"> </div> <div class="statistics"> </div> <div class="toplinks"> <ul type="none"> <li><a href="index.php">Home</a></li> <li><a href="design.php">Design</a></li> <li><a href="##">Community</a></li> <li><a href="##">Contact</a></li> <li><a href="####">Profiles</a></li> <li><a href="#####">Services</a></li> <li><a href="#####">Software</a></li> <li><a href="######">Staff</a></li> </ul> </div>
You can just do: {$header}
Just to clear some things up. I just need it for the Side Bar and the Header; it's all so big and I have to copy paste on to every page lol. Thanks.[Image: image1.png]
IP Address: Logged