Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
UKBL ~ Admin Notice Timed Popup for Non Members Details »»
UKBL ~ Admin Notice Timed Popup for Non Members
Version: 1.00, by UKBusinessLive UKBusinessLive is offline
Developer Last Online: Feb 2012 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 3.8.1 Rating:
Released: 02-01-2009 Last Update: Never Installs: 9
Template Edits
Re-useable Code Translations  
No support by the author.

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.



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...

Code:
config='toolbar=no,location=no,directories=no,status=no,menubar=no,width=350,height=150'
Here we can change the width and the height, at the end of that line to what we want.

3. Find...

Code:
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...

Code:
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 )

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

Code:
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

Code:
<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

Log yourself out and try it :up:


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


Have Fun

Download Now

File Type: zip admin notice.zip (70.5 KB, 116 views)

Screenshots

File Type: png am1.png (73.1 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 02-04-2009, 06:33 AM
Sunka Sunka is offline
 
Join Date: Mar 2008
Location: Croatia
Posts: 400
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by UKBusinessLive View Post
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....?
Reply With Quote
  #13  
Old 02-04-2009, 04:44 PM
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Location: Essex, United Kingdom
Posts: 1,637
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sunka View 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....?
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:
Reply With Quote
  #14  
Old 02-05-2009, 07:27 AM
Sunka Sunka is offline
 
Join Date: Mar 2008
Location: Croatia
Posts: 400
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by UKBusinessLive View Post
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)

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...
Reply With Quote
  #15  
Old 02-05-2009, 05:00 PM
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Location: Essex, United Kingdom
Posts: 1,637
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sunka View Post
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)

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...

Hi You English is Fine, Better than some english people

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.
Reply With Quote
  #16  
Old 02-14-2009, 10:36 PM
mbc100 mbc100 is offline
 
Join Date: Feb 2009
Location: K.S.A
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i like it
Reply With Quote
  #17  
Old 02-15-2009, 12:13 AM
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Location: Essex, United Kingdom
Posts: 1,637
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mbc100 View Post
i like it
Its a great way to tell guests what a great forum you have, and it'll stop when they join
Reply With Quote
  #18  
Old 02-17-2009, 01:59 PM
nrms?'s Avatar
nrms? nrms? is offline
 
Join Date: Dec 2008
Location: Portugal
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works great, but... is a pop out window...

And some browsers, like IE... will block, and the functionality of this mod is lose.
Reply With Quote
  #19  
Old 02-17-2009, 04:33 PM
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Location: Essex, United Kingdom
Posts: 1,637
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nrms? View Post
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
Reply With Quote
  #20  
Old 02-18-2009, 12:40 PM
nrms?'s Avatar
nrms? nrms? is offline
 
Join Date: Dec 2008
Location: Portugal
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by UKBusinessLive View Post
Its one of those mods where you need to experiment and get it working for you
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.
Reply With Quote
  #21  
Old 02-18-2009, 12:42 PM
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Location: Essex, United Kingdom
Posts: 1,637
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nrms? View Post
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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:58 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04866 seconds
  • Memory Usage 2,354KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_code
  • (8)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete