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)

thedarkroom 10-26-2011 07:14 AM

is there a way that the images change by themselves in different times? i mean you load the page and one image comes out, you load the page again and another image shows up

Whity 10-26-2011 07:27 AM

3. Open your "header" template and add the following line on top:

PHP Code:

<vb:if condition="THIS_SCRIPT == 'index'">
<
vb:if condition="$show['guest']"><a  href="/register.php"><div  class="forcetoregister"></div></a></vb:if>
</
vb:if> 


or

PHP 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> 


thedarkroom 10-26-2011 08:28 AM

i added the image, and the syntax on the header, but is not showing :(

dszuecs 10-26-2011 03:34 PM

Quote:

Originally Posted by thedarkroom (Post 2261652)
i added the image, and the syntax on the header, but is not showing :(

Did you also add the class to your "additional.css" ?

thedarkroom 10-26-2011 04:07 PM

Quote:

Originally Posted by dszuecs (Post 2261725)
Did you also add the class to your "additional.css" ?

yes i did :(

UPDATE
i manage to make it work by editing the additional.css of the default template, but how can i make the image to be more small? www.megaportes.com/foro

dszuecs 10-26-2011 04:08 PM

Quote:

Originally Posted by d19rnyxx (Post 2261560)
can someone guide me on how to center the "complete registration" and "reset fields" because the image stops users from pressing them.

Thanks in advance

Simply add this in your "additional.css":

Quote:

<vb:if condition="THIS_SCRIPT != 'register'">
<vb:if condition="$show['guest']"><a href="/register.php"><div class="forcetoregister"></div></a></vb:if>
</vb:if>
This will exclude the register-avatar on your /register.php.

Greetings

thedarkroom 10-26-2011 04:48 PM

HTML 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>

when i try to add this to the header says that theres a bad syntax and cannot save the template ._.

dszuecs 10-26-2011 04:53 PM

Quote:

Originally Posted by thedarkroom (Post 2261761)
HTML 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>

when i try to add this to the header says that theres a bad syntax and cannot save the template ._.

What vbulletin version are you using?

thedarkroom 10-26-2011 05:18 PM

Quote:

Originally Posted by dszuecs (Post 2261765)
What vbulletin version are you using?

4.1.7 :)

Whity 10-26-2011 05:26 PM

Quote:

Originally Posted by thedarkroom (Post 2261775)
4.1.7 :)


great rabbit :up:


All times are GMT. The time now is 07:00 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.01337 seconds
  • Memory Usage 1,749KB
  • 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
  • (2)bbcode_html_printable
  • (2)bbcode_php_printable
  • (7)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