Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
NJAquaman - Notices THIS_SCRIPT Criteria Details »»
NJAquaman - Notices THIS_SCRIPT Criteria
Version: 1.1, by NJAquaman NJAquaman is offline
Developer Last Online: Feb 2014 Show Printable Version Email this Page

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.


If all You wanted Not on THIS_SCRIPT Download This Version
- NJAquaman - Notices THIS_SCRIPT Criteria (NOT THIS_SCRIPT)


Demo:
2010-01-04_085546.gif


DONT FORGET TO CLICK INSTALL


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

Download Now

File Type: xml NJAquaman - Notices THIS_SCRIPT Criteria.xml (1.7 KB, 102 views)
File Type: xml NJAquaman - Notices THIS_SCRIPT Criteria (NOT THIS_SCRIPT).xml (1.7 KB, 88 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 01-04-2010, 12:11 PM
Charlie98902 Charlie98902 is offline
 
Join Date: Dec 2006
Posts: 1,156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can we get a better explanation? Also a screen shot of it in use would be nice as well.
Reply With Quote
  #3  
Old 01-04-2010, 12:57 PM
Edrondol Edrondol is offline
 
Join Date: Aug 2009
Posts: 92
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 01-04-2010, 01:09 PM
Charlie98902 Charlie98902 is offline
 
Join Date: Dec 2006
Posts: 1,156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 01-04-2010, 01:58 PM
barcena's Avatar
barcena barcena is offline
 
Join Date: Sep 2006
Posts: 262
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 01-04-2010, 02:44 PM
NJAquaman's Avatar
NJAquaman NJAquaman is offline
 
Join Date: Feb 2008
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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
Quote:
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.
Quote:
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.
Quote:
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 01-04-2010, 03:53 PM
aj8690 aj8690 is offline
 
Join Date: Oct 2006
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would install if this had a "this script is NOT"

That would be wonderful. Thanks!
Reply With Quote
  #8  
Old 01-04-2010, 04:35 PM
Edrondol Edrondol is offline
 
Join Date: Aug 2009
Posts: 92
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I love being wrong.

I can see how this could be useful, though. If only I used notices more...
Reply With Quote
  #9  
Old 01-04-2010, 04:38 PM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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:

PHP Code:
    if ($conditions[0] != THIS_SCRIPT
to
PHP Code:
    if ($conditions[0] == THIS_SCRIPT
Reply With Quote
  #10  
Old 01-04-2010, 04:59 PM
NJAquaman's Avatar
NJAquaman NJAquaman is offline
 
Join Date: Feb 2008
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

PHP Code:
    if ($conditions[0] != THIS_SCRIPT
to
PHP Code:
    if ($conditions[0] == THIS_SCRIPT

This is Great thanks KALL!
Reply With Quote
Reply


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:37 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.17532 seconds
  • Memory Usage 2,340KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_php
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (2)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete