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)

john7911 11-11-2013 07:03 PM

Hi,
I see the picture even if i am connected as Admin, any solution?
Thank you.

dszuecs 11-12-2013 03:28 PM

Quote:

Originally Posted by john7911 (Post 2459990)
Hi,
I see the picture even if i am connected as Admin, any solution?
Thank you.

Hi John

What vBulletin version are you using? Is the :if condition correct?:
<vb:if condition="$show['guest']">

Do you have <guest> as additional usergroup on your account?

Cheers.

john7911 11-13-2013 10:31 AM

Quote:

Originally Posted by dszuecs (Post 2460147)
Hi John

What vBulletin version are you using? Is the :if condition correct?:
<vb:if condition="$show['guest']">

Do you have <guest> as additional usergroup on your account?

Cheers.

Hi ;)
I'm using 4.2.2
I want the picture disarear after a few minutes this is the code what I have:
PHP Code:

<!--robot-->
<
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="/forum/register.php"><div id "forcetoregister" class="forcetoregister"></div></a>-->


<
vb:if condition="THIS_SCRIPT == 'index'">
 <
vb:if condition="$show['guest']"><a href="/forum/register.php"><div class="forcetoregister"></div></a></vb:if>
 </
vb:if>

<!--
fin robot--> 

Thank you :)

RVP99 11-13-2013 02:28 PM

Thanks, works a treat!

Macgiber 11-28-2013 02:09 PM

thank you

naveeid 12-05-2013 07:26 AM

installed in vb4.2.2
its great , its working great.
thanks friend

naveeid 12-05-2013 07:31 AM

just modified the image for my website

https://vborg.vbsupport.ru/external/2013/12/37.png

naveeid 12-05-2013 08:43 AM

https://vborg.vbsupport.ru/external/2013/12/36.png

BBNZowner 12-24-2013 05:54 AM

This is great, I'm getting an artist to create a forum mascot for this purpose

newbie2007 01-12-2014 12:14 AM

This isnt working for me on 4.2.2? Anyone else having a problem with it on 4.2.2?

ringnews24 01-14-2014 04:57 PM

This mod is a great idea, but im getting lots of complaints it interfers with mobile phone users.

Fleiding 03-13-2014 12:01 PM

It's working great! Thank you so much! :)

keyness 05-12-2014 02:45 PM

I know that concept of mod is being visible to force guests to register but is it possible to allow guests to close or minimize this image? As stated above, this image can be bothering for mobile users.

Using it for years! Thank you again.

Macgiber 05-19-2014 09:36 PM

Quote:

Originally Posted by keyness (Post 2497457)
I know that concept of mod is being visible to force guests to register but is it possible to allow guests to close or minimize this image? As stated above, this image can be bothering for mobile users.

Using it for years! Thank you again.

To show it only on FIRST PAGE (forum home) add this (thx @ Whity):

<vb:if condition="THIS_SCRIPT == 'index'">
<vb:if condition="$show['guest']"><a href="/register.php"><div class="forcetoregister"></div></a></vb:if>
</vb:if>

RRCamellini 07-14-2014 08:08 PM

Nice Job My friend

Khan91 09-03-2014 08:01 PM

where is the additional.css located? i cannot find it anywhere. running 4.2.2

ozzy47 09-03-2014 08:05 PM

ACP --> Styles & Templates --> Style Manager

Choose your style and then select Edit Templates in the dropdown. now scroll to CSS Templates, double click on that, then find additional.css, and double click on that.

Khan91 09-03-2014 08:40 PM

Thank you sir

ozzy47 09-03-2014 08:46 PM

Not a problem, glad to help. :)

TheAdminMarket 10-10-2014 07:11 AM

Great but needs a bit improvement. eg What if registrstions have turn off? To solve this issue modify the code in header template:

Code:

<vb:if condition="$show['registerbutton']">
..........here goes the other code that you already use.............
</vb:if>

Those who are familiars with coding they can combine the condition like:

Code:

<vb:if condition="$show['registerbutton'] AND THIS_SCRIPT != 'register'">
.....or any other condition(s)....

For those who want to hide it in mobile styles they can modify their condition like:
Code:

<vb:if condition="!IS_MOBILE_STYLE AND ..... here the other condition...">
In simple words add: !IS_MOBILE_STYLE AND before your current condition.

TheAdminMarket 10-10-2014 07:21 AM

Two more improvements:

1.- In additional css change:

HTML Code:

background:url(images/misc/register.png);
to:
HTML Code:

background:url({vb:stylevar imgdir_misc}/register.png);
This will helps you to have different image per style.

2.- Change: z-index:1; to a higher value eg: z-index:9999;. This way you'll be sure that the image will be always visible.

JohnScag 10-11-2014 10:41 PM

Where is the installation file? All I see is the rotate.php

MrD 10-12-2014 08:34 AM

Hi,
All that you do,are in the First post.
There are only Template edits. The rotate.php is only a Feature, to show different pictures.

ravenfaust 03-11-2015 11:39 PM

Hmm id like something nice and neat looking, thanks for this gonna modify the images and use it!

goarack 03-12-2015 03:57 PM

nice thank you

Scyther 04-22-2015 01:09 PM

Quote:

Originally Posted by newbie2007 (Post 2473730)
This isnt working for me on 4.2.2? Anyone else having a problem with it on 4.2.2?

i am using 4.2.2 and it's not showing up. Followed all steps still can't get it working.. anyone know why it isn't happening for me?

UPDATE: issue solved. thanks.. i am all good now.

pityocamptes 05-10-2015 01:39 AM

Hey, anyway to prevent this from a mobile device? Hogs up the device screen... thanks.

ForceHSS 05-10-2015 01:43 AM

Use any image check google for a smaller one

pityocamptes 05-10-2015 02:09 AM

Ok, I can make my own, just wondering if their was an automatic way of shrinking it when viewed on device? Thanks.

thetechgenius 05-19-2015 07:53 PM

1 Attachment(s)
This is awesome! I added the code to my forum, but I created my own custom image in Photoshop. I create all the images for my forum myself. I also had to adjust the position of the image, it was overlapping the "Back to Top" button at the bottom of my forum, so you couldn't click the button at all. So I put the image right above the "Back to Top" button using CSS.

I also added a screenshot to this post, so you can see what it looks like on my forum, with the custom image I created in photoshop. Or you can see a live preview of it on my forum - https://thetechgenius.net

Thank you for this!

-INSTALLED-

Edit: The screenshot looks a bit blurry, and I don't know why. But you can still see what it looks like on my forum.

https://img.thetechgenius.net/di/EBU...bble_fixed.png

friendlymela 10-14-2015 04:42 AM

It is not working anymore.. any update ? please check my forum www.friendlymela.com

Bastien 10-14-2015 05:55 AM

1 Attachment(s)
Juste installed and it works fine ;)

friendlymela 10-15-2015 06:58 AM

Quote:

Originally Posted by Bastien (Post 2556982)
Juste installed and it works fine ;)

on my forum its not working

Bastien 10-15-2015 01:38 PM

I looked at your html code, there is not the modification needed in the header !!

SWSUSA 04-01-2016 08:15 PM

Unfortunately it is necessary to remove fashions as he very strongly increases time of loading of pages. Alas.

К сожалению придётся удалить мод, так как он очень сильно увеличивает время загрузки страниц. Увы.

vpcarrocci 01-14-2017 06:22 PM

I just added this to my site, www.grandcanyonstatebbq.com, and it works very well. The image I created was a little larger than the supplied code designated so I simply adjusted those lines to match my custom image size.

I may add more images and rotate them with the additional code in the near future.

Thanks for the modification!

thetechgenius 11-04-2017 12:21 AM

Thank you for this addon! I have just created a custom image for my forum using Photoshop.

I run a tech website about building custom gaming computers, among other things, so I had to create an image based on that. And this is what I came up with:

https://vborg.vbsupport.ru/external/2017/11/1.png

If anyone wants to use it, your more then welcome to.


All times are GMT. The time now is 07:31 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.01896 seconds
  • Memory Usage 1,818KB
  • 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_html_printable
  • (1)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (37)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