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)

friendlymela 09-10-2013 06:38 AM

wow wonderful i have done it :D

thenoob2012 09-20-2013 05:49 AM

1 Attachment(s)
Installed it. Works great!

Here is a png I made. Anyone is welcome to use it. I am using it right now, well see if it gets any new people to register, lol.

bosanci28 10-05-2013 05:04 AM

How do i make this go away after 5 seconds ?

Thanks

Drache 10-06-2013 11:58 PM

I am interested to know this as well. is it possible to make it go away for example in 30secs after it appear on everypage.

ozzy47 10-07-2013 01:08 AM

Quote:

Originally Posted by bosanci28 (Post 2450061)
How do i make this go away after 5 seconds ?

Thanks

Quote:

Originally Posted by Drache (Post 2450561)
I am interested to know this as well. is it possible to make it go away for example in 30secs after it appear on everypage.

To make the single image disappear after 5 seconds, change what you put in your header template to something like this.

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>

<a href="/register.php"><div id = "forcetoregister" class="forcetoregister"></div></a>

To make it disappear after 30 seconds, change both instances of 5000 to 30000

You will still need to wrap the following:
Code:

<a href="/register.php"><div id = "forcetoregister" class="forcetoregister"></div></a>
with what ever conditionals you have set up.

bosanci28 10-07-2013 01:18 AM

@Ozzy, It worked! Thank you very much for taking the time to put the code up here!

Regards.
Thanks.

ozzy47 10-07-2013 01:30 AM

Not a problem, glad to help. :)

bosanci28 10-07-2013 03:50 AM

Just got an idea , i was thinking when this pop-up and sometime can be annoying for users that visit the forum for the first time,is it possible to show some "timer" on the display? like:
5 sec , 4 sec ,3 sec...to 0 sec ,then the image to go away and the timer also!? can this be achieved?

Thanks,

ozzy47 10-07-2013 03:53 AM

Not that I know of.

bosanci28 10-07-2013 02:17 PM

Hmm, i have this code in:

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>

<a href="/register.php"><div id = "forcetoregister" class="forcetoregister"></div></a>

and it looks that is not working right !, it is showing even with admin logged in!,
hmm,interesting.


All times are GMT. The time now is 04:22 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.01238 seconds
  • Memory Usage 1,741KB
  • 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
  • (2)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