[NEW PLUGIN] jm_landingpage
Moderator: Tata
[NEW PLUGIN] jm_landingpage
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
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
Re: [NEW PLUGIN] jm_landingpage
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.
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.
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.
Re: [NEW PLUGIN] jm_landingpage
The necessary modification is actually quite simple. Find line 28 in plugins/jm_landingpage/index.php and replace it with:Tata wrote:I just wonder, if the page content could not be read from some content page. This would make writing more easier.
Code: Select all
<div id="page-text">'.newsbox('Landingpage').' <br><br><button id="accept1">'.$ptx['button'].'</button></div> </center>
BTW: the plugin is very similar to Message_XH. Now users have two plugins to choose from.
Christoph M. Becker – Plugins for CMSimple_XH
Re: [NEW PLUGIN] jm_landingpage
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.
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.
Re: [NEW PLUGIN] jm_landingpage
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
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
Re: [NEW PLUGIN] jm_landingpage
Nice, but it is a pity that there is no choice "duration" cookies.
Josef
Josef
Nobody knows how much time he has left ...
http://oldnema.compsys.cz/en/?Demo_templates
http://oldnema.compsys.cz/en/?Demo_templates
Re: [NEW PLUGIN] jm_landingpage
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.
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.
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.
Re: [NEW PLUGIN] jm_landingpage
Hi Josefoldnema wrote:Nice, but it is a pity that there is no choice "duration" cookies.
Josef
You can change that in the "jm_landingpage.js" file
Re: [NEW PLUGIN] jm_landingpage
To expire the cookie after 3 days, you can replace line 7 with the following:maeg wrote:Hi Josefoldnema wrote:Nice, but it is a pity that there is no choice "duration" cookies.
Josef
You can change that in the "jm_landingpage.js" file
Code: Select all
document.cookie = "landingpage=yes; path=/; expires=" + new Date(new Date().getTime() + 3 * 864e5/* msec per day */).toUTCString();
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.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.
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
Re: [NEW PLUGIN] jm_landingpage
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
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