vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Mini Mods - New way to force guests to register (https://vborg.vbsupport.ru/showthread.php?t=272295)

ozzy47 10-07-2013 02:58 PM

That's because you did not add any conditionals to it, tha was in the OP.

bosanci28 10-07-2013 03:12 PM

i see...

now, i use this one:

Code:

<script type="text/javascript">
<!--

// When page loads ...
window.addEventListener("load", function()
{
    // Run in 5 seconds
    setTimeout(function()
    {
        // Put div into variable and show it
        var div = window.document.querySelector("#forcetoregister");
        div.style.display = "block";

        // Run in 5 seconds
        setTimeout(function()
        {
            // Hide div
            div.style.display = "none";
        }, 5000);
    }, 5000);
}, false);

//-->
</script>

<vb:if condition="is_member_of($bbuserinfo, 1)"><a href="/register.php"><div class="forcetoregister"></div></a></vb:if>

and it works for un-registered users ,but does not go out after 5 sec.

Thanks,

ozzy47 10-07-2013 03:37 PM

I'll try it on my dev site, when I get home.

bosanci28 10-11-2013 04:12 PM

You had a chance to test it?

Thanks,

ozzy47 10-11-2013 04:17 PM

No not yet, been busy with support after the release of 4.2.2

bosanci28 10-11-2013 04:21 PM

O i see... i am still on 4.2.1, not sure if i will update to the new 4.2.2

crazyboy1661 11-03-2013 05:19 AM

Thanks for this mod dszuecs. It's working on both IE and Mozilla fine.
www.telugudosti.com

john7911 11-03-2013 04:45 PM

Thank you ;)

Jncocontrol 11-11-2013 03:14 AM

How would I get this to align to the left?

dszuecs 11-11-2013 09:29 AM

Quote:

Originally Posted by Jncocontrol (Post 2459861)
How would I get this to align to the left?

Change the CSS like this

div.forcetoregister {
background:url(rotate.php);
background-repeat: no-repeat;
width:300px;
height:200px;
position:fixed;
left:1px;
bottom:0px;
z-index:1;
}


All times are GMT. The time now is 03:35 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.01510 seconds
  • Memory Usage 1,734KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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