MyBB Community Forums

Full Version: Need some help please
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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:
 <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
Erm, you can't "make" PHP variables with HTML.

You'd be looking for something like this: http://mods.mybboard.net/view/global-templates
or like this: http://mybbhacks.zingaburga.com/showthread.php?tid=260
Also, cool copypasta.
(2010-05-09, 02:24 AM)Scoutie44 Wrote: [ -> ]Erm, you can't "make" PHP variables with HTML.

You'd be looking for something like this: http://mods.mybboard.net/view/global-templates
or like this: http://mybbhacks.zingaburga.com/showthread.php?tid=260
Also, cool copypasta.

Thanks.

And what copy paste?
You mean from my header I made? Well, yeah. I didn't see the need to re-write it when I already had it open on NotePad++.