MyBB Community Forums

Full Version: Deleted header_welcome_admin template
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Haha, sorry, I made a very stupid mistake on my part today.
I accidentally deleted the header_welcome_admin template, and somehow, it is gone from ALL my themes.
Is there any way to readd it via somekind of, eh, MySQL operation/query?
What a silly thing to go and do.

Toungue

Run this:

INSERT INTO mybb_templates (title,template,sid,version) VALUES('header_welcomeblock_member_admin', ' &mdash; <a href=\"{$mybb->settings[\'bburl\']}/{$config[\'admin_dir\']}/index.php\">{$lang->welcome_admin}</a>', '-2', '1400');
I never knew that templates were stored in the DB..
(always thought they were in a file or something..)

And how did you manage to delete it? Lol Toungue
I found a bug that lets you delete them, some plugins mess them up too.
Lol, thanks!
Oh, I accidentally deleted my postbit_www now.. any fix?
I'm really stupid..
Do you know how you did it?? You shouldn't have the bug that I mentioned I found anymore, that got fixed, curious as to how people do this... anyway, this is the query:

INSERT INTO mybb_templates (title,template,sid,version) VALUES('postbit_www', '<a href=\"{$post[\'website\']}\" target=\"_blank\"><img src=\"{$theme[\'imglangdir\']}/postbit_www.gif\" alt=\"{$lang->postbit_website}\" title=\"{$lang->postbit_website}\" /></a>', '-2', '1400');
Lol, for me, it's stupidity.
Anyhow, thanks!
EDIT: Seems to be a bug..now I lost forumbit_depth2_forum_lastpost
I didn't even do anything. (fixed it, found out the pattern Toungue)