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.
  #241  
Old 16 Dec 2012, 00:58
ringnews24's Avatar
ringnews24 ringnews24 is offline
 
Join Date: Aug 2012
Were do I install that code Alibass ?

I was really wanting the rotate code, but if one image is all I can do then that will have to do.
__________________
Ringnews24 Boxing Forum
Reply With Quote
  #242  
Old 16 Dec 2012, 01:08
Alibass's Avatar
Alibass Alibass is offline
 
Join Date: Mar 2007
Where did you put the rotate.php file?
__________________
Alibass
Reply With Quote
  #243  
Old 16 Dec 2012, 01:20
ringnews24's Avatar
ringnews24 ringnews24 is offline
 
Join Date: Aug 2012
Originally Posted by Alibass View Post
Where did you put the rotate.php file?
/httpdocs/boxingforum
__________________
Ringnews24 Boxing Forum
Reply With Quote
  #244  
Old 16 Dec 2012, 01:46
Alibass's Avatar
Alibass Alibass is offline
 
Join Date: Mar 2007
Is this your forum root? If not you need to add rotate.php to your forum root and follow the instructions for the rotating images to works.


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!
__________________
Alibass
Reply With Quote
  #245  
Old 16 Dec 2012, 01:49
ringnews24's Avatar
ringnews24 ringnews24 is offline
 
Join Date: Aug 2012
I've done all of that and yes its my forumroot and yet it still hasn't worked.
__________________
Ringnews24 Boxing Forum
Reply With Quote
  #246  
Old 16 Dec 2012, 02:17
Alibass's Avatar
Alibass Alibass is offline
 
Join Date: Mar 2007
Did you add one of these in the header template?

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>
__________________
Alibass
Reply With Quote
  #247  
Old 16 Dec 2012, 10:05
ringnews24's Avatar
ringnews24 ringnews24 is offline
 
Join Date: Aug 2012
No as I have version 4.2
__________________
Ringnews24 Boxing Forum
Reply With Quote
  #248  
Old 16 Dec 2012, 10:15
ringnews24's Avatar
ringnews24 ringnews24 is offline
 
Join Date: Aug 2012
Originally Posted by Alibass View Post
Did you add one of these in the header template?

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>
That fixed it thanks m8. It says for vbulletin 3.x.x though

Cheers again
__________________
Ringnews24 Boxing Forum
Reply With Quote
  #249  
Old 16 Dec 2012, 10:31
ringnews24's Avatar
ringnews24 ringnews24 is offline
 
Join Date: Aug 2012
The image is now showing, but when you click the image it takes you to a page that says

Not Found

The requested URL /register.php/ was not found on this server.

Apache Server at ringnews24.com Port 80
__________________
Ringnews24 Boxing Forum
Reply With Quote
  #250  
Old 16 Dec 2012, 12:18
ringnews24's Avatar
ringnews24 ringnews24 is offline
 
Join Date: Aug 2012
I've been having a few problems with this mod, it broke my blog and it stopped guests registering on my forum.

Help Topic from Vbulletin.com https://www.vbulletin.com/forum/show...join-the-forum
__________________
Ringnews24 Boxing Forum
Reply With Quote
  #251  
Old 16 Dec 2012, 13:14
badcarb badcarb is offline
 
Join Date: Nov 2012
excellent add on brotha'
Reply With Quote
  #252  
Old 16 Dec 2012, 13:43
Alibass's Avatar
Alibass Alibass is offline
 
Join Date: Mar 2007
Originally Posted by ringnews24 View Post
The image is now showing, but when you click the image it takes you to a page that says

Not Found

The requested URL /register.php/ was not found on this server.

Apache Server at ringnews24.com Port 80
Fix this string <a href="/register.php">to point to the root of where your register.php file is located. You can also try to remove the / in front of register.php first and see if that fixes it. Once you get it to working you will need to make the correction in all skins if you're using more than the vb skin.
__________________
Alibass
Reply With Quote
  #253  
Old 03 Jan 2013, 12:02
dszuecs's Avatar
dszuecs dszuecs is offline
 
Join Date: Oct 2011
Originally Posted by ringnews24 View Post
I've been having a few problems with this mod, it broke my blog and it stopped guests registering on my forum.

Help Topic from Vbulletin.com https://www.vbulletin.com/forum/show...join-the-forum
Hi there, check your PN please.

The script is working as expected now. Please check your blog and give me feedback if there are any errors.

Cheers
Reply With Quote
  #254  
Old 04 Jan 2013, 18:48
ringnews24's Avatar
ringnews24 ringnews24 is offline
 
Join Date: Aug 2012
Thanks dszuecs, no current problems with the blog.

Thanks a lot for fixing this for me.
__________________
Ringnews24 Boxing Forum
Reply With Quote
  #255  
Old 05 Jan 2013, 16:30
JamalFree JamalFree is offline
 
Join Date: Dec 2012
Originally Posted by abonk View Post
great trick
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 23:27.

Layout Options | Width: Wide Color: