 | Re: [Solved] Today yesterday |  |
Posted: 04/08/2007 2:47 PM |
|
|
|
|
|
| Seagull |
| Posts |
110 |
| Word Cnt. |
24,559 |
| BDay |
N/A |
| Sign |
N/A |
| Sex |
 |
|
|
|
Joined: Mar 21, 2007
Local time: 1:19 AM
Location: Northern Ireland
|

|
|
|
|
 |
| No its not there. Where do i add it? |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Today yesterday |  |
Posted: 04/08/2007 3:01 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 2:19 AM
Location: St Pete, FL
|

|
|
|
|
 |
This is what you need to do...
| Code:
|
#
#-----[ OPEN ]------------------------------
#
viewforum.php
#
#-----[ FIND ]-----------------------------------
#
$last_post_time = create_date($board_config['default_dateformat'], $topic_rowset[$i]['post_time'], $board_config['board_timezone']);
#
#-----[ AFTER, ADD ]-----------------------------------
#
//
// MOD - TODAY AT - BEGIN
//
if ( $board_config['time_today'] < $topic_rowset[$i]['post_time'])
{
$last_post_time = sprintf($lang['Today_at'], create_date($board_config['default_timeformat'], $topic_rowset[$i]['post_time'], $board_config['board_timezone']));
}
else if ( $board_config['time_yesterday'] < $topic_rowset[$i]['post_time'])
{
$last_post_time = sprintf($lang['Yesterday_at'], create_date($board_config['default_timeformat'], $topic_rowset[$i]['post_time'], $board_config['board_timezone']));
}
// MOD - TODAY AT - END
|
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Today yesterday |  |
Posted: 04/08/2007 3:12 PM |
|
|
|
|
|
| Seagull |
| Posts |
110 |
| Word Cnt. |
24,559 |
| BDay |
N/A |
| Sign |
N/A |
| Sex |
 |
|
|
|
Joined: Mar 21, 2007
Local time: 1:19 AM
Location: Northern Ireland
|

|
|
|
|
 |
For some reason it took everything away
All it says is usersname |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Today yesterday |  |
Posted: 04/08/2007 3:26 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 2:19 AM
Location: St Pete, FL
|

|
|
|
|
 |
Did you add the code after what your found in the FIND statement or did you replace what you found? The new code would go on the next line from what you found...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Today yesterday |  |
Posted: 04/08/2007 3:30 PM |
|
|
|
|
|
| Seagull |
| Posts |
110 |
| Word Cnt. |
24,559 |
| BDay |
N/A |
| Sign |
N/A |
| Sex |
 |
|
|
|
Joined: Mar 21, 2007
Local time: 1:19 AM
Location: Northern Ireland
|

|
|
|
|
 |
Yea i put it in the next line.
It just dissapeard and left only the username
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Today yesterday |  |
Posted: 04/08/2007 3:32 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 2:19 AM
Location: St Pete, FL
|

|
|
|
|
 |
Could you post a text link to your viewforum.php file???
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Today yesterday |  |
Posted: 04/08/2007 3:42 PM |
|
|
|
|
|
| Seagull |
| Posts |
110 |
| Word Cnt. |
24,559 |
| BDay |
N/A |
| Sign |
N/A |
| Sex |
 |
|
|
|
Joined: Mar 21, 2007
Local time: 1:19 AM
Location: Northern Ireland
|

|
|
|
|
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Today yesterday |  |
Posted: 04/08/2007 4:21 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 2:19 AM
Location: St Pete, FL
|

|
|
|
|
 |
The Today At MOD code hasn't been added to this file...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Today yesterday |  |
Posted: 04/08/2007 4:24 PM |
|
|
|
|
|
| Seagull |
| Posts |
110 |
| Word Cnt. |
24,559 |
| BDay |
N/A |
| Sign |
N/A |
| Sex |
 |
|
|
|
Joined: Mar 21, 2007
Local time: 1:19 AM
Location: Northern Ireland
|

|
|
|
|
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Today yesterday |  |
Posted: 04/08/2007 4:34 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 2:19 AM
Location: St Pete, FL
|

|
|
|
|
 |
Ok, I see the problem. You installed a newer version of the MOD, so the MOD author changed some of the variable names. So do this:
OPEN
viewforum.php
FIND
REPLACE WITH
FIND
| Code:
|
|
$lang['Yesterday_at']
|
REPLACE WITH
Save and upload back to your phpBB forum folder...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Information |  |
|