MyBB Community Forums

Full Version: [Release] MyTheme - A theme changer for MyBB forums
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5
I made a little modification so that it prepends the code to the $footer variable instead of searching for <!-- start: footer --> (same result, but have to have that setting turned on wasting bandwidth), and removing the thing entirely would be even easier. Just open the plugin's php file and comment out the line that adds the pre_pageoutput hook (or whatever it's called) at the top.
I'm noticing that no matter which part of the forum I'm on, it always takes me back to the index page. I don't remember it doing this with the previous version. Is this how it's behaving for the rest of you?
This is the old version for 1.6. I can help you in the 1.6 thread.
What should i put on footer template? <mytheme> ?
Coz it doesnt show up after installing. Sad
(2011-04-27, 10:37 AM)cron Wrote: [ -> ]What should i put on footer template? <mytheme> ?
Coz it doesnt show up after installing. Sad

Looks like you have replied to the 1.4 MyTheme thread, try the one for 1.6
Ah, so this thread is for 1.4?
(2011-04-28, 03:08 AM)cron Wrote: [ -> ]Ah, so this thread is for 1.4?

Yep.

1.6 http://community.mybb.com/thread-81200.html
Can we change the menu position ?

Thanks Smile
Change the match string for preg_match & str_replace as you wish. Example:
	preg_match('#'.preg_quote('<!-- end: header -->').'#i', $page, $matches);
	if($matches[0])
	{
		$page = str_replace($matches[0], $data."\n<!-- end: header -->", $page);
	}

Will display the changer at the top-right instead of bottom.
cool, thank you Big Grin
Pages: 1 2 3 4 5