Need some help please - Printable Version +- Support Forums (https://www.supportforums.net) +-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87) +--- Forum: Webmaster Support (https://www.supportforums.net/forumdisplay.php?fid=36) +---- Forum: Website Development (https://www.supportforums.net/forumdisplay.php?fid=43) +---- Thread: Need some help please (/showthread.php?tid=6918) |
Need some help please - Jordan L. - 05-08-2010 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"> 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. RE: Need some help please - J0R63 - 05-09-2010 {$post} {$user} {$theme} {$mybb->settings[‘bbname’]} {$mybb->settings[‘bburl’]} {$theme[‘imgdir’]} {$theme[‘imglangdir’]} {$mybb->user[‘email’]} {$mybb->user[‘avatar’]} {$mybb->user[‘uid’]} {$mybb->user[‘postnum’]} {$mybb->user[‘username’]} {$mybb->user[‘logoutkey’]} {$mybb->post_code} * $clean_variables * $config * $cookies * $cwd * $debug_mode * $ignore_clean_variables * $input * $magicquotes * $request_method * $settings * $usergroup * $use_shutdown * $version * $version_code Here you go RE: Need some help please - Tierney - 05-09-2010 You didn't really give an explanation of how to use it though JOR. |