vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Selected Files Not Closed v1.0.0 (https://vborg.vbsupport.ru/showthread.php?t=70444)

AN-net 10-10-2004 10:00 PM

Selected Files Not Closed v1.0.0
 
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:Dhttps://vborg.vbsupport.ru/

Revan 10-11-2004 05:16 PM

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

integra99 10-11-2004 05:37 PM

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!

integra99 10-11-2004 05:46 PM

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', 


AN-net 10-11-2004 06:14 PM

i see the first change but the second one i dont

will update file:)

integra99 10-11-2004 06:18 PM

The apostrophe right before languageid kept crashing the installer :)

AN-net 10-11-2004 06:30 PM

ok all current bugs have been fixed:)

AlexanderT 10-12-2004 06:59 AM

Nice idea.

Polo 10-12-2004 12:33 PM

nice idea indeed :)


All times are GMT. The time now is 01:50 PM.

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.01061 seconds
  • Memory Usage 1,743KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete