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

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

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

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

Click image for larger version

Name:	registerV5.png
Views:	1342
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.
  #346  
Old 22 Apr 2015, 15:09
Scyther's Avatar
Scyther Scyther is offline
 
Join Date: Jul 2009
Real name: Dane
Originally Posted by newbie2007 View Post
This isnt working for me on 4.2.2? Anyone else having a problem with it on 4.2.2?
i am using 4.2.2 and it's not showing up. Followed all steps still can't get it working.. anyone know why it isn't happening for me?

UPDATE: issue solved. thanks.. i am all good now.

Last edited by Scyther; 09 May 2015 at 16:33.
Reply With Quote
  #347  
Old 10 May 2015, 03:39
pityocamptes's Avatar
pityocamptes pityocamptes is offline
 
Join Date: May 2010
Hey, anyway to prevent this from a mobile device? Hogs up the device screen... thanks.
__________________
https://www.gunsgrubandgold.com

[SIGPIC][/SIGPIC]
Reply With Quote
  #348  
Old 10 May 2015, 03:43
ForceHSS's Avatar
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Use any image check google for a smaller one
Reply With Quote
  #349  
Old 10 May 2015, 04:09
pityocamptes's Avatar
pityocamptes pityocamptes is offline
 
Join Date: May 2010
Ok, I can make my own, just wondering if their was an automatic way of shrinking it when viewed on device? Thanks.
__________________
https://www.gunsgrubandgold.com

[SIGPIC][/SIGPIC]
Reply With Quote
  #350  
Old 19 May 2015, 21:53
thetechgenius's Avatar
thetechgenius thetechgenius is offline
 
Join Date: Jun 2014
This is awesome! I added the code to my forum, but I created my own custom image in Photoshop. I create all the images for my forum myself. I also had to adjust the position of the image, it was overlapping the "Back to Top" button at the bottom of my forum, so you couldn't click the button at all. So I put the image right above the "Back to Top" button using CSS.

I also added a screenshot to this post, so you can see what it looks like on my forum, with the custom image I created in photoshop. Or you can see a live preview of it on my forum - https://thetechgenius.net

Thank you for this!

-INSTALLED-

Edit: The screenshot looks a bit blurry, and I don't know why. But you can still see what it looks like on my forum.

Attached Images
File Type: jpg guest_speech_bubble_fixed.jpg (77.9 KB, 21 views)
__________________
TheTechGenius.Net Official IRC Network (ONLINE)
Host: irc.thetechgenius.net
Port: 6667
TTG IRC Web Client - http://thetechgenius.net/irc.html

Last edited by thetechgenius; 19 May 2015 at 23:53.
Reply With Quote
  #351  
Old 14 Oct 2015, 06:42
friendlymela's Avatar
friendlymela friendlymela is offline
 
Join Date: Dec 2012
Real name: Zeeshan Shams
It is not working anymore.. any update ? please check my forum www.friendlymela.com
Reply With Quote
  #352  
Old 14 Oct 2015, 07:55
Bastien's Avatar
Bastien Bastien is offline
 
Join Date: May 2015
Thumbs up

Juste installed and it works fine
Attached Images
File Type: png Capturer.PNG (199.4 KB, 27 views)
Reply With Quote
  #353  
Old 15 Oct 2015, 08:58
friendlymela's Avatar
friendlymela friendlymela is offline
 
Join Date: Dec 2012
Real name: Zeeshan Shams
Originally Posted by Bastien View Post
Juste installed and it works fine
on my forum its not working
Reply With Quote
  #354  
Old 15 Oct 2015, 15:38
Bastien's Avatar
Bastien Bastien is offline
 
Join Date: May 2015
I looked at your html code, there is not the modification needed in the header !!
Reply With Quote
  #355  
Old 01 Apr 2016, 22:15
SWSUSA's Avatar
SWSUSA SWSUSA is offline
 
Join Date: Nov 2012
Real name: Spartak
Unfortunately it is necessary to remove fashions as he very strongly increases time of loading of pages. Alas.

К сожалению придётся удалить мод, так как он очень сильно увеличивает время загрузки страниц. Увы.
__________________
Forum of Accountants and Auditors in Russia Glbyh.Ru Do what you can, with what you have, where you are.
Reply With Quote
  #356  
Old 14 Jan 2017, 19:22
vpcarrocci's Avatar
vpcarrocci vpcarrocci is offline
 
Join Date: Mar 2011
I just added this to my site, www.grandcanyonstatebbq.com, and it works very well. The image I created was a little larger than the supplied code designated so I simply adjusted those lines to match my custom image size.

I may add more images and rotate them with the additional code in the near future.

Thanks for the modification!
Reply With Quote
  #357  
Old 04 Nov 2017, 01:21
thetechgenius's Avatar
thetechgenius thetechgenius is offline
 
Join Date: Jun 2014
Thank you for this addon! I have just created a custom image for my forum using Photoshop.

I run a tech website about building custom gaming computers, among other things, so I had to create an image based on that. And this is what I came up with:



If anyone wants to use it, your more then welcome to.
__________________
TheTechGenius.Net Official IRC Network (ONLINE)
Host: irc.thetechgenius.net
Port: 6667
TTG IRC Web Client - http://thetechgenius.net/irc.html
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 02:07.

Layout Options | Width: Wide Color: