public static function extendAccountController($class, array &$extend)
{
if ($class == 'XenForo_ControllerPublic_Account')
{
$extend[] = 'GritterNotifications_ControllerPublic_Account';
}
}
class GritterNotifications_ControllerPublic_Account extends XenForo_ControllerPublic_Account
class GritterNotifications_ControllerPublic_Account extends XFCP_GritterNotifications_ControllerPublic_Account
I know, thus the Homer SimpsonYou're extending your controller via xfcp but you're not using the right classname for the parent class![]()
I love them, Shelley.Random thought:
Need. To. Add. Moreeeeeeeee *a political broadcast from the the notification creation fanatic*
I have just tried to insert a youtube video in a notification. Looks cool.
However the notification containter cannot expand to full wide. Possible it can expand if content is wider?
if ($templateName == 'PAGE_CONTAINER' && $template instanceof XenForo_Template_Admin) {
public static function templatePostRender($templateName, &$content, array &$containerData, XenForo_Template_Abstract $template)
{
if ($templateName == 'PAGE_CONTAINER')
{
// <body data-controller=" only appears in the admin version of PAGE_CONTAINER.
// Without the following check, editing a notification that contains {name} causes
// a replacement. This ensures this replacement only happens outside of the Admin CP.
if (!preg_match('/<body data-controller="/', $content))
{
another suggestion:
IMO it's better to use
PHP:if ($templateName == 'PAGE_CONTAINER' && $template instanceof XenForo_Template_Admin) {
Random thought:
Need. To. Add. Moreeeeeeeee *a political broadcast from the the notification creation fanatic*
If you configure the width of your YouTube video in the embed settings appropriately, you can actually get away with the default notification width:I have just tried to insert a youtube video in a notification. Looks cool.
However the notification containter cannot expand to full wide. Possible it can expand if content is wider?
another suggestion:
EDIT: lol, i've miread the code, i thought it's FOR THE ACP area
sorry
public static function templatePostRender($templateName, &$content, array &$containerData, XenForo_Template_Abstract $template)
{
if ($templateName == 'PAGE_CONTAINER' && $template instanceof XenForo_Template_Public)
Yep, very soon actually.So is this being upgraded to not clash with Syndols mods? Asking, as I use his mods...
If you configure the width of your YouTube video in the embed settings appropriately, you can actually get away with the default notification width:
This - I'm sorry to say - isn't possible.Purchased, Installed, +1 (actually +1000)...Here is what is would ideally have/want/need....notifications based on visiting certain pages (actually, what I really want is if someone visits my profile, then they get a notification).
Is this possible, if so, how do I do it?!?!?!?
1.3 Fixes:
- Temporary dismissal now only functions if the close button is pressed.
- Fixed clash with other add-ons (specifically Conversation Essentials and User Essentials by Syndol)
1.3 New Features:
Video demonstration of new features:
- Updated the admin colour picker to use the default XenForo picker.
- Colour picker now lets you configure transparency on a per notification basis....
We use essential cookies to make this site work, and optional cookies to enhance your experience.