Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: Database: MySql
 Change post time in topics and reply
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

modifichicci
Average Member

Italy
787 Posts

Posted - 01 August 2008 :  15:13:40  Show Profile  Visit modifichicci's Homepage
I have an user that has set time 24 hours on ( a day after..)
So all his topics and reply are set to a wrong date.
I need a SQL query to run on db to update T_DATE and R_DATE in TOPICS and REPLY to a day before.. and I think also T_LAST_POST and T_LAST_EDIT and R_LAST_EDIT
And more.. F_LAST_POST

I think the query could be the same changing the field, but I cannot figure how set a day before..

Changing them manually is an improbe works.. more than 1000 records..
<

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum

Edited by - modifichicci on 01 August 2008 15:14:29

MaD2ko0l
Senior Member

United Kingdom
1053 Posts

Posted - 01 August 2008 :  15:35:29  Show Profile  Visit MaD2ko0l's Homepage
isnt date/time calculated on the server side of things?

date/time has nothing to do with the date/time that is on the local computer. if that was the case them our times surly woud leb different as we live in different patrs of the world in different timezones.<

© 1999-2010 MaD2ko0l
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 01 August 2008 :  15:45:29  Show Profile  Send ruirib a Yahoo! Message
You can do that with a single query. You would need a script, either in SQL or an ASP script to do that. The operations needed cannot be done with a single query.

Mad2kool has a point, though, a user setting does not affect the server date and time.<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 01 August 2008 :  15:52:52  Show Profile  Visit modifichicci's Homepage
yes but he has set date in forum one day after.. so if he set the right date reply are shown in wrong place, as a reply posted today with the right date set, is shown before the reply posted yesterday with the wrong date..

so or he keep date one day after, or if he wants to set the right time, he needs to change the date in topics and reply to bring forum to the right time.<

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum
Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 01 August 2008 :  15:56:49  Show Profile  Visit modifichicci's Homepage
or.. he can set the right time, close the forum for 24 hours and all would be right, isn't it?<

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 01 August 2008 :  15:57:06  Show Profile  Send ruirib a Yahoo! Message
So, he's a forum admin?
<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 01 August 2008 :  15:58:36  Show Profile  Visit modifichicci's Homepage
yes
<

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 01 August 2008 :  15:59:30  Show Profile  Send ruirib a Yahoo! Message
So he wants all the posts made in a certain day changed?<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 01 August 2008 :  16:04:01  Show Profile  Visit modifichicci's Homepage
he asked me to solve the problem that if he set the right date now, a reply posted now is shown before a reply posted yesterday.
I don't think that date is a problem , no topics need a so fine time setting, but changing date bring to a boring effect of misc of reply ( i think only for a day, but that is..)

All his posts have a date one day after, but that isn't a problem.<

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum

Edited by - modifichicci on 01 August 2008 16:04:47
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 01 August 2008 :  16:06:31  Show Profile  Send ruirib a Yahoo! Message
What criterium should be used to select the topics and replies to be changed?

Also, no joking, the person in question is not a banned Snitz user?<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 01 August 2008 :  16:13:17  Show Profile  Visit modifichicci's Homepage
no
http://www.napolinsieme.it/forum/default.asp

I hope you know me well enought to know that I am correct, maybe not so expert in ASP and Snitz code, but never I would break rules.<

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 01 August 2008 :  16:17:46  Show Profile  Send ruirib a Yahoo! Message
I know, and I will gladly help you. What date should be used as the start date to choose the posts to be changed?<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 01 August 2008 :  16:23:19  Show Profile  Visit modifichicci's Homepage
the first topic has date = 20071215133013
and first reply has date = 20071216172611

<

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 01 August 2008 :  16:25:39  Show Profile  Send ruirib a Yahoo! Message
And you want all posts since then to be changed? Any idea how many? Just trying to find out if a normal record navigation can handle it...

<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 01 August 2008 :  16:33:04  Show Profile  Visit modifichicci's Homepage
yes I know they are about 1000..
so I was thinking that closing forum for 24 hours (isn't so busy..) will solve the problem, not needing to change date in post bifore..<

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 01 August 2008 :  16:36:33  Show Profile  Send ruirib a Yahoo! Message
Well, I'm already writing a script for you to run... shall I continue?

And shutting down the forum just dimishes the negative consequences, but dates will all be wrong...<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.15 seconds. Powered By: Snitz Forums 2000 Version 3.4.07