vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Show Thread Enhancements - First Post Editable Indefinitely (https://vborg.vbsupport.ru/showthread.php?t=228210)

Essam 06-08-2011 03:36 PM

Quote:

Originally Posted by Lynne (Post 2205064)
Setting the edit time per usergroup was already done as a separate mod, I'm pretty sure. It shouldn't be too hard to do at all. However, this was a mod that I needed for me and I don't need any more options in it so I won't be changing this one.

do you remember what was the mod or the developers name ?

Lynne 06-08-2011 05:28 PM

No I do not.

Acido 07-05-2011 03:36 PM

Hi Lynne. It's posible execute a query to enable the first post editable for all forums? If possible, can you give me the query?
Thanks!

emperatour 09-06-2011 04:02 PM

Quote:

Originally Posted by Lynne (Post 1918432)
I modified this to now be set per forum in the Forum Manager. By default, it is set to No and you must set it to Yes for the forum to have the first post editable indefinitely.

Quote:

Originally Posted by Acido (Post 2217044)
Hi Lynne. It's posible execute a query to enable the first post editable for all forums? If possible, can you give me the query?
Thanks!

I am also looking for a way to have first post editable for all forums enabled by default or a query to enable all.

I would appreciate if Lynne suggests a way . :)

Lynne 09-06-2011 04:09 PM

Just edit the xml file. Find this:
PHP Code:

$db->query_write("ALTER TABLE " TABLE_PREFIX "forum ADD ls_edit_ind INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL"); 

Change to this:
PHP Code:

$db->query_write("ALTER TABLE " TABLE_PREFIX "forum ADD ls_edit_ind INT( 10 ) UNSIGNED DEFAULT '1' NOT NULL"); 


Fraxter 09-18-2011 01:04 PM

There is a big issue. First post editing works without problems, but not editing attachments if this mod is active.

Lynne 09-18-2011 04:05 PM

Quote:

Originally Posted by Pander23 (Post 2247511)
There is a big issue. First post editing works without problems, but not editing attachments if this mod is active.

I do not want my users editing attachments in the first post so I did not do anything to make that possible. This is only for editing the post text.

Fraxter 09-18-2011 04:30 PM

Hm ok. I tried to change the addon make it workable with uploads too, but i get an upload error message on every file upload (only with the new attachment system, the old works). I think i have to go deeper in the code for make it full compatible. :/

downloadfound 01-20-2012 11:25 AM

Is there a way to change this so members CAN'T edit the first post? LOL.

Masked Crusader 01-20-2012 11:36 AM

Are edits still recorded? I mean to say that if a person edits their thread, can we as administrators see what was changed via the logs still?

If so, great mod and will be installing!

Lynne 01-20-2012 05:43 PM

Quote:

Originally Posted by downloadfound (Post 2290164)
Is there a way to change this so members CAN'T edit the first post? LOL.

That would be the opposite of this mod and isn't an option.
Quote:

Originally Posted by Masked Crusader (Post 2290166)
Are edits still recorded? I mean to say that if a person edits their thread, can we as administrators see what was changed via the logs still?

If so, great mod and will be installing!

Edits would only be recorded if they meet the criteria for the logs.

Quote:

Post Edit History
If this setting is enabled each post is saved prior to being updated, this allows for a history to be shown for edited posts.

Edits will not be logged if an 'edited by' notice is not displayed or updated. This occurs in the following situations:
  • The editing user is in a group that does not show edited by notices and no reason for editing is specified.
  • The post is edited quickly enough after being posted to trigger the Time to Wait Before Starting to Display 'Last Edited by...' option.


TombstoneWarrior 01-20-2012 06:48 PM

thanks for the mod sure my forum will love it!!!

Alan_SP 01-21-2012 05:45 PM

AFAIK yes, this mod just makes first post editable to unlimited time, not that it changes the way first post is edited.

TombstoneWarrior 01-22-2012 07:04 PM

nice mod installed sure my members will be happy with this one!!!

Skyborg 02-13-2012 09:39 AM

Quote:

Originally Posted by Lynne (Post 2242655)
Just edit the xml file. Find this:
PHP Code:

$db->query_write("ALTER TABLE " TABLE_PREFIX "forum ADD ls_edit_ind INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL"); 

Change to this:
PHP Code:

$db->query_write("ALTER TABLE " TABLE_PREFIX "forum ADD ls_edit_ind INT( 10 ) UNSIGNED DEFAULT '1' NOT NULL"); 


Hi Lynne,

it works only optical.
i have to set the option manual to off, save and then on again.
And after that it works.

clubvr4 03-29-2012 08:29 AM

Quick enquiry, is it possible to have this on a forum per forum basis?

Lynne 03-29-2012 02:13 PM

Quote:

Originally Posted by clubvr4 (Post 2314601)
Quick enquiry, is it possible to have this on a forum per forum basis?

Please see the version notes:
Quote:

1.1 2009-11-21: - added option in Forum Manager to turn on indefinite editing of first post per forum

clubvr4 03-30-2012 09:25 AM

Quote:

Originally Posted by Lynne (Post 2314706)
Please see the version notes:

Meh, sorry - I meant per usergroup, was having a blonde moment.

Lynne 03-30-2012 03:38 PM

No, it is not set up per usergroup. If the usergroup has Can Edit Posts set to Yes, then this would allow them to edit their first post indefinitely. There is no reason you couldn't modify the plugins to only allow this for certain usergroups though.

LLent 03-30-2012 03:46 PM

Very nice Lynne thanks for your hard work on this one

clauz 04-10-2012 09:33 AM

Hello, it seems that this modification it is not working any more on 4.1.12 version.

ChimeraRS 04-10-2012 06:29 PM

Same here, 4.1.12 broke this mod unfortunately.

Lynne 04-10-2012 11:16 PM

I don't have time right now to do another release, but try this:

Create a new plugin:
hook location - ajax_start
title - Set edittimelimit to 0 for first post (2)
code -
PHP Code:

if (($threadinfo['firstpostid'] == $postinfo['postid']) AND ($vbulletin->userinfo['userid'] == $postinfo['userid']) AND $foruminfo['ls_edit_ind'])  

    {
        
$vbulletin->options['edittimelimit'] = 0;
    } 

And see if that works.

FOR 4.1.12 ONLY (and probably future versions)

clauz 04-11-2012 03:29 AM

Thank you very much, it is working just fine with your new plugin.
The small problem is that I cannot edit the thread name.

Alan_SP 04-21-2012 01:40 PM

1 Attachment(s)
Quote:

Originally Posted by Lynne (Post 2318879)
FOR 4.1.12 ONLY (and probably future versions)

It works for me, so I attached modified version.

RichieBoy67 05-24-2012 09:01 PM

Quote:

Originally Posted by Lynne (Post 2318879)
I don't have time right now to do another release, but try this:

Create a new plugin:
hook location - ajax_start
title - Set edittimelimit to 0 for first post (2)
code -
PHP Code:

if (($threadinfo['firstpostid'] == $postinfo['postid']) AND ($vbulletin->userinfo['userid'] == $postinfo['userid']) AND $foruminfo['ls_edit_ind'])  

    {
        
$vbulletin->options['edittimelimit'] = 0;
    } 

And see if that works.

FOR 4.1.12 ONLY (and probably future versions)

Has this been added to any of the downloads?

Does anyone have this mod working with 4.1?

Alan_SP 05-25-2012 08:02 PM

Yes, a post before your's is file attached by me. :)

DSemen 06-03-2012 12:56 PM

Quote:

Originally Posted by Lynne (Post 1918432)
I modified this to now be set per forum in the Forum Manager. By default, it is set to No and you must set it to Yes for the forum to have the first post editable indefinitely.

Please show on the screen where it include?
I'm not working (in 4.1.3), you may need to edit the template? Tell me where?

Lynne 06-03-2012 01:53 PM

Quote:

Originally Posted by DSemen (Post 2336126)
Please show on the screen where it include?
I'm not working (in 4.1.3), you may need to edit the template? Tell me where?

It should be the last item there (unless you have other modifications):

Make first post in thread editable indefinitely - Yes or No

DSemen 06-03-2012 02:47 PM

Quote:

Originally Posted by Lynne (Post 2336143)
It should be the last item there (unless you have other modifications):

Make first post in thread editable indefinitely - Yes or No

Unfortunately there is no such, please show a picture where it is. And you should see the user created the topic (first post)
Sorry, Google translation

A beautiful and correct fashion, I was looking for a similar and now in complete disarray of the inability to use it.

Lynne 06-03-2012 02:51 PM

1 Attachment(s)
Quote:

Originally Posted by DSemen (Post 2336164)
Unfortunately there is no such, please show a picture where it is. And you should see the user created the topic (first post)
Sorry, Google translation

A beautiful and correct fashion, I was looking for a similar and now in complete disarray of the inability to use it.

Right on the bottom...


Attachment 138910

DSemen 06-03-2012 03:11 PM

Where is it? in the general settings? I do not understand

paulket 06-03-2012 03:27 PM

Quote:

Originally Posted by DSemen (Post 2336176)
Where is it? in the general settings? I do not understand

DSemen, go to your admin control panel and click on "Forums & Moderators", then click on "Forum Manager", now if you click on any of your forums you should see "Make first post in thread editable indefinitely: Yes - No" at the bottom of all the options.

DSemen 06-03-2012 04:00 PM

Thank you very much! It is very necessary and useful mod!
Did not work as long as not kept re all sections in the admin panel. (save)

zascok 08-01-2012 10:06 AM

Thank you. This is useful. Any chance to make it available only in designated forums, please?

Lynne 08-01-2012 11:28 PM

Quote:

Originally Posted by zascok (Post 2353283)
Thank you. This is useful. Any chance to make it available only in designated forums, please?

I did that back in 2009:
Quote:

1.1 2009-11-21: - added option in Forum Manager to turn on indefinite editing of first post per forum

zascok 08-02-2012 06:35 AM

Quote:

Originally Posted by Lynne (Post 2353494)
I did that back in 2009:

:o I used your plugin tho , thatnk s for pointing that out :up:

clubvr4 09-07-2012 09:16 AM

I'm confused.

I have always used "Time Limit on Editing of Posts", set to a month - However, I thought this mod would allow the editing for the first thread in our for sale sections - I installed awhile ago and left it at that.. today I hear from a user that although he can click the edit button, he gets a message saying "The administrator has specified that you can only edit messages for 60480 minutes after you have posted."

So, re-reading your first post i see that "Time Limit on Editing of Posts" has to be set to 0, for this to work.. but, doesn't this negate the use of time limit on editing posts? - If i set that to 0 all users will be able to edit all their posts, so.. i don't understand this mod now..

Could you please explain how i can set it up so that all posts are non-editable after a month and only 1st threads are editable in specified forums, lets pretend im really dumb.. for a minute or two :)

Thanks

zascok 09-07-2012 02:13 PM

^ the confusion is in misreading

It doesn't say to set-up the forum confings to be editable indefinitely.

it just says you don't have a config for the plugin. It's zero-end of story :)

Quote:

- No, you may not change the time limit, this only works for if the time limit for the first post is 0 - indefinite.

Lynne 09-07-2012 03:17 PM

Quote:

Originally Posted by clubvr4 (Post 2363308)
I'm confused.

I have always used "Time Limit on Editing of Posts", set to a month - However, I thought this mod would allow the editing for the first thread in our for sale sections - I installed awhile ago and left it at that.. today I hear from a user that although he can click the edit button, he gets a message saying "The administrator has specified that you can only edit messages for 60480 minutes after you have posted."

So, re-reading your first post i see that "Time Limit on Editing of Posts" has to be set to 0, for this to work.. but, doesn't this negate the use of time limit on editing posts? - If i set that to 0 all users will be able to edit all their posts, so.. i don't understand this mod now..

Could you please explain how i can set it up so that all posts are non-editable after a month and only 1st threads are editable in specified forums, lets pretend im really dumb.. for a minute or two :)

Thanks

Did you check the Forum Manager > edit forum, and make sure you enabled this for that forum?


All times are GMT. The time now is 12:53 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.01443 seconds
  • Memory Usage 1,847KB
  • 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
  • (23)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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