vb.org Archive

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

Lynne 11-21-2009 10:00 PM

First Post Editable Indefinitely
 
1 Attachment(s)
I'm just reposting my 4.0 mod into the 3.8 section since it works just fine on a 3.8 board also.

Sometimes you want your users to be able to edit the first post in their thread indefinitely but still have a time limit on all other posts in the thread. This would be useful if they want to constantly update their first thread with new information, or an updated list of some sort way past the normal editing time limit. This modification will allow them to edit that first post indefinitely.

Notes
- I wrote this for my own site and it works exactly how I want it to. I have no plans to change it or expand it in any way
- No, you may not change the time limit, this only works for if the time limit for the first post is 0 - indefinite.

Version History:
1.1 2009-11-22: - initial release in 3.8 section by Lynne at vbulletin.org

To install:

1. Import product-lynne_first_post_editable.xml
2. By default, editing first post indefinitely is Off per forum. To turn it on, go into the Forum Manager > select your forum to Edit > Make first post in thread editable indefinitely > Yes

To uninstall:

1. Uninstall "First Post Editable Indefinitely"

Cybershaolin 11-22-2009 05:25 PM

Thanks Lynne. Very appreciated. :)

On a different matter (I know it's not related to this hack here but since you seem to know how to handle this...) just tell me: would you be able to code another hack like this here: https://vborg.vbsupport.ru/showthread.php?t=136448 adding usergroup permissions too? Many people would really use it I'm sure.

RedHacker 11-22-2009 05:26 PM

Install and put option "Make first post in thread editable indefinitely" in the "Hide Hack Resurrection Options"....

Lynne 11-22-2009 06:08 PM

Quote:

Originally Posted by Cybershaolin (Post 1919036)
Thanks Lynne. Very appreciated. :)

On a different matter (I know it's not related to this hack here but since you seem to know how to handle this...) just tell me: would you be able to code another hack like this here: https://vborg.vbsupport.ru/showthread.php?t=136448 adding usergroup permissions too? Many people would really use it I'm sure.

I'm not going to be modifying this one for usergroups. It would be real easy to add that into the conditions (is_member_of()) in the plugins if you want to do that.

Cybershaolin 11-22-2009 07:21 PM

I was not talking about the hack here but about a new hack regarding the possibility to edit all posts (instead of only the first post) with no time limit for specific forums. (For usergroups, yes this could be added by conditions for sure).

So, it's a little bit like your hack but acting differently. It's just that nobody seems to want to do one. But if it's not in your plans it's OK anyway. I thank you for this hack here. :)

Lynne 11-22-2009 07:48 PM

Quote:

Originally Posted by Cybershaolin (Post 1919109)
I was not talking about the hack here but about a new hack regarding the possibility to edit all posts (instead of only the first post) with no time limit for specific forums. (For usergroups, yes this could be added by conditions for sure).

So, it's a little bit like your hack but acting differently. It's just that nobody seems to want to do one. But if it's not in your plans it's OK anyway. I thank you for this hack here. :)

I am just writing products for my own site and then releasing them here. I have no need to have this time limit to be set by usergroup, so I just don't see myself spending any time writing a modification to do so.

Cybershaolin 11-22-2009 07:52 PM

No problem, I just tried... It's only that I would like to be able to have this for all posts, not only for the first one and I don't know how to do that.

Lynne 11-22-2009 08:00 PM

Quote:

Originally Posted by Cybershaolin (Post 1919125)
No problem, I just tried... It's only that I would like to be able to have this for all posts, not only for the first one and I don't know how to do that.

I've posted the code for a plugin before on how to do that. It's somewhere on this site.

Simon Lloyd 11-22-2009 08:03 PM

Quote:

Originally Posted by Cybershaolin (Post 1919125)
No problem, I just tried... It's only that I would like to be able to have this for all posts, not only for the first one and I don't know how to do that.

Thats already a feature of vBulletin AdminCp>vBulletin Options>Message Posting and Editing Options>Time Limit on Editing of Posts but beware that this is depndent on Time Limit on Editing of Thread Title

Cybershaolin 11-22-2009 09:58 PM

I know it's an included feature but it's a global feature applied on all forums! There is no possibility to change time limit on individual forums... This is why I'm asking for this feature...

Lynne, I checked doing intense search and did not find anything on this. I guess I might not have the right keywords.

AzzidReign 11-22-2009 10:38 PM

This is great!

FiMeTi 11-23-2009 11:25 AM

Thanks very much! I was looking for something like this! :)
Installed & Nominated.

Wonksta 11-23-2009 12:42 PM

Absolutely perfect and is exactly what I am looking for my community board. Many thanks!

Wonksta 11-25-2009 07:16 AM

Hmm Running 3.8.4 here and the forum + subforums I want this enabled on doesn't show an EDIT button for the users first post of the thread (the OP).

Anything I should check?

Lynne 11-25-2009 02:00 PM

Quote:

Originally Posted by SighK (Post 1920596)
Hmm Running 3.8.4 here and the forum + subforums I want this enabled on doesn't show an EDIT button for the users first post of the thread (the OP).

Anything I should check?

Did you set the option to Yes in the Forum Manager?

Wonksta 11-26-2009 08:32 AM

Quote:

Originally Posted by Lynne (Post 1920723)
Did you set the option to Yes in the Forum Manager?

Yep.

The forums all have 'Make first post in thread editable indefinitely' set to Yes...

Lynne 11-26-2009 01:45 PM

Quote:

Originally Posted by SighK (Post 1921092)
Yep.

The forums all have 'Make first post in thread editable indefinitely' set to Yes...

Check the usergroup permissions to make sure they normally are allowed to edit posts. If you don't allow them to ever edit posts, then this won't change that. Also, try disabling your other mods and see if perhaps this one has a conflict with another.

Wonksta 11-30-2009 01:16 AM

I have checked the usergroup permissions and the usergroup is allowed to edit posts. I've disabled the modifications and go back and forth with no luck unfortunately.

3.8.4 Patch Level 1 is exactly what I run. Shame this would be an awesome mod.

Lynne 11-30-2009 03:34 AM

Quote:

Originally Posted by SighK (Post 1922844)
I have checked the usergroup permissions and the usergroup is allowed to edit posts. I've disabled the modifications and go back and forth with no luck unfortunately.

3.8.4 Patch Level 1 is exactly what I run. Shame this would be an awesome mod.

I really don't know what it could be. If you look at the plugins, they are pretty simple.

Do you have ajax enabled?

Wonksta 11-30-2009 03:42 AM

Hmm bummer All Ajax features are currently enabled on my board. I will continue tinkering see if I can see what is causing it. Cheers.

scourge 01-14-2010 06:58 PM

SighK,

I just had the same problem, here's what fixed it for me in 3.8.4

Open up the .xml file and on line 52, replace $vbulletin->userinfo['userid'] with $this->registry->userinfo['userid']

Save it, re-upload it and it should work.

vijayninel 02-06-2010 01:19 AM

Thanks so much for this Lynnes. we badly needed something like this. :)

Wonksta 09-18-2010 09:16 AM

Quote:

Originally Posted by scourge (Post 1955847)
SighK,

I just had the same problem, here's what fixed it for me in 3.8.4

Open up the .xml file and on line 52, replace $vbulletin->userinfo['userid'] with $this->registry->userinfo['userid']

Save it, re-upload it and it should work.

I did a quick test and it appears to be working! Excellent thank you so much and Lynne for sharing this.

ETDC 09-18-2010 10:27 AM

Have installed to trial. I don't suppose there's any chance we could have a global setting (as opposed to going through each and every sub forum to turn on/off?). :)

Lynne 09-18-2010 02:46 PM

Quote:

Originally Posted by ETDC (Post 2099985)
Have installed to trial. I don't suppose there's any chance we could have a global setting (as opposed to going through each and every sub forum to turn on/off?). :)

If you want the default to be On, just edit the xml file to make the default in the database "1" instead of "0"

vijayninel 09-18-2010 04:25 PM

Not working with - Chief First Post - Every Page mod :(

Lynne 09-18-2010 06:01 PM

Quote:

Originally Posted by vijayninel (Post 2100102)
Not working with - Chief First Post - Every Page mod :(

Sometimes you need to play with the Execution Order of plugins in order to get them to work together the right way.

vijayninel 09-18-2010 07:06 PM

ok.. will try that .. :)

trotskid 09-18-2010 07:30 PM

Quote:

Originally Posted by Lynne (Post 1919069)
I'm not going to be modifying this one for usergroups. It would be real easy to add that into the conditions (is_member_of()) in the plugins if you want to do that.

Great mod! but what I have to modify and where for specific usergroups exactly?

Thanks

ETDC 09-19-2010 09:20 AM

Quote:

Originally Posted by Lynne (Post 2100072)
If you want the default to be On, just edit the xml file to make the default in the database "1" instead of "0"

Thanks Lynne. :)

el-q6ri 08-18-2011 05:48 PM

is there a way to give a usergroup a time to edit and other unlimeted time to edit ?

Lynne 08-18-2011 08:32 PM

Quote:

Originally Posted by el-q6ri (Post 2235028)
is there a way to give a usergroup a time to edit and other unlimeted time to edit ?

It wasn't written to be a usergroup option, but I suppose you could go through the plugins and just put a condition around them to only be run if you are in usergroup xxx.

Vibhor 02-24-2012 05:12 PM

Hi,

I'm still not able to figure out how I can make thread titles indefinitely editable too (Specific forum only). Setting this in vBulletin Options will make titles editable for the defined time limit for all the forums. Any help would be much appreciated.

Thanks.

Lynne 02-24-2012 05:16 PM

I don't know. Perhaps you can modify this modification to make it do a per forum title editable also, but I haven't looked into it and it isn't currently part of this modification.

Vibhor 02-24-2012 05:33 PM

The issue is that members cannot update their thread titles while updating opening posts which I believe should be possible. Updating "Title" field only updates the title of opening post and not that of the thread. Not sure if it's a bug or we can get around with this with a slight tune up?

iRO Wiki 01-07-2013 06:38 PM

I was needing to do exactly this, on a forum by forum basis, so headed over here to search around and find this. It didn't work 3.8.5. However, the following did work:

Quote:

Originally Posted by scourge (Post 1955847)
SighK,

I just had the same problem, here's what fixed it for me in 3.8.4

Open up the .xml file and on line 52, replace $vbulletin->userinfo['userid'] with $this->registry->userinfo['userid']

Save it, re-upload it and it should work.


Thank you Lynne for the excellent mod and thanks scourge for the fix!

Lynne 01-08-2013 02:08 AM

I'm glad he posted that and that it worked for you. I do not have a 3.8.4/5/6/7 site to test this on.


All times are GMT. The time now is 03:28 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.01272 seconds
  • Memory Usage 1,815KB
  • 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
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (37)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