MyBB Community Forums

Full Version: Getting blank page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
On my svr, I made some changes to myquestion plugin and activated it. Since then, I dont at all have a page and it shows me blank pages: http://testsvr.freehostia.com

Now since I have very _very_ limited bandwidth, I cannot go ahead boldly and reinstall MyBB, and maybe I'll try to give it a shot.

I have attached the original and modified files.
I changed the myquestion plugin to show a button next to the "New Reply" button. The default plugin will show both solve/unsolve links. I changed it a bit to show only "Solved" for an unsolved thread and vice versa.
I modified the $new_template at the myquestion_activate() function to show only "Solved". Now in the myquestion_run() function, I added these two lines for action=solve (See line 212 of modified code):
$new_template = '<a href="showthread.php?tid={$tid}&amp;action=unsolve"><img src="/images/markunsolved.png" title="Mark Unsolved"></a>';
$db->update_query('templates', array('title' => 'showthread_myquestion','template' => db->escape_string($new_template),'sid' => -1,'version' => 120));
This would change the solve button to the unsolved button. I added similar two lines for action=unsolve to change the button.

That's all I did. I activated the plugin and since then, I get blank pages. Now what would cause this error? How do I resolve this?

Any help would be appreciated. Thanks.
Ok, recently I discovered that if I goto AdminCP -> Templates and Themes -> Templates, and expand any default template, nothing is displayed. So I guess all my templates are gone?
How do I restore the default templates?
Or.. err, _all_ my templates are gone Sad
No db backup as it was just a test svr..
Because this is caused by a plugin, this is the wrong forum.
Nm, I reinstalled the forums.. Thanks.