View Full Version : [RLEASE: 2.x.x] Who Post Composting Time
Stasik
11-14-2001, 10:00 PM
17.11.01 Updated: fixed a bug in installer.
16.11.01 Updated: fixed a bug and made installation easy.
Hi
My friend asked me to do it, and i found it intersting :D
This hack show how much time user needed to post/edit a post.
Screenshot here (http://www.realwebhost.net/demo.gif)
4 Files to edit
4 Templates to edit
1 Template to add
All instructions in zip below.
(C) 2001 Stasik
squawell
11-15-2001, 09:07 PM
take look
what's going on??
Reeve of shinra
11-16-2001, 12:03 AM
Cool idea.
Is the composing time stored in the database?
I would be interested in modifying the script to give the total composing time for all posts.
Admin
11-16-2001, 11:25 AM
Just a note Stasik, instead of doing this in showthread.php:
$time=time();
you can simply use $ourtimenow in the templates.
It's generated automatically in functions.php so you can use that.
Just don't mess with that variable. :)
Stasik
11-16-2001, 01:16 PM
Originally posted by squawell
take look
what's going on??
hmm...... do you have more errors like it?
Stasik
11-16-2001, 01:17 PM
Originally posted by Reeve of shinra
Cool idea.
Is the composing time stored in the database?
I would be interested in modifying the script to give the total composing time for all posts.
Yes it is saved in database. Still interested?
Stasik
11-16-2001, 01:17 PM
Originally posted by FireFly
Just a note Stasik, instead of doing this in showthread.php:
$time=time();
you can simply use $ourtimenow in the templates.
It's generated automatically in functions.php so you can use that.
Just don't mess with that variable. :)
chk update and tnh....
The Realist
11-16-2001, 01:40 PM
Installed this hack (2.2.0) and after posting a message its saying:
Post composed in 0 minutes and 0 seconds.
Its not working?
:(
Stasik
11-16-2001, 03:03 PM
please look in html-code of your new message page and search for name="t" post line here
The Realist
11-16-2001, 03:14 PM
Working now!
I think :)
Stasik
11-16-2001, 08:13 PM
ok
|DarkManX|
11-16-2001, 09:01 PM
not working for me....followed everything and still not working
it says
Post composed in 0 minutes and 0 seconds.
what do you mean by this??
please look in html-code of your new message page and search for name="t" post line here
squawell
11-17-2001, 06:37 AM
i still have same problem~~~
i reinstall mysqlupdate.php and appear database error~~
why??shouldn't i reinnstall this file again~~
The Realist
11-17-2001, 08:36 AM
Yes it would come back with an error because you are trying to overwrite a database that is already there.
The original Instructions file (First Post) has been updated with new Instructions and does work, give this a go.
:D
Originally posted by squawell
i still have same problem~~~
i reinstall mysqlupdate.php and appear database error~~
why??shouldn't i reinnstall this file again~~
SgtSling
11-17-2001, 08:38 AM
IS this intensive on the server?
The Realist
11-17-2001, 08:49 AM
No.......... its just since I Installed it my Whos online is extreamly slow on loading??
Why I dont know?
;)
Stasik
11-17-2001, 09:06 AM
it has to work since i have updated installation...... you dont need to run updatemsql 2 or more times
TheComputerGuy
11-17-2001, 10:45 AM
Fixed it, confliction with PPN last post hack :)
Stasik
11-17-2001, 12:49 PM
post a good rating plz
At the moment it also displays 0 minutes 0 seconds for me, no matter if I create a new thread or new reply or edit a post. :(
Stasik
11-17-2001, 01:43 PM
can i see it?
Got it working now... I had to add
$xtime=time()-$t;
before the query (in editpost.php)... And I changed the query to
$DB_site->query("UPDATE post SET title='".addslashes(htmlspecialchars($title))."',pagetext='".addslashes($message)."',allowsmilie='$allowsmilie',showsignature='$signa ture',iconid='$iconid',time=time+'$xtime'$editedby sql$attachmentsql WHERE postid='$postid'");
Seems to work now, let me know if that's not how it's supposed to be. :) Thanks for the hack (and the idea) :)
Stasik
11-17-2001, 02:19 PM
dont think the query changes will bring you something
Well, it does work now and before it didn't. ;)
Also now it adds the edit time to the creation time instead of replacing it.
Stasik
11-17-2001, 03:05 PM
cool idea... i meant it has to update it :)
i`ll fix my scrip with yours addon ok?
Sure thing, just found this to be logical. :)
Another possibility would be to have 2 comments in case a post is edited... One with the initial posting time and another one with the edit time, but then again,... ;)
|DarkManX|
11-17-2001, 04:49 PM
this is still not working for me......
has the install file been updated??
Stasik
11-17-2001, 04:56 PM
Can you give me a url of your board?
Yes, installer has been fixed
|DarkManX|
11-17-2001, 05:09 PM
<a href="http://www.partylounge.net/tof/index.php?s=&styleid=11" target="_blank">http://www.partylounge.net/tof/index.php?s=&styleid=11</a>
there you go....
Stasik
11-17-2001, 05:15 PM
You have to reinstall hack...... i mean the places with '$xtime' take a new installer plz
|DarkManX|
11-17-2001, 05:26 PM
just redid the installer, and still no go......
Stasik
11-17-2001, 05:28 PM
are you sure you have '$xtime=time()-$t;' in newthread, newreply and editthread?
|DarkManX|
11-17-2001, 05:29 PM
well if you updated the installer then i should, is that the php or the templates do you mean??
SgtSling
11-17-2001, 05:55 PM
i am thinking about installing this but 1 question
||
how many quiries does this add and will it slow my server?
Stasik
11-17-2001, 06:33 PM
Originally posted by |DarkManX|
well if you updated the installer then i should, is that the php or the templates do you mean??
You should pull all file back to its content before installing an reinstall
Stasik
11-17-2001, 06:34 PM
Originally posted by SgtSling
i am thinking about installing this but 1 question
||
how many quiries does this add and will it slow my server?
1) added query while posting a thread
2) added query while posting a post
3) added query while editing a post
thats all..... you will not see the difference
|DarkManX|
11-17-2001, 06:38 PM
Originally posted by Stasik
You should pull all file back to its content before installing an reinstall
did that......oh well.......thanks anyways
|DarkManX|
11-17-2001, 07:39 PM
ok, i really want to get this to work....i don't understand what could be wrong.....
|DarkManX|
11-18-2001, 02:41 PM
ok, i finally got it after some messing around.....
Stasik
11-18-2001, 05:20 PM
what was wrong?
SgtSling
02-15-2002, 09:36 PM
how can I add this so it only shows it in the 1st post?
I love this hack but I have added the quick reply box and it is messing with the time.
Thanks
Sarge
Stasik
02-15-2002, 09:46 PM
maybe u could use just full thread time in showthread temmplate?
SgtSling
02-17-2002, 06:16 PM
does anyone know?
Stasik
02-17-2002, 07:59 PM
i`m too laizy to look @ it now :) have already forgotten how my hack is working :)
Vivi Ornitier
02-18-2002, 03:29 AM
Okay there's a major problem with this hack, if ur using Firefly's Quick Reply Box, and if u put a message in there, it'll give u like Post composed in 16900161 minutes and 39 seconds. But if ur just using a normal reply box, then everything is okay . .. so somebody think up a way of integrating it with Firefly's hack! thx
btw: this hack is wonderful! :D
SgtSling
08-16-2002, 05:33 AM
I finally made this work with Firefly's Quick Reply Box...
in showthread_replybox look for
<input type="hidden" name="rating" value="0">
put this after it..
<input type="hidden" name="t" value="$ourtimenow">
SgtSling
08-16-2002, 05:33 AM
that should do it.. it worked for my forums
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.