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.
  #136  
Old 09 Jan 2012, 22:09
dszuecs's Avatar
dszuecs dszuecs is offline
 
Join Date: Oct 2011
Originally Posted by temsamane View Post
its working for me (4.1.9) but i want also a rotator for registered users (with other pictures) and special images for moderators. How can i do this?
For rotating images use the one described above.
To be able to display images out of another folder espacially for moderators, you'll need to set up a little <vb:if> script, wich points to another rotate.php file (rotate_mod.php for example)
Reply With Quote
  #137  
Old 10 Jan 2012, 00:44
Jncocontrol's Avatar
Jncocontrol Jncocontrol is offline
 
Join Date: Mar 2009
Originally Posted by dszuecs View Post
It will randomly show every images you upload, so simply only upload those you want to be displayed, or am i missunderstanding your question?
Nah, You got it.
Reply With Quote
  #138  
Old 10 Jan 2012, 06:56
cs28702 cs28702 is offline
 
Join Date: Apr 2010
Originally Posted by weave View Post
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....
fishing hunting outdoors / light background would be awesome!!

Last edited by cs28702; 10 Jan 2012 at 07:01.
Reply With Quote
  #139  
Old 10 Jan 2012, 11:37
Lazorbeam Lazorbeam is offline
 
Join Date: Aug 2010
Originally Posted by ICC FORUM View Post
Many Thanks, Installed,,

http://internationalchristineclub.net/forum.php

I have used one of the above Symbols for now, but will update it with one of my own later..
Save the image as a PNG with no background, the white block you have right now looks very tacky.
Reply With Quote
  #140  
Old 10 Jan 2012, 11:56
stator's Avatar
stator stator is offline
 
Join Date: Jan 2009
Real name: Mohammad
How to make my own photo ?
Reply With Quote
  #141  
Old 11 Jan 2012, 03:32
Almightychucho Almightychucho is offline
 
Join Date: Jan 2012
Awesome! Thnx
Reply With Quote
  #142  
Old 14 Jan 2012, 00:44
ICC FORUM's Avatar
ICC FORUM ICC FORUM is offline
 
Join Date: Jun 2011
Can someone Help Please, I changed the Image tonight and although it Appears , When i click the Image to Register (test) i am getting a 404 code, If i use the regular Register Button, I still get the 404 Code, I have deleted New Image and gone back to my old one and am now getting the same 404 Code,
I even deleted the Header Code above and i still et the 404 code when using the Original Register button,
Can anyone help ????

Forum is http://internationalchristineclub.net/forum.php

Thanks
Reply With Quote
  #143  
Old 14 Jan 2012, 08:21
Schoelle Schoelle is offline
 
Join Date: Feb 2011
Originally Posted by ICC FORUM View Post
Can anyone help ????

Forum is http://internationalchristineclub.net/forum.php

Thanks
Is the file http://internationalchristineclub.net/register.php existent?
__________________
Attachements in private messages.
Vote here: http://tracker.vbulletin.com/browse/VBIV-5750
Reply With Quote
  #144  
Old 14 Jan 2012, 10:58
Killhunter Killhunter is offline
 
Join Date: Jul 2011
Just one wish: Is it possible, to only show the image to people wich have a min-width of 1600px for example?
Reply With Quote
  #145  
Old 14 Jan 2012, 11:42
ICC FORUM's Avatar
ICC FORUM ICC FORUM is offline
 
Join Date: Jun 2011
Originally Posted by Schoelle View Post
I checked in the AdminCP to see if the link internationalchristineclub.net/register.php had been removed or Switched off, But i cannot find mention to it anywhere,

I let in a New Registered User the day before via Facebook Connect, I had that set up with a auto 2nd user group , Strange thing when i went to delete the 2nd user group somethnig clicked over to Default, I ignored it BUT that may have somthing to do with this problem, I have since deleted the 2nd user group for Facebook users, I checked in New Registration Options on ACP and find no mention of the internationalchristineclub.net/register.php,,

So now unsure what of the 2 issue,s has caused this Problem, Really Appreiciate any help as not that computer savvy, although learning, But i am Not just pressing buttons for the hell of it..

Thanks
Reply With Quote
  #146  
Old 14 Jan 2012, 12:54
Schoelle Schoelle is offline
 
Join Date: Feb 2011
Check via ftp if the file is 'physically' on the server. I doubt it!
If the file is missing upload it from your local archive.
__________________
Attachements in private messages.
Vote here: http://tracker.vbulletin.com/browse/VBIV-5750
Reply With Quote
  #147  
Old 14 Jan 2012, 14:35
doctorsexy's Avatar
doctorsexy doctorsexy is offline
 
Join Date: Apr 2011
Real name: Chris
Working with 4.1.0 ...smashin
__________________
http://sandstormradio.org
Reply With Quote
  #148  
Old 14 Jan 2012, 15:25
doctorsexy's Avatar
doctorsexy doctorsexy is offline
 
Join Date: Apr 2011
Real name: Chris
if you dont want it to show on the cms put this in....


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

__________________
http://sandstormradio.org
Reply With Quote
  #149  
Old 19 Jan 2012, 19:28
dszuecs's Avatar
dszuecs dszuecs is offline
 
Join Date: Oct 2011
Originally Posted by doctorsexy View Post
if you dont want it to show on the cms put this in....


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
Thanks for your input!
For those wondering how to make their own avatar: Simply google for image render
Reply With Quote
  #150  
Old 01 Feb 2012, 10:08
Jpolola Jpolola is offline
 
Join Date: Mar 2011
Nice Mod.. Many Thanks
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 03:36.

Layout Options | Width: Wide Color: