Lack of interest Multiple values for notice page criteria conditions?

This suggestion has been closed automatically because it did not receive enough votes over an extended period of time. If you wish to see this, please search for an open suggestion and, if you don't find any, post a new one.

RobParker

Well-known member
The conditional page for notices (as well as various addons like Robbo's ad manager) has various options as below

Screen Shot 2013-01-23 at 20.41.16.webp

What I'd like to do is have some of these fields contain multiple values (e.g. if there are several view class or content templates I'd like the notice to appear with).

Is there a way to pass multiple variables into these fields?
 
Upvote 1
This suggestion has been closed. Votes are no longer accepted.
Nope. You would have to modify this code to check multiple values:

library/XenForo/Helper/Criteria.php

Code:
				// browsing within the specified view
				case 'view':
				{
					if (!isset($params['viewName']) || strtolower($params['viewName']) != strtolower($data['name']))
					{
						return false;
					}
				}
				break;

				// viewing the specified content template
				case 'template':
				{
					if (!isset($params['contentTemplate']) || strtolower($params['contentTemplate']) != strtolower($data['name']))
					{
						return false;
					}
				}
				break;
 
Can this be moved to Suggestions please?

Was hoping Mike might notice while he's on a mission ;-)

Edit: A "not" conditional, I.e. not using content template Xxxx would be another very useful addition.
 
Multiple values in the fields has already been suggested, but a "not" condition hasn't so I have moved it to Suggestions.
 
Back
Top Bottom