vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Mini Mods - New way to force guests to register (https://vborg.vbsupport.ru/showthread.php?t=272295)

dszuecs 10-17-2011 10:00 PM

New way to force guests to register
 
1 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 10-18-2011 05:02 PM

great trick :D

dszuecs 10-18-2011 05:12 PM

thank you :p

Davey-UK 10-18-2011 05:18 PM

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

dszuecs 10-18-2011 05:21 PM

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 10-18-2011 07:32 PM

Thanks just put on my test site looks nice :)

Pvtiste 10-18-2011 09:15 PM

Excellent job!

Crow 10-18-2011 10:27 PM

nice, thanks

Pvtiste 10-19-2011 02:23 AM

installed 5 stars!

dszuecs 10-19-2011 02:24 AM

Quote:

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

Thank you! much appreciated.:up:

WEBDosser 10-19-2011 05:11 AM

like it.. tagged :)

Sforums 10-19-2011 08:57 AM

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

Mr_Running 10-19-2011 03:54 PM

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 10-19-2011 05:05 PM

Could you add more images to suit various niches ?

dszuecs 10-19-2011 06:21 PM

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 10-19-2011 07:33 PM

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 10-19-2011 07:51 PM

extra Nice THX!

stator 10-20-2011 08:23 AM

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 10-20-2011 10:04 AM

Excellent. Thank you.

ultimategeek 10-20-2011 10:08 AM

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

Davey-UK 10-20-2011 02:51 PM

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 10-20-2011 03:24 PM

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 10-20-2011 03:32 PM

I have sorted it, i hope

Davey-UK 10-20-2011 05:23 PM

1366x768 mate.
Its fine now :)

stl7997 10-20-2011 05:54 PM

Simple but oh so cool! Thanks!

ultimategeek 10-20-2011 06:21 PM

Quote:

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

Thanks Dave :up:

dszuecs 10-21-2011 04:50 PM

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 10-21-2011 05:24 PM

Done installed ..Thank you..

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

dszuecs 10-21-2011 08:46 PM

Quote:

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

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

Nice one!

stator 10-22-2011 08:09 AM

Installed + 5 stars

akibui 10-22-2011 08:39 AM

Quote:

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

Worked perfect for me FF & IE + Chrome.

Sexuality Chanel

iSins 10-22-2011 09:03 PM

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

edit: NVM Fixed it.

etca 10-23-2011 02:05 AM

installed, rated.
thx.

jaffaman 10-23-2011 06:37 AM

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

jupiter5 10-23-2011 02:39 PM

Can I use this mod with 3.8.7?

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

dszuecs 10-23-2011 06:09 PM

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 10-23-2011 08:46 PM

This is nice!

Macgiber 10-23-2011 09:44 PM

installed

dszuecs 10-25-2011 09:15 PM

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 10-25-2011 11:24 PM

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


All times are GMT. The time now is 01:05 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01644 seconds
  • Memory Usage 1,822KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (18)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete