Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

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
  #12  
Old 01-04-2010, 08:26 PM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What if I want to show something everywhere except on this one scripts page.
Reply With Quote
  #13  
Old 01-04-2010, 10:04 PM
aj8690 aj8690 is offline
 
Join Date: Oct 2006
Posts: 109
Благодарил(а): 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
Thank you.
Reply With Quote
  #14  
Old 01-22-2010, 01:11 PM
dieKetzer dieKetzer is offline
 
Join Date: Mar 2002
Location: melbourne, australia
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #15  
Old 02-11-2010, 10:16 PM
Front Range 4x4 Front Range 4x4 is offline
 
Join Date: Jan 2009
Posts: 318
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great mod! This offers a simple way to reach the folks you need to in a simple way. Installed!
Reply With Quote
  #16  
Old 01-13-2011, 12:33 PM
Cadellin's Avatar
Cadellin Cadellin is offline
 
Join Date: Jan 2009
Posts: 160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #17  
Old 01-14-2011, 08:28 AM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #18  
Old 01-25-2011, 11:05 AM
Konstantinos Konstantinos is offline
 
Join Date: Apr 2006
Posts: 443
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Cadellin View Post
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?
i want both also

confirmed working on 3.8.x
Reply With Quote
  #19  
Old 04-20-2011, 02:07 AM
yahooooh yahooooh is offline
 
Join Date: Nov 2009
Posts: 150
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

could you make one for advertising which comes with vbulletin?
Reply With Quote
  #20  
Old 02-11-2012, 12:24 PM
doctorsexy's Avatar
doctorsexy doctorsexy is offline
 
Join Date: Mar 2011
Location: earth
Posts: 383
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works with 4.1.10.... thanks
Reply With Quote
  #21  
Old 05-23-2012, 10:31 PM
mgurain's Avatar
mgurain mgurain is offline
 
Join Date: Apr 2005
Location: KSA - Qatif - Al-Jarodiah
Posts: 345
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's working on 4.2, but shouldn't this be upgraded ?

Regards,,
Reply With Quote
Reply

Thread Tools

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 11:24 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04870 seconds
  • Memory Usage 2,327KB
  • Queries Executed 26 (?)
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
  • (2)bbcode_php
  • (2)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
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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