View Full Version : NJAquaman - Notices THIS_SCRIPT Criteria
NJAquaman
04 Jan 2010, 13:02
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) (http://www.vbulletin.org/forum/attachment.php?attachmentid=109112&stc=1&d=1262650803)
Demo:
109053
DONT FORGET TO CLICK INSTALL (http://www.vbulletin.org/forum/vborg_miscactions.php?do=installhack&threadid=232137)
________________________________________________________________
Change Log
v1.1 - 01/04/10
- Added the Not THIS_SCRIPT Version (KALL) (http://www.vbulletin.org/forum/showpost.php?p=1947030&postcount=9)
________________________________________________________________
Charlie98902
04 Jan 2010, 13:11
Can we get a better explanation? Also a screen shot of it in use would be nice as well.
Edrondol
04 Jan 2010, 13:57
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
04 Jan 2010, 14:09
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
04 Jan 2010, 14:58
Can we have an screenshot or a demo site? I have no idea yet as what this exactly does.
Thanks :)
NJAquaman
04 Jan 2010, 15:44
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
I would install if this had a "this script is NOT" :)
That would be wonderful. Thanks!
Edrondol
04 Jan 2010, 17:35
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:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
to
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
NJAquaman
04 Jan 2010, 17:59
If all you wanted was 'is not THIS_SCRIPT', just change the logic in this line:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
to
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
This is Great thanks KALL!
Hornstar
04 Jan 2010, 21:26
What if I want to show something everywhere except on this one scripts page.
If all you wanted was 'is not THIS_SCRIPT', just change the logic in this line:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
to
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Thank you. :D
dieKetzer
22 Jan 2010, 14:11
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
11 Feb 2010, 23:16
Great mod! This offers a simple way to reach the folks you need to in a simple way. Installed!
Cadellin
13 Jan 2011, 13:33
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
14 Jan 2011, 09:28
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
25 Jan 2011, 12:05
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
20 Apr 2011, 03:07
could you make one for advertising which comes with vbulletin?
doctorsexy
11 Feb 2012, 12:24
Works with 4.1.10.... thanks
mgurain
23 May 2012, 23:31
It's working on 4.2, but shouldn't this be upgraded ?
Regards,,
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.