Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need some help please
#1
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:

Code:
<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:

PHP Code:
{$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.
At the top will be the same place you hang from.
Reply


Messages In This Thread
Need some help please - by Jordan L. - 05-08-2010, 05:02 PM
RE: Need some help please - by J0R63 - 05-09-2010, 03:14 AM
RE: Need some help please - by Tierney - 05-09-2010, 04:52 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)