PDA

View Full Version : Forum Home Enhancements - UKBL ~ Admin Notice Timed Popup for Non Members


UKBusinessLive
02 Feb 2009, 18:45
UKBL ~ Admin Notice - Timed Popup for Non-Members

Want to tell non members why they should sign up to your forums, 10 different messages, on a pop up, and its timed so it dissappears after X seconds (adjustable)

DEMO : http://www.ukbusinesslive.co.uk/forum

A Friend wanted this done on his forum asked me if it could be done, With a basic Popup script and a few add ons we came up with The Admin Notice with a difference.

https://www.vbulletin.org/forum/external/2009/02/113.png

When a non member views your forum, a popup appears for X seconds and tells the viewer, some reason why they should sign up, Be it a competition in the arcade, to promoting links from your forum.

The edititing is very easy and you could even use html to add links in the popup, The key word here is to experiment.

The popup is fully sizeable and you can chose the colors of the background and fonts to suit your site, i've just filled my 10 notices with just some ramdom bits but you can be as creative as you want.

The great thing about this popup is the fact that it will switch off after so many seconds, and once they've joined, they won't see it at all, so hopefully it may push people to sign up as a result of your offers etc..

So where do we start??

1. Download the zip file and open it in notepad or any other text editor

2 Find...

config='toolbar=no,location=no,directories=no,status=no,menubar=no,width=350,hei ght=150'


Here we can change the width and the height, at the end of that line to what we want.

3. Find...

output.document.write(';",10000)');


This is the time that the pop up is on display, remember its in milliseconds so the default 10000 = 10 seconds, feel free to adjust this to your requirements

4. Find...

output.document.write('<title>Admin Notice</title>');
output.document.write('<BODY bgcolor=#FDF09A text=#FC040D>');
output.document.write('<center><font face=arial size=-1><b>Admin Notice:</b></font>');


Now this is where we change the pop up title, The popup color and the text color, Oh and the font and size (Almost forgot about that :D )

This is my fave Hex editor http://www.2createawebsite.com/build/hex-colors.html or you can use your sites own hex numbers ;)

Finally, we need to edit the Text Notices, So find these at the very end of the code, it really is that simple

output.document.write('<hr><br><p>');
if (generateRandomNumber()=="1")
{output.document.write('<font face=arial size=-1>Competition Time in the Arcade every Monday Night 9pm til 12 Midnight');


And just change "Competition Time in the Arcade every Monday Night 9pm til 12 Midnight" to a notice or message of your choice, remember to keep the same format as the code, just change the wording, nothing else.

The conditional at the begining takes into account the non-registered usergroup, so no one else will view it only those that havn't registered, But if you want to use it for another purpose you can change the usergroup or delete it here

<if condition="$bbuserinfo['usergroupid'] == 1">


When you've finished with the edits, just copy and paste the code to your forums style, header template, right at the end, and save :D

Log yourself out and try it :up:


As always don't forget to chick the magical Installed Button :D

Have Fun :D

UKBusinessLive
02 Feb 2009, 18:46
:) Reserved :p

Forum Lover
02 Feb 2009, 22:21
As always, another nice trick. :)

UKBusinessLive
02 Feb 2009, 22:28
As always, another nice trick. :)

Thanks, If you want to show it to more than one usergroup, just swop the conditional for this one


<if condition="is_member_of($vbulletin->userinfo, 1, 2, 3)"></if>


and add the usergroups seperated by commas ;)

Forum Lover
03 Feb 2009, 05:16
I just wonder, why u didn't put any link there! I mean for example, "Competition Time in the Arcade every Monday Night 9pm til 12 Midnight" should be click able to direct any link. :)

UKBusinessLive
03 Feb 2009, 06:59
I just wonder, why u didn't put any link there! I mean for example, "Competition Time in the Arcade every Monday Night 9pm til 12 Midnight" should be click able to direct any link. :)

Hi , It not something that i'm using at the moment, and the guy i made it for was using it for tips of the day type of thing, This is why you need to experiment and make it work for your site. I didn't want to add his content in the hack so i quickly made some up of my own, you'll notice a couple of repeats in there.

If you want you can delete some of them, I only made 10 random notices as an example, you can add more or delete excess ones

:D

Sunka
03 Feb 2009, 08:35
Looking good, but have to have more messages, and to pop-up random.

Forum Lover
03 Feb 2009, 15:27
Yeah, random msg will be great. :)

UKBusinessLive
03 Feb 2009, 18:40
Looking good, but have to have more messages, and to pop-up random.

You can add as many messages as you want, and yes it displays them completly at random

I wonder why you ask?? Its all in the First post ;)

UKBusinessLive
03 Feb 2009, 20:49
Yeah, random msg will be great. :)

Already done :D

Sunka
04 Feb 2009, 08:33
You can add as many messages as you want, and yes it displays them completly at random

I wonder why you ask?? Its all in the First post ;)

I asked because I did not download on that time...now I see in code random messages.
Thanks

P.S. How many times pop-up message will show up? Every page load, every refresh, cookie based....?

UKBusinessLive
04 Feb 2009, 18:44
I asked because I did not download on that time...now I see in code random messages.
Thanks

P.S. How many times pop-up message will show up? Every page load, every refresh, cookie based....?

:D:D Cool,

The popup popups up on every page load, and every refresh you can adjust the code to include a cookie counter, but thenit'll show just once, so it defeats the object, you could decrease the showtime so it dissapears quicker, The general idea was to use it to promote your forum to guests, once they've signed up it stops.

Mind you you can use this as a basis for something completely different and change the conditionals to reflect this.

:up:

Sunka
05 Feb 2009, 09:27
:D:D Cool,

The popup popups up on every page load, and every refresh you can adjust the code to include a cookie counter, but thenit'll show just once, so it defeats the object, you could decrease the showtime so it dissapears quicker, The general idea was to use it to promote your forum to guests, once they've signed up it stops.

Mind you you can use this as a basis for something completely different and change the conditionals to reflect this.

:up:

Yep, but in that way is good to work only with guests...
If I make some message for registered members, they will be going crazy if message pop-up on every page they load. LOL

Two questions:

1. Sorry for stupid question, will that MOD confuze google spider and all other spiders in any way, when they index my forum (I do not know, so I ask) :D

2. Is there chance to create/alter this pop-up so we can have it in ACP and change messages there, and also option for cookie based session.
(Show pop-up to registered user, and when he close it...that is it).

Sorry for my english language...:D

UKBusinessLive
05 Feb 2009, 19:00
Yep, but in that way is good to work only with guests...
If I make some message for registered members, they will be going crazy if message pop-up on every page they load. LOL

Two questions:

1. Sorry for stupid question, will that MOD confuze google spider and all other spiders in any way, when they index my forum (I do not know, so I ask) :D

2. Is there chance to create/alter this pop-up so we can have it in ACP and change messages there, and also option for cookie based session.
(Show pop-up to registered user, and when he close it...that is it).

Sorry for my english language...:D


Hi You English is Fine, Better than some english people :D

As for the questions, I don't think the google spider or any other spider will worry that much, I've never heard anything about spiders having problems with popups.

Secondly, if all mods could go via the admin panel we'd be in heaven, That requires addition coding, xml files and the such, what i'm hoping to do later is go through all my hacks and see which ones i can update, but they are all simple template edits, I can't see the benefit to make them more complicated, but who knows i may get fed up and decide to have a go............ Watch this space. :D

mbc100
15 Feb 2009, 00:36
i like it

UKBusinessLive
15 Feb 2009, 02:13
i like it

Its a great way to tell guests what a great forum you have, and it'll stop when they join ;)

nrmsŪ
17 Feb 2009, 15:59
Works great, but... is a pop out window...

And some browsers, like IE... will block, and the functionality of this mod is lose.

UKBusinessLive
17 Feb 2009, 18:33
Works great, but... is a pop out window...

And some browsers, like IE... will block, and the functionality of this mod is lose.

If your using it as a competition type mod then you'd have to ask members to allow popups, if your using it to lure guests into signing up and they are viewing your forums then human nature dictates that curiosity will make them view that pop up.

The basics of the mod are there, plus with an adjustable timer you can time the box so that it don't appear for too long.

Plus your messages appear completely at ramdom

Its one of those mods where you need to experiment and get it working for you :D

nrmsŪ
18 Feb 2009, 14:40
Its one of those mods where you need to experiment and get it working for you :D

I'm ready for testing it... where is this mod's...?

My objective is increase more guests to registering and sometimes alert or inform members/group's.

UKBusinessLive
18 Feb 2009, 14:42
I'm ready for testing it... where is this mod's...?

My objective is increase more guests to registering and sometimes alert or inform members/group's.


Its in the first post, the zip file :D

nrmsŪ
18 Feb 2009, 15:25
H ehe he... yep i try.

But wow is "competition type mod" for don't necessary allow popup to guests...

If is not able it... no look notice, right...?! :)

UKBusinessLive
18 Feb 2009, 15:29
H ehe he... yep i try.

But wow is "competition type mod" for don't necessary allow popup to guests...

If is not able it... no look notice, right...?! :)

You need to add a template condition with the user groups you want to see it, if you are using it for guests, then leave it set of guests and non registered, If your using it as a competition or for anythin else for members then you would use their usergroup number ;)