vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vbPopup for vB3 (https://vborg.vbsupport.ru/showthread.php?t=61647)

LordJMann 02-16-2004 10:00 PM

vbPopup for vB3
 
What does this hack do?
This hack will display a dhtml popup box with a message for unregistered users.
You can adjust the length of time that the popup box appears and the chance that the box will appear.

A dhtml popup is not a new window. It stays in the current window but acts like a popup box, it will disappear after a set amount of time and is not affected by popup stoppers. The popup box appears for all unregistered users and can be re-designed to your liking.

Hack Details
Version: 1.1

Installation Overview
Files to edit: 1
Files to upload: 1
Templates to edit: 2

Install time: 2 minutes

I would personally like to hand all credit to the original author of this hack in vB 2.x, TECK. Again, this hack is inspired by a dhtml script located here.

Check out the original thread here.

Updates
2-17-04
Converted the popup box code into a template.

PLEASE CLICK INSTALL IF YOU LIKE THIS HACK!

mello_mike 02-17-2004 03:53 AM

This was a great hack!! Great Job.. I just installed it on my forum and I love it.

dirtymerc 02-17-2004 04:35 AM

awesome hack, I just did as well

colicab-d 02-17-2004 05:40 AM

a screenshot would be nice :D

Dark Shogun 02-17-2004 06:02 AM

Hope you don't mind mello mike but someone asked for a screen and I was too busy to make one so I am just linking to your board.

Dark Shogun

LordJMann 02-18-2004 12:44 AM

Quote:

Originally Posted by colicab-d
a screenshot would be nice :D

Hello,

http://www.dynamicdrive.com/dynamicindex11/dhtmlad.htm

This is basically how it will function, though the box is smaller and only appears for unregistered users.

mello_mike 02-18-2004 01:01 AM

Oh it's kool Dark Shogun! :-)

But I do have a question...

How can I use this for all members?

I want to make a popup that I can use to advertise different things.

LordJMann 02-18-2004 01:07 AM

Quote:

Originally Posted by mello_mike
Oh it's kool Dark Shogun! :-)

But I do have a question...

How can I use this for all members?

I want to make a popup that I can use to advertise different things.

mello_mike,

If you want this popup to show up for everybody, simply change this:

Code:

<if condition="$show['guest']"><script type="text/javascript" src="clientscript/vbulletin_vbpopup.js"></script></if>
To this:

Code:

<script type="text/javascript" src="clientscript/vbulletin_vbpopup.js"></script>
Edit: If you are using version 1.0 then just use the original javascript file name of vbulletin_adbox.js

PET 02-18-2004 01:34 AM

i don't see why is this so awansome ! It's a POPUP ! USERS HATE POPUP's...

LordJMann 02-18-2004 01:38 AM

Quote:

Originally Posted by PET
i don't see why is this so awansome ! It's a POPUP ! USERS HATE POPUP's...

Yes, it is a popup but it only lasts for a very short period of time and is a quite small box that just reminds the user to signup. This is mainly efficient to users who have never used a forum before and can simply be avoided by signing up in order to access the full features of a forum. Plus, this DHTML popup only affects the forum homepage. So it isn't as big of a nuisance as it could be and can sometimes be an effective way to get a message across.

gmarik 02-18-2004 12:39 PM

I like to like it!

mello_mike 02-18-2004 09:46 PM

Quote:

Originally Posted by PET
i don't see why is this so awansome ! It's a POPUP ! USERS HATE POPUP's...

Speak for your own users. My users actually made a topic saying how kool it was.

enginethatcan't 02-22-2004 06:26 PM

nice hack! *installs* works fine

ryancooper 02-22-2004 06:44 PM

Installed and works nicely. 2 Questions.

1- How can I put the box in the middle of the page instead of at the top. I tried to play with the settings in 'FORUMHOME' top:0; left:0; } but it didn't work? Right now I added some <p> before the table to push it down.

2- Is it possible to ad a countdown like "This window will close in 10 - 9 -8 etc seconds" ?

Thanks for the great hack!

If anyone is interested in doing a 10 sec. countdown I made a small animated gif you can use for the countdown.

and change the template to something like
<font class="smallfont">(This window will close automaticly in <img src="images/countdown.gif"> seconds)</font>

LordJMann 02-22-2004 10:48 PM

Quote:

Originally Posted by ryancooper
Installed and works nicely. 2 Questions.

1- How can I put the box in the middle of the page instead of at the top. I tried to play with the settings in 'FORUMHOME' top:0; left:0; } but it didn't work? Right now I added some <p> before the table to push it down.

2- Is it possible to ad a countdown like "This window will close in 10 - 9 -8 etc seconds" ?

Thanks for the great hack!

If anyone is interested in doing a 10 sec. countdown I made a small animated gif you can use for the countdown.

and change the template to something like
<font class="smallfont">(This window will close automaticly in <img src="images/countdown.gif"> seconds)</font>

Hello ryan,

1. If you absolutely wanted it in the middle of the page there are CSS tutorials out there that allow for this. Though using <br> or <p> should work fine.

2. I have tried this and it did not turn out well in conjunction with the original javascript. So its up to you on this one.

Thanks for the questions.

Boofo 02-22-2004 10:54 PM

Quote:

Originally Posted by ryancooper
Installed and works nicely. 2 Questions.

1- How can I put the box in the middle of the page instead of at the top. I tried to play with the settings in 'FORUMHOME' top:0; left:0; } but it didn't work? Right now I added some <p> before the table to push it down.

2- Is it possible to ad a countdown like "This window will close in 10 - 9 -8 etc seconds" ?

Thanks for the great hack!

If anyone is interested in doing a 10 sec. countdown I made a small animated gif you can use for the countdown.

and change the template to something like
<font class="smallfont">(This window will close automaticly in <img src="images/countdown.gif"> seconds)</font>

Where's the thumbnail? All I see is a 0 where the thumbnail should be. ;)

ryancooper 02-23-2004 12:29 AM

Quote:

Originally Posted by LordJMann
Hello ryan,

1. If you absolutely wanted it in the middle of the page there are CSS tutorials out there that allow for this. Though using <br> or <p> should work fine.

2. I have tried this and it did not turn out well in conjunction with the original javascript. So its up to you on this one.

Thanks for the questions.

Thanks,
The animated gif works perfectly. It hits "0" and then closes. If you change the timer, however, it obviously will not work :-)

Thanks for a great hack

ryancooper 02-25-2004 01:32 AM

Quote:

Originally Posted by Boofo
Where's the thumbnail? All I see is a 0 where the thumbnail should be. ;)


The 0 is the thumbnail. It counts from 10 - 0 then stops so if you reload the page and scrool down you will see it counting down. ;)

himerus 03-23-2004 10:08 PM

Installed...

However, if I try to change the chance of it popping up, the window appears in the upper left hand corner, and never closes...

I tried values 1-10, and 1 was the only one that worked.

himerus 03-23-2004 10:16 PM

And how can I make the window semi-transparent?

oliwood 03-24-2004 08:41 AM

hy guys,

i need this script,

but it sholud open on each site, because users should also see this, if they enter the board direct via a mailnotification or a profile ore something else.

How cann i arrange to appeare this popup on every site, but only once per browsersession to everyone???

Please help me!!!

noreturn 04-08-2004 11:08 PM

I wouldlike to use this as a "technician is now online" when one of us are on the site. And to turn if off when none of use techs are on line. Id there a way to just turn the pop up on or off?

Gordon

neocorteqz 04-09-2004 12:24 AM

this would be cool to use after registration is complete, reminding them to read the rules. :)

GamerJunk.net 04-10-2004 06:44 PM

Could you set the variables to maybe do this for different usergroups rather than just unregistered users?

I mean that would be easy right?

neocorteqz 04-11-2004 06:16 AM

Quote:

Originally Posted by RasMasta
Could you set the variables to maybe do this for different usergroups rather than just unregistered users?

I mean that would be easy right?

sure.

I would think if you change
$show['guest']
to
$bbuserinfo[usergroupid]==X

where x is your usergroup. I think that would work. I'm not sure though.

SaN-DeeP 04-12-2004 03:54 PM

nice mod ;)

[high]* SaN-DeeP installed it ;0[/high]

calvinnguyen 04-14-2004 02:31 AM

I love this hack, thanks LordJMann

cuerty 04-22-2004 03:10 AM

Exelent work dude, thanks.

himerus 04-22-2004 03:15 AM

Quote:

Originally Posted by oliwood
hy guys,

i need this script,

but it sholud open on each site, because users should also see this, if they enter the board direct via a mailnotification or a profile ore something else.

How cann i arrange to appeare this popup on every site, but only once per browsersession to everyone???

Please help me!!!

I would like to see something of the same nature... only appearing once per session... but I'm not familiar with the way vBulletin stores or uses guest sessions.

RichieBoy67 04-26-2004 10:48 AM

Great Hack!

Thanks! I've been looking for something like this. Too many guests but not enough members on my site...

Works great! Check it out on my site if you like


www.speakoutonline.net

Drile 04-26-2004 04:31 PM

Quote:

Originally Posted by himerus
And how can I make the window semi-transparent?

Yah, that would be great.

fly 04-27-2004 02:42 PM

Any way to easily make this just pop up in a certain forum?

Envy-UK 05-02-2004 06:35 PM

Great hack. *Clicks install. :)

dynamite 05-10-2004 06:36 PM

How can you make this appear on every displayed page until they register? I tried adding the header info and </body> info on the Forum Display and Show Threads templates but it doesn't appear. I even tried changing the filepath to the full file path and still no luck.

I need this on all the pages since the majority of my hits come from search engines, so they typically don't see the first page from the start. This has been very productive for getting people to register and participate on my site since adding it just to the main page, so I could only imagine what it would do if it were on all pages!

luck777jojo 06-04-2004 02:19 AM

bump ^^^

sorry to do this but.... I think everyone missed this



----edit----

++++ just figured out how to do this myself.... just goes to show you people think better when slightly drunk :p I'll post the modifications you have to do here in 5 mins


----edit #2----

okay I attached the modified instructions txt file hope this help anyone who was having the same problem as I was ;)

himerus 06-15-2004 03:29 PM

My users are complaining about waiting 10 seconds to log in because on a smaller resolution, it is blocking that section of the navbar....

Is there anyway to create a link in the popup to click on to close it??? rather than the countdown????

I really need it to be more friendly, or I'll have to take it off for now until this has more features.

TheRayden 07-13-2004 04:57 PM

Any chance this can be set for specific usergroups only?

Bro_Joey_Gowdy 07-22-2004 11:55 AM

clicls install

glenvw 08-05-2004 04:07 PM

Hi everyone. This is a great feature and I want to use it but it is imperative I can set it up to only show up ONCE per session.

PLEASE, if there are directions to do so, please tell us.

I read the edited hack a couple posts above but do not see that addressed there.

Ryan McBain 08-15-2004 07:42 PM

Quote:

Originally Posted by luck777jojo
bump ^^^

sorry to do this but.... I think everyone missed this



----edit----

++++ just figured out how to do this myself.... just goes to show you people think better when slightly drunk :p I'll post the modifications you have to do here in 5 mins


----edit #2----

okay I attached the modified instructions txt file hope this help anyone who was having the same problem as I was ;)

Great mod, but how do I turn off the pop up when people go to register?


All times are GMT. The time now is 05:32 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03811 seconds
  • Memory Usage 1,829KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete