Back to vBulletin 3.8 Template Modifications

New way to force guests to register
Mod Version: 1.00, by dszuecs

vB Version: 3.8.x Rating: (5 votes - 4.80 average) Installs: 35
Released: 23 Dec 2011 Last Update: 07 Jan 2012 Downloads: 95
Not Supported Template Edits Additional Files  

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

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: http://www.srowned.org

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

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

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

2. Open your AP and open "Styles & Templates" and select "Style Manager". Now select "Main CSS" on te right side. Scroll down to the bottom where you will find "Additional CSS Definitions" 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 "header" template and add the following line on top:

To show it on EVERY PAGE add this:
<if condition="$show['guest']"><a href="/register.php"><div class="forcetoregister"></div></a></if>
To show it only on FIRST PAGE (forum home) add this (thx @ Whity):
<if condition="THIS_SCRIPT == 'index'">
<if condition="$show['guest']"><a href="/register.php"><div class="forcetoregister"></div></a></if>
</if>
To show it on every page EXCEP THE REGISTER PAGE, add this code:
<if condition="THIS_SCRIPT != 'register'">
<if condition="$show['guest']"><a href="/register.php"><div class="forcetoregister"></div></a></if>
</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 "Additional CSS Definitions" 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!

Download

File Type: %1$s rotate.php (1.5 KB, 101 downloads)

Screenshots

Click image for larger version
Name:	register.png
Views:	246
Size:	72.5 KB
ID:	135235   Click image for larger version
Name:	registerv2.png
Views:	197
Size:	60.9 KB
ID:	135236   Click image for larger version
Name:	registerV3.png
Views:	211
Size:	40.7 KB
ID:	135237   Click image for larger version
Name:	registerV4.png
Views:	191
Size:	67.6 KB
ID:	135238  

Click image for larger version
Name:	registerV5.png
Views:	157
Size:	64.5 KB
ID:	135239  

Similar Mods

Mini Mods New way to force guests to register vBulletin 4.x Template Modifications
Miscellaneous Hacks Force Intro On Register vBulletin 3.7 Add-ons

vblts.ru supports vBulletin®, 2022-2024