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)

whitetailworld 02-07-2013 09:30 PM

it appears the link is there when you hover over, but the image does not show...

www.forums.whitetailworld.com is the link btw...

also, thanks in advance!!!

Alibass 02-07-2013 09:46 PM

Try it on every page except registration page and see if it works. That is how I have mine set and it works fine.

Code:

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


Alibass 02-07-2013 10:29 PM

Quote:

Originally Posted by whitetailworld (Post 2402746)
it appears the link is there when you hover over, but the image does not show...

www.forums.whitetailworld.com is the link btw...

also, thanks in advance!!!

Is your forum setup as a sub forum? You may have to change your background url to direct to where you have it saved[http://forums.whitetailworld.com/forum.php]

You might try putting forums/image/misc/register.php

The problem is the image is not in your root correctly from the way the mod is written.

whitetailworld 02-07-2013 10:47 PM

problem solved...oh how I wish I knew what I was doing...

Alibass 02-07-2013 10:54 PM

glad you got it work out...

Expat 02-11-2013 12:01 AM

Excellent mod. I went with a non-anime theme that works for me.

vimarc 02-21-2013 12:41 PM

I tried to add but not working on my forum: www.talkinwebforum.com

dszuecs 02-22-2013 12:03 PM

Quote:

Originally Posted by vimarc (Post 2405571)
I tried to add but not working on my forum: www.talkinwebforum.com

I can check it if you want me to. Just let me know user/pwd via PM.

Spangle 02-25-2013 09:53 PM

I'm trying to get this to work in version 4.2.0 without any luck.

I've pasted the code into additional.css

Code:

div.forcetoregister {
background:url(images http://www.talkoftheterrace.net/vb4/images/misc/register.png);
background-repeat: no-repeat;
width:300px;
height:200px;
padding:0 5px 3px;
position:fixed;
right:1px;
bottom:0px;
z-index:1;
}


and I've pasted this into my header template file this is just the top part :

Code:

<div id="g_wrapper">
<vb:if condition="$show['guest']"><a href="http://www.talkoftheterrace.net/vb4/register.php"><div class="forcetoregister"></div></a></vb:if>
<div class="g_topbar"><div class="g_site_width"><div class="g_topbar_in">
<div class="g_memarea">
<vb:if condition="$show['member']">
                        <ul class="g_isuser">

I've used the full URL to check the links are correct, both work when pasted into the browser.

No image shows when I am logged out, I know I am missing something, but I can't think what.

dszuecs 02-25-2013 09:58 PM

Quote:

Originally Posted by Spangle (Post 2406341)
I'm trying to get this to work in version 4.2.0 without any luck.

I've pasted the code into additional.css

Code:

div.forcetoregister {
background:url(images http://www.talkoftheterrace.net/vb4/images/misc/register.png);
background-repeat: no-repeat;
width:300px;
height:200px;
padding:0 5px 3px;
position:fixed;
right:1px;
bottom:0px;
z-index:1;
}


and I've pasted this into my header template file this is just the top part :

Code:

<div id="g_wrapper">
<vb:if condition="$show['guest']"><a href="http://www.talkoftheterrace.net/vb4/register.php"><div class="forcetoregister"></div></a></vb:if>
<div class="g_topbar"><div class="g_site_width"><div class="g_topbar_in">
<div class="g_memarea">
<vb:if condition="$show['member']">
                        <ul class="g_isuser">

I've used the full URL to check the links are correct, both work when pasted into the browser.

No image shows when I am logged out, I know I am missing something, but I can't think what.

Please create a temporary admin account and send me the credentials via PM so i can check your setup.


All times are GMT. The time now is 04:20 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.01414 seconds
  • Memory Usage 1,746KB
  • 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
  • (5)bbcode_code_printable
  • (3)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