[MODDB] Post Expire 1.0.3

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Scam Warning
Locked
crazygandalf
Registered User
Posts: 148
Joined: Thu Oct 14, 2004 10:53 pm

[MODDB] Post Expire 1.0.3

Post by crazygandalf » Thu Nov 27, 2008 11:21 pm

Modification Name: Post Expire
Author: crazygandalf

Modification Description:: Mod allows you to set the expire time for posts/topics.
Modification Version:: 1.0.3 - MOD validated. Support will be given here.

Requirements: phpBB 3.0.6

Features: When posting you can set expire time of the post. If this is the first post in topic, expire refers to this entire topic. You can set to delete post/topic after expire time or to lock/move/lock&move the topic. Of course it happens automatically. Expire time is displayed on viewtopic page in case of posts, and on viewforum page in case of topics. Mod is fully configurable and allows to set users permissions. For more info about configuration, permission or changes please take a look at contrib/readme.txt.

Screenshots:
Image
Image
Image
Image
Image
Image
Subsilver2 style:
Image
Image
Image
Demo URL: n/a
Demo Username: n/a
Demo Password: n/a

Modification Download: http://kkr.nsc.pl/phpbb/pe_1.0.3.zip

Notes:
Please remember to set permissions in ACP. One important thing. Don't set all permissions to "yes". Just read carefully what every permissions allows you to do. Notice "only" status.
For more info about permissions, configuration and other changes (like converting 24h time do 12 AM/PM) look at readme.txt in contrib dir.
Last edited by crazygandalf on Mon Feb 08, 2010 5:54 pm, edited 10 times in total.
Post Expire - set when your post/topic will disappear/be locked/moved.
GG & Tlen & Skype - for polish instant messangers.

Mudjosh
Registered User
Posts: 234
Joined: Sat Jun 14, 2008 11:04 pm

Re: [Beta] Post Expire 0.1.0

Post by Mudjosh » Fri Nov 28, 2008 7:23 am

This looks somewhat useful.. I will install soon.. Not sure when.. but soon..

User avatar
Locou
Registered User
Posts: 80
Joined: Wed Apr 30, 2008 11:47 am
Location: Germany

Re: [Beta] Post Expire 0.1.0

Post by Locou » Fri Nov 28, 2008 10:40 am

Wow. I was Requesting something similar to this mod.
Awesome! :o

Could you add Subsilver2 support?
-And-
Is it possible that the post-packground turn in an another color, if an expire is set?

danswano
Registered User
Posts: 273
Joined: Sun Apr 06, 2008 10:43 pm

Re: [Beta] Post Expire 0.1.0

Post by danswano » Sat Nov 29, 2008 12:56 am

Does this mod have an option to move the expired post to trash forum ?

crazygandalf
Registered User
Posts: 148
Joined: Thu Oct 14, 2004 10:53 pm

Re: [Beta] Post Expire 0.1.0

Post by crazygandalf » Sat Nov 29, 2008 10:24 am

Locou wrote:Could you add Subsilver2 support?
Sure. :D

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#
styles/subsilver2/template/posting_body.html

#
#-----[ FIND ]------------------------------------------
#
<!-- IF S_INLINE_ATTACHMENT_OPTIONS -->

#
#-----[ BEFORE, ADD ]------------------------------------------
#
<!-- IF not S_PRIVMSGS and not S_SHOW_DRAFTS -->
	<tr>
		<td class="row1" valign="top"><b class="genmed">{L_POST_EXPIRE_TIME}:</b><br /><span class="gensmall">{L_POST_EXPIRE_TIME_EXPLAIN}</span></td>
		<td class="row2"><select name="post_expire_time">{S_POST_EXPIRE}</select></td>
	</tr>
<!-- ENDIF -->

#
#-----[ OPEN ]------------------------------------------
#
styles/subsilver2/template/viewtopic_body.html

#
#-----[ FIND ]------------------------------------------
#
					<td class="gensmall" width="100%"><div style="float: {S_CONTENT_FLOW_BEGIN};">&nbsp;<b>{L_POST_SUBJECT}:</b> {postrow.POST_SUBJECT}</div><div style="float: {S_CONTENT_FLOW_END};"><!-- IF S_IS_BOT -->{postrow.MINI_POST_IMG}<!-- ELSE --><a href="{postrow.U_MINI_POST}">{postrow.MINI_POST_IMG}</a><!-- ENDIF --><b>{L_POSTED}:</b> {postrow.POST_DATE}&nbsp;</div></td>

#
#-----[ IN-LINE FIND ]------------------------------------------
#
{postrow.POST_SUBJECT}

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
<!-- IF postrow.POST_EXPIRE -->&nbsp;&nbsp;&nbsp;<strong>{L_POST_WILL_EXPIRE}:</strong> {postrow.POST_EXPIRE}<!-- ENDIF -->
Locou wrote:Is it possible that the post-packground turn in an another color, if an expire is set?
Of course. :D

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#
styles/prosilver/template/viewtopic_body.html

#
#-----[ FIND ]------------------------------------------
#
	<div id="p{postrow.POST_ID}" class="post <!-- IF postrow.S_ROW_COUNT is odd -->bg1<!-- ELSE -->bg2<!-- ENDIF --><!-- IF postrow.S_UNREAD_POST --> unreadpost<!-- ENDIF --><!-- IF postrow.S_POST_REPORTED --> reported<!-- ENDIF --><!-- IF postrow.S_ONLINE --> online<!-- ENDIF -->">

#
#-----[ REPLACE WITH ]------------------------------------------
#
	<div id="p{postrow.POST_ID}" class="post <!-- IF postrow.POST_EXPIRE -->bg3<!-- ELSEIF postrow.S_ROW_COUNT is odd -->bg1<!-- ELSE -->bg2<!-- ENDIF --><!-- IF postrow.S_UNREAD_POST --> unreadpost<!-- ENDIF --><!-- IF postrow.S_POST_REPORTED --> reported<!-- ENDIF --><!-- IF postrow.S_ONLINE --> online<!-- ENDIF -->">
And for subsilver2. Repeat 3 times.

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#
styles/subsilver2/template/viewtopic_body.html

#
#-----[ FIND ]------------------------------------------
#
	<!-- IF postrow.S_ROW_COUNT is even --><tr class="row1"><!-- ELSE --><tr class="row2"><!-- ENDIF -->

#
#-----[ REPLACE WITH ]------------------------------------------
#
	<!-- IF postrow.POST_EXPIRE --><tr class="row3"><!-- ELSEIF postrow.S_ROW_COUNT is even --><tr class="row1"><!-- ELSE --><tr class="row2"><!-- ENDIF -->
All these changes I will add in the next version.
danswano wrote:Does this mod have an option to move the expired post to trash forum ?
There is no such a thing like "trash forum". But if you are asking if this mod can move posts to another forum, the answer is no. This mod's primary idea is to allow temporary offtops/jokes for users.

Can someone please verify my english in this mod? Especially language file language/en/mods/pe.php
Post Expire - set when your post/topic will disappear/be locked/moved.
GG & Tlen & Skype - for polish instant messangers.

User avatar
Lisbon
Registered User
Posts: 825
Joined: Wed Jan 30, 2008 12:28 pm
Location: Zermatt

Re: [Beta] Post Expire 0.1.0

Post by Lisbon » Sat Nov 29, 2008 2:33 pm

What happens when a topic expire? is removed?

Can wi used to mod for example, after a week the topic is locked?

crazygandalf
Registered User
Posts: 148
Joined: Thu Oct 14, 2004 10:53 pm

Re: [Beta] Post Expire 0.1.0

Post by crazygandalf » Sat Nov 29, 2008 3:56 pm

Only the first post is removed. But I think I will add topic expire feature too.
It doesn't matter if topic is locked or not. You can add an expire time, through "edit post". If post is editable you can set expire time.
Post Expire - set when your post/topic will disappear/be locked/moved.
GG & Tlen & Skype - for polish instant messangers.

danswano
Registered User
Posts: 273
Joined: Sun Apr 06, 2008 10:43 pm

Re: [Beta] Post Expire 0.1.0

Post by danswano » Sat Nov 29, 2008 7:49 pm

Lisbon wrote:Can wi used to mod for example, after a week the topic is locked?
Good point since the move is not planned!

User avatar
Locou
Registered User
Posts: 80
Joined: Wed Apr 30, 2008 11:47 am
Location: Germany

Re: [Beta] Post Expire 0.1.0

Post by Locou » Sat Nov 29, 2008 8:25 pm

Wow thanks! ;)

Suggestion to give user the permission to expire there own posts or not.

crazygandalf
Registered User
Posts: 148
Joined: Thu Oct 14, 2004 10:53 pm

Re: [Beta] Post Expire 0.2.0

Post by crazygandalf » Sun Nov 30, 2008 6:00 pm

Acording to your directions there is new version 0.2.0 BETA, whith new features:
- topic expire, when first post is set to expire
- support for subsilver2
- post color change, when expire time is set

First post updated. New pictures added. :-)
Locou wrote:Suggestion to give user the permission to expire there own posts or not.
I believe it is not necessary. The mod have to be simple, and giving permissions will only complicate it and extend time needed for installation. And for what? For option that wil in 99% cases will be enabled? :)
danswano wrote:
Lisbon wrote:Can wi used to mod for example, after a week the topic is locked?
Good point since the move is not planned!
Can you explain it further, cause I don't understand what you mean?
Post Expire - set when your post/topic will disappear/be locked/moved.
GG & Tlen & Skype - for polish instant messangers.

danswano
Registered User
Posts: 273
Joined: Sun Apr 06, 2008 10:43 pm

Re: [Beta] Post Expire 0.2.0

Post by danswano » Sun Nov 30, 2008 9:41 pm

Instead of deleting the topic after expire just lock it!

crazygandalf
Registered User
Posts: 148
Joined: Thu Oct 14, 2004 10:53 pm

Re: [Beta] Post Expire 0.2.0

Post by crazygandalf » Mon Dec 01, 2008 11:07 am

danswano wrote:Instead of deleting the topic after expire just lock it!
Oh, now I know what you're talking about. :) It's a good idea, but not for a core, but as an addon. That shouldn't be a problem, so I think I write it and put to my package in couple of days.

//EDIT
After thinking over I'll do it different way. I'll give an option in posting to lock topic or remove it. But this option should be available to people who have permissions to lock own topics.
Stay tune. :-)
Post Expire - set when your post/topic will disappear/be locked/moved.
GG & Tlen & Skype - for polish instant messangers.

Z-City
Registered User
Posts: 16
Joined: Fri Jan 09, 2009 12:32 pm

Re: [Beta] Post Expire 0.2.0

Post by Z-City » Fri Jan 09, 2009 1:44 pm

This is (almost) exactly what i need for my forum! Great.

Is there a chance not to set the number of days/weeks but to set an explicit date of expire?

BR
BEN

crazygandalf
Registered User
Posts: 148
Joined: Thu Oct 14, 2004 10:53 pm

Re: [Beta] Post Expire 0.2.0

Post by crazygandalf » Sat Jan 10, 2009 10:20 pm

Z-City wrote:Is there a chance not to set the number of days/weeks but to set an explicit date of expire?
Yes there is a chance. :-)
I'm busy lately and don't have much time to finish it. I've made locking topics and some other smaller things. I'll put it when I finish the rest, like exact time, and some permissions.
Post Expire - set when your post/topic will disappear/be locked/moved.
GG & Tlen & Skype - for polish instant messangers.

Z-City
Registered User
Posts: 16
Joined: Fri Jan 09, 2009 12:32 pm

Re: [Beta] Post Expire 0.2.0

Post by Z-City » Mon Jan 12, 2009 11:44 am

Many thanks for your efforts. This would be very great.
If you need someone for testing purpose concerning this development... ;-)

Kindest
BEN

Locked

Return to “[3.0.x] MODs in Development”

Who is online

Users browsing this forum: No registered users and 22 guests