MyBB Community Forums

Full Version: Index Page Template
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Some how, i deleted my Index Page Default Template. Sad

How that happend, I don't know... Sad
This might be your problem. :/

http://community.mybboard.net/thread-50240.html

Running this query in phpMyAdmin should fix it.


INSERT INTO mybb_templates (title,template,sid,version) VALUES('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><img src=\"{$theme[\'imgdir\']}/on.gif\" alt=\"{$lang->new_posts}\"title=\"{$lang->new_posts}\" style=\"vertical-align: middle; padding-bottom: 4px;\" /></dt>	<dd>{$lang->new_posts}</dd><dt><img src=\"{$theme[\'imgdir\']}/off.gif\" alt=\"{$lang->no_new_posts}\" title=\"{$lang->no_new_posts}\" style=\"vertical-align: middle; padding-bottom: 4px;\" /></dt><dd>{$lang->no_new_posts}</dd>	<dt><img src=\"{$theme[\'imgdir\']}/offlock.gif\" alt=\"{$lang->forum_locked}\" title=\"{$lang->forum_locked}\" style=\"vertical-align: middle;\" /></dt><dd>{$lang->forum_locked}</dd></dl><br style=\"clear: both\" />{$footer}</body></html>', '-2', '1400'); 
Is the actual template gone completely or has the code just gone from inside it?? If the code has just gone, you can revert it to default, but if the template has completely gone, then the query above is for you.
The whole template is gone.
Then run that query and it'll get added back in.
How do I do that? Sorry, I am new to all of this.
In your host control panel, you should see something called phpMyAdmin, or something similar, ask your host if you're not sure where it is... then from the list on the left, choose your database, click the SQL tab along the top, paste the code in, and click Go.