Display a message to first time visitors (firsttimehint) Display a message to first time visitors (firsttimehint)
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Display a message to first time visitors (firsttimehint)

Started by Timos-Welt, May 19, 2010, 05:34:03 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Timos-Welt

This plugin displays a message once to first time visitors of your gallery. The message may be customized by editing the HTML files in subfolder /message.
The message is displayed as Javascript pop up using the integrated greybox of Coppermine. It is only displayed to anonymous users, and only one time.
The plugin will display the message file named YOURLANGUAGE.htm if it's there; otherwise, the english.htm is used.
The information that the message has already been displayed once is saved in a cookie on the visitors computer. So clearing the cookies and logging off allows to test the plugin once again.

Have fun!  :)
Timo

cmfa

Hi @ all

I brought a little help again.
For the plugin from Timo I would like to define a background image.
In the german.htm file I have defined it as the body background. Here it is displayed. If the page is called the "plain" box comes with the german.htm are in the text, no image appears then as a background.

Currently I have not installed the plugin.
These two changes I've entered german.htm:

  • <body background="stremme.jpg" bgproperties="fixed">
  • <body background="index.php?file=firstvisithint/message/stremme.JPG">
What should I do with the background given in the "greybox" to see it?

VG
CMFA


Αndré

Quote from: cmfa on January 28, 2011, 07:42:26 PM
<body background="index.php?file=firstvisithint/message/stremme.JPG">
That's not valid. Try to change it to
<body background="firstvisithint/message/stremme.JPG">
or
<body background="firstvisithint/message/stremme.jpg">
(depending on the case of the file extension).

cmfa


Αndré

Try
<body style="background-image:url(plugins/firstvisithint/message/stremme.jpg)">

cmfa


cyberdyne2

Quote from: Timos-Welt on May 19, 2010, 05:34:03 PM
This plugin displays a message once to first time visitors of your gallery. The message may be customized by editing the HTML files in subfolder /message.
The message is displayed as Javascript pop up using the integrated greybox of Coppermine. It is only displayed to anonymous users, and only one time.
The plugin will display the message file named YOURLANGUAGE.htm if it's there; otherwise, the english.htm is used.
The information that the message has already been displayed once is saved in a cookie on the visitors computer. So clearing the cookies and logging off allows to test the plugin once again.

Have fun!  :)
Timo

This appears to be broken after updating to cpg v.1.5.18.
Although the FirstVisitHint window shows, the 'message' htm file is not displayed, but the main gallery index page is displayed instead.

londonallstars.co .uk/gallery/
v.1.5.22

Αndré

Please check if the plugin is still enabled in the plugin manager and if the plugin engine is enabled.

cyberdyne2

Quote from: Αndré on January 23, 2012, 01:02:55 PM
Please check if the plugin is still enabled in the plugin manager and if the plugin engine is enabled.

I didn't realise that would have an effect!
Many thanks André
v.1.5.22

Αndré

After thinking about my last post twice that doesn't make sense at all. If the plugin engine is disabled or the plugin isn't installed, the popup won't show. As it seems to work now as expected, what exactly have you done to fix the issue?

cyberdyne2

The only thing I did was disable maintenance mode. That alone fixed it.

I just confirmed this too.

I deleted the cookie, refreshed: the correct message loaded.
I logged in as Admin, turned maintenance mode ON, logged out, deleted the cookie, refreshed: the INDEX page loaded in the popup window.
I then logged back in as Admin, turned maintenance mode OFF, logged out, deleted the cookie, refreshed: the correct message loaded.

v.1.5.22

Stettler_Martin

Hello Timo

Good PlugIn - But I need this in an other function.

1: This must show all time - not by first time. And by all Users.
2: As seperatly window or in gallerie as seconde frame under Gallery-Name -> http://coppermine-gallery.net/demo/cpg15x/?theme=fiapplepink.

Thanks - Martin Stettler