Recent activity plugin does not shows on Vanilla Default multitheme or with Embed Friendly that comes with vanilla 2.0.14 installation. However, it works fine with included default theme.
Please don't carpet-bomb mention every developer. Pick 1 or 2 most appropriate and we'll pass it off if necessary. Besides, Tim will throw things at you if he sees you using Base_Render_Before like that. ;)
Are there any errors? Can you check to see if it's even finding the RecentActivity module? Can you output something to make sure the plugin is triggering?
Sorry I didn't know who was the "most appropriate", so I just picked the first few names I saw...
Are there any errors?
No.
Can you check to see if it's even finding the RecentActivity module?
Not sure what you mean. The Base_Render_Before() is executed for sure in every theme. Also, I tried to create my own module named NewRecentActivityModule, within a file named class.newrecentactivitymodule.php in which I copy/pasted the code from the core module with a few changes to make it work: it works in the default theme, not in the others (nothing happens).
Can you output something to make sure the plugin is triggering?
If I add a var_dump('ok'); in the Base_Render_Before(), it appears.
Btw, what's wrong with the Base_Render_Before()? I'm not used to Vanilla/Garden at all, but I'd like to make this plugin right.
I'm probably going to need a little more time than my lunch break to figure this out. I'll try to remember to check back later if someone else doesn't get to this.
Also, when you're developing for Garden you should try to turn on DEBUG. You can do this by adding define('DEBUG', TRUE); at the top of your index.php. This turns on strict mode. Also, change $Configuration['Garden']['Errors']['MasterView'] = 'error.master.php'; to $Configuration['Garden']['Errors']['MasterView'] = 'deverror.master.php'; in your conf/config.php
This will enable full screen detailed error messages.
@Tim I'm more than surprised, I can't get my plugin to show anything, except on the default theme... Version 2.0.14 and everything... What's going on? :D
Well, I didn't change anything. Just upgraded vanilla (I have overwritten all themes too) and there It was. Now it also displays box with followed discussions in sidebar which wasn't there before, so maybe that's somehow connected.
Comments
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Any help from a Vanilla dev please?
@Todd @digibomb @Tim @Mark @Lincoln
The code is pretty simple:
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Are there any errors?
Can you check to see if it's even finding the RecentActivity module?
Can you output something to make sure the plugin is triggering?
Developer at Vanilla Forums, Inc. [GitHub, Twitter]
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Btw, what's wrong with the Base_Render_Before()? I'm not used to Vanilla/Garden at all, but I'd like to make this plugin right.
Thanks for you answer!
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Developer at Vanilla Forums, Inc. [GitHub, Twitter]
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- You should probably lower() your $Controller variable before comparing it in InArrayI().
- $Sender->AddModule(), not addModule()
Vanilla Forums Senior Developer [GitHub, Twitter, About.me]
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •define('DEBUG', TRUE);at the top of your index.php. This turns on strict mode. Also, change$Configuration['Garden']['Errors']['MasterView'] = 'error.master.php';to$Configuration['Garden']['Errors']['MasterView'] = 'deverror.master.php';in your conf/config.phpThis will enable full screen detailed error messages.
Vanilla Forums Senior Developer [GitHub, Twitter, About.me]
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •I'm desperate, any idea about how to make it work everywhere?
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Vanilla Forums Senior Developer [GitHub, Twitter, About.me]
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
1 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •