vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Administrative and Maintenance Tools - Notices Criteria - Additional Conditions for Displaying a Notice (https://vborg.vbsupport.ru/showthread.php?t=277022)

Simon Lloyd 10-04-2012 08:56 PM

I didn't try any of the features and i wasn't already using any of your features, it didn't show any php errors (none in the log either), so i disabled it and all was well, reenabled it and no css on my site, but................... i found that after importing the product with overwrite and finding these problems that i couldn't change settings for anything unless the mod was disabled, so i uploaded an backup copy of my datastore table (because this has fixed stuff for me before) and hey presto! everything worked fine, i just edited a setting and a forum enabled the mod and all is well????

kh99 10-04-2012 09:46 PM

Thanks for the reply. This is a pretty simple mod with only 2 plugins and a few phrases (and no install code or templates), and one of the plugins only runs if you're editing notices in the admincp, so it's hard to see how it would cause a problem like that - but of course you never know. :)

KGodel 10-07-2012 12:36 AM

Quote:

Originally Posted by kh99 (Post 2370716)
I've updated to version 1.1 with the above addtions (sorry Simon, no drop-down menu for THIS_SCRIPT values :( ).

Thank you so much kh99! You're always really helpful and this helped me a ton! Thanks for the hard work mate!

vauge 10-18-2012 01:52 PM

Script 'register' does not appear to be working. Thanks!

vb4.2, vbSEO

kh99 10-18-2012 02:16 PM

Quote:

Originally Posted by vauge (Post 2373994)
Script 'register' does not appear to be working. Thanks!

vb4.2, vbSEO

It turns out that the navbar template where notices are displayed has an "if THIS_SCRIPT != 'register'", so notices are never shown on the register page. But I can see how that's confusing for this mod, since it seems like you should be able to enter "register" and have it appear there.

Anyway, if you want you can edit your navabr template and take out the check for 'register'. Maybe I'll think about making a future version that can override that check if you specify 'register' for "THIS_SCRIPT value is", or at least have a warning of some kind on the description.

vauge 10-18-2012 03:26 PM

Quote:

Originally Posted by kh99 (Post 2373999)
It turns out that the navbar template where notices are displayed has an "if THIS_SCRIPT != 'register'", so notices are never shown on the register page. But I can see how that's confusing for this mod, since it seems like you should be able to enter "register" and have it appear there.

Anyway, if you want you can edit your navabr template and take out the check for 'register'. Maybe I'll think about making a future version that can override that check if you specify 'register' for "THIS_SCRIPT value is", or at least have a warning of some kind on the description.

Either way would be great - thanks for the reply and assistance. :)

RedTurtle 11-15-2012 02:28 PM

Great mod, thanks so much Kevin!

A little off-topic but figured you may be able to help -- I have one "notice" like message that doesn't appear in Notices but rather in the navbar template. I am trying to prevent it from showing up on the register and login scripts.

I am trying to do this:

Code:

<vb:if condition="THIS_SCRIPT != 'register' OR 'login' OR 'someotherscript'">
my code here
</vb:if>

but it doesn't seem to work. Do I need to write THIS_SCRIPT for each page that I do it on? I know your mod allows multiple scripts to be defined in the notices manager and thought maybe you could shed some light on how I can do it inside my navbar template.

Thank you.

kh99 11-15-2012 02:36 PM

You would want something like this:

Code:

<vb:if condition="THIS_SCRIPT != 'register' AND THIS_SCRIPT != 'login' AND THIS_SCRIPT != 'someotherscript'">
my code here
</vb:if>


RedTurtle 11-15-2012 02:42 PM

Thank you Kevin! :)

I actually found one of your older posts and got this from it:

Code:

<if condition="!in_array(THIS_SCRIPT, array('register', 'login', 'someotherscript'))">
ad code
</if>

Thank you for the super quick response! :D

kh99 11-15-2012 02:46 PM

Yeah, I was debating whether or not to post that method as well. :)


All times are GMT. The time now is 04:06 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.01093 seconds
  • Memory Usage 1,740KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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