Advanced search  

News:

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

Pages: [1]   Go Down

Author Topic: Display a message to first time visitors (firsttimehint)  (Read 9025 times)

0 Members and 1 Guest are viewing this topic.

Timos-Welt

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 800
    • Timos-Welt
Display a message to first time visitors (firsttimehint)
« 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
« Last Edit: May 19, 2010, 05:59:03 pm by Timos-Welt »
Logged

cmfa

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 226
Re: Display a message to first time visitors (firsttimehint)
« Reply #1 on: January 28, 2011, 07:42:26 pm »

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

Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15369
Re: Display a message to first time visitors (firsttimehint)
« Reply #2 on: January 29, 2011, 11:20:31 am »

<body background="index.php?file=firstvisithint/message/stremme.JPG">
That's not valid. Try to change it to
Code: [Select]
<body background="firstvisithint/message/stremme.JPG">or
Code: [Select]
<body background="firstvisithint/message/stremme.jpg">(depending on the case of the file extension).
Logged

cmfa

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 226
Re: Display a message to first time visitors (firsttimehint)
« Reply #3 on: January 29, 2011, 11:24:47 am »

hi,

I have also already changed this.

CMFA
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15369
Re: Display a message to first time visitors (firsttimehint)
« Reply #4 on: February 04, 2011, 12:29:20 pm »

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

cmfa

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 226
Re: Display a message to first time visitors (firsttimehint)
« Reply #5 on: February 04, 2011, 07:00:23 pm »

Hi,

Thanks it works ;D

CMFA
Logged

cyberdyne2

  • Coppermine regular visitor
  • **
  • Country: gb
  • Offline Offline
  • Posts: 75
Re: Display a message to first time visitors (firsttimehint)
« Reply #6 on: January 23, 2012, 12:42:47 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/
Logged
v.1.5.22

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15369
Re: Display a message to first time visitors (firsttimehint)
« Reply #7 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.
Logged

cyberdyne2

  • Coppermine regular visitor
  • **
  • Country: gb
  • Offline Offline
  • Posts: 75
Re: Re: Display a message to first time visitors (firsttimehint)
« Reply #8 on: January 23, 2012, 01:05:50 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é
Logged
v.1.5.22

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15369
Re: Display a message to first time visitors (firsttimehint)
« Reply #9 on: January 23, 2012, 01:15:43 pm »

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?
Logged

cyberdyne2

  • Coppermine regular visitor
  • **
  • Country: gb
  • Offline Offline
  • Posts: 75
Re: Display a message to first time visitors (firsttimehint)
« Reply #10 on: January 23, 2012, 01:20:48 pm »

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.

Logged
v.1.5.22

Stettler_Martin

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Display a message to first time visitors (firsttimehint)
« Reply #11 on: October 05, 2013, 06:43:30 pm »

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
Logged
Pages: [1]   Go Up
 

Page created in 0.024 seconds with 20 queries.