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: 739
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:	2274
Size:	72.5 KB
ID:	133931   Click image for larger version

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

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

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

Click image for larger version

Name:	registerV5.png
Views:	1340
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.
  #331  
Old 14 Jan 2014, 17:57
ringnews24's Avatar
ringnews24 ringnews24 is offline
 
Join Date: Aug 2012
This mod is a great idea, but im getting lots of complaints it interfers with mobile phone users.
__________________
Ringnews24 Boxing Forum
Reply With Quote
  #332  
Old 13 Mar 2014, 13:01
Fleiding's Avatar
Fleiding Fleiding is offline
 
Join Date: Jan 2012
Real name: Rob
It's working great! Thank you so much!
Reply With Quote
  #333  
Old 12 May 2014, 16:45
keyness keyness is offline
 
Join Date: Oct 2006
I know that concept of mod is being visible to force guests to register but is it possible to allow guests to close or minimize this image? As stated above, this image can be bothering for mobile users.

Using it for years! Thank you again.
Reply With Quote
  #334  
Old 19 May 2014, 23:36
Macgiber's Avatar
Macgiber Macgiber is offline
 
Join Date: Apr 2009
Real name: Omar
Originally Posted by keyness View Post
I know that concept of mod is being visible to force guests to register but is it possible to allow guests to close or minimize this image? As stated above, this image can be bothering for mobile users.

Using it for years! Thank you again.
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>
__________________
vb4
vb5

I invite you want to know.
Reply With Quote
  #335  
Old 14 Jul 2014, 22:08
RRCamellini's Avatar
RRCamellini RRCamellini is offline
 
Join Date: Mar 2012
Real name: Rodrigo Camellini
Nice Job My friend
__________________
<b><a href=http://i.imgur.com/o1ZluZ1.png target=_blank>http://i.imgur.com/o1ZluZ1.png</a></b>
Reply With Quote
  #336  
Old 03 Sep 2014, 22:01
Khan91 Khan91 is offline
 
Join Date: Jan 2011
where is the additional.css located? i cannot find it anywhere. running 4.2.2
Reply With Quote
  #337  
Old 03 Sep 2014, 22:05
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Aug 2009
Real name: Chris
ACP --> Styles & Templates --> Style Manager

Choose your style and then select Edit Templates in the dropdown. now scroll to CSS Templates, double click on that, then find additional.css, and double click on that.
__________________
You can get access to my 180 mods for vB 3.6 - 4.x at The Admin Zone as well as the professional support you are used to. New vBulletin Spider Definitions, vBulletin Spiders List Hits 1000 Spiders! ​ OzzModz down. Site has had a data breach, checking how the intrusion happened. Change your PW if you use the same one on my site and others.
Reply With Quote
  #338  
Old 03 Sep 2014, 22:40
Khan91 Khan91 is offline
 
Join Date: Jan 2011
Thank you sir
Reply With Quote
  #339  
Old 03 Sep 2014, 22:46
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Aug 2009
Real name: Chris
Not a problem, glad to help.
__________________
You can get access to my 180 mods for vB 3.6 - 4.x at The Admin Zone as well as the professional support you are used to. New vBulletin Spider Definitions, vBulletin Spiders List Hits 1000 Spiders! ​ OzzModz down. Site has had a data breach, checking how the intrusion happened. Change your PW if you use the same one on my site and others.
Reply With Quote
  #340  
Old 10 Oct 2014, 09:11
TheAdminMarket's Avatar
TheAdminMarket TheAdminMarket is offline
 
Join Date: Jun 2013
Real name: Christos Teriakis
Great but needs a bit improvement. eg What if registrstions have turn off? To solve this issue modify the code in header template:


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

Those who are familiars with coding they can combine the condition like:


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

For those who want to hide it in mobile styles they can modify their condition like:

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

In simple words add: !IS_MOBILE_STYLE AND before your current condition.

Last edited by TheAdminMarket; 10 Oct 2014 at 09:23.
Reply With Quote
  #341  
Old 10 Oct 2014, 09:21
TheAdminMarket's Avatar
TheAdminMarket TheAdminMarket is offline
 
Join Date: Jun 2013
Real name: Christos Teriakis
Two more improvements:

1.- In additional css change:


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

to:

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

This will helps you to have different image per style.

2.- Change: z-index:1; to a higher value eg: z-index:9999;. This way you'll be sure that the image will be always visible.
Reply With Quote
  #342  
Old 12 Oct 2014, 00:41
JohnScag JohnScag is offline
 
Join Date: Jun 2014
Where is the installation file? All I see is the rotate.php
Reply With Quote
  #343  
Old 12 Oct 2014, 10:34
MrD's Avatar
MrD MrD is offline
 
Join Date: Aug 2003
Real name: Marcus
Hi,
All that you do,are in the First post.
There are only Template edits. The rotate.php is only a Feature, to show different pictures.
__________________
Greetz from Dortmund/Germany
Marcus
Reply With Quote
  #344  
Old 12 Mar 2015, 01:39
ravenfaust ravenfaust is offline
 
Join Date: Aug 2009
Hmm id like something nice and neat looking, thanks for this gonna modify the images and use it!
Reply With Quote
  #345  
Old 12 Mar 2015, 17:57
goarack goarack is offline
 
Join Date: Nov 2012
nice thank you
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 01:13.

Layout Options | Width: Wide Color: