Jump to content

Global Header Message

This topic contains 76 posts. A summary containing the most significant posts is available

Featured Replies

Hi,

As I said it worked fine in the default skin when switching to it

  • Replies 75
  • Views 12.9k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • BN_IT_Support
    BN_IT_Support

    New version 1.0.1 Message is now translatable for multi-lingual sites Note: Upgrading may remove the content of any existing message so I recommend that you copy what you have before upgrad

  • Meddysong
    Meddysong

    It looks great and I shouldn't complain about something that's free but it could be more useful for people with multilingual sites if the message were a translatable field. Maybe something to add in a

  • BN_IT_Support
    BN_IT_Support

    Thank you.  At the moment the left, centre and right is only for the 'custom' setting.  Your screenshot looks like one of the standard IPS styles which are always left or right aligned depending on yo

Posted Images

I've just submitted a support request because it and several other plugins aren't working on my site if a custom wrapper is used, even though the IDs to hook onto are present. I've linked to this thread and mentioned Unlucky's problem too.

^^ No help on the bug front, @Edward Shephard. I've been summarily dismissed for using a custom wrapper, which is outside the scope of support.

Marcher has been kind enough to explain to me that the reason it doesn't work in my case is because plugins look for the template called globalTemplate, rather than get called by something within it. (The solution for anybody else experiencing the same is to paste {template="pluginName" group="plugins" location="global" app="core"} within the custom wrapper.)

That doesn't explain what @Unlucky's problem is, since the hook point is there. Good luck to you both in resolving it ^_^

  • Author

New in Version 1.0.3

NEW: Now uses IPS editor for easier formatting.
NEW: Users can now hide message if permitted by admin.

Bug: Fixed bug with group selector.

Note: Moved hook point to improve compatibility with custom skins. (Note: compatibility with custom skins is NOT guaranteed!).
Note: In order to be compatible with IPS editor, custom icons are now selectable by Font Awesome unicode value and not title.
Note: Do not be tempted to upload attachments in the editor - they won't work!

 

^^ No help on the bug front, @Edward Shephard. I've been summarily dismissed for using a custom wrapper, which is outside the scope of support.

Marcher has been kind enough to explain to me that the reason it doesn't work in my case is because plugins look for the template called globalTemplate, rather than get called by something within it. (The solution for anybody else experiencing the same is to paste {template="pluginName" group="plugins" location="global" app="core"} within the custom wrapper.)

That doesn't explain what @Unlucky's problem is, since the hook point is there. Good luck to you both in resolving it ^_^

Glad you resolved that and useful to know.

I have just uploaded a new version that moves the hook post right up to the start of 'html > body' so hopefully that might help with custom skins a bit - although no guarantees.

Edited by Edward Shephard

  • Author

What's New in Version 1.0.4

NEW: Display the message on selected pages based on a whitelist or blacklist

Hi Edward.

 

Great pluging!

 

I have run the last update, but hi is missing the language strings description (titels).

Is this is an fault on my system or your plging ? 

 

Naamloos.png

Edited by R-023

  • 3 weeks later...
  • Author

What's New in Version 1.0.5 

Switched to using database flag for registered users to dismiss the message as Pages seems intent on ignoring the cookie.

  • 3 months later...

Hi Edward, many thanks for implementing this nice plugin!

As a kind suggestion: if a user hid the global message once, he won't see it anymore, unless he cleans the cookies. Is that possible to make the message visible to all users, once it has been updated with a new text? :) 

  • Author

That's the way it should currently work. Every time you update the message or save new settings it resets all of the user cookies. 

  • 4 months later...

Is it true that it is not compatible with IPS Focus Themes?

  • Author
 

Is it true that it is not compatible with IPS Focus Themes?

I haven't tested it with custom themes so it will depend on how it's been modified.

  • 2 weeks later...

Hello,

Any chance to support multiple messages? :)

  • Author

Doing multiple messages in a nice flexible way would take a bit of work but I might have a look once 4.2 is out.

Wow! Would be great! Thanks! :-)

  • Author

V 1.0.8: Just done a quick update to add a couple of settings so that you can set a start and end date for the message to display.

Thanks for the update and continued maintenance.

  • 2 weeks later...

Hey i installed your plugin but it seems that there was an error with the install. If i try to uninstall now the plugin i get this error:

IPS\Db\Exception: Can't DROP 'ebsGlobalMessage_dismissed'; check that column/key exists (1091)
#0 /var/www/vhosts/***/***/system/Db/Db.php(1895): IPS\_Db->query('ALTER TABLE `co...')
#1 /var/www/vhosts/***/***/plugins/globalheadermessage/uninstall.php(10): IPS\_Db->dropColumn('core_members', 'ebsGlobalMessag...')
#2 /var/www/vhosts/***/***/system/Plugin/Plugin.php(477): require_once('/var/www/vhosts...')
#3 /var/www/vhosts/***/***/system/Node/Controller.php(1205): IPS\_Plugin->delete()
#4 /var/www/vhosts/***/***/system/Dispatcher/Controller.php(86): IPS\Node\_Controller->delete()
#5 /var/www/vhosts/***/***/system/Node/Controller.php(63): IPS\Dispatcher\_Controller->execute()
#6 /var/www/vhosts/***/***/applications/core/modules/admin/applications/plugins.php(39): IPS\Node\_Controller->execute()
#7 /var/www/vhosts/***/***/system/Dispatcher/Dispatcher.php(129): IPS\core\modules\admin\applications\_plugins->execute()
#8 /var/www/vhosts/***/***/atminnn/index.php(14): IPS\_Dispatcher->run()
#9 {main}

do you know how to fix this ?

Edited by Willie88

  • Author

Immediate guess is that the DB column didn't install correctly in the first place and the system therefore can't find it to uninstall it.  Have you tried reinstalling?

i cant cause its shown under the plugins as installed.

if i try to install it as new version i get the error that i dont have permission to it.

  • Author

Okay if you can't uninstall or install it as a new version I may need acp access to take a look. Can you PM me.

  • 3 months later...

 

Hey. Updated the forum to 4,2,2, and the plugin. Now the plug-in stopped working.

  Quote

UPDATE `core_members` core_members  SET `ebsGlobalMessage_dismissed`=0  
IPS\Db\Exception: Unknown column 'ebsGlobalMessage_dismissed' in 'field list' (1054)
#0 /var/www/www-root/data/www/cul7.ru/s/system/Db/Db.php(990): IPS\_Db->preparedQuery('/*IPS\\core\\modu...', Array)
#1 /var/www/www-root/data/www/cul7.ru/s/applications/core/modules/admin/applications/plugins.php(960) : eval()'d code(90): IPS\_Db->update('`core_members` ...', '`ebsGlobalMessa...')
#2 /var/www/www-root/data/www/cul7.ru/s/applications/core/modules/admin/applications/plugins.php(960): eval()
#3 /var/www/www-root/data/www/cul7.ru/s/system/Dispatcher/Controller.php(85): IPS\core\modules\admin\applications\_plugins->settings()
#4 /var/www/www-root/data/www/cul7.ru/s/system/Node/Controller.php(62): IPS\Dispatcher\_Controller->execute()
#5 /var/www/www-root/data/www/cul7.ru/s/applications/core/modules/admin/applications/plugins.php(38): IPS\Node\_Controller->execute()
#6 /var/www/www-root/data/www/cul7.ru/s/system/Dispatcher/Dispatcher.php(146): IPS\core\modules\admin\applications\_plugins->execute()
#7 /var/www/www-root/data/www/cul7.ru/s/fak_13/index.php(13): IPS\_Dispatcher->run()
#8 {main}

 

I can not reinstall it through the panel, I get an error. Can there be a description of what and where to add fields or table to the database manually?

  Quote

IPS\Db\Exception: Can't DROP 'ebsGlobalMessage_dismissed'; check that column/key exists (1091)
#0 /var/www/www-root/data/www/cul7.ru/s/system/Db/Db.php(1894): IPS\_Db->query('ALTER TABLE `co...')
#1 /var/www/www-root/data/www/cul7.ru/s/plugins/headermessage/uninstall.php(10): IPS\_Db->dropColumn('core_members', 'ebsGlobalMessag...')
#2 /var/www/www-root/data/www/cul7.ru/s/system/Plugin/Plugin.php(532): require_once('/var/www/www-ro...')
#3 /var/www/www-root/data/www/cul7.ru/s/system/Node/Controller.php(1213): IPS\_Plugin->delete()
#4 /var/www/www-root/data/www/cul7.ru/s/system/Dispatcher/Controller.php(85): IPS\Node\_Controller->delete()
#5 /var/www/www-root/data/www/cul7.ru/s/system/Node/Controller.php(62): IPS\Dispatcher\_Controller->execute()
#6 /var/www/www-root/data/www/cul7.ru/s/applications/core/modules/admin/applications/plugins.php(38): IPS\Node\_Controller->execute()
#7 /var/www/www-root/data/www/cul7.ru/s/system/Dispatcher/Dispatcher.php(146): IPS\core\modules\admin\applications\_plugins->execute()
#8 /var/www/www-root/data/www/cul7.ru/s/fak_13/index.php(13): IPS\_Dispatcher->run()
#9 {main}

 

  • Author

It definitely works on 4.2.2 so it must be a glitch with the install. You could either add the missing column manually:

\IPS\Db::i()->addColumn( 'core_members', array(
  'name'	=> 'ebsGlobalMessage_dismissed',
  'type'	=> 'BIT',
  'length'	=> 1,
  'null'	=> FALSE,
  'default'	=> 0,
  'comment'	=> 'If 1, the user has dismissed the global message'
) );

or you could remove the drop statement from the uninstaller.  Go to: yoursite/plugins/globalheadermessage/uninstall.php and remove / comment out the last line:

\IPS\Db::i()->dropColumn( 'core_members', 'ebsGlobalMessage_dismissed' );

then try again to uninstall and reinstall the plugin.

Recently Browsing 0

  • No registered users viewing this page.