[NEW PLUGIN] jm_landingpage

Third Party Plugins to CMSimple - how to install, use and create plugins

Moderator: Tata

maeg
Posts: 525
Joined: Fri Feb 20, 2009 2:27 pm
Location: Agerbæk, Denmark
Contact:

[NEW PLUGIN] jm_landingpage

Post by maeg » Tue Jan 06, 2015 7:23 pm

New Plugin "jm_landingpage"

Jm_landingpage is a easy way to show news and announcements on your website.
The jm_landingpage is a popup page that open when the visitor opens your website, and will first close when you press "CLOSE".
Then it will place a cookie on the browser, so the landingpage don't open agen if the visitor browse back to your index page. The cookie will expires when the browser is closing.

[ external image ]

Demo & download cmsimple-xh.dk

Tata
Posts: 3587
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: [NEW PLUGIN] jm_landingpage

Post by Tata » Tue Jan 06, 2015 8:20 pm

EXCELLENT idea!!!
I have played a little with the stylesheet and whoa!!! it is very simple to use this plugin for a very first intro page. I have not yet tried to insert some graphics there.
I just wonder, if the page content could not be read from some content page. This would make writing more easier.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: [NEW PLUGIN] jm_landingpage

Post by cmb » Tue Jan 06, 2015 10:19 pm

Tata wrote:I just wonder, if the page content could not be read from some content page. This would make writing more easier.
The necessary modification is actually quite simple. Find line 28 in plugins/jm_landingpage/index.php and replace it with:

Code: Select all

                    <div id="page-text">'.newsbox('Landingpage').' <br><br><button id="accept1">'.$ptx['button'].'</button></div>   </center>
Then create the "Landingpage" and write your message.

BTW: the plugin is very similar to Message_XH. Now users have two plugins to choose from. :)
Christoph M. Becker – Plugins for CMSimple_XH

Tata
Posts: 3587
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: [NEW PLUGIN] jm_landingpage

Post by Tata » Tue Jan 06, 2015 10:58 pm

Klar, das konnte ich auch selbst versuchen. Morgen finde ich hoffentlich die Zeit.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

maeg
Posts: 525
Joined: Fri Feb 20, 2009 2:27 pm
Location: Agerbæk, Denmark
Contact:

Re: [NEW PLUGIN] jm_landingpage

Post by maeg » Wed Jan 07, 2015 9:15 am

Hi

I have updated the plugin.

Now the plugin displays the content of a hidden site ex. Landingpage.

Thanks to tata for the ideer and thanks to Cmb for help to the code.

I hope you find it usefull

have a nice day

Demo & download

oldnema
Posts: 265
Joined: Wed Jan 21, 2009 5:15 pm
Location: Czech Republic
Contact:

Re: [NEW PLUGIN] jm_landingpage

Post by oldnema » Wed Jan 07, 2015 10:37 am

Nice, but it is a pity that there is no choice "duration" cookies.
Josef
Nobody knows how much time he has left ...
http://oldnema.compsys.cz/en/?Demo_templates

Tata
Posts: 3587
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: [NEW PLUGIN] jm_landingpage

Post by Tata » Wed Jan 07, 2015 10:48 am

Still, there is one thing for evtl. improvement:
It would be very usefull if there would be a choice in plugin config to open the Landingpage
a) in full size window (covering the content) - maybe with a very simple separated stylesheet
b) within the page content (in smaller dimensions - like it is right now).
There are many new webpages with this new architecture, where the "landingpage" has the very starting navigation (e.g. large icons to the rest of website content). In this case it would be reasonable to have some backlink to the landing page and to allow it open whenever.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

maeg
Posts: 525
Joined: Fri Feb 20, 2009 2:27 pm
Location: Agerbæk, Denmark
Contact:

Re: [NEW PLUGIN] jm_landingpage

Post by maeg » Wed Jan 07, 2015 11:07 am

oldnema wrote:Nice, but it is a pity that there is no choice "duration" cookies.
Josef
Hi Josef

You can change that in the "jm_landingpage.js" file

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: [NEW PLUGIN] jm_landingpage

Post by cmb » Wed Jan 07, 2015 11:44 am

maeg wrote:
oldnema wrote:Nice, but it is a pity that there is no choice "duration" cookies.
Josef
Hi Josef

You can change that in the "jm_landingpage.js" file
To expire the cookie after 3 days, you can replace line 7 with the following:

Code: Select all

                            document.cookie = "landingpage=yes; path=/; expires=" + new Date(new Date().getTime() + 3 * 864e5/* msec per day */).toUTCString();
Tata wrote:There are many new webpages with this new architecture, where the "landingpage" has the very starting navigation (e.g. large icons to the rest of website content). In this case it would be reasonable to have some backlink to the landing page and to allow it open whenever.
Well, in this case you can simply put the "Landingpage" as first visible page of the website, so a link to this page is always available in the menu. You may want to change the hardcoded name of the landing page in index.php.

However, I'm not sure if the plugin is suitable for that purpose. It seems to me that simply making the first page of the website into such an intro/landing page is sufficient. If a user navigates a deep link (via a search engine, an external link or a bookmark), there is often no need to present him the landing page.
Christoph M. Becker – Plugins for CMSimple_XH

maeg
Posts: 525
Joined: Fri Feb 20, 2009 2:27 pm
Location: Agerbæk, Denmark
Contact:

Re: [NEW PLUGIN] jm_landingpage

Post by maeg » Wed Jan 07, 2015 2:06 pm

Hi

I'm glad that you like my plugin.
I only create this plugin because i need it for one of my clients website, and then i was thinking, pahaps someone else was looking for something like this.

There is meny good ideers and features that can be add to the plugin, but at the moment i don't have the time for it.

But if someone have the time and want to do it, you are free to change the code - just keep my link in the backend :D

Post Reply