Version: 1.1, by NJAquaman
Developer Last Online: Feb 2014
Category: Miscellaneous Hacks -
Version: 4.0.x
Rating:
Released: 01-03-2010
Last Update: 01-04-2010
Installs: 28
Uses Plugins
Re-useable Code Translations
No support by the author.
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.
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 have an screenshot or a demo site? I have no idea yet as what this exactly does.
Thanks
Quote:
Originally Posted by Charlie98902
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.
Quote:
Originally Posted by Edrondol
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.
Quote:
Originally Posted by Charlie98902
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!