vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - Floating Guest Notify (https://vborg.vbsupport.ru/showthread.php?t=159418)

Javierogo 08-21-2009 07:25 AM

Hello, very nice mod and i would like to know if is possible completely static, someting like the Facebook bar. Thanks!

princeedward 08-29-2009 07:58 PM

thanks and still working to the latest vB 3.8.4 ....

:p:up:

letsjoy 09-06-2009 09:05 AM

Thanks a lot man for this share :)

goxy63 09-16-2009 12:28 AM

How to make it always above all content, as google ads and such ?

Thanks

MentaL 09-17-2009 03:29 PM

Hi guys,

On my 3.8.4 forum I only have the login box on the FORUMHOME, so I decided to use this script and to modify it to include a floating login box, for those who wish to do the following simply use this code in accordance to what the author has already released.
  • Replace contents of the phrase "$vbphrase[you_are_unregistered]" with the following code below;
Code:

<table width="100%" class="tborder" border="0" align="center">
  <tr>
    <td class="alt1"><table width="100%" border="0" cellspacing="5">
      <tr>
      <form action="login.php?do=login" method="post" onSubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
        <script type="text/javascript" src="clientscript/vbulletin_md5.js?v=$vboptions[simpleversion]"></script>
        <!-- login form -->
       
        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" align="center">
            <td class="smallfont">&nbsp;<label for="navbar_username">Name</label>&nbsp;</td>
            <td><input type="text" STYLE="color: #000000; font-family: Verdana; font-weight: normal; font-size: 11px; height: 1em; background-color: #EDF7FA;" class="bginput" name="vb_login_username" id="navbar_username" size="8" accesskey="u" tabindex="101" /></td>
            <td class="smallfont" colspan="2" nowrap="nowrap"></td>
            <td class="smallfont">&nbsp;<label for="navbar_password">Password</label>&nbsp;</td>
            <td><input type="password" STYLE="color: #000000; font-family: Verdana; font-weight: normal; font-size: 10px; height: 1em; background-color: #EDF7FA;" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="8" tabindex="102" /></td>
            <td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" checked="checked" /></label></td>
            <td><input type="submit" class="button" value="Go" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
        </table>
        <input type="hidden" name="s" value="$session[sessionhash]" />
        <input type="hidden" name="do" value="login" />       
        <input type="hidden" name="vb_login_md5password" />
        <input type="hidden" name="vb_login_md5password_utf" />
        </form>
        <!-- / login form -->
    </table></td>
  </tr>
</table>

<div style="text-align: center;">You are Unregistered, please <a href="{2}">register</a> to gain Full access.</div>

  • Search for vbulletin template "phpkd_floating_guest_notify" and find the following line;
Code:

                    <phrase 1="$vboptions[bbtitle]" 2="register.php$session[sessionurl_q]">$vbphrase[you_are_unregistered]</phrase>&nbsp;&nbsp;&nbsp;&nbsp; </td><td width="1%"><a onclick="closebar(); return false" href="$vboptions[bburl]"><img style="float: $stylevar[left]" src="$stylevar[imgdir_misc]/close.gif" border="0"></a>
  • Replace with
Code:

                    <phrase 1="$vboptions[bbtitle]" 2="register.php$session[sessionurl_q]">$vbphrase[you_are_unregistered]</phrase>&nbsp;&nbsp;&nbsp;&nbsp; </td><td width="1%"><a onclick="closebar(); return false" href="$vboptions[bburl]"><img style="float: $stylevar[right]" src="$stylevar[imgdir_misc]/close.gif" border="0"></a>
And it will look like the attached image below. (I also give permission to the author if he wishes to link to this post in his release)

- Enjoy. :D

SorentoUltimate 09-22-2009 02:34 PM

one question,

how can i use my each style css, with out change the template for each style

LilPimp 10-03-2009 06:23 PM

Thank you man, i have been looking all over for this.

Javierogo 10-03-2009 06:36 PM

This is a great modification MentaL! Thanks.
:up:

Tize. 10-30-2009 01:07 PM

Great File mate.
Thank you.

gnatster 11-05-2009 03:44 PM

Installed...

Thanks for this. lets hope it entices a few more people to register.


All times are GMT. The time now is 07:50 PM.

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.04420 seconds
  • Memory Usage 1,743KB
  • 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
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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