vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Mini Mods - New way to force guests to register (https://vborg.vbsupport.ru/showthread.php?t=275895)

dszuecs 12-22-2011 11:00 PM

New way to force guests to register
 
1 Attachment(s)
-----------------------------------------------------------------------------------------------------------------

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!

duketxboy 12-23-2011 08:51 PM

Thank's for writing it for this version works now thanks again

dszuecs 12-24-2011 12:11 AM

Quote:

Originally Posted by duketxboy (Post 2280540)
Thank's for writing it for this version works now thanks again

you're welcome.

v123shine 12-24-2011 03:07 AM

Nice mod :)

cykelmyggen 12-25-2011 05:18 PM

Looks real nice, but how would this mod affect spiders accessing my site?

Max Taxable 12-25-2011 06:45 PM

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

dszuecs 12-26-2011 04:38 PM

Quote:

Originally Posted by cykelmyggen (Post 2280924)
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.

duketxboy 12-26-2011 07:13 PM

I want a beavis & butthead 1 lol

Max Taxable 12-26-2011 09:06 PM

1 Attachment(s)
Quote:

Originally Posted by duketxboy (Post 2281177)
I want a beavis & butthead 1 lol



he-heh heh-heh heh-heh

duketxboy 12-27-2011 12:35 AM

lmfao thanks


All times are GMT. The time now is 09:52 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01155 seconds
  • Memory Usage 1,751KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete