Enkidu

Sliding Pop-up Message Box

258 posts in this topic

%7Boption%7D



File Name: Sliding Pop-up Message Box

File Submitter: Enkidu

File Submitted: 03 Oct 2011

File Category: User and Social Engagement

Supported Versions: IP.Board 3.2.x, IP.Board 3.3.x, IP.Board 3.4.x



with this block you can display a sliding message box to your new visitors with any content you wish. (for example: reason to registor, check you back, new products, announcements, etc

Demo
http://enkidu.ipbhos...up-message-box/

Features

[*]set it ON/OFF [*]choose cookie expiry time [*]configure the message width and height [*]configure the position of the message [*]set animation time [*]configure the content of the message, title, and buttons texts and links [*]configure your targeted group/s [*]configure your targeted forums [*]configure your targeted apps [*]specify how much delay time until the message shows [*]dim background to emphasize the content of the message [*]demo mode




[url= here to download this file

najaru_1, Marius, Enigm@ and 1 other like this

Share this post


Link to post
Share on other sites

Add groups to appear to and groups not to appear.
for example, I want members to see that but I also have a secondaty group for paid members and I don't want to pop it up.

thanks

Share this post


Link to post
Share on other sites

I was planning to do just that but then I figured: isn't it supposed to show to everyone?

Anyway, I think you're right. I will add it today or tomorrow :)

Divine Forces likes this

Share this post


Link to post
Share on other sites

I was planning to do just that but then I figured: isn't it supposed to show to everyone?



Anyway, I think you're right. I will add it today or tomorrow :smile:




Will probably buy it once that's added :D

Another suggestion could be to have multiple messages (i.e. more than 1 at once, so that you could show perhaps different messages to different groups, or have some messages saved by disabling them etc).

For example I'd have a permanent one for Unregistered users inviting them to register, whilst having occasional ones for members directing to important topics.

ALSO, Out of curiosity, when you change the message does the cookie causing it to not show anymore for people who have clicked 'dont care' change also?
Just wondering since if someone clicks don't care, and then you change it after a few days to something new, would they still not get it because the cookie remains the same?
Sandakelum™ likes this

Share this post


Link to post
Share on other sites

Neat idea!

It could likely benefit from the addition of the traditional [X] to close it in the top right corner, in addition to the close button at the bottom. As a user, I hate popups/notices that don't give you a normal [X] to close.

Share this post


Link to post
Share on other sites

updated!

1- added targeted group/s which you can use to decided which group/s to display the message to
2- added close button with cool fading animation :)

cheers for the suggestions guys

KittyCanuck likes this

Share this post


Link to post
Share on other sites

Will probably buy it once that's added :D



1- Another suggestion could be to have multiple messages (i.e. more than 1 at once, so that you could show perhaps different messages to different groups, or have some messages saved by disabling them etc).



2- For example I'd have a permanent one for Unregistered users inviting them to register, whilst having occasional ones for members directing to important topics.



3- ALSO, Out of curiosity, when you change the message does the cookie causing it to not show anymore for people who have clicked 'dont care' change also?


Just wondering since if someone clicks don't care, and then you change it after a few days to something new, would they still not get it because the cookie remains the same?




for 1 and 2, I would probably do that for version 2. You see when you develop something, you just have no clue if it's gonna turn out popular or not so I usually start with basic features :)

for 3, it doesn't matter what you click, once the message is displayed, it won't be displayed again until the cookie expires. In your scenario, you could set the cookie to 3 days. then it will be shown to them everythree days.

In my test board it's set to about a minute so people can see it once and again :)

Share this post


Link to post
Share on other sites

I have a secondary group that if present I don't want to be shown, can it do that?




not currently no. It's on my todo list though :)

Share this post


Link to post
Share on other sites

in this case put a fraction of 1.

for example: 0.5 will mean every 12 hours. 0.25 will mean every 6 hours ... etc :)

Share this post


Link to post
Share on other sites

for 3, it doesn't matter what you click, once the message is displayed, it won't be displayed again until the cookie expires. In your scenario, you could set the cookie to 3 days. then it will be shown to them everythree days.




I mean, say I make a Message about 'TOPIC X', with the cookie set to expire every 1 day, and then decide to change the message completely to be about 'TOPIC Z', will a brand new cookie be set for the new message (preferable).

Otherwise when people click 'Dont show again' to a popup about TOPIC X, they wont be able to see one about TOPIC Y later.

Perhaps assign a new cookie number each time a Message is created, making all other cookies invalid?

ALSO on an unrelated note, it appears html and the bbcode [ center ] does not work.

Share this post


Link to post
Share on other sites

I mean, say I make a Message about 'TOPIC X', with the cookie set to expire every 1 day, and then decide to change the message completely to be about 'TOPIC Z', will a brand new cookie be set for the new message (preferable).



Otherwise when people click 'Dont show again' to a popup about TOPIC X, they wont be able to see one about TOPIC Y later.



Perhaps assign a new cookie number each time a Message is created, making all other cookies invalid?



ALSO on an unrelated note, it appears html and the bbcode [ center ] does not work.




1- I see what you mean but if everytime you changed the message, we will be setting a new cookie then the amount of cookies sent to your website will pile up and causes the website to slow down (in theory). It's not recommended to make the total cookies size more than 1Kb and currently IPB is over that so you see the issue here. that user will see it anyway after 24 hours (keep in mind that you don't wanna nag on your visitors or they won't come back)

2- as for the centring text or images, it works fine (actually the image you see in the demo is centred) so I guess if you're not running IP.Latest, then it's an editor bug?

3- html is on my todo list. Can I ask for what purpose you want html?

Share this post


Link to post
Share on other sites

HTML can be useful for anything that bbcode itself can't handle, for example better styling with divs, more functions e.g. <blink> and an area which generally web developers find a lot more efficient to work in than BBCode.

And for cookies, I see your point, but surely on revisit to the site, the board could delete all cookies created by this hook which don't match the CURRENT one, thus making sure that there is never any more than 1 cookie stored on the visitor's browser at any one time?

As for center not working:

ACP Message Box: %7Boption%7D Displays on forum as: (Note I've edited template to have the button area as h3 instead because I prefer the formatting of that) %7Boption%7D IPB Version: %7Boption%7D Other Settings: %7Boption%7D















Share this post


Link to post
Share on other sites

HTML can be useful for anything that bbcode itself can't handle, for example better styling with divs, more functions e.g. <blink> and an area which generally web developers find a lot more efficient to work in than BBCode.



OK. but it might cause unforseen issues. Fore example a user might forget to close a div and get the whole page garbled. or might put a style that is not supported by IE8 and ask me for support not to talk about security! but I see your point and I'll make sure to develop it in the next version.


And for cookies, I see your point, but surely on revisit to the site, the board could delete all cookies created by this hook which don't match the CURRENT one, thus making sure that there is never any more than 1 cookie stored on the visitor's browser at any one time?



I think there is a better way to do it. Will be looking at that later on.

thanks :)

Share this post


Link to post
Share on other sites

As for center not working:



can I see it first hand? (PM me if you don't want to put your board link here)

thanks :)

Share this post


Link to post
Share on other sites

can I see it first hand? (PM me if you don't want to put your board link here)



thanks :smile:




The board is offline as it's a development test board, but you should be able to see it not-logged-in at http://rs-df.com/dev...l&section=login

EDIT: Just noticed that by switching to default skin, it does center. How odd.

Having now tested it on four custom skins, it always fails to center.

Share this post


Link to post
Share on other sites

Ah! see what I mean by too many variables? It might be because your custom skin developer messed with IPB css. Anyway, I can't see at that address

Share this post


Link to post
Share on other sites

Login: test123
Pass: test123

Give that a go on the URL above. Switch between the skins if you want to test. :smile: Could indeed just be the skin developers changing things too much idk, but it seems to happen in a lot of them!

Share this post


Link to post
Share on other sites

this link: http://rs-df.com/upgrading/?app=core&module=global&section=login has no login box. if there is one, I can't see it. :no:

Share this post


Link to post
Share on other sites

As I expected. Class p.bbc_center is not defined in that skin. You can add it if you want

open ipb_common.css, search for:



span.bbc_center,div.bbc_center{text-align:center;display:block}

change it to:


span.bbc_center, div.bbc_center, p.bbc_center { text-align: center; display: block; }



but there might be a reason why it was taken off from there or maybe it didn't exist in the first place. I can't be sure. try it and see if it causes any other issue.

Share this post


Link to post
Share on other sites

How odd for that not to be included in those skins, and for it to apply to four of them... there surely must be a reason :P Oh well yes I'll be able to keep that fix in mind for the future - thanks :)

Share this post


Link to post
Share on other sites

How do I set it to show everytime someone enters the site including me so I can test my links and images... thanks

Share this post


Link to post
Share on other sites

Enkidu,
Awesome hook!! I was trying to add a paypal button code in HTML, but it doesn't populate as a button when it slides in. Any ideas how I can add the button code provided by paypal to show up correctly?

Thanks,
Ben

Share this post


Link to post
Share on other sites

  • Recently Browsing   0 members

    No registered users viewing this page.