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

Reply
 
Thread Tools
Per Forum Edit Time Limit Details »»
Per Forum Edit Time Limit
Version: 1.2, by Dismounted Dismounted is offline
Developer Last Online: Apr 2023 Show Printable Version Email this Page

Category: New Posting Features - Version: 3.6.5 Rating:
Released: 01-13-2007 Last Update: 02-10-2007 Installs: 113
DB Changes Uses Plugins
 
No support by the author.

Per Forum Edit Time Limit

Description:
The post editing time limit can be forum specific.

Request:
https://vborg.vbsupport.ru/showthread.php?t=96875

Installation:
All the installation information is in the package.

Changes:
6 Plugins
2 Phrases

Change Log:
11/02/2007 - Version 1.2
- Fixed Unlimited Edit Time Bug

15/01/2007 - Version 1.1
- Added Option To Set Unlimited Editing Time

14/01/2007 - Version 1.0
- Initial Release

Supporters / CoAuthors

Show Your Support

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

Comments
  #62  
Old 02-17-2008, 01:47 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

All my modifications will be fixed and updated to be compatible with 3.7 after it becomes gold.
Reply With Quote
  #63  
Old 02-17-2008, 02:42 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How hard would it be to adapt this hack to do character limits per forum? Just a thought.
Reply With Quote
  #64  
Old 02-17-2008, 06:29 PM
Niber Niber is offline
 
Join Date: Sep 2006
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dismounted View Post
All my modifications will be fixed and updated to be compatible with 3.7 after it becomes gold.
Yay!
Reply With Quote
  #65  
Old 02-18-2008, 04:10 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo View Post
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
Reply With Quote
  #66  
Old 02-18-2008, 04:27 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dismounted View Post
Always 3 steps ahead of me. Thank you, sir.
Reply With Quote
  #67  
Old 02-19-2008, 05:11 AM
mariocaz mariocaz is offline
 
Join Date: Feb 2008
Location: Mexico, D.F.
Posts: 424
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello Dismounted,

Thanks a lot and congrats for this great mod.

Mario
Reply With Quote
  #68  
Old 02-19-2008, 10:20 PM
Majest Majest is offline
 
Join Date: Apr 2006
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great mod, been looking for something like this for months.
Reply With Quote
  #69  
Old 02-20-2008, 09:34 PM
Makc666's Avatar
Makc666 Makc666 is offline
 
Join Date: Dec 2002
Location: MSK-RU
Posts: 392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dismounted View Post
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
Reply With Quote
  #70  
Old 06-06-2008, 06:56 AM
SimonVlc SimonVlc is offline
 
Join Date: Jun 2005
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

3.7?
Reply With Quote
  #71  
Old 06-06-2008, 07:23 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have not tested it on 3.7 yet. The only way to see is installing it and trying.
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:32 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.04823 seconds
  • Memory Usage 2,354KB
  • Queries Executed 28 (?)
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
  • (7)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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
  • (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_postinfo_query
  • fetch_postinfo
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete