View Full Version : Miscellaneous Hacks - NJAquaman - Notices THIS_SCRIPT Criteria
NJAquaman
01-03-2010, 10:00 PM
What: A Product To Give you THIS_SCRIPT Criteria for Notices.
WORKS WITH ..!!!
4.0.x
Install:
1) Navigate to ACP > Plugins & Products > Manage Products > Add/Import Product
2) Install the "NJAquaman - Notices THIS_SCRIPT Criteria" Product.
3) Navigate to Notices > Add New Notice
4) At the Bottom you can determine to show on certain page with the THIS_SCRIPT defined
5) To Define THIS_SCRIPT go to any "PHP" file on you forum and download and open it
you will see something like this "define('THIS_SCRIPT', 'profile'); " . The "profile" is the
THIS_SCRIPT name and thats what your going to use for the Notice is you want it to show, on that page.
The Way this works is when you Create Notice you may only show it on a php page of your choice . Say you want to put the notice only on the Profile page. So you check
THIS_SCRIPT code in the member.php and it says "member". Then put the "member" in the
field that is given when creating a notice. Now it will only show up on the
memer.php/profile pages. All other Criteria will also work when this is enabled.
If all You wanted Not on THIS_SCRIPT Download This Version
- NJAquaman - Notices THIS_SCRIPT Criteria (NOT THIS_SCRIPT) (https://vborg.vbsupport.ru/attachment.php?attachmentid=109112&stc=1&d=1262650803)
Demo:
109053
DONT FORGET TO CLICK INSTALL (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=232137)
__________________________________________________ ______________
Change Log
v1.1 - 01/04/10
- Added the Not THIS_SCRIPT Version (KALL) (https://vborg.vbsupport.ru/showpost.php?p=1947030&postcount=9)
__________________________________________________ ______________
Charlie98902
01-04-2010, 12:11 PM
Can we get a better explanation? Also a screen shot of it in use would be nice as well.
Edrondol
01-04-2010, 12:57 PM
Basically it looks like when you download this it adds the criteria for Notices. Right now the way you do Notices is...interesting. Like you have to say the those who see it are NOT of Group X, etc. One thing I've noticed is that there is NO CHOICE for "Let Everyone See This Notice"!
So if I'm reading this right, picking this criteria says, "Let every see this if this script is this script." Which mean everyone sees it.
It could just as well be labeled "Show to Everyone" but this works, too.
Charlie98902
01-04-2010, 01:09 PM
So I could use this notice and say if profile fieldx isn't met show? As I have a mandatory profile field on my forum.
barcena
01-04-2010, 01:58 PM
Can we have an screenshot or a demo site? I have no idea yet as what this exactly does.
Thanks :)
NJAquaman
01-04-2010, 02:44 PM
Can we have an screenshot or a demo site? I have no idea yet as what this exactly does.
Thanks :)
So I could use this notice and say if profile fieldx isn't met show? As I have a mandatory profile field on my forum.
Basically it looks like when you download this it adds the criteria for Notices. Right now the way you do Notices is...interesting. Like you have to say the those who see it are NOT of Group X, etc. One thing I've noticed is that there is NO CHOICE for "Let Everyone See This Notice"!
So if I'm reading this right, picking this criteria says, "Let every see this if this script is this script." Which mean everyone sees it.
It could just as well be labeled "Show to Everyone" but this works, too.
Can we get a better explanation? Also a screen shot of it in use would be nice as well.
The Way this works is when you Create Notice you may only show it on a php page of your choice .
Example >> Say you want to put the notice only on the Profile page. So you check
THIS_SCRIPT code in the member.php and it says "member". Then put the "member" in the
field that is given when creating a notice. Now it will only show up on the
memer.php/profile pages. All other Criteria will also work when this is enabled.
Example2 >> Say You Want it to only display in the CMS. You use "vbcms" as the
THIS_SCRIPT code when making a Notice. Then it will only show on the CMS.
If you have any more question Please ask, i will be Glad to help!
This is a simple Mod so i suggest trying it out !! Then you may click install later!
Thanks
aj8690
01-04-2010, 03:53 PM
I would install if this had a "this script is NOT" :)
That would be wonderful. Thanks!
Edrondol
01-04-2010, 04:35 PM
I love being wrong. :(
I can see how this could be useful, though. If only I used notices more...
I would install if this had a "this script is NOT" :)
That would be wonderful. Thanks!
If all you wanted was 'is not THIS_SCRIPT', just change the logic in this line:
if ($conditions[0] != THIS_SCRIPT)
to
if ($conditions[0] == THIS_SCRIPT)
NJAquaman
01-04-2010, 04:59 PM
If all you wanted was 'is not THIS_SCRIPT', just change the logic in this line:
if ($conditions[0] != THIS_SCRIPT)
to
if ($conditions[0] == THIS_SCRIPT)
This is Great thanks KALL!
Hornstar
01-04-2010, 08:26 PM
What if I want to show something everywhere except on this one scripts page.
aj8690
01-04-2010, 10:04 PM
If all you wanted was 'is not THIS_SCRIPT', just change the logic in this line:
if ($conditions[0] != THIS_SCRIPT)
to
if ($conditions[0] == THIS_SCRIPT)
Thank you. :D
dieKetzer
01-22-2010, 01:11 PM
great idea!
it would be great if both scripts were combined, with a radio button option 'this_script' or 'not this_script'. or if one could even run them at the same time (with the obvious caveat).
but it kicks ass in any case. one great use for this is 'helpful tips' on various pages. great work mate.
Front Range 4x4
02-11-2010, 10:16 PM
Great mod! This offers a simple way to reach the folks you need to in a simple way. Installed!
Cadellin
01-13-2011, 12:33 PM
This is a great mod - simple yet very effective.
Two requests though:
How can I have both versions (must and not) installed at the same time?
How can I add multiple THIS_SCRIPTs to either show or not show?
Digital Jedi
01-14-2011, 08:28 AM
I can confirm that this working on 3.8.5 rather nicely. Beats the built in Arcade Announcement that comes with ibProArcade. http://www.cogonline.net/forums/arcade.php
Konstantinos
01-25-2011, 11:05 AM
This is a great mod - simple yet very effective.
Two requests though:
How can I have both versions (must and not) installed at the same time?
How can I add multiple THIS_SCRIPTs to either show or not show?
i want both also
confirmed working on 3.8.x
yahooooh
04-20-2011, 02:07 AM
could you make one for advertising which comes with vbulletin?
doctorsexy
02-11-2012, 12:24 PM
Works with 4.1.10.... thanks
mgurain
05-23-2012, 10:31 PM
It's working on 4.2, but shouldn't this be upgraded ?
Regards,,
fxdigi-cash
09-09-2014, 04:24 AM
nice mod! reserved for later use. very important actually... Thanks :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.