Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Moving forums to forums.php

Hi there, I'd like to do something where I have a splash screen of sorts, one that links to different links of the site, but also having a place to register right on the front. So as soon as you see domain.com, you can enter a username, password, and email, then if you don't want to register, you can click a button to go to forums.php

If any of the items described above require extensive knowledge, I will pay for this work.
Thank you!
I could do this for you. PM me your Skype and lets get started.
Website developer here. Give me a message, will give you examples of my work.
I'd still like some possible help with this, thanks!
If you are still looking for help feel free to contact me
Still looking, I'll shoot you a pm though, thanks!
http://community.mybb.com/thread-116225.html

Make a custom page and name it index. Rename your index.php (the forums) to forums.php.

Then add your content inside the custom page. Or create a global template in ACP and then eval it in the new index.php along with header and footer.
Thanks so much for this, doge!
Gracias.


"eval" it?
I know a whole 0 PHP, and after 2 attempts with that URL - little luck.
1. Rename index.php to forums.php

2. Create a new file and name it index.php

3. Paste the following script into it..

Code
<?php

define('IN_MYBB', 1); require "./global.php";

add_breadcrumb("Title here", "somename.php");

eval("\$headerinclude = \"".$templates->get("headerinclude")."\";");
eval("\$header = \"".$templates->get("header")."\";");
eval("\$footer = \"".$templates->get("footer")."\";");

output_page($headerinclude);
output_page($header);
output_page($footer);

?>

That will create a page with no body.

4. Go to ACP > Templates > Global Templates and create a new template named custompage

5. Put the content you want inside that template, you will need to know HTML to format it properly.

6. Update your index.php with the "custompage" template.

Code
<?php

define('IN_MYBB', 1); require "./global.php";

add_breadcrumb("Title here", "somename.php");

eval("\$headerinclude = \"".$templates->get("headerinclude")."\";");
eval("\$header = \"".$templates->get("header")."\";");
eval("\$custompage = \"".$templates->get("custompage")."\";");
eval("\$footer = \"".$templates->get("footer")."\";");

output_page($headerinclude);
output_page($header);
output_page($custompage);
output_page($footer);

?>

Now, it will have your content.