[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

Re: [Beta] Post Expire 0.4.1

Post by crazygandalf »

Yup, my mistake. Here's the fix.

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#
posting.php

#
#-----[ FIND ]------------------------------------------
#
				'post_expire_time'		=> (int) $post_data['post_expire_time'] - $user->timezone - $user->dst,

#
#-----[ REPLACE WITH ]------------------------------------------
#
				'post_expire_time'		=> ($post_data['post_expire_time'] != -1) ? (int) $post_data['post_expire_time'] - $user->timezone - $user->dst : -1,
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.4.1

Post by Lisbon »

crazygandalf wrote:Lisbon, you probably made these modifications:
http://www.phpbb.com/community/viewtopi ... 5#p9094635
Reverse it and you'll find what you want. :-)
I have check but i dont find :oops:
crazygandalf
Registered User
Posts: 148
Joined: Thu Oct 14, 2004 10:53 pm

Re: [Beta] Post Expire 0.4.1

Post by crazygandalf »

Lisbon, I gave you wrong link. Here's the correct one:
http://www.phpbb.com/community/viewtopi ... 5#p9051135
Reverse it and then find what you want.
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.4.1

Post by Lisbon »

crazygandalf wrote:Lisbon, I gave you wrong link. Here's the correct one:
http://www.phpbb.com/community/viewtopi ... 5#p9051135
Reverse it and then find what you want.
Works.

But now i dont have this:
styles/subsilver2/template/viewtopic_body.html

#
#-----[ FIND ]------------------------------------------
#
<!-- IF postrow.S_ROW_COUNT is even --><tr class="row1"><!-- ELSE --><tr class="row2"><!-- ENDIF -->
crazygandalf
Registered User
Posts: 148
Joined: Thu Oct 14, 2004 10:53 pm

Re: [Beta] Post Expire 0.4.1

Post by crazygandalf »

Lisbon wrote:But now i dont have this:
styles/subsilver2/template/viewtopic_body.html

#
#-----[ FIND ]------------------------------------------
#
<!-- IF postrow.S_ROW_COUNT is even --><tr class="row1"><!-- ELSE --><tr class="row2"><!-- ENDIF -->
And you shiouldn't. So everything is OK. Think what you're doing wrong.
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.4.1

Post by Lisbon »

The file: www.cetos.info/ficheiros/viewtopic_body.zip

I have also his error:
Parse error: syntax error, unexpected T_ELSE in /home/cetosinf/public_html/forum/posting.php on line 802
The file from line 799 to 810

Code: Select all

      	  $error[] = $user->lang['INVALID_DATE'];
        }       
    	} 
			else 
			{
    		$error[] = $user->lang['INVALID_DATE'];
    	} 
		}
		
		if (intval($config['expire_max_time']) != 0 && (intval($post_data['post_expire_time'])) > intval($config['expire_max_time'])*86400)
		{
			$error[] = sprintf($user->lang['MAX_DATE'], $config['expire_max_time']);
I´m sorry :oops:

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

Re: [Beta] Post Expire 0.4.1

Post by crazygandalf »

Lisbon, you are updating form 0.4.0 to 0.4.1 as I presume. Now look at corresponding update directory and tell me if you see any instructions for subsilver2?
A for posting.php you make a mistake in edits. Try again. Read this topic some posts before, as someone did the same. Read my advices included there. Be creative not lazy.
Cheers.
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.4.1

Post by Lisbon »

crazygandalf wrote:Lisbon, you are updating form 0.4.0 to 0.4.1 as I presume.
Yes!
crazygandalf wrote:Now look at corresponding update directory and tell me if you see any instructions for subsilver2?
I tray to do that:
Image
crazygandalf wrote:A for posting.php you make a mistake in edits. Try again. Read this topic some posts before, as someone did the same. Read my advices included there.
I´m going look. but my ingles is very bad. I´m goin try to find the sulucion
crazygandalf wrote:Be creative not lazy.
:oops: Sorry

Tks again ;)
usenet2you
Registered User
Posts: 407
Joined: Sat Mar 22, 2008 7:31 pm
Location: The Netherlands

Re: [Beta] Post Expire 0.4.1

Post by usenet2you »

all works fine, butt.. can we change the max. expire date in datepicker.js? so that the user cant even select it?
crazygandalf
Registered User
Posts: 148
Joined: Thu Oct 14, 2004 10:53 pm

Re: [Beta] Post Expire 0.4.1

Post by crazygandalf »

Lisbon wrote:
crazygandalf wrote:Now look at corresponding update directory and tell me if you see any instructions for subsilver2?
I tray to do that:
Image
You are not in update directory. And these instruction you show are for new install, not for update. Update doesn't require any changes in subsilver2.
usenet2you wrote:all works fine, butt.. can we change the max. expire date in datepicker.js? so that the user cant even select it?
Sorry, but there is no possibility. It's why I added in error message max value that can't be exceeded.
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.4.1

Post by Lisbon »

crazygandalf wrote:Update doesn't require any changes in subsilver2.
Ahhhh. ok.

Tks.

Tomarow i try to update the mod again. today i have restore the file from the "old" version
usenet2you
Registered User
Posts: 407
Joined: Sat Mar 22, 2008 7:31 pm
Location: The Netherlands

Re: [Beta] Post Expire 0.4.1

Post by usenet2you »

crazygandalf wrote:
usenet2you wrote:all works fine, butt.. can we change the max. expire date in datepicker.js? so that the user cant even select it?
Sorry, but there is no possibility. It's why I added in error message max value that can't be exceeded.
okay, thnx for reply.
User avatar
Lisbon
Registered User
Posts: 825
Joined: Wed Jan 30, 2008 12:28 pm
Location: Zermatt

Re: [Beta] Post Expire 0.4.1

Post by Lisbon »

one sugestion for the next version

Send a e-mail x days beford topic expire

******

How to solve this?
Image
Z-City
Registered User
Posts: 16
Joined: Fri Jan 09, 2009 12:32 pm

Re: [Beta] Post Expire 0.4.1

Post by Z-City »

I just updated from 0.3.0 to 0.4.1.

But i receive now an error that a collumn is missing:

Code: Select all

Allgemeiner Fehler
SQL ERROR [ mysql4 ]

Unknown column 'expire_forum_id' in 'field list' [1054]

SQL

SELECT topic_id, topic_expire_type, expire_forum_id FROM phpbb_topics WHERE topic_expire_time < 1240426908 AND topic_expire_time <> 0

BACKTRACE

FILE: includes/db/mysql.php
LINE: 174
CALL: dbal_mysql->sql_error()

FILE: includes/functions_display.php
LINE: 1240
CALL: dbal_mysql->sql_query()

FILE: viewforum.php
LINE: 319
CALL: post_expire_remove()
code of /includes/db/mysql.php line 174

Code: Select all

$this->sql_error($query);
code of /includes/functions_display.php line 1240

Code: Select all

 $result = $db->sql_query($sql);
code of /viewforum.php line 319

Code: Select all

post_expire_remove();
I would be very pleased for any hint - i am not that MYSQL-Freak... so i beg for some support.

Many thanks!
BYE BEN
User avatar
Eragon
Registered User
Posts: 218
Joined: Tue Oct 07, 2008 1:57 pm

Re: [Beta] Post Expire 0.4.1

Post by Eragon »

how to can be integrated with Prime Trash Bin modification ?

thanks
sorry my english
Locked

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