Thread Rating:
  • 5 Vote(s) - 3.8 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Release] MyTheme - A theme changer for MyBB forums
#41
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.
[Image: LogoO.png]
Reply
#42
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?
Reply
#43
This is the old version for 1.6. I can help you in the 1.6 thread.
Reply
#44
What should i put on footer template? <mytheme> ?
Coz it doesnt show up after installing. Sad
Reply
#45
(04-27-2011, 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
Reply
#46
Ah, so this thread is for 1.4?
Reply
#47
(04-28-2011, 03:08 AM)cron Wrote: Ah, so this thread is for 1.4?

Yep.

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

Thanks Smile
Reply
#49
Change the match string for preg_match & str_replace as you wish. Example:
PHP Code:
    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.
PGP fingerprint = 0CB4 140A 2BF2 48E4 6BA8  BB8D C386 35EE EC47 2CD0
Reply
#50
cool, thank you Big Grin
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)