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)

Gary Granaas 03-25-2013 06:03 AM

very nice and it worked perfect thank you developer

twistah 04-01-2013 12:21 AM

Thanks - now up at www.dykkesiden.com as well :)

dszuecs 04-10-2013 01:53 PM

Quote:

Originally Posted by twistah (Post 2413478)
Thanks - now up at www.dykkesiden.com as well :)

Well done, thanks for sharing :)

manute 04-10-2013 07:27 PM

hello when I install this mod does not allow people to register on the web.
thanks

dszuecs 04-18-2013 07:02 PM

Quote:

Originally Posted by manute (Post 2415588)
hello when I install this mod does not allow people to register on the web.
thanks

Hi manute

Could you please explain a bit further?

JohnnieOO 04-24-2013 01:22 AM

This mod is awesome! However, on my site it works IE but not Chrome. With Chrome, the image does not rotate? It does rotate in IE.

Thanks,
Johnnie

blackie58 04-24-2013 12:41 PM

Just managed to install this & its ace

Got a big Rossi

www.desmocorse.net

smile2me 04-25-2013 11:52 PM

I'm running vb 4.2.1 and i have done the instruction as written above and nothing showed up in any webpage in my forum viewed as guest ?!! any help please

JohnnieOO 04-26-2013 01:37 AM

^ make sure you've added the images to the appropriate images folder for the template you are using, I fell into that one.

secondeye 04-26-2013 06:50 AM

HEllo,
I want to show this Image to those Visitors who haven't confirmed their Email address..
Is there any way?

astrid1 04-26-2013 01:00 PM

this also works with vb5?

ggrimes620 05-01-2013 12:21 AM

Works great! Thanks, dszuecs!

www.thelocclan.com

dszuecs 05-06-2013 07:50 AM

Quote:

Originally Posted by secondeye (Post 2418616)
HEllo,
I want to show this Image to those Visitors who haven't confirmed their Email address..
Is there any way?

Hello Secondeye

You can do this by adding this code:

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

Make sure to check your usergroup ID in the admincp, maybi you have another ID than '3'
Let me know if it works :)

Cheers

kartheekb 05-09-2013 09:13 AM

well done..

but one suggestion , add text ," if registered already .. loggin to board "'

t-j 06-03-2013 11:00 AM

Installed and loving it :)

If you are handy with photoshop you can create your own, you just need to change the size to what you want in the additional.css

This is our custom one and can be seen here

http://img834.imageshack.us/img834/333/regck.png

NoMatt3r 06-07-2013 10:04 AM

Using 4.2.1

This mod is fantastic!!! Thanks a lot. Marked, nominated and liked :)

ravenfaust 06-12-2013 08:19 PM

Would someone be kind enough to make generic images??

dszuecs 06-14-2013 06:54 AM

Quote:

Originally Posted by ravenfaust (Post 2427762)
Would someone be kind enough to make generic images??

Could you please explain a bit further? What do you need exactly?
Cheers - Dennis

HerbToken 06-19-2013 11:31 AM

Installed, I love it! Thanks

stevieb 08-04-2013 03:16 PM

Looks good :)

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.

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:57 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.01460 seconds
  • Memory Usage 1,817KB
  • 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
  • (4)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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