Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
NJAquaman - Notices THIS_SCRIPT Criteria Details »»
NJAquaman - Notices THIS_SCRIPT Criteria
Mod Version: 1.1, by NJAquaman (Coder/Designer) NJAquaman is offline
Developer Last Online: Feb 2014 I like it Show Printable Version Email this Page

vB Version: 4.0.x Rating: (2 votes - 5.00 average) Installs: 26
Released: 04 Jan 2010 Last Update: 05 Jan 2010 Downloads: 105
Not Supported Uses Plugins Re-usable Code Translations  

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)


Demo:
Attachment 109053


DONT FORGET TO CLICK INSTALL


________________________________________________________________
Change Log
v1.1 - 01/04/10
- Added the Not THIS_SCRIPT Version (KALL)
________________________________________________________________

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	2010-01-04_085546.gif
Views:	593
Size:	4.7 KB
ID:	109053

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
NJAquaman - Main Nav Tab Drop Down NJAquaman vBulletin 4.x Add-ons 49 21 Sep 2012 22:58
Notices: Day Criteria (based upon Server Time Zone) Wired1 vBulletin 3.7 Add-ons 23 10 Nov 2011 05:16
Notices: Domain Criteria Phalynx vBulletin 3.7 Add-ons 7 04 Sep 2010 12:37
NJAquaman - New Post Count! NJAquaman vBulletin 3.8 Add-ons 4 05 Jan 2010 18:40
Notices: Time Range Criteria (based upon Server Time) Wired1 vBulletin 3.7 Add-ons 24 10 Aug 2009 03:48

Comments
  #2  
Old 04 Jan 2010, 14:11
Charlie98902 Charlie98902 is offline
 
Join Date: Dec 2006
Can we get a better explanation? Also a screen shot of it in use would be nice as well.
Reply With Quote
  #3  
Old 04 Jan 2010, 14:57
Edrondol Edrondol is offline
 
Join Date: Aug 2009
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.
Reply With Quote
  #4  
Old 04 Jan 2010, 15:09
Charlie98902 Charlie98902 is offline
 
Join Date: Dec 2006
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.

Last edited by Charlie98902 : 04 Jan 2010 at 16:10. Reason: added info
Reply With Quote
  #5  
Old 04 Jan 2010, 15:58
barcena's Avatar
barcena barcena is offline
 
Join Date: Sep 2006
Can we have an screenshot or a demo site? I have no idea yet as what this exactly does.

Thanks
Reply With Quote
  #6  
Old 04 Jan 2010, 16:44
NJAquaman's Avatar
NJAquaman NJAquaman is offline
 
Join Date: Feb 2008
Lightbulb

Originally Posted by barcena View Post
Can we have an screenshot or a demo site? I have no idea yet as what this exactly does.

Thanks
Originally Posted by Charlie98902 View Post
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.
Originally Posted by Edrondol View Post
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.
Originally Posted by Charlie98902 View Post
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
__________________
Reply With Quote
  #7  
Old 04 Jan 2010, 17:53
aj8690 aj8690 is offline
 
Join Date: Oct 2006
I would install if this had a "this script is NOT"

That would be wonderful. Thanks!
__________________
Reply With Quote
  #8  
Old 04 Jan 2010, 18:35
Edrondol Edrondol is offline
 
Join Date: Aug 2009
I love being wrong.

I can see how this could be useful, though. If only I used notices more...
Reply With Quote
  #9  
Old 04 Jan 2010, 18:38
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Real name: Ace
Originally Posted by aj8690 View Post
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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

to

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
vBulletin Styles (All styles compatible with 3.8.4 - Steel Blue 4.0 Available) | vBulletin Hosting
Reply With Quote
  #10  
Old 04 Jan 2010, 18:59
NJAquaman's Avatar
NJAquaman NJAquaman is offline
 
Join Date: Feb 2008
Thumbs up

Originally Posted by kall View Post
If all you wanted was 'is not THIS_SCRIPT', just change the logic in this line:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

to

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

This is Great thanks KALL!
__________________
Reply With Quote
  #11  
Old 04 Jan 2010, 22:26
Hornstar's Avatar
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Real name: Matt
What if I want to show something everywhere except on this one scripts page.
Reply With Quote
  #12  
Old 05 Jan 2010, 00:04
aj8690 aj8690 is offline
 
Join Date: Oct 2006
Originally Posted by kall View Post
If all you wanted was 'is not THIS_SCRIPT', just change the logic in this line:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

to

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
Thank you.
__________________
Reply With Quote
  #13  
Old 22 Jan 2010, 15:11
dieKetzer dieKetzer is offline
 
Join Date: Mar 2002
Real name: Lauren
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.
__________________
Firefox 3.0.16 - linux ---------------- lamp - mysql 5.0.81 / php 5.2.10

Last edited by dieKetzer : 22 Jan 2010 at 15:17.
Reply With Quote
  #14  
Old 12 Feb 2010, 00:16
Front Range 4x4 Front Range 4x4 is offline
 
Join Date: Jan 2009
Real name: Chris
Great mod! This offers a simple way to reach the folks you need to in a simple way. Installed!
Reply With Quote
  #15  
Old 13 Jan 2011, 14:33
Cadellin's Avatar
Cadellin Cadellin is offline
 
Join Date: Jan 2009
This is a great mod - simple yet very effective.

Two requests though:
  1. How can I have both versions (must and not) installed at the same time?
  2. How can I add multiple THIS_SCRIPTs to either show or not show?

Last edited by Cadellin : 13 Jan 2011 at 16:46.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 05:38.

Layout Options | Width: Wide Color: