New way to force guests to register

by HaVoK - 06-30-2017 - 04:21 PM
Posts:
6

Reputation:
0

Credits:

Rookie User
Posts:
6

Threads:
5

Joined:
Jun 2017

Likes:
0

Credits:

Reputation:
0

Warning Level:

#1
OP
Posted: 06-30-2017 - 04:21 PM
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
Please register or login in order to unlock hidden content.

Posts:
4

Reputation:
0

Credits:

Rookie User
Posts:
4

Threads:
0

Joined:
Nov 2017

Likes:
0

Credits:

Reputation:
0

Warning Level:

#2
Posted: 11-02-2017 - 01:36 PM
i ll test it thanks
Posts:
1

Reputation:
0

Credits:

One Hit Wonder
Posts:
1

Threads:
0

Joined:
Jan 2018

Likes:
0

Credits:

Reputation:
0

Warning Level:

#3
Posted: 01-28-2018 - 12:25 AM
fdgfdgfdgfdg dfgfdg dfg dfg fdg fdg fdg fdg

fdg fdg dfg dfg dfg dfgdf gdfg dfgdfgfdgdf fdgfdg dfgdf gdfg

dfgdfgfd gfdg dfg dfg fdg dfg df

dfg fdg fdg dfg dfg dfg dfg dfg fdg dfg

dfg dfg dfg fdg dfg dfg d

dfrg dfg dfg dfg df

dfg dfg dfg dfgdfg dfgdfgdfg

dfg dfg df gdfg dfgdfg




USERS BROWSING THIS THREAD:  1 Guest(s)
"Join for the content, stay for the community."
© All Rights Reserved DemonForums.
© 2015-2017 / DemonForums
Server time: 02-18-2018, 05:55 PM (847 Days Online)