The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
vbPopup for vB3 Details »» | |||||||||||||||||||||||||
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
|
Comments |
#62
|
|||
|
|||
Quote:
i did this... opened showthread.php found: Code:
'pollresults_table', Code:
'pollresults_table', 'forumhome_vbpopup', Code:
eval('$navbar = "' . fetch_template('navbar') . '";'); Code:
eval('$vbpopup = "' . fetch_template('forumhome_vbpopup') . '";'); replaced: Code:
</head> 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> Code:
</body> Code:
$vbpopup </body> |
#63
|
|||
|
|||
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"> </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"> </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"> </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"> </p>
<p style="margin-top: 0; margin-bottom: 0">
<font class="smallfont">(This window will self close shortly)</font></td>
</tr>
</table>
</div>
|
#64
|
|||
|
|||
Quote:
|
#65
|
|||
|
|||
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
|
#66
|
||||
|
||||
/me clicks install, works great on 3.06
|
#67
|
||||
|
||||
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. |
#68
|
||||
|
||||
Never mind. Figured it out.
HTML Code:
<a href="javascript:closeAd();">close</a> |
#69
|
|||
|
|||
will this work on vb 3.0.6
regards |
#70
|
|||
|
|||
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.
|
#71
|
|||
|
|||
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. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|