Jump to content
vBWarez - Rest In Peace

New way to force guests to register


Recommended Posts

[B][COLOR="#FF0000"]vB Version: 5.0.1[/COLOR][/B]

ABOUT THIS MOD

My idea was to place a fix characater on the bottom right, wich 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: [url]http://www.srowned.org[/url]

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:

[QUOTE]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;
}[/QUOTE]

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:

[QUOTE]<vb:if condition="$bbuserinfo['userid'] == 0"><a href="/register"><div class="forcetoregister"></div></a></vb:if>[/QUOTE]

4. 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:

[QUOTE]div.forcetoregister {
background:url(rotate.php);
background-repeat: no-repeat;
width:300px;
height:200px;
position:fixed;
right:1px;
bottom:0px;
z-index:1;
}[/QUOTE]

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!

  • Like 1
Link to post
Share on other sites
  • 3 weeks later...
lol you didnt read the first post carefully

vB Version: 5.0.1

vb5 mods are coded different they do not work with vb4

try the correct one:

[url]http://vbwarez.net/showthread.php/1645-New-way-to-force-guests-to-register?highlight=force[/url]
  • Like 1
Link to post
Share on other sites
[quote name='WhiteZombie']lol you didnt read the first post carefully

vB Version: 5.0.1

vb5 mods are coded different they do not work with vb4

try the correct one:

[url]http://vbwarez.net/showthread.php/1645-New-way-to-force-guests-to-register?highlight=force[/url][/QUOTE]
dammit you right! My bad!
  • Like 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...