vBulletin Plugins

New way to force guests to register

Submitted by HaVoK, , Thread ID: 18640

Thread Closed
HaVoK
Member
Level:
1
Reputation:
7
Posts:
160
Likes:
91
Credits:
117
24-02-2016, 12:22 AM
#1
ABOUT THIS MOD

My idea was to place a fix characater on the bottom right, which forces guests to register an account, because i was sick of those standard "hello guest, register" mods.

So with this little modification, you are able to display a nice and flashy character to all guests - forcing them to register

All examples on the bottom are free to use.

-----------------------------------------------------------------------------------------------------------------

LIVE-DEMO: http://www.srowned.org

-----------------------------------------------------------------------------------------------------------------

IF YOU RUN VBULLETIN 4.X.X CHECK THIS THREAD
IF YOU RUN VBULLETIN 3.X.X CHECK THIS THREAD


1. Upload your desired image to "/images/misc/register.png" (if you want my samples, feel free to use them, they are all attached below)

2. Open your "css_additional.css" and add the following lines:

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. Open your "footer" template and add the following line on top:

To show it on every page add this on bottom right before the </body> tag in footer:
<vb:if condition="$bbuserinfo['userid'] == 0"><a href="/register"><div class="forcetoregister"></div></a></vb:if>
4. Mark as installed

5. You are done!


-----------------------------------------------------------------------------------------------------------------

NEW FEATURE: RANDOM IMAGE ON EVERY PAGERELOAD

Since some one at the forum came up with the wish, to have random images on every pagereload, i can now provide you a solution:

1. Add this code to your "css_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!

Content locked
This content has been locked. Please login or register in order to unlock it.

RE: New way to force guests to register

zoubovv
Newbie
Level:
0
Reputation:
0
Posts:
15
Likes:
0
Credits:
7
13-12-2016, 08:55 AM
#2
Thanks mate, downloaded

RE: New way to force guests to register

capsoll
Newbie
Level:
0
Reputation:
0
Posts:
12
Likes:
0
Credits:
10
11-06-2017, 11:53 PM
#3
Thanks mate, downloaded

RE: New way to force guests to register

droidman
Novice
Prime
Level:
0
Reputation:
0
Posts:
24
Likes:
0
Credits:
48
11-06-2017, 11:55 PM
#4
thanks mate. going to check it out

RE: New way to force guests to register

Guest
Level:
0
Posts:
N/A
Likes:
0
Credits:
0
15-06-2017, 09:47 PM
#5
Really cool! Nice one!

RE: New way to force guests to register

nonomostef
Novice
Level:
0
Reputation:
0
Posts:
28
Likes:
1
Credits:
3
17-06-2017, 05:21 PM
#6
thanks for that ^^ will test it

Users browsing this thread: 1 Guest(s)