Jump to content

Sliding Pop-up Message Box


Enkidu

Recommended Posts

%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

Link to comment
Share on other sites

  • Replies 257
  • Created
  • Last Reply

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?
Link to comment
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 :)
Link to comment
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.
Link to comment
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?
Link to comment
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















Link to comment
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 :)
Link to comment
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.
Link to comment
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.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...