Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vbPopup for vB3 Details »»
vbPopup for vB3
Version: 1.00, by LordJMann LordJMann is offline
Developer Last Online: Jul 2010 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 02-16-2004 Last Update: 02-17-2004 Installs: 111
Template Edits
Code Changes Additional Files  
No support by the author.

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!

Show Your Support

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

Comments
  #62  
Old 01-29-2005, 06:49 PM
MajorFm.com MajorFm.com is offline
 
Join Date: Dec 2004
Location: UK
Posts: 402
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sweet Evil
I got it to also show under froumdisplay, but not showthread yet.. let me know if you figure it out!
Ok, theory tells me this should work, but i can't actually get it to work on mine yet, can a coder please let me know what im doing wrong to get it to popup in showthread...

i did this...

opened showthread.php

found:
Code:
	'pollresults_table',
and replaced with
Code:
	'pollresults_table',
        'forumhome_vbpopup',
found:
Code:
eval('$navbar = "' . fetch_template('navbar') . '";');
Above that put:
Code:
eval('$vbpopup = "' . fetch_template('forumhome_vbpopup') . '";');
I opened SHOWTHREAD template:

replaced:
Code:
</head>
with
Code:
<style type="text/css">
	#vbpopup { position:absolute; height:1; width:1px; top:0; left:0; }
	</style>
	<if condition="$show['guest']"><script type="text/javascript" src="clientscript/vbulletin_vbpopup.js"></script></if>
</head>
Found:
Code:
</body>
Replaced with:
Code:
$vbpopup
</body>
Theory tells me this should work as its the same hack but for showthread... but it doesnt seem to pop up...
Reply With Quote
  #63  
Old 01-29-2005, 07:11 PM
MajorFm.com MajorFm.com is offline
 
Join Date: Dec 2004
Location: UK
Posts: 402
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Incase anyone want a login box on the popup for existing members so it doesn't become annoying for members who simply are not logged in... u may use my form which i slightly edited...

forumhome_vbpopup
Code:
<div id="vbpopup" style="visibility:hidden">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="400" align="center">
		<td align="center" valign="middle" class="alt2">
			<!-- Start Announcement Message -->
			<p style="margin-top: 0; margin-bottom: 0"><b>Please take some time 
            to register at our forum</b></p>
			<p style="margin-top: 0; margin-bottom: 0"><b>Takes less them a 
            minute...</b></p>
			<p style="margin-top: 0; margin-bottom: 0">&nbsp;</p>
			<p style="margin-top: 0; margin-bottom: 0"><b>This pop up does not 
            show for members logged in!<br><br>
			Click <a href="register.php?$session[sessionurl]">here</a> to
            <a href="register.php?$session[sessionurl]">$vbphrase[register]</a></b></p>
			<p style="margin-top: 0; margin-bottom: 0">&nbsp;</p>
			<p style="margin-top: 0; margin-bottom: 0"><b>or if you are a member 
            already, login below...</b></p>
			<p style="margin-top: 0; margin-bottom: 0">&nbsp;</p>
			<p style="margin-top: 0; margin-bottom: 0">		<!-- login form -->
		<form action="login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5password,vb_login_md5password_utf)">
		<script type="text/javascript" src="clientscript/vbulletin_md5.js"></script>
		<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
		<tr>
			<td class="smallfont">$vbphrase[username]</td>
			<td><input type="text" class="button" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="1" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
			<td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="3" id="cb_cookieuser_navbar" accesskey="c" checked="checked" />$vbphrase[remember_me]</label></td>
		</tr>
		<tr>
			<td class="smallfont">$vbphrase[password]</td>
			<td><input type="password" class="button" name="vb_login_password" size="10" accesskey="p" tabindex="2" /></td>
			<td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="4" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
		</tr>
		</table>
		<input type="hidden" name="s" value="$session[sessionhash]" />
		<input type="hidden" name="do" value="login" />
		<input type="hidden" name="forceredirect" value="1" />			
		<input type="hidden" name="vb_login_md5password" />
		<input type="hidden" name="vb_login_md5password_utf" />
		</form>
		<!-- / login form --></p>
			<p style="margin-top: 0; margin-bottom: 0">&nbsp;</p>
			<p style="margin-top: 0; margin-bottom: 0">
			<font class="smallfont">(This window will self close shortly)</font></td>
	</tr>
</table>
</div>
Reply With Quote
  #64  
Old 01-29-2005, 07:15 PM
MajorFm.com MajorFm.com is offline
 
Join Date: Dec 2004
Location: UK
Posts: 402
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by crocket
Hey!

Ive installed this however, it doesnt work! I do have a custom skin, and ive checked and rechecked ive done every step but it doesnt show.

If someone would check over my installation, i would be greatful, and paypal you a bit of cash too as its annoying me now!

MSN / Email: P{AT}TEL.VU

The site is: http://forums.addictedtogaming.com (You can check it out to see if you can figure out why it aint working?)

mikehawk gave this a try but couldnt fix it, he even double checked everything! Help still needed
add me to your msn, i will take a look at this for you.
Reply With Quote
  #65  
Old 01-31-2005, 07:05 PM
gembels gembels is offline
 
Join Date: Oct 2004
Location: Batam, Indonesia
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

on vb 3.0.6 cannot do $vbpopup on above </body> get error on templates message.. maybe i suggest it do at above </head> .. and in my forums it well done.. tq
Reply With Quote
  #66  
Old 02-01-2005, 01:27 AM
oldfan's Avatar
oldfan oldfan is offline
 
Join Date: Jul 2004
Posts: 813
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

/me clicks install, works great on 3.06
Reply With Quote
  #67  
Old 03-14-2005, 05:49 AM
SpankMe's Avatar
SpankMe SpankMe is offline
 
Join Date: Nov 2001
Location: New Zealand
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack. Helps when I'm doing a site shirt sale.


What this hack needs is a "close popup" link so members don't have to wait for it to close.
Reply With Quote
  #68  
Old 03-14-2005, 07:06 AM
SpankMe's Avatar
SpankMe SpankMe is offline
 
Join Date: Nov 2001
Location: New Zealand
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Never mind. Figured it out.

HTML Code:
<a href="javascript:closeAd();">close</a>
Reply With Quote
  #69  
Old 03-14-2005, 07:52 AM
xtreme-mobile xtreme-mobile is offline
 
Join Date: Jul 2004
Posts: 366
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

will this work on vb 3.0.6

regards
Reply With Quote
  #70  
Old 03-19-2005, 09:16 PM
slinky slinky is offline
 
Join Date: Dec 2001
Posts: 202
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This doesn't seem to work for me in vb 3.0.7. The window doesn't close and the addition above to provide a close link doesn't close the window. I get a javascript error. In order to get it to work I had to change the visibility from "hidden" to "visible" - which would make sense.
Reply With Quote
  #71  
Old 03-19-2005, 10:09 PM
slinky slinky is offline
 
Join Date: Dec 2001
Posts: 202
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Figured it out but there are still issues. The "if " regarding a guest didn't work. Once I took out the if statement it works fine BUT it hits all users all the time.

(1) This should only show up only once per session. I haven't seen any mod to do this.

(2) This hack does not automatically close in Mozilla/Firefox.
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 02:24 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.07535 seconds
  • Memory Usage 2,322KB
  • Queries Executed 25 (?)
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
  • (9)bbcode_code
  • (1)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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
  • (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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete