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)

ringnews24 12-16-2012 12:58 AM

Were do I install that code Alibass ?

I was really wanting the rotate code, but if one image is all I can do then that will have to do.

Alibass 12-16-2012 01:08 AM

Where did you put the rotate.php file?

ringnews24 12-16-2012 01:20 AM

Quote:

Originally Posted by Alibass (Post 2390997)
Where did you put the rotate.php file?

/httpdocs/boxingforum

Alibass 12-16-2012 01:46 AM

Is this your forum root? If not you need to add rotate.php to your forum root and follow the instructions for the rotating images to works.


1. Add this code to your "additional.css" instead of the code provided on top:
div.forcetoregister {
background:url(rotate.php);
background-repeat: no-repeat;
width:300px;
height:200px;
position:fixed;
right:1px;
bottom:0px;
z-index:1;
}

2. Download the file "rotate.php" wich is attached below

3. Upload the file "rotate.php" to your FORUMROOT

4. Open "images/misc" via FTP and create a new folder called "ftr" (Complete path should look like this: /images/misc/ftr)

5. Upload your desired images to the "ftr" folder (supported file extensions are: PNG, GIF & JPG)

6. Your done!

ringnews24 12-16-2012 01:49 AM

I've done all of that and yes its my forumroot and yet it still hasn't worked.

Alibass 12-16-2012 02:17 AM

Did you add one of these in the header template?

3. Open your "header" template and add the following line on top:

To show it on EVERY PAGE add this:
<vb:if condition="$show['guest']"><a href="/register.php"><div class="forcetoregister"></div></a></vb:if>
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>
To show it on every page EXCEP THE REGISTER PAGE, add this 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>

ringnews24 12-16-2012 10:05 AM

No as I have version 4.2

ringnews24 12-16-2012 10:15 AM

Quote:

Originally Posted by Alibass (Post 2391002)
Did you add one of these in the header template?

3. Open your "header" template and add the following line on top:

To show it on EVERY PAGE add this:
<vb:if condition="$show['guest']"><a href="/register.php"><div class="forcetoregister"></div></a></vb:if>
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>
To show it on every page EXCEP THE REGISTER PAGE, add this 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>

That fixed it thanks m8. It says for vbulletin 3.x.x though

Cheers again

ringnews24 12-16-2012 10:31 AM

The image is now showing, but when you click the image it takes you to a page that says

Not Found

The requested URL /register.php/ was not found on this server.

Apache Server at ringnews24.com Port 80

ringnews24 12-16-2012 12:18 PM

I've been having a few problems with this mod, it broke my blog and it stopped guests registering on my forum.

Help Topic from Vbulletin.com https://www.vbulletin.com/forum/show...join-the-forum

badcarb 12-16-2012 01:14 PM

excellent add on brotha'

Alibass 12-16-2012 01:43 PM

Quote:

Originally Posted by ringnews24 (Post 2391043)
The image is now showing, but when you click the image it takes you to a page that says

Not Found

The requested URL /register.php/ was not found on this server.

Apache Server at ringnews24.com Port 80

Fix this string <a href="/register.php">to point to the root of where your register.php file is located. You can also try to remove the / in front of register.php first and see if that fixes it. Once you get it to working you will need to make the correction in all skins if you're using more than the vb skin.

dszuecs 01-03-2013 12:02 PM

Quote:

Originally Posted by ringnews24 (Post 2391057)
I've been having a few problems with this mod, it broke my blog and it stopped guests registering on my forum.

Help Topic from Vbulletin.com https://www.vbulletin.com/forum/show...join-the-forum

Hi there, check your PN please.

The script is working as expected now. Please check your blog and give me feedback if there are any errors.

Cheers

ringnews24 01-04-2013 06:48 PM

Thanks dszuecs, no current problems with the blog.

Thanks a lot for fixing this for me.

JamalFree 01-05-2013 04:30 PM

Quote:

Originally Posted by abonk (Post 2258672)
great trick :D

:up::up::up::up::up::up::up::up:

Spadow 01-26-2013 10:33 PM

Hi there,

I've been looking for something like this, but is there a way to add an 'x' to close the image?

Thanks,
Spadow

Alibass 01-26-2013 10:55 PM

Quote:

Originally Posted by Spadow (Post 2399745)
Hi there,

I've been looking for something like this, but is there a way to add an 'x' to close the image?

Thanks,
Spadow

Dunno why you would want to close image, the mod was designed to stare your guest in the face with a constant reminder so they will join.

Spadow 01-26-2013 11:04 PM

Quote:

Originally Posted by Alibass (Post 2399748)
Dunno why you would want to close image, the mod was designed to stare your guest in the face with a constant reminder so they will join.

That is correct, but this modification can be used in forum events as well, which I'm sure of that my registered members don't want to see the same image every single time they visit a certain page. Because it might be annoying for them.

dszuecs 02-01-2013 08:51 AM

Quote:

Originally Posted by Spadow (Post 2399749)
That is correct, but this modification can be used in forum events as well, which I'm sure of that my registered members don't want to see the same image every single time they visit a certain page. Because it might be annoying for them.

It wouldn't be a problem at all to add a close button to the image with jQuery. The problem is, that the image will reappear on every page reload.

whitetailworld 02-07-2013 09:13 PM

OK, I have never claimed to be a "programmer". I have installed VB myself and it works. I am REALLY trying to get this mod in and am having NO luck.

I have done the following...
1. placed my register.png file in the images/misc/ folder

2. placed this code in (what was my empty) additional.css file:

div.forcetoregister {
background:url(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;
}

3. Included the code in bold to my header file. This is not all of the header file, but just the top part...

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

<div class="above_body"> <!-- closing tag is in template navbar -->
<div id="header" class="floatcontainer doc_header">
<vb:if condition="$stylevar['titleimage']"><div><a name="top" href="{vb:link forumhome}" class="logo-image"><img src="{vb:stylevar titleimage}" alt="{vb:rawphrase x_powered_by_vbulletin, {vb:raw vboptions.bbtitle}}" /></a></div></vb:if>
<div id="toplinks" class="toplinks">
<vb:if condition="$show['member']">
<ul class="isuser">...
.
.
.
.

Am I missing something?

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.

Inspector G 02-26-2013 02:52 AM

1 Attachment(s)
I have this installed and it looked pretty good...
But I wanted animated ones...

I also wanted ones that sounded normal...
Not worded like
I am seeing you dont Own an account yet...
Should be more normal Like
I see you have not registered yet...or something along those lines...
Own account or owning an account do not make sense to me...
So...

I found out by experimenting a bit that you can simply add an animated gif and it too works..
so I have some I am having designed added to my site..
With Custom Text that is specific to my site...

The only problem is they are a bit larger in file size and space...
I need to bump them up in the page a bit and move some from the far right over a bit to the left to allow the larger image to display...

How can I do this?

To add an image as a Gif I simply named it as follows... registerV1 then .gif then I numbered as shown here 1 2 3 4 5 and so on I have ten I have had made for this works like a charm...
SO THANKS...

So now as mentioned I need a way to make the larger sizes display properly...
Thanks to all...
I will attach an examples...
I am working on the text as well...lol

I will try to resize I see it now reading of course...

dszuecs 02-26-2013 09:45 AM

Quote:

Originally Posted by Inspector G (Post 2406398)
I have this installed and it looked pretty good...
But I wanted animated ones...

I also wanted ones that sounded normal...
Not worded like
I am seeing you dont Own an account yet...
Should be more normal Like
I see you have not registered yet...or something along those lines...
Own account or owning an account do not make sense to me...
So...

I found out by experimenting a bit that you can simply add an animated gif and it too works..
so I have some I am having designed added to my site..
With Custom Text that is specific to my site...

The only problem is they are a bit larger in file size and space...
I need to bump them up in the page a bit and move some from the far right over a bit to the left to allow the larger image to display...

How can I do this?

To add an image as a Gif I simply named it as follows... registerV1 then .gif then I numbered as shown here 1 2 3 4 5 and so on I have ten I have had made for this works like a charm...
SO THANKS...

So now as mentioned I need a way to make the larger sizes display properly...
Thanks to all...
I will attach an examples...
I am working on the text as well...lol

I will try to resize I see it now reading of course...

You can set the image size by editing the the attributes:

div.forcetoregister {
background:url(rotate.php);
background-repeat: no-repeat;
width:300px;
height:200px;

position:fixed;
right:1px;
bottom:0px;
z-index:1;
}

Spangle 02-26-2013 05:55 PM

I've installed this and love it, now my guests see a picture of Sir Alex Ferguson with a think bubble saying he has to remember to join the forum.

Inspector G 02-26-2013 09:12 PM

I cant find the additional Css..I know...
I did find it last night and was able to increase the size without goig crazy but now I want to size it better and Can not find the Css again...lol
Help...

dszuecs 02-27-2013 05:29 AM

Quote:

Originally Posted by Inspector G (Post 2406550)
I cant find the additional Css..I know...
I did find it last night and was able to increase the size without goig crazy but now I want to size it better and Can not find the Css again...lol
Help...

In your ADMINCP expand 'Sytles & Templates' on the left navigation bar
- select 'Search in Templates'
- On top, select your Style
- Search for 'additional.css'

Inspector G 02-27-2013 03:11 PM

Thanks I know dumb questions I am Noob to the mod side of Vb, used to think it was great by iself now I realize I was missing a whole world or addons and customizations...
So to all thanks again for understanding.
Thanks for the help also...:D

tinoco2 03-08-2013 02:03 PM

Thanks very much, this mode is awesome :)

http://www.elrincondelcomprador.com

string13 03-13-2013 03:09 PM

Just a little note that might save someone time. My forum is installed in a sub-directory /players, because I have a WordPress homepage installed in the root-directory. I installed the mod and it did everything that it should except when the image is clicked it sends new registers to the WordPress homepage instead of the form registration form. I scratched my head for about 20 minutes and then I realized that I needed to make a small change in the header code.

If anyone out there has the same issue then you need to add your sub-directory to you header code.

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

White0utDavid 03-20-2013 01:32 AM

May I ask, where is addition.css located?

dszuecs 03-20-2013 04:26 PM

Quote:

Originally Posted by White0utDavid (Post 2411085)
May I ask, where is addition.css located?

Go to your ADMIN-CP, open Styles & Templates, and than search for additional.css :up:


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.02248 seconds
  • Memory Usage 1,851KB
  • 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
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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