Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
New way to force guests to register Details »
New way to force guests to register
Mod Version: 2.00, by dszuecs (Designer) dszuecs is offline
Developer Last Online: Mar 2018 I like it Show Printable Version Email this Page

vB Version: 4.2.x Rating: (63 votes - 4.83 average) Installs: 390
Released: 18 Oct 2011 Last Update: 05 Jan 2012 Downloads: 738
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 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:

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

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

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	register.png
Views:	2273
Size:	72.5 KB
ID:	133931   Click image for larger version

Name:	registerv2.png
Views:	1539
Size:	60.9 KB
ID:	133935   Click image for larger version

Name:	registerV3.png
Views:	2038
Size:	40.7 KB
ID:	133936   Click image for larger version

Name:	registerV4.png
Views:	1677
Size:	67.6 KB
ID:	133937  

Click image for larger version

Name:	registerV5.png
Views:	1339
Size:	64.5 KB
ID:	133938  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
  #61  
Old 28 Oct 2011, 02:48
IFx DDay IFx DDay is offline
 
Join Date: Sep 2011
Where's yours located at? I could be wrong
Reply With Quote
  #62  
Old 28 Oct 2011, 03:09
dszuecs's Avatar
dszuecs dszuecs is offline
 
Join Date: Oct 2011
Originally Posted by IFx DDay View Post
Where's yours located at? I could be wrong
simply do a template-search fo "additional.css"
Reply With Quote
  #63  
Old 28 Oct 2011, 06:19
IFx DDay IFx DDay is offline
 
Join Date: Sep 2011
Originally Posted by dszuecs View Post
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!
Reply With Quote
  #64  
Old 30 Oct 2011, 22:03
andie215 andie215 is offline
 
Join Date: Jul 2007
Brilliant, i love it thx
Reply With Quote
  #65  
Old 31 Oct 2011, 15:38
dszuecs's Avatar
dszuecs dszuecs is offline
 
Join Date: Oct 2011
http://www.vbulletin.org/forum/images/icons/icon14.gif

Originally Posted by andie215 View Post
Brilliant, i love it thx
Glad you like it
Reply With Quote
  #66  
Old 02 Nov 2011, 21:06
Rideharder's Avatar
Rideharder Rideharder is offline
 
Join Date: Jan 2008
Thanks.

You can use the pic.



SPEEDAHOLIC.NET
Attached Images
File Type: png registerv22.png (306.9 KB, 629 views)
__________________
Last edited by Obama : Today at 20:51.

Last edited by Rideharder; 02 Nov 2011 at 21:28.
Reply With Quote
  #67  
Old 04 Nov 2011, 21:30
weave weave is offline
 
Join Date: Jun 2011
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....
Reply With Quote
  #68  
Old 06 Nov 2011, 17:44
thecore762 thecore762 is offline
 
Join Date: Jul 2008
Tagged because I am interested.
__________________
www.47r-squad.com BF3|CS:S|TF2|L4D2 Gaming community
Reply With Quote
  #69  
Old 07 Nov 2011, 04:41
hhumas's Avatar
hhumas hhumas is offline
 
Join Date: Aug 2010
i have did everything on vb4.1.4 but its not working
Reply With Quote
  #70  
Old 07 Nov 2011, 17:35
steve1966 steve1966 is offline
 
Join Date: Dec 2007
thank you
Reply With Quote
  #71  
Old 07 Nov 2011, 19:11
jooohn1 jooohn1 is offline
 
Join Date: Oct 2010
Excellent!

Thank you
Reply With Quote
  #72  
Old 12 Nov 2011, 22:36
jshallo jshallo is offline
 
Join Date: Aug 2009
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?
Reply With Quote
  #73  
Old 13 Nov 2011, 13:35
Cervantage Cervantage is offline
 
Join Date: Nov 2011
Installed +5 rated...
Excellent hack ......
BTW, this was my first post.
Reply With Quote
  #74  
Old 13 Nov 2011, 21:23
rdavm rdavm is offline
 
Join Date: Nov 2008
Thank for this one Worked on 4.1.8 Beta 1
Reply With Quote
  #75  
Old 17 Nov 2011, 19:42
Nochek Nochek is offline
 
Join Date: Nov 2011
Installed, awesome hack! Here's a demo and the pic if anyone wants to use it:

Z-Day

__________________
Z-Day: Survival of the Fittest
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 19:59.

Layout Options | Width: Wide Color: