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.
  #301  
Old 10 Sep 2013, 07:38
friendlymela's Avatar
friendlymela friendlymela is offline
 
Join Date: Dec 2012
Real name: Zeeshan Shams
wow wonderful i have done it
Reply With Quote
  #302  
Old 20 Sep 2013, 06:49
thenoob2012 thenoob2012 is offline
 
Join Date: Aug 2012
Installed it. Works great!

Here is a png I made. Anyone is welcome to use it. I am using it right now, well see if it gets any new people to register, lol.
Attached Images
File Type: png register.png (40.1 KB, 26 views)
Reply With Quote
  #303  
Old 05 Oct 2013, 06:04
bosanci28's Avatar
bosanci28 bosanci28 is offline
 
Join Date: Feb 2008
How do i make this go away after 5 seconds ?

Thanks
Reply With Quote
  #304  
Old 07 Oct 2013, 00:58
Drache Drache is offline
 
Join Date: Aug 2004
I am interested to know this as well. is it possible to make it go away for example in 30secs after it appear on everypage.
Reply With Quote
  #305  
Old 07 Oct 2013, 02:08
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Real name: Chris
Originally Posted by bosanci28 View Post
How do i make this go away after 5 seconds ?

Thanks
Originally Posted by Drache View Post
I am interested to know this as well. is it possible to make it go away for example in 30secs after it appear on everypage.
To make the single image disappear after 5 seconds, change what you put in your header template to something like this.


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

To make it disappear after 30 seconds, change both instances of 5000 to 30000

You will still need to wrap the following:

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

with what ever conditionals you have set up.
__________________
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
  #306  
Old 07 Oct 2013, 02:18
bosanci28's Avatar
bosanci28 bosanci28 is offline
 
Join Date: Feb 2008
@Ozzy, It worked! Thank you very much for taking the time to put the code up here!

Regards.
Thanks.
Reply With Quote
  #307  
Old 07 Oct 2013, 02:30
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 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
  #308  
Old 07 Oct 2013, 04:50
bosanci28's Avatar
bosanci28 bosanci28 is offline
 
Join Date: Feb 2008
Just got an idea , i was thinking when this pop-up and sometime can be annoying for users that visit the forum for the first time,is it possible to show some "timer" on the display? like:
5 sec , 4 sec ,3 sec...to 0 sec ,then the image to go away and the timer also!? can this be achieved?

Thanks,
Reply With Quote
  #309  
Old 07 Oct 2013, 04:53
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Real name: Chris
Not that I know of.
__________________
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
  #310  
Old 07 Oct 2013, 15:17
bosanci28's Avatar
bosanci28 bosanci28 is offline
 
Join Date: Feb 2008
Hmm, i have this code in:


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

and it looks that is not working right !, it is showing even with admin logged in!,
hmm,interesting.
Reply With Quote
  #311  
Old 07 Oct 2013, 15:58
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Real name: Chris
That's because you did not add any conditionals to it, tha was in the OP.
__________________
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
  #312  
Old 07 Oct 2013, 16:12
bosanci28's Avatar
bosanci28 bosanci28 is offline
 
Join Date: Feb 2008
i see...

now, i use this one:


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

and it works for un-registered users ,but does not go out after 5 sec.

Thanks,
Reply With Quote
  #313  
Old 07 Oct 2013, 16:37
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Real name: Chris
I'll try it on my dev site, when I get home.
__________________
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
  #314  
Old 11 Oct 2013, 17:12
bosanci28's Avatar
bosanci28 bosanci28 is offline
 
Join Date: Feb 2008
You had a chance to test it?

Thanks,
Reply With Quote
  #315  
Old 11 Oct 2013, 17:17
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Real name: Chris
No not yet, been busy with support after the release of 4.2.2
__________________
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
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:20.

Layout Options | Width: Wide Color: