vb.org Archive

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

ringnews24 01-14-2014 04:57 PM

This mod is a great idea, but im getting lots of complaints it interfers with mobile phone users.

Fleiding 03-13-2014 12:01 PM

It's working great! Thank you so much! :)

keyness 05-12-2014 02:45 PM

I know that concept of mod is being visible to force guests to register but is it possible to allow guests to close or minimize this image? As stated above, this image can be bothering for mobile users.

Using it for years! Thank you again.

Macgiber 05-19-2014 09:36 PM

Quote:

Originally Posted by keyness (Post 2497457)
I know that concept of mod is being visible to force guests to register but is it possible to allow guests to close or minimize this image? As stated above, this image can be bothering for mobile users.

Using it for years! Thank you again.

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>

RRCamellini 07-14-2014 08:08 PM

Nice Job My friend

Khan91 09-03-2014 08:01 PM

where is the additional.css located? i cannot find it anywhere. running 4.2.2

ozzy47 09-03-2014 08:05 PM

ACP --> Styles & Templates --> Style Manager

Choose your style and then select Edit Templates in the dropdown. now scroll to CSS Templates, double click on that, then find additional.css, and double click on that.

Khan91 09-03-2014 08:40 PM

Thank you sir

ozzy47 09-03-2014 08:46 PM

Not a problem, glad to help. :)

TheAdminMarket 10-10-2014 07:11 AM

Great but needs a bit improvement. eg What if registrstions have turn off? To solve this issue modify the code in header template:

Code:

<vb:if condition="$show['registerbutton']">
..........here goes the other code that you already use.............
</vb:if>

Those who are familiars with coding they can combine the condition like:

Code:

<vb:if condition="$show['registerbutton'] AND THIS_SCRIPT != 'register'">
.....or any other condition(s)....

For those who want to hide it in mobile styles they can modify their condition like:
Code:

<vb:if condition="!IS_MOBILE_STYLE AND ..... here the other condition...">
In simple words add: !IS_MOBILE_STYLE AND before your current condition.


All times are GMT. The time now is 06:39 AM.

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.01439 seconds
  • Memory Usage 1,735KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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