forum.coppermine-gallery.net
Support => cpg1.5 plugins => cpg1.5.x Support => cpg1.5 plugin contributions => Topic started by: 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
-
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 (http://www.fotofreunde-rathenow.adtg.de/teil5).
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
-
<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).
-
hi,
I have also already changed this.
CMFA
-
Try
<body style="background-image:url(plugins/firstvisithint/message/stremme.jpg)">
-
Hi,
Thanks it works ;D
CMFA
-
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/
-
Please check if the plugin is still enabled in the plugin manager and if the plugin engine is enabled.
-
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é
-
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?
-
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.
-
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