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: 391
Released: 18 Oct 2011 Last Update: 05 Jan 2012 Downloads: 742
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:	2293
Size:	72.5 KB
ID:	133931   Click image for larger version

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

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

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

Click image for larger version

Name:	registerV5.png
Views:	1351
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.
  #226  
Old 29 Nov 2012, 21:28
Bob_R Bob_R is offline
 
Join Date: Jun 2009
Originally Posted by Krusty1231 View Post
I'm not really sure what you are going for exactly? Can you provide a little more detail on what you want?
Exactly something along the lines of what you provided. Something classic rock, music related.

Anyone know what a good image size is for this? 200 x 200?
Reply With Quote
  #227  
Old 07 Dec 2012, 13:16
Thommy Thommy is offline
 
Join Date: Nov 2010
It looks so cool, but i must deactivate this mod, because- theres a problem to loggin via mobile.
You can insert your nickname, if you press passwort you cant give an insert, because its forwarding to register automatically.
Anyone the same problem on vB4.2.0?
Reply With Quote
  #228  
Old 10 Dec 2012, 23:06
mtlcore mtlcore is offline
 
Join Date: Jul 2005
Is there a way to set a cookie?
Reply With Quote
  #229  
Old 10 Dec 2012, 23:16
Alibass's Avatar
Alibass Alibass is offline
 
Join Date: Mar 2007
Originally Posted by Thommy View Post
It looks so cool, but i must deactivate this mod, because- theres a problem to loggin via mobile.
You can insert your nickname, if you press passwort you cant give an insert, because its forwarding to register automatically.
Anyone the same problem on vB4.2.0?
Why completely uninstall from site?

Just remove from mobile skin.
__________________
Alibass
Reply With Quote
  #230  
Old 11 Dec 2012, 15:59
qwer81 qwer81 is offline
 
Join Date: Aug 2012
I have a problem with the personal image that I created. The connection of the image covers the links of the discussions. If I try to click on a link in the forum (near the picture) I get redirected to the registration page. I tried to use the attached image in this topic (Super Mario) and no problems. What's wrong with my picture? I created an image .png

Thank you!
Reply With Quote
  #231  
Old 11 Dec 2012, 16:14
Alibass's Avatar
Alibass Alibass is offline
 
Join Date: Mar 2007
Originally Posted by qwer81 View Post
I have a problem with the personal image that I created. The connection of the image covers the links of the discussions. If I try to click on a link in the forum (near the picture) I get redirected to the registration page. I tried to use the attached image in this topic (Super Mario) and no problems. What's wrong with my picture? I created an image .png

Thank you!
Sounds like your image is to large, should be around 300px x 226px
__________________
Alibass
Reply With Quote
  #232  
Old 11 Dec 2012, 16:21
qwer81 qwer81 is offline
 
Join Date: Aug 2012
Thanks Alibass,

Look here http://www.milanworld.net/forum.php
Reply With Quote
  #233  
Old 11 Dec 2012, 16:42
qwer81 qwer81 is offline
 
Join Date: Aug 2012
This is the image

Reply With Quote
  #234  
Old 11 Dec 2012, 16:46
Alibass's Avatar
Alibass Alibass is offline
 
Join Date: Mar 2007
Originally Posted by qwer81 View Post
Thanks Alibass,

Look here http://www.milanworld.net/forum.php
I don't know why image is in the center of web page unless you change the original code for additional.css

You can change code in header template to this to remove it from the registration form.


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

__________________
Alibass
Reply With Quote
  #235  
Old 11 Dec 2012, 17:26
qwer81 qwer81 is offline
 
Join Date: Aug 2012
Yes, I changed the code to have the image on the left center! Just one thing: how can I make it similar to the ones you attached? I would like an image that does not create problems with the link of the forum when I pass the mouse on the same link
Reply With Quote
  #236  
Old 11 Dec 2012, 21:25
Thommy Thommy is offline
 
Join Date: Nov 2010
Originally Posted by Alibass View Post
Why completely uninstall from site?

Just remove from mobile skin.
Good idea, but- i have no mobile skin activated!
Reply With Quote
  #237  
Old 11 Dec 2012, 21:39
Alibass's Avatar
Alibass Alibass is offline
 
Join Date: Mar 2007
Originally Posted by Thommy View Post
It looks so cool, but i must deactivate this mod, because- theres a problem to loggin via mobile.
You can insert your nickname, if you press passwort you cant give an insert, because its forwarding to register automatically.
Anyone the same problem on vB4.2.0?
Originally Posted by Thommy View Post
Good idea, but- i have no mobile skin activated!
I don't follow you, you said you cant login via mobile...
__________________
Alibass
Reply With Quote
  #238  
Old 13 Dec 2012, 20:03
Thommy Thommy is offline
 
Join Date: Nov 2010
Hmm...sorry: cant login via mobiletelephone (not mobile skin)!
Reply With Quote
  #239  
Old 16 Dec 2012, 00:28
ringnews24's Avatar
ringnews24 ringnews24 is offline
 
Join Date: Aug 2012
I need some help, were do you add this code?

div.forcetoregister {
background:url(rotate.php);
background-repeat: no-repeat;
width:300px;
height:200px;
position:fixed;
right:1px;
bottom:0px;
z-index:1;
}

I added it to style manager - edit template - css template - additonal css.

Im not sure if thats the right path. No image is showing up when im logged out and showing as a guest.
__________________
Ringnews24 Boxing Forum
Reply With Quote
  #240  
Old 16 Dec 2012, 00:49
Alibass's Avatar
Alibass Alibass is offline
 
Join Date: Mar 2007
If you're not wanting to use the random image then use this:

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;
}
__________________
Alibass
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 15:16.

Layout Options | Width: Wide Color: