2009-08-11, 08:29 AM
2009-08-11, 12:01 PM
Do you mean the name of the template is in blue?? Run this query:
Do you know how you managed to delete it...??
INSERT INTO mybb_templates (title,template,sid,version) VALUES('postbit_reputation', '<br />{$lang->postbit_reputation} {$post[''userreputation'']}', '-2', '1400');
Do you know how you managed to delete it...??
2009-08-11, 01:17 PM
not totally deleted it.. i just customize one theme, when i try to save it.. the other theme postbit_reputation has gone too.. example im editing afresh sky postbit_reputation, it turns to blue, and other theme like afresh leaf postbit_reputation disappears..
how to recover it then?
Note: temporarily i used my backup for now.. i have a backup of the database in which that template turns blue.
how to recover it then?
Note: temporarily i used my backup for now.. i have a backup of the database in which that template turns blue.
2009-08-11, 01:27 PM
(2009-08-11, 01:17 PM)AndrewPH Wrote: [ -> ]how to recover it then?
Do what I said in my post above....??
Edit: You don't need a backup, do what I sad in my first post, and it will be fine... if the name is in blue, the master copy of the template has been deleted, so the template shows up as being custom for the edited version, hence the blue name, and it disappears where you hadn't edited it, that's why I gave the query to add the master copy back.
2009-08-11, 02:22 PM
just a question, why is that error happen? it is due to my host server load during when i was editing the theme?? thanks
2009-08-11, 02:27 PM
I don't know why it happened, that's why I asked if you knew how you deleted it. There was a bug that made it possible, but it was fixed, if you're on 1.4.8, that won't affect you, it isn't do do with server load...
2009-08-11, 02:30 PM
im using 1.4.8.. i dont know why it turns blue when i try to edit it..and all themes are also affected is there any query code or a thread giving tutorial about template master copy when this thing happens again in another template? thanks
2009-08-11, 02:32 PM
You mean it happens all the time?? Can you PM me admin access so I can check it out??
Yes, the SQL query you need is the one I posted above... just change the name of the template and the contents, and then run it.
Yes, the SQL query you need is the one I posted above... just change the name of the template and the contents, and then run it.
2009-08-11, 02:38 PM
ok sir, it just happen twice for now(the 2nd was on forumbit_subsforums).. thanks for the query code..
i'll pm your soon whenever this bug or error happens again so you can check it.. for the mean time we might need this thread for others can share about this topic or know the solution.. thanks a lot!
anyway how to get "sid"? thanks
i'll pm your soon whenever this bug or error happens again so you can check it.. for the mean time we might need this thread for others can share about this topic or know the solution.. thanks a lot!
anyway how to get "sid"? thanks
2009-08-11, 02:59 PM
Keep the sid as -2, you only need to change the title and template values, keep the '-2', '1400' as it is.
I've written it up as a tutorial now: http://community.mybboard.net/thread-54609.html
I've written it up as a tutorial now: http://community.mybboard.net/thread-54609.html