vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=242)
-   -   vB4 Template Conditionals List (https://vborg.vbsupport.ru/showthread.php?t=231525)

MarkFL 02-05-2017 04:28 PM

Put your code into place on your test site, and I'll take a look. It looks to me like it should work, although I would combine the two conditions personally. :)

Stratis 02-05-2017 04:44 PM

Quote:

Originally Posted by MarkFL (Post 2581877)
Put your code into place on your test site, and I'll take a look. It looks to me like it should work, although I would combine the two conditions personally. :)

Ok, ready... thanks

MarkFL 02-05-2017 05:08 PM

Quote:

Originally Posted by Stratis (Post 2581878)
Ok, ready... thanks

I get a blank white page when I click the "Register" button...:)

Stratis 02-05-2017 05:13 PM

Quote:

Originally Posted by MarkFL (Post 2581882)
I get a blank white page when I click the "Register" button...:)

Yep, this only happens in my test forum, never made registration to check it.
Thanks Mark. if you see that code is ok, than i will test again to see whats up

MarkFL 02-05-2017 05:21 PM

I would combine the conditions as follows:

HTML Code:

<vb:if condition="$show['guest'] AND $bbuserinfo[languageid] == 1 AND THIS_SCRIPT != 'register'">
<a href="register.php"><img src="images/register_now_en.png" alt="REGISTER" height="60" width="315" /></a>
</vb:if>


Stratis 02-05-2017 05:36 PM

Thank you Mark it works, I do not know why the above does not, Any way the results matter. :)

MarkFL 02-05-2017 05:43 PM

Quote:

Originally Posted by Stratis (Post 2581889)
Thank you Mark it works, I do not know why the above does not, Any way the results matter. :)

Yeah, I can't explain why what you wrote didn't work...but glad you now have the result you were after. :D

Stratis 02-05-2017 05:53 PM

Yes :)


For my knowledge and may be in use, how to put more than one Script I need


Lets say 'register' and "login"


Thanks




MarkFL 02-05-2017 05:57 PM

Try:

PHP Code:

!in_array(THIS_SCRIPT, array('register''login')) 

within your template conditional, replacing:

PHP Code:

THIS_SCRIPT != 'register' 


Alan_SP 07-09-2017 06:25 PM

I have a problem with this

HTML Code:

THIS_SCRIPT != 'tags'
In default mobile style, which Google needs to have site mobile compatible, it causes problems. I need to disable showing ads in tags, it works in default style, but doesn't work in default mobile style and it also generates http 500 error, not showing thread pages and there's other problems with showing pages when I use tags within template.

Anyway, is there a way to block showing ads for tags within default mobile style? Which template is used in default mobile style to show /tags/some_tag/ link, which shows all threads with that tag?


All times are GMT. The time now is 01:32 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.02380 seconds
  • Memory Usage 1,743KB
  • 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
  • (4)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