page blank - Printable Version +- MyBB Community Forums (https://community.mybb.com) +-- Forum: Extensions (https://community.mybb.com/forum-201.html) +--- Forum: Plugins (https://community.mybb.com/forum-73.html) +---- Forum: Plugin Development (https://community.mybb.com/forum-68.html) +---- Thread: page blank (/thread-174011.html) |
page blank - chack1172 - 2015-08-05 Hello, I've finished a plugin but there's a bug. I know where code is wrong but I can't fix it:
Templates news
news_list
RE: page blank - Destroy666 - 2015-08-05 Your code doesn't make much sense. This would be more logical (I also optimised it a bit and used simple_select for the simple query):
RE: page blank - chack1172 - 2015-08-05 It doesn't work RE: page blank - Destroy666 - 2015-08-05 (2015-08-05, 08:00 PM)chack1172 Wrote: It doesn't work That doesn't really help us with further checking. What exactly doesn't work? The code above should work if the templates are exact copies of those posted above. However, you also need to globalise $templates as I just noticed. RE: page blank - chack1172 - 2015-08-06 Thanks destroy I had forgotten to glovalise $templates, now it works |