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)

MajorFm.com 01-29-2005 06:49 PM

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

MajorFm.com 01-29-2005 07:11 PM

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>


MajorFm.com 01-29-2005 07:15 PM

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.

gembels 01-31-2005 07:05 PM

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

oldfan 02-01-2005 01:27 AM

/me clicks install, works great on 3.06

SpankMe 03-14-2005 05:49 AM

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.

SpankMe 03-14-2005 07:06 AM

Never mind. Figured it out.

HTML Code:

<a href="javascript:closeAd();">close</a>

xtreme-mobile 03-14-2005 07:52 AM

will this work on vb 3.0.6

regards

slinky 03-19-2005 09:16 PM

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.

slinky 03-19-2005 10:09 PM

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.


All times are GMT. The time now is 04:59 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.01228 seconds
  • Memory Usage 1,760KB
  • 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
  • (9)bbcode_code_printable
  • (1)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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