vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   New Posting Features - Per Forum Edit Time Limit (https://vborg.vbsupport.ru/showthread.php?t=136448)

Dismounted 02-17-2008 01:47 AM

All my modifications will be fixed and updated to be compatible with 3.7 after it becomes gold.

Boofo 02-17-2008 02:42 AM

How hard would it be to adapt this hack to do character limits per forum? Just a thought.

Niber 02-17-2008 06:29 PM

Quote:

Originally Posted by Dismounted (Post 1444861)
All my modifications will be fixed and updated to be compatible with 3.7 after it becomes gold.

Yay!

Dismounted 02-18-2008 04:10 AM

Quote:

Originally Posted by Boofo (Post 1444896)
How hard would it be to adapt this hack to do character limits per forum? Just a thought.

https://vborg.vbsupport.ru/showthread.php?t=144375 :cool:

Boofo 02-18-2008 04:27 AM

Quote:

Originally Posted by Dismounted (Post 1445710)

Always 3 steps ahead of me. Thank you, sir. ;)

mariocaz 02-19-2008 05:11 AM

Hello Dismounted,

Thanks a lot and congrats for this great mod.

Mario

Majest 02-19-2008 10:20 PM

Great mod, been looking for something like this for months.

Makc666 02-20-2008 09:34 PM

Quote:

Originally Posted by Dismounted (Post 1427116)
It was working till ~3.6.5. I have not had the time to fix anything as I have other things that take higher priority.

Speaking about Product's version 1.2

What I changed and removed to make this one working with 3.6.8

Changed:
1.
This one:
PHP Code:

<version>1.2</version

to this one:
PHP Code:

<version>1.3</version

2.
This one:
PHP Code:

    <dependencies>
    </
dependencies

to this one:
PHP Code:

    <dependencies>
        <
dependency dependencytype="vbulletin" minversion="3.6.8" maxversion="" />
    </
dependencies

3.
This one:
PHP Code:

        <plugin active="1" executionorder="5">
            <
title>Fetch Forum Info</title>
            <
hookname>fetch_foruminfo</hookname>
            <
phpcode><![CDATA[if (isset($vbulletin->bf_misc['pfetlforumoptions']))
{
    foreach (
$vbulletin->bf_misc['pfetlforumoptions'] AS $optionname => $optionval)
    {
        
$vbulletin->forumcache["$forumid"]["$optionname"] = (($vbulletin->forumcache["$forumid"]['pfetlforumoptions'] & $optionval) ? 0);
    }
}  ]]></
phpcode>
        </
plugin

to this one:
PHP Code:

        <plugin active="1" executionorder="5">
            <
title>Fetch Forum Info</title>
            <
hookname>fetch_foruminfo</hookname>
            <
phpcode><![CDATA[if (isset($vbulletin->bf_misc['pfetlforumoptions']))
{
    foreach (
$vbulletin->bf_misc['pfetlforumoptions'] AS $optionname => $optionval)
    {
        
$vbulletin->forumcache["$forumid"]["$optionname"] = (($vbulletin->forumcache["$forumid"]['pfetlforumoptions'] & $optionval) ? 0);
    }
}
if (
$vbulletin->forumcache[$forumid][pfetltimelimit] == '-1') {
    
$vbulletin->options['edittimelimit'] = '0';
}
elseif (
$vbulletin->forumcache[$forumid][pfetltimelimit] != '0')
{
    
$vbulletin->options['edittimelimit'] = $vbulletin->forumcache["$forumid"]['pfetltimelimit'];
}  ]]></
phpcode>
        </
plugin

4.
Removed:
PHP Code:

        <plugin active="1" executionorder="5">
            <
title>Disable Edit Button</title>
            <
hookname>showthread_start</hookname>
            <
phpcode><![CDATA[if ($foruminfo['pfetltimelimit'] == '*')
{
    
$vbulletin->options['edittimelimit'] = '0';    
}
elseif (
$foruminfo['pfetltimelimit'] != '0')
{
    
$vbulletin->options['edittimelimit'] = $foruminfo['pfetltimelimit'];
}]]></
phpcode>
        </
plugin>
        <
plugin active="1" executionorder="5">
            <
title>Edit Time Limit</title>
            <
hookname>editor_toolbar_start</hookname>
            <
phpcode><![CDATA[if ((isset($forum)) AND ($forum['pfetltimelimit'] == '-1'))
{
    
$vbulletin->options['edittimelimit'] = '0';
}
elseif ((isset(
$forum)) AND ($forum['pfetltimelimit'] != '0'))
{
    
$vbulletin->options['edittimelimit'] = $forum['pfetltimelimit'];
}]]></
phpcode>
        </
plugin


SimonVlc 06-06-2008 06:56 AM

3.7?

Dismounted 06-06-2008 07:23 AM

I have not tested it on 3.7 yet. The only way to see is installing it and trying.


All times are GMT. The time now is 08:07 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.01200 seconds
  • Memory Usage 1,778KB
  • 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
  • (7)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete