मई 22 2018 11:59:04
Language Switcher
नेविगेशन
· Start/घर
· Downloads/डाउनलोड
· Faq/एफ.ए.क्यू
· Forum/चर्चा मंच
· Weblinks/वेब लिंक्स
· Rules/नियम
· Privacy/गोपनीयता नीतियाँ
· Contact/संपर्क करें
· Search/खोज करें
· Advance Fusion Search
बॉक्स चिल्लाऊँ
You must login to post a message.

26-04-2018 22:26
Hello

24-07-2017 21:53
Hello all members.
View Thread
Who is here? 1 guest(s)
All MODs and their Supported Threads goes here in this Section.
 Print Thread

[MOD]Delayed edit lock for members

Wanabo
In admin panel /settings / forum enable Lock Edit: YES
(Prevent users from editing their posts)

The mod below allows a member to edit his post for 2 hours after his initial post.

forum/viewthread.php line 297 find
Download source  Code

if (iMOD || ($lock_edit && $last_post['post_id'] == $data['post_id'] && $userdata['user_id'] == $data['post_author']) || (!$lock_edit && $userdata['user_id'] == $data['post_author'])) {





and replace with:
Download source  Code

if (iMOD || ($lock_edit && $last_post['post_id'] == $data['post_id'] && $userdata['user_id'] == $data['post_author']) || (!$lock_edit && $userdata['user_id'] == $data['post_author']) || ($data['post_datestamp']+(2*60*60) > (time( )) == $data['post_id'] && $userdata['user_id'] == $data['post_author'])) {




2 hours = 2*60*60
3 hours = 3*60*60
etc.

I felt this was necessary on my sites because users edited their post and the thread became unreadable afterwards. This way a member can correct typo's, but ensures older post won't get altered or deleted.

I rather would have this as an option in the admin panel.
Edited by Wanabo on 11-02-2011 03:17
Cool
 
Ankur
Hey ! Thanks for this MOD Wanabo !!! Smile

Yeah, this is useful for heavy Forums too... Cool

EDITED :

Done !!! Set upped to 3 Hours Wink
Edited by Ankur on 05-02-2011 13:45
Be What you want to be...Wink
 
www.php-fusion.in
Wanabo
Ankur wrote:
Yeah, this is useful for heavy Forums too... Cool


Lets hope this will be a heavy forum then. Wink

I thought lets get this forum started with a mod. It's rather empty.
Do we need more categories on this site?
Cool
 
Ankur
Hmm... May be..... Actually, I am a Little Confused Confused and afraid about this Licensing of using stuff under AGPL... I didn't get the whole concept/statements given on the AGPL(and its a bit boring to read them too... Pfft) that what kind of Stuff can be hosted on this site ?

As it is unofficial right now, then is it ok/permitted to host the addons made by our self ? Is it ok to upload the addons n our site made by other users on official sites or MOD sites of fusion, as uploaded on this mod site : http://www.phpfus... ?

Aah ! Too many queries.... Sad Thats Y a little bit scared of any unwanted action by the Officials .... Shock

BTW, you may know better than me about this... Wink
Be What you want to be...Wink
 
www.php-fusion.in
Wanabo
Quote from the AGPL.txt file in the download package.
GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007

Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.

Preamble

The GNU Affero General Public License is a free, copyleft license for
software and other kinds of works, specifically designed to ensure
cooperation with the community in the case of network server software.

The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
our General Public Licenses are intended to guarantee your freedom to
share and change all versions of a program
--to make sure it remains free
software for all its users.


A secondary benefit of defending all users' freedom is that
improvements made in alternate versions of the program, if they
receive widespread use, become available for other developers to
incorporate.


So no need to worry.
Edited by Wanabo on 06-02-2011 15:20
Cool
 
Ankur
Hey ya ! Thanks Wanabo ! Smile

You always help me ..... Wink
Be What you want to be...Wink
 
www.php-fusion.in
Jump to Forum:
New Thread Post Reply
Gebruik BBcode of HTML om naar; '[MOD]Delayed edit lock for members', te verwijzen!
BBcode:
HTML:
उपयोगकर्ता ऑनलाइन
· अतिथि ऑनलाइन: 1

· सदस्य ऑनलाइन: 0

· कुल सदस्य: 76
· नवीन सदस्य: nickyjrfanai
लॉग इन
उपयोगकर्ता नाम

पासवर्ड



अभी तक सदस्य नहीं?
रजिस्टर करने के लिए यहाँ क्लिक करें.

पासवर्ड भूल गए?
नए पासवर्ड यहाँ अनुरोध करें.
अंतिम देखा उपयोगकर्ताओं
· Wanabo 1 day
Your ad here below?
Website Version

Download latest
PHP Fusion Package
This Website is using PHP Fusion v7.02.07 as Current Version.

Portfolio
· BetterClimate.Net
· ComplaintSupport.Com
· Daily-Breaking-News.Com
· Kidiot.Org
· Php-Fusion.Asia
· Php-Fusion.Cn
· Php-Fusion.Fr
· Php-Fusion.Org
· Php-Fusion.Start-Pages.Com
· Rain-Radar.Com
· Speed-Testing.Net
· Start-Pages.Com
· WebhostingTrouble.Com
· WebmasterTrouble.Com
599,433 unique visits