MyBB Community Forums

Full Version: I want this type of Modified Home Page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I want my Home page to display a custom links of topics that I created in .html.

1. Header
2. My html file
3. Footers

The html file I used to have in my old forum (before my recent change to mybb) was:

<li>

<span class="prefix">README:</span>

<a href='http://mysite.com/t/322/our-rules-here.html'>Forum Rules</a>

</li>

<li>

<span class="style1">Some text</span>

<a href='http://mysite.com/t/990/a-topic-i-choose.html'>You need to see this</a>

</li>


What I need is where to paste this code that I found 'within' my old members.php.
I guess it should go into the index.php of my new mybb installation.
Of course, my guesses are usually wrong.

<div id="site-alert">
<h3><u>HEADLINES</u></h3>
<ul>
<?php echo file_get_contents("updates.html"); ?>
</ul>
</div>


I would appreciate any help.
I am sorry if I did not make myself clear.

1. I have an this html file:
<li>

<span class="prefix">README:</span>

<a href='http://mysite.com/t/322/our-rules-here.html'>Forum Rules</a>

</li>
if you want to add that link then you can edit header template and add it

admin panel >> templates >> your forum's active theme templates >> header templates >> header

find link code like below
<li><a href="{$mybb->settings['bburl']}/search.php"><img src="{$theme['imgdir']}/toplinks/search.gif" alt="" title="" />{$lang->toplinks_search}</a></li>

add your required code within the set of the links code (eg. before or after above code)
it can be like this
<li><a href="{$mybb->settings['bburl']}/search.php"><img src="{$theme['imgdir']}/toplinks/search.gif" alt="" title="" />{$lang->toplinks_search}</a></li>
<li>
<span class="prefix">README:</span>
<a href='http://mysite.com/t/322/our-rules-here.html'>Forum Rules</a>
</li>
I am sorry if I did not make myself clear.

1. I have this saved as special.html in my root folder:

<li>
<a href='http://mysite.com/special.html'>Special Topics</a>
</li>

I want it to be displayed within my Index.php:

<html>
<head>
<title>{$mybb->settings['bbname']}</title>
{$headerinclude}
<script type="text/javascript">
<!--
lang.no_new_posts = "{$lang->no_new_posts}";
lang.click_mark_read = "{$lang->click_mark_read}";
// -->
</script>
</head>
<body>
{$header}


<!-- I want my html file to be displayed here -->


{$forums}
{$boardstats}
{$footer}
</body>
</html>

What I seek is how to type the code that will incorporate the special.html, that I will paste in the position indicated above.

Thanks.
^ if your file consists of pure html code then you can directly add the code at required place in index template

if your file content is a mix of php and html then iframe embedding can be a simple method to show the required content !
Thanks .m.,
But isn't there a way I can have my html file separate,
And sort of add a link to it, in my index.php?

I prefer a separate html file.
can you PM me the content of your html file and wait for sometime (see this post for example method)
Content of html file sent.
you have to code a separate file based on suggested guidance and use it as the home page for your forum
if you are not comfortable with coding then you may have to hire / request someone to do it
Pages: 1 2