Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Selected Files Not Closed v1.0.0 Details »»
Selected Files Not Closed v1.0.0
Version: 1.00, by AN-net AN-net is offline
Developer Last Online: Jan 2010 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 10-10-2004 Last Update: 10-10-2004 Installs: 5
DB Changes
 
No support by the author.

Selected Files Not Closed(SFNC) v1.0.0
by AN-net/Antonbomb22(Anthony Scudese)


Description:
This will add a new option to the Turn Your vBulletin On and Off options. This new option allows you to choose which files will not display the Forum Closed/Inactive reason. To define which files will not display it I used the THIS_SCRIPT definition which is most commonly defined in all vb files following standard coding. Some instances this may be useful is for portals,galleries,articles, and other sections of your site intergrated with vb but yet you dont want it to be closed when the forums are.

Compatiability:
Tested on vB 3.0.3

Where to Get Support:
-AIM(Antonbomb22)
-email(antonbomb22@animationation.net)
-this thread

Included Files:
-sfncinstall.php

File Edit(s):
1.Open /forumroot/global.php
2.Find:
PHP Code:
    if (!($permissions['adminpermissions'] & CANCONTROLPANEL))
    {
        
$show['enableforumjump'] = true;
        eval(
'standard_error("' str_replace("\'""'"addslashes($vboptions['bbclosedreason'])) . '");');
        unset(
$shutdownqueries['lastvisit']);
    } 
3.Replace above with:
PHP Code:
    $vboptions['bbfilesnotclosed']= explode(' '$vboptions['bbfilesnotclosed']);
    if (!(
$permissions['adminpermissions'] & CANCONTROLPANEL) AND !in_array(THIS_SCRIPT$vboptions['bbfilesnotclosed']))
    {
        
$show['enableforumjump'] = true;
        eval(
'standard_error("' str_replace("\'""'"addslashes($vboptions['bbclosedreason'])) . '");');
        unset(
$shutdownqueries['lastvisit']);
    } 
Now just run the attached installer

Updates/Fixes:
-fixed some typos in the sfncinstall.php file; file updated(10/11/04)

Please click install

Supporters / CoAuthors

Show Your Support

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

Comments
  #2  
Old 10-11-2004, 05:16 PM
Revan's Avatar
Revan Revan is offline
 
Join Date: Jan 2004
Location: Norway
Posts: 1,671
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool hack mate
Luckily my v3 rpg files uses the definition this hack needs

Thats..um..really just what I wanted to say XD
//out
Reply With Quote
  #3  
Old 10-11-2004, 05:37 PM
integra99's Avatar
integra99 integra99 is offline
 
Join Date: Jun 2003
Location: Indiana
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It would be a nice addition also to do the exact opposite of this hack, be able to select files to close and leave everything else open.

Also, I had trouble running your installer. I will post them up shortly.

/me clicks install!
Reply With Quote
  #4  
Old 10-11-2004, 05:46 PM
integra99's Avatar
integra99 integra99 is offline
 
Join Date: Jun 2003
Location: Indiana
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP Code:
print_tabler_header("Installation of Selected Files Not Closed"); 
needs changed to
PHP Code:
print_table_header("Installation of Selected Files Not Closed"); 
PHP Code:
$DB_site->query("INSERT INTO ".TABLE_PREFIX."phrase ('languageid`, `varname`, `text`, `phrasetypeid`) VALUES (-1, 'setting_bbfilesnotclosed_desc', 
needs changed to
PHP Code:
$DB_site->query("INSERT INTO ".TABLE_PREFIX."phrase (`languageid`, `varname`, `text`, `phrasetypeid`) VALUES (-1, 'setting_bbfilesnotclosed_desc', 
Reply With Quote
  #5  
Old 10-11-2004, 06:14 PM
AN-net's Avatar
AN-net AN-net is offline
 
Join Date: Dec 2003
Location: AnimationTalk.com
Posts: 2,367
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i see the first change but the second one i dont

will update file
Reply With Quote
  #6  
Old 10-11-2004, 06:18 PM
integra99's Avatar
integra99 integra99 is offline
 
Join Date: Jun 2003
Location: Indiana
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The apostrophe right before languageid kept crashing the installer
Reply With Quote
  #7  
Old 10-11-2004, 06:30 PM
AN-net's Avatar
AN-net AN-net is offline
 
Join Date: Dec 2003
Location: AnimationTalk.com
Posts: 2,367
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok all current bugs have been fixed
Reply With Quote
  #8  
Old 10-12-2004, 06:59 AM
AlexanderT's Avatar
AlexanderT AlexanderT is offline
 
Join Date: Mar 2003
Posts: 294
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice idea.
Reply With Quote
  #9  
Old 10-12-2004, 12:33 PM
Polo's Avatar
Polo Polo is offline
 
Join Date: Jun 2004
Posts: 893
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice idea indeed
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 01:11 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.04847 seconds
  • Memory Usage 2,295KB
  • Queries Executed 23 (?)
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
  • (6)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete