MyBB Community Forums

Full Version: Confused by 2 Index files
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey mybb commnunity!
I have stumbled upon a confusing (for me at least) situation about my mybb forum.

My forum is located at "https://tsaritson.no/forum/"  When i check the source (ctrl + u) it is a HTML file that is located in www\forum\index.html on my server.

When i logon my server and try to edit that file, i dont find it.
I only have a index.php file that looks nothing like the first one.

The forum works fine, i just wanted to add somethings to the main index file that is HTML.

I hope you guys can help.

I have tried google, no luck there:/

MyBB Version 1.8.21

Love HumAnTarg3t
Is it in your templates?

Templates & Styles >> Templates >> YOUR THEME >> Index Templates >> Index
(2019-07-06, 06:23 PM)makpaolo Wrote: [ -> ]Is it in your templates?

Templates & Styles >> Templates >> YOUR THEME >> Index Templates >> Index
Hey, i logged on my Admin controll panel on MyBB and checked the location.

Its not the same, in the Index Page Template - Index:
 <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}
{$forums}
{$boardstats}

<dl class="forum_legend smalltext">
<dt><span class="forum_status forum_on" title="{$lang->new_posts}"></span></dt>
<dd>{$lang->new_posts}</dd>

<dt><span class="forum_status forum_off" title="{$lang->no_new_posts}"></span></dt>
<dd>{$lang->no_new_posts}</dd>

<dt><span class="forum_status forum_offclose" title="{$lang->forum_closed}"></span></dt>
<dd>{$lang->forum_closed}</dd>

<dt><span class="forum_status forum_offlink" title="{$lang->forum_redirect}"></span></dt>
<dd>{$lang->forum_redirect}</dd>
</dl>
<br class="clear" />
{$footer}
</body>
</html>


But what im looking for is starting like:
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!-- start: index -->
<html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Tsar Forum</title>
<!-- start: headerinclude -->
<link rel="alternate" type="application/rss+xml" title="Latest Threads (RSS 2.0)" href="https://tsaritson.no/forum/syndication.php" />
<link rel="alternate" type="application/atom+xml" title="Latest Threads (Atom 1.0)" href="https://tsaritson.no/forum/syndication.php?type=atom1.0" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<script type="text/javascript" src="https://tsaritson.no/forum/jscripts/jquery.js?ver=1821"></script>
<script type="text/javascript" src="https://tsaritson.no/forum/jscripts/jquery.plugins.min.js?ver=1821"></script>
<script type="text/javascript" src="https://tsaritson.no/forum/jscripts/general.js?ver=1821"></script>

<link type="text/css" rel="stylesheet" href="https://tsaritson.no/forum/cache/themes/theme1/global.css" />
<link type="text/css" rel="stylesheet" href="https://tsaritson.no/forum/cache/themes/theme1/css3.css" />
(2019-07-06, 06:34 PM)HumAnTarg3t Wrote: [ -> ]
(2019-07-06, 06:23 PM)makpaolo Wrote: [ -> ]Is it in your templates?

Templates & Styles >> Templates >> YOUR THEME >> Index Templates >> Index
Hey, i logged on my Admin controll panel on MyBB and checked the location.

Its not the same, in the Index Page Template - Index:
 <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}
{$forums}
{$boardstats}

<dl class="forum_legend smalltext">
<dt><span class="forum_status forum_on" title="{$lang->new_posts}"></span></dt>
<dd>{$lang->new_posts}</dd>

<dt><span class="forum_status forum_off" title="{$lang->no_new_posts}"></span></dt>
<dd>{$lang->no_new_posts}</dd>

<dt><span class="forum_status forum_offclose" title="{$lang->forum_closed}"></span></dt>
<dd>{$lang->forum_closed}</dd>

<dt><span class="forum_status forum_offlink" title="{$lang->forum_redirect}"></span></dt>
<dd>{$lang->forum_redirect}</dd>
</dl>
<br class="clear" />
{$footer}
</body>
</html>


But what im looking for is starting like:
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!-- start: index -->
<html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Tsar Forum</title>
<!-- start: headerinclude -->
<link rel="alternate" type="application/rss+xml" title="Latest Threads (RSS 2.0)" href="https://tsaritson.no/forum/syndication.php" />
<link rel="alternate" type="application/atom+xml" title="Latest Threads (Atom 1.0)" href="https://tsaritson.no/forum/syndication.php?type=atom1.0" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<script type="text/javascript" src="https://tsaritson.no/forum/jscripts/jquery.js?ver=1821"></script>
<script type="text/javascript" src="https://tsaritson.no/forum/jscripts/jquery.plugins.min.js?ver=1821"></script>
<script type="text/javascript" src="https://tsaritson.no/forum/jscripts/general.js?ver=1821"></script>

<link type="text/css" rel="stylesheet" href="https://tsaritson.no/forum/cache/themes/theme1/global.css" />
<link type="text/css" rel="stylesheet" href="https://tsaritson.no/forum/cache/themes/theme1/css3.css" />

That will be in same section, but go to Ungrouped Templates (to bottom) and click headerinclude
(2019-07-06, 06:35 PM)makpaolo Wrote: [ -> ]
(2019-07-06, 06:34 PM)HumAnTarg3t Wrote: [ -> ]
(2019-07-06, 06:23 PM)makpaolo Wrote: [ -> ]Is it in your templates?

Templates & Styles >> Templates >> YOUR THEME >> Index Templates >> Index
Hey, i logged on my Admin controll panel on MyBB and checked the location.

Its not the same, in the Index Page Template - Index:
 <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}
{$forums}
{$boardstats}

<dl class="forum_legend smalltext">
<dt><span class="forum_status forum_on" title="{$lang->new_posts}"></span></dt>
<dd>{$lang->new_posts}</dd>

<dt><span class="forum_status forum_off" title="{$lang->no_new_posts}"></span></dt>
<dd>{$lang->no_new_posts}</dd>

<dt><span class="forum_status forum_offclose" title="{$lang->forum_closed}"></span></dt>
<dd>{$lang->forum_closed}</dd>

<dt><span class="forum_status forum_offlink" title="{$lang->forum_redirect}"></span></dt>
<dd>{$lang->forum_redirect}</dd>
</dl>
<br class="clear" />
{$footer}
</body>
</html>


But what im looking for is starting like:
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!-- start: index -->
<html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Tsar Forum</title>
<!-- start: headerinclude -->
<link rel="alternate" type="application/rss+xml" title="Latest Threads (RSS 2.0)" href="https://tsaritson.no/forum/syndication.php" />
<link rel="alternate" type="application/atom+xml" title="Latest Threads (Atom 1.0)" href="https://tsaritson.no/forum/syndication.php?type=atom1.0" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<script type="text/javascript" src="https://tsaritson.no/forum/jscripts/jquery.js?ver=1821"></script>
<script type="text/javascript" src="https://tsaritson.no/forum/jscripts/jquery.plugins.min.js?ver=1821"></script>
<script type="text/javascript" src="https://tsaritson.no/forum/jscripts/general.js?ver=1821"></script>

<link type="text/css" rel="stylesheet" href="https://tsaritson.no/forum/cache/themes/theme1/global.css" />
<link type="text/css" rel="stylesheet" href="https://tsaritson.no/forum/cache/themes/theme1/css3.css" />

That will be in same section, but go to Ungrouped Templates (to bottom) and click headerinclude
You got it man, thank you very much Smile