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?

doctorsexy 19 Oct 2011 20:33

Quote:

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

+1 for more sorts of images ..looks good ..

sisterhood 19 Oct 2011 20:51

extra Nice THX!

stator 20 Oct 2011 09:23

Quote:

Originally Posted by dszuecs (Post 2259047)
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?

No, I mean images according to forum i.e. ebooks to be a girl carrying a book,
sports to be a girl in sport wear and so on ...

Maledetto 20 Oct 2011 11:04

Excellent. Thank you.

ultimategeek 20 Oct 2011 11:08

awesome many thanks
you can check mine out here: www.ultimatemovieforum.com

Davey-UK 20 Oct 2011 15:51

Quote:

Originally Posted by ultimategeek (Post 2259278)
awesome many thanks
you can check mine out here: www.ultimatemovieforum.com

Its a mile out, i cant even see a message only a transformer.
Here is mine

ultimategeek 20 Oct 2011 16:24

Quote:

Originally Posted by Davey-UK (Post 2259364)
Its a mile out, i cant even see a message only a transformer.
Here is mine

Thanks for the heads up Dave :up: can i ask what size screen your using?

ultimategeek 20 Oct 2011 16:32

I have sorted it, i hope

Davey-UK 20 Oct 2011 18:23

1366x768 mate.
Its fine now :)

stl7997 20 Oct 2011 18:54

Simple but oh so cool! Thanks!

ultimategeek 20 Oct 2011 19:21

Quote:

Originally Posted by Davey-UK (Post 2259452)
1366x768 mate.
Its fine now :)

Thanks Dave :up:

dszuecs 21 Oct 2011 17:50

I'll add some more examples as soon as i have time.
I thought about giving you the inspiration to create you're own characters, it wasn't planned to upload a whole set..

Regards
Denis

doctorsexy 21 Oct 2011 18:24

Done installed ..Thank you..

take a look here www.groovie-baby.co.uk

dszuecs 21 Oct 2011 21:46

Quote:

Originally Posted by doctorsexy (Post 2259836)
Done installed ..Thank you..

take a look here www.groovie-baby.co.uk

Nice one!

stator 22 Oct 2011 09:09

Installed + 5 stars

akibui 22 Oct 2011 09:39

Quote:

Originally Posted by stator (Post 2260067)
Installed + 5 stars

Worked perfect for me FF & IE + Chrome.

Sexuality Chanel

iSins 22 Oct 2011 22:03

For me it blocks the Registration Button. how can i move it to the left side?

edit: NVM Fixed it.

etca 23 Oct 2011 03:05

installed, rated.
thx.

jaffaman 23 Oct 2011 07:37

installed thanks take a look here if you want :)
http://www.csa-squad.co.uk/

jupiter5 23 Oct 2011 15:39

Can I use this mod with 3.8.7?

If you add cancel/delete possibility for the image would be better.

dszuecs 23 Oct 2011 19:09

Quote:

Originally Posted by jupiter5 (Post 2260544)
Can I use this mod with 3.8.7?

If you add cancel/delete possibility for the image would be better.


Since this is simple CSS/DIV it should work with older vbulletin version - simply test it.
I don't want users to be able to close the msg. if you want to, use javacsript.

thecore762 23 Oct 2011 21:46

This is nice!

Macgiber 23 Oct 2011 22:44

installed

dszuecs 25 Oct 2011 22:15

Quote:

Originally Posted by jaffaman (Post 2260450)
installed thanks take a look here if you want :)
http://www.csa-squad.co.uk/

nice one :)

d19rnyxx 26 Oct 2011 00:24

can someone guide me on how to center the "complete registration" and "reset fields" because the image stops users from pressing them.

Thanks in advance

thedarkroom 26 Oct 2011 08:14

is there a way that the images change by themselves in different times? i mean you load the page and one image comes out, you load the page again and another image shows up

Whity 26 Oct 2011 08:27

3. Open your "header" template and add the following line on top:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


or


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


thedarkroom 26 Oct 2011 09:28

i added the image, and the syntax on the header, but is not showing :(

dszuecs 26 Oct 2011 16:34

Quote:

Originally Posted by thedarkroom (Post 2261652)
i added the image, and the syntax on the header, but is not showing :(

Did you also add the class to your "additional.css" ?

thedarkroom 26 Oct 2011 17:07

Quote:

Originally Posted by dszuecs (Post 2261725)
Did you also add the class to your "additional.css" ?

yes i did :(

UPDATE
i manage to make it work by editing the additional.css of the default template, but how can i make the image to be more small? www.megaportes.com/foro

dszuecs 26 Oct 2011 17:08

Quote:

Originally Posted by d19rnyxx (Post 2261560)
can someone guide me on how to center the "complete registration" and "reset fields" because the image stops users from pressing them.

Thanks in advance

Simply add this in your "additional.css":

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>
This will exclude the register-avatar on your /register.php.

Greetings

thedarkroom 26 Oct 2011 17:48


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

when i try to add this to the header says that theres a bad syntax and cannot save the template ._.

dszuecs 26 Oct 2011 17:53

Quote:

Originally Posted by thedarkroom (Post 2261761)
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

when i try to add this to the header says that theres a bad syntax and cannot save the template ._.

What vbulletin version are you using?

thedarkroom 26 Oct 2011 18:18

Quote:

Originally Posted by dszuecs (Post 2261765)
What vbulletin version are you using?

4.1.7 :)

Whity 26 Oct 2011 18:26

Quote:

Originally Posted by thedarkroom (Post 2261775)
4.1.7 :)


great rabbit :up:

thedarkroom 26 Oct 2011 20:43

Quote:

Originally Posted by Whity (Post 2261778)
great rabbit :up:

haha thanks :P but i have the same problem of d19rnyxx :(

dszuecs 26 Oct 2011 22:40

Quote:

Originally Posted by thedarkroom (Post 2261815)
haha thanks :P but i have the same problem of d19rnyxx :(

Also using latest vbulletin build? :S

thedarkroom 26 Oct 2011 22:54

Quote:

Originally Posted by dszuecs (Post 2261841)
Also using latest vbulletin build? :S

yes ._.

dszuecs 26 Oct 2011 22:59

Quote:

Originally Posted by thedarkroom (Post 2261843)
yes ._.

this makes no sense at all :S
could u please post your hole "header" template code?

thank you!

thedarkroom 27 Oct 2011 00:00


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

im using the style mint

dszuecs 27 Oct 2011 04:35

Quote:

Originally Posted by thedarkroom (Post 2261862)
im using the style mint

copy & paste this one, works for me:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

If this doesn't work for you, i really don't know what's the problem :/

thedarkroom 27 Oct 2011 05:29

AWESOME :D!!! thank you very much <3 if you have a own website send me a pm so i can add it to my portal :D

dszuecs 27 Oct 2011 06:07

Quote:

Originally Posted by thedarkroom (Post 2261938)
AWESOME :D!!! thank you very much <3 if you have a own website send me a pm so i can add it to my portal :D

Glad you could finally get it working!
Currently i do mit own a website, but thx for asking :)

IFx DDay 28 Oct 2011 00:41

Quote:

Open your "additional.css" and add the following lines:
Since v4's additional.css is obsolete where do we go to add step 2?

dszuecs 28 Oct 2011 00:48

Quote:

Originally Posted by IFx DDay (Post 2262174)
Since v4's additional.css is obsolete where do we go to add step 2?

additional.css is obsolete? i don't think so cause im using it every day.

IFx DDay 28 Oct 2011 01:48

Where's yours located at? I could be wrong

dszuecs 28 Oct 2011 02:09

Quote:

Originally Posted by IFx DDay (Post 2262200)
Where's yours located at? I could be wrong

simply do a template-search fo "additional.css" :)

IFx DDay 28 Oct 2011 05:19

Quote:

Originally Posted by dszuecs (Post 2262207)
simply do a template-search fo "additional.css" :)

DOH! Forgot about that!

PS - I was thinking of "Additional CSS Definitions" as being obsolete, my bad & thanks for the help!

andie215 30 Oct 2011 21:03

Brilliant, i love it thx :)

http://www.vbulletin.org/forum/images/icons/icon14.gif
by dszuecs
31 Oct 2011 14:38

Quote:

Originally Posted by andie215 (Post 2263001)
Brilliant, i love it thx :)

Glad you like it :up:

Rideharder 02 Nov 2011 20:06

1 Attachment(s)
Thanks.

You can use the pic.

http://www.vbulletin.org/forum/attac...1&d=1320264558

SPEEDAHOLIC.NET

weave 04 Nov 2011 20:30

This is an awesome hack....who can make me an image that goes with an outdoor/archery/hunting forum with a dark background? I do not have such skillz....

thecore762 06 Nov 2011 16:44

Tagged because I am interested.

hhumas 07 Nov 2011 03:41

i have did everything on vb4.1.4 but its not working

steve1966 07 Nov 2011 16:35

thank you

jooohn1 07 Nov 2011 18:11

Excellent!

Thank you

jshallo 12 Nov 2011 21:36

Hi, This works in most of my the Forums part of my site and even other add on sections like Videos, but, I can't get it to work in my CMS. Granted my CMS uses a special template but, even when I added it to both header templates and CSS its not working on the CMS and also the PhotoPost add-on. Odd.. any ideas why it won't show up?

Cervantage 13 Nov 2011 12:35

Installed +5 rated...
Excellent hack :)......
BTW, this was my first post.

rdavm 13 Nov 2011 20:23

Thank for this one :) Worked on 4.1.8 Beta 1

Nochek 17 Nov 2011 18:42

Installed, awesome hack! Here's a demo and the pic if anyone wants to use it:

Z-Day

https://www.vbulletin.org/forum/

gamersplatoon 17 Nov 2011 22:56

I've installed it here www.gamersplatoon.com on 4.1.7 ,works perfect ,thanks

Wild Bronco 20 Nov 2011 22:46

vBulletin 4.1.8 working nicely thank you :)

Wild Bronco 20 Nov 2011 22:49

Could this be used for facebook...?

Like use on facebook or die?

Do you get the idea? :)

dszuecs 22 Nov 2011 00:03

Quote:

Originally Posted by gamersplatoon (Post 2269046)
I've installed it here www.gamersplatoon.com on 4.1.7 ,works perfect ,thanks

nicely done :up: thanks for sharing

arkueckelhan 23 Nov 2011 21:38

Great little mod, hopefully will improve sign-ups a bit!

preemz10314 24 Nov 2011 22:47

Awesome. Flawless. Love it. Thank you very much.

preemz10314 24 Nov 2011 22:48

Should be mod of the month. works on 4.1.7

K!nG 26 Nov 2011 03:14

working great on 4.1.8 Thanks it's very nice mod :)

xabo 28 Nov 2011 22:21

great, thanks!

Sergas 29 Nov 2011 15:17

2 Attachment(s)
I made a psd file for mmo fans and forum's.
I hope anybody like this. i know this is not the best :o

dszuecs 29 Nov 2011 18:18

Quote:

Originally Posted by Sergas (Post 2273055)
I made a psd file for mmo fans and forum's.
I hope anybody like this. i know this is not the best :o

Thanks for sharing :)

zubhyx 30 Nov 2011 16:40

muchas gracias. muy bueno

CaneInsider 01 Dec 2011 00:11

Quote:

Originally Posted by jshallo (Post 2267382)
Hi, This works in most of my the Forums part of my site and even other add on sections like Videos, but, I can't get it to work in my CMS. Granted my CMS uses a special template but, even when I added it to both header templates and CSS its not working on the CMS and also the PhotoPost add-on. Odd.. any ideas why it won't show up?

I use a custom cms skin as well. Put the code at the very top of your header and instead of index use register as shown in this code.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


dszuecs 03 Dec 2011 13:39

Quote:

Originally Posted by CaneInsider (Post 2273523)
I use a custom cms skin as well. Put the code at the very top of your header and instead of index use register as shown in this code.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Great, thank you for this one.

CaneInsider 03 Dec 2011 16:15

I cant seem to get the image to only stay on the home page. Is there a way to add a X box to the image to give members an option to close it.

Angle4cor 04 Dec 2011 07:31

Is it possible to add more than one register.png ?

dszuecs 04 Dec 2011 13:13

Quote:

Originally Posted by Angle4cor (Post 2274517)
Is it possible to add more than one register.png ?

Sure, simply add another div, something like:

div.forcetoregister2 {
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;
}


And the code in the header template would look something like this:

<vb:if condition="$show['guest']"><a href="/register.php"><div class="forcetoregister"></div><div class="forcetoregister2"></div></a></vb:if>

mlotziii 11 Dec 2011 03:05

Worked for me! I customized it for my forum theme. Let me know what you think of my phrase and image: http://www.lotzoutdoors.com/forums

Alfa1 11 Dec 2011 07:03

dszuecs, your site design and logo looks very nice! Who did it?

dszuecs 12 Dec 2011 00:13

Quote:

Originally Posted by Alfa1 (Post 2276688)
dszuecs, your site design and logo looks very nice! Who did it?

Hi there. First of all i'd like to say thanks.
The site is based on a "vbskin.net" theme - changes are done by me. (pretty much CSS stuff)

Regards

Alfa1 13 Dec 2011 01:09

Great job!

dszuecs 13 Dec 2011 14:16

Quote:

Originally Posted by Alfa1 (Post 2277195)
Great job!

Thanks alot, much appreciated!

DiageoLiam 14 Dec 2011 19:26

Any alternative when additional.css is deemed 'obsolete'?

HMBeaty 14 Dec 2011 22:03

1 Attachment(s)
Took me a bit, but made a special one that the fans of Gunnery Sergeant R.L. Ermey aka "The Gunny" (Gunny Hartman from Full Metal Jacket) will love :D

http://www.vbulletin.org/forum/attac...1&d=1323903825

HMBeaty 14 Dec 2011 22:40

Just finished putting "Gunny" in action ;)

www.usmilitarylife.com


All times are GMT. The time now is 20:04.

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.