vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=272295

New way to force guests to register
by dszuecs
18 Oct 2011 17:52

6 Attachment(s)
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 3.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 "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;
}
3. Open your "header" template and add the following line on top:

To show it on EVERY PAGE add this:
Quote:

<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):
Quote:

<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:
Quote:

<vb:if condition="THIS_SCRIPT != 'register'">
<vb:if condition="$show['guest']"><a href="/register.php"><div class="forcetoregister"></div></a></vb:if>
</vb:if>
If you want the image to show up only for SPECIFIC USERGROUP(S), for example User who need to verify their e-mail adress - use this code:
Quote:

<vb:if condition="is_member_of($bbuserinfo, 3)"><a href="/register.php"><div class="forcetoregister"></div></a></vb:if>
Make sure to check your Usergroup ID in the ADMINCP as these may differ!



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" 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;
}

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!

SPEND ME A BUCK

If you like my Mod feel free to check my fiverr.com gig: http://fiverr.com/dszuecs/create-a-c...d-implement-it

abonk 18 Oct 2011 18:02

great trick :D

dszuecs 18 Oct 2011 18:12

thank you :p

Davey-UK 18 Oct 2011 18:18

Great stuff!
Looks sweet. Thankyou. Im just gunna make one to make people upgrade to premium. :)

dszuecs 18 Oct 2011 18:21

Quote:

Originally Posted by Davey-UK (Post 2258677)
Great stuff!
Looks sweet. Thankyou. Im just gunna make one to make people upgrade to premium. :)


Definitly another good idea! ty

jaffaman 18 Oct 2011 20:32

Thanks just put on my test site looks nice :)

Pvtiste 18 Oct 2011 22:15

Excellent job!

Crow 18 Oct 2011 23:27

nice, thanks

Pvtiste 19 Oct 2011 03:23

installed 5 stars!

dszuecs 19 Oct 2011 03:24

Quote:

Originally Posted by Pvtiste (Post 2258821)
installed 5 stars!

Thank you! much appreciated.:up:

WEBDosser 19 Oct 2011 06:11

like it.. tagged :)

Sforums 19 Oct 2011 09:57

1 Attachment(s)
Nice, thank you.
Here is the nice registration image for sport sites

Mr_Running 19 Oct 2011 16:54

Excellent !
Now all I need is a

Register or Run

and

maybe a image for a sports "running" site.

Thank you from Mr_Running :)

stator 19 Oct 2011 18:05

Could you add more images to suit various niches ?

dszuecs 19 Oct 2011 19:21

Quote:

Originally Posted by stator (Post 2259024)
Could you add more images to suit various niches ?

Hi Stator

Could you please explain what you mean? like different images so you could add them also on the top left and so on?


All times are GMT. The time now is 13:34.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.