I love how simple this module will be for my users.

Can you please alter the code so the error messages only appear to Admins and not visitors? For example it should not show an error on the teaser page:
drupal_set_message(t('Gallerias only display when viewing a node by itself on the page.'), 'warning');

Second, could you create a php code that is entered into the node so users can append the Galleria below the body/comment or in the middle of the node body?

CommentFileSizeAuthor
#1 galleria.module.zip2.28 KBisaacbowman.com

Comments

isaacbowman.com’s picture

StatusFileSize
new2.28 KB

I have attached a crude PHP edit where I have removed the error messages. I would still rather it test to display only when Admin is logged into the site.

Mark Theunissen’s picture

Status: Active » Closed (duplicate)

The messages are there to tell you that something's wrong. If you're displaying a teaser view of a Galleria, you've made a mistake. Therefore these messages are necessary.

That being said, there is merit in only displaying them for admins. Unfortunately it's impossible to know which role is defined as the admin role. We can't just display for User #1, as a lot of people don't use User #1 for admin tasks (instead using a role "administrator" or "admin" or whatever).

Thus this is practically impossible to achieve.

The input filter request is a duplicate of #347715: Embedding a Galleria into a node (page/blog/story)?