Enkidu Posted October 4, 2011 Share Posted October 4, 2011 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, etcDemohttp://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 More sharing options...
RObiN-HoOD Posted October 4, 2011 Share Posted October 4, 2011 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 Link to comment Share on other sites More sharing options...
Enkidu Posted October 4, 2011 Author Share Posted October 4, 2011 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 :) Link to comment Share on other sites More sharing options...
Divine Forces Posted October 4, 2011 Share Posted October 4, 2011 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 More sharing options...
KittyCanuck Posted October 4, 2011 Share Posted October 4, 2011 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. Link to comment Share on other sites More sharing options...
Enkidu Posted October 4, 2011 Author Share Posted October 4, 2011 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 Link to comment Share on other sites More sharing options...
Enkidu Posted October 4, 2011 Author Share Posted October 4, 2011 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 More sharing options...
RObiN-HoOD Posted October 4, 2011 Share Posted October 4, 2011 I have a secondary group that if present I don't want to be shown, can it do that? Link to comment Share on other sites More sharing options...
Enkidu Posted October 4, 2011 Author Share Posted October 4, 2011 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 :) Link to comment Share on other sites More sharing options...
bosss Posted October 4, 2011 Share Posted October 4, 2011 Nice..Thanks. How change if will show to guests more than one time in one day? regards bosss Link to comment Share on other sites More sharing options...
Enkidu Posted October 4, 2011 Author Share Posted October 4, 2011 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 :) Link to comment Share on other sites More sharing options...
Divine Forces Posted October 4, 2011 Share Posted October 4, 2011 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 More sharing options...
Enkidu Posted October 4, 2011 Author Share Posted October 4, 2011 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 More sharing options...
Divine Forces Posted October 4, 2011 Share Posted October 4, 2011 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: Displays on forum as: (Note I've edited template to have the button area as h3 instead because I prefer the formatting of that) IPB Version: Other Settings: Link to comment Share on other sites More sharing options...
Enkidu Posted October 4, 2011 Author Share Posted October 4, 2011 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 More sharing options...
Enkidu Posted October 4, 2011 Author Share Posted October 4, 2011 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 :) Link to comment Share on other sites More sharing options...
Divine Forces Posted October 4, 2011 Share Posted October 4, 2011 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§ion=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 More sharing options...
Enkidu Posted October 5, 2011 Author Share Posted October 5, 2011 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 Link to comment Share on other sites More sharing options...
Divine Forces Posted October 5, 2011 Share Posted October 5, 2011 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! Link to comment Share on other sites More sharing options...
Enkidu Posted October 5, 2011 Author Share Posted October 5, 2011 this link: http://rs-df.com/upgrading/?app=core&module=global§ion=login has no login box. if there is one, I can't see it. :no: Link to comment Share on other sites More sharing options...
Divine Forces Posted October 5, 2011 Share Posted October 5, 2011 this link: http://rs-df.com/upg...l§ion=login has no login box. if there is one, I can't see it. :no: My bad, I had a .htaccess there from when I was testing a holder page redirect for all IP Addresses except mine! http://rs-df.com/dev/index.php?app=core&module=global§ion=login Should now work for you. Link to comment Share on other sites More sharing options...
Enkidu Posted October 5, 2011 Author Share Posted October 5, 2011 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 More sharing options...
Divine Forces Posted October 5, 2011 Share Posted October 5, 2011 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 :) Link to comment Share on other sites More sharing options...
billyt Posted October 5, 2011 Share Posted October 5, 2011 How do I set it to show everytime someone enters the site including me so I can test my links and images... thanks Link to comment Share on other sites More sharing options...
Bernabe Guerra Jr. Posted October 5, 2011 Share Posted October 5, 2011 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.