Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
New way to force guests to register Details »»
New way to force guests to register
Version: 1.00, by dszuecs dszuecs is offline
Developer Last Online: Mar 2018 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.8.x Rating:
Released: 12-22-2011 Last Update: 01-06-2012 Installs: 35
Template Edits
Additional Files  
No support by the author.

-----------------------------------------------------------------------------------------------------------------

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 4.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 AP and open "Styles & Templates" and select "Style Manager". Now select "Main CSS" on te right side. Scroll down to the bottom where you will find "Additional CSS Definitions" and add the following lines:

Quote:
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:
Quote:
<if condition="$show['guest']"><a href="/register.php"><div class="forcetoregister"></div></a></if>
To show it only on FIRST PAGE (forum home) add this (thx @ Whity):
Quote:
<if condition="THIS_SCRIPT == 'index'">
<if condition="$show['guest']"><a href="/register.php"><div class="forcetoregister"></div></a></if>
</if>
To show it on every page EXCEP THE REGISTER PAGE, add this code:
Quote:
<if condition="THIS_SCRIPT != 'register'">
<if condition="$show['guest']"><a href="/register.php"><div class="forcetoregister"></div></a></if>
</if>
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 Definitions" instead of the code provided on top:

Quote:
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!

Download Now

File Type: php rotate.php (1.5 KB, 99 views)

Screenshots

File Type: png register.png (72.5 KB, 0 views)
File Type: png registerv2.png (60.9 KB, 0 views)
File Type: png registerV3.png (40.7 KB, 0 views)
File Type: png registerV4.png (67.6 KB, 0 views)
File Type: png registerV5.png (64.5 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
3 благодарности(ей) от:
kiba snowpaw, Nimchan, Ov3rrun

Comments
  #2  
Old 12-23-2011, 08:51 PM
duketxboy duketxboy is offline
 
Join Date: Apr 2011
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank's for writing it for this version works now thanks again
Reply With Quote
  #3  
Old 12-24-2011, 12:11 AM
dszuecs dszuecs is offline
 
Join Date: Oct 2011
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by duketxboy View Post
Thank's for writing it for this version works now thanks again
you're welcome.
Reply With Quote
  #4  
Old 12-24-2011, 03:07 AM
v123shine v123shine is offline
 
Join Date: Sep 2008
Posts: 242
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice mod
Reply With Quote
  #5  
Old 12-25-2011, 05:18 PM
cykelmyggen's Avatar
cykelmyggen cykelmyggen is offline
 
Join Date: Oct 2006
Location: Europe
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks real nice, but how would this mod affect spiders accessing my site?
Reply With Quote
  #6  
Old 12-25-2011, 06:45 PM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Made a humorous and theme appropriate image for it and installed, then clicked "installed." Moved it to the left instead of the right though, since my animation is looking right, I don't want eyes being led off the page. I also changed the div to "promptregister" since I don't like the use of the word "force" and this mod really only prompts, it doesn't force. But that's just a quibble.

This is creative and cute.

DEMO: http://usmessageboards.com
Reply With Quote
  #7  
Old 12-26-2011, 04:38 PM
dszuecs dszuecs is offline
 
Join Date: Oct 2011
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cykelmyggen View Post
Looks real nice, but how would this mod affect spiders accessing my site?
Since you don't change any forum permissions with this mod, Spiders / Bots aren't affected at all.
Reply With Quote
  #8  
Old 12-26-2011, 07:13 PM
duketxboy duketxboy is offline
 
Join Date: Apr 2011
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I want a beavis & butthead 1 lol
Reply With Quote
  #9  
Old 12-26-2011, 09:06 PM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by duketxboy View Post
I want a beavis & butthead 1 lol


he-heh heh-heh heh-heh
Attached Images
File Type: png bbregister.png (10.4 KB, 0 views)
Reply With Quote
  #10  
Old 12-27-2011, 12:35 AM
duketxboy duketxboy is offline
 
Join Date: Apr 2011
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

lmfao thanks
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 01:10 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05014 seconds
  • Memory Usage 2,339KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (8)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (3)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (7)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete