Current time: 07-31-2014, 03:20 AM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
View today's post
01-12-2011, 04:13 AM
Post: #1
Solved: 3 Years, 6 Months, 1 Week, 6 Days, 7 Hours, 56 Minutes, 30 Seconds ago View today's post
What do I need to do if I want to change "view today's post" become "the last three day's post". And Can I do this modify? Please help

Thanks
Find all posts by this user
Quote this message in a reply
01-12-2011, 07:25 AM (This post was last modified: 01-12-2011 07:26 AM by Yaldaram.)
Post: #2
Solved: 3 Years, 6 Months, 1 Week, 6 Days, 7 Hours, 56 Minutes, 30 Seconds ago RE: View today's post
Open ./search.php file and find;
PHP Code:
    if($mybb->input['days'] < 1)
    {
        
$days 1;
    } 
and replace it with;
PHP Code:
    if($mybb->input['days'] < 3)
    {
        
$days 3;
    } 
Save the file.

Now open ./inc/languages/english/global.lang.php file and find;
PHP Code:
$l['welcome_todaysposts'] = "View Today's Posts"
and replace it with;
PHP Code:
$l['welcome_todaysposts'] = "View 3 Days Posts"

Should result into this;
   

[Image: 16mJ9bI]
MyBBsmsAPP | MyStatus | ProProfile
Visit this user's website Find all posts by this user
Quote this message in a reply
01-12-2011, 06:47 PM
Post: #3
Solved: 3 Years, 6 Months, 1 Week, 6 Days, 7 Hours, 56 Minutes, 30 Seconds ago RE: View today's post
Thank you very much, it is okay now. I am very appreciated.
Find all posts by this user
Quote this message in a reply
01-12-2011, 06:49 PM
Post: #4
Solved: 3 Years, 6 Months, 1 Week, 6 Days, 7 Hours, 56 Minutes, 30 Seconds ago RE: View today's post
Don't forget to hit the solve button too Wink

[Image: 16mJ9bI]
MyBBsmsAPP | MyStatus | ProProfile
Visit this user's website Find all posts by this user
Quote this message in a reply
01-13-2011, 07:25 PM
Post: #5
Solved: 3 Years, 6 Months, 1 Week, 6 Days, 7 Hours, 56 Minutes, 30 Seconds ago RE: View today's post
(01-12-2011 06:49 PM)Yaldaram Wrote:  Don't forget to hit the solve button too Wink

Thanks for remind Big Grin
Find all posts by this user
Quote this message in a reply
01-14-2011, 05:22 AM
Post: #6
Solved: 3 Years, 6 Months, 1 Week, 6 Days, 7 Hours, 56 Minutes, 30 Seconds ago RE: View today's post
Thanks.

[Image: 16mJ9bI]
MyBBsmsAPP | MyStatus | ProProfile
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication