MyBB Community Forums

Full Version: Adding attach date and move the postbit text to the left
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello , i have few question hope any one can give me some advice .

1) How can i adding a new line code to the attachment date ?
    And how can make it sort by date ?

<td class="{$alt_bg}" align="left">{$attachment['icon']}  <a href="attachment.php?aid={$attachment['aid']}" target="_blank">{$attachment['filename']}</a></td>
<td class="{$alt_bg}" align="center">{$attachdate}</td>	  <-------How to add this new line
<td class="{$alt_bg}" align="center">{$attachment['filesize']}</td>
<td class="{$alt_bg}" align="center">{$attachment['downloads']}</td>


2) Where can i find the code to edit the text align to the left ?
This is all the "preview post" look like this now


Thanks and Merry Christmas to all Smile
Still waiting for help , any one willing to help ?
What theme are you using?
(12-26-2016, 12:12 PM)chack1172 Wrote: [ -> ]What theme are you using?

I using netpen theme.
1. Are you using the plugin Show Attachments In Forum View, right?
If yes edit file inc/plugins/showattachmentsforum.php and at line 187 add this code:
	$attachment['dateuploaded'] = $attachment['dateline'];
$attachdate = my_date('relative', $attachment['dateuploaded']);

2. You should edit it in the stylesheet showthread.css. You need to search the code below and change text-align of it.
.post.classic .post_author div.author_statistics
Thanks ,  It works now !
I just want to know , is that the attachment can sort by date when click  the "Date" on the tab?
I cant find any tutorial for sorting .
Currently the latest attachment is at bottom , i want the latest in the first .
Because i dont know the popup window can show how many attachment , if in single forum have more then 100
attachment , then will always need scroll to the bottom .
Here is what i have done now , but still learning to add sorting and limit it for 1 page .

The second problem still cant solve it , i have check it but that already have what you mention .
Here is the full code from showthread.css .
Please have a look .

.thread-left {
    float: left;

ul.thread_tools,ul.thread_tools li{
  font-size: 13px;

ul.thread_tools li:before{

ul.thread_tools li.printable:before {
	content: "\f02f";

ul.thread_tools li.sendthread:before {
	content: "\f0e0";

ul.thread_tools li.subscription_add:before {
	content: "\f192";

ul.thread_tools li.subscription_remove:before {
	content: "\f1db";

ul.thread_tools li.poll:before {
	content: "\f0ae";

.showthread_spinner {
	width: 100%;
	margin: 0 auto;
	display: block;
	text-align: center;
	padding: 20px;

.post .post_author {
    padding: 15px;
    overflow: hidden;
    background: #405972;

.post.classic .post_author {
    margin-left: 0px;
    background: #405972;

.post.classic {
    padding-top: 0px;
    margin-top: 5px;
    margin-bottom: 20px;
    border-top: 2px solid rgba(91, 130, 164, 1);

.post.classic .post_content {
    padding: 0 5px;
    background: #fff;

.post.classic .post_author div.author_statistics {
    border-top: 1px solid #537393;
    margin: 6px 0 0 0;
    padding: 6px 6px 3px 6px;
    float: none;
    text-align: left;

.post .post_meta {
    margin: 4px 0;
    font-size: 11px;
    color: #999;
    padding: 3px;
    border-top: 1px solid #e6e6e6;

.post .post_head {
    font-size: 11px;
    padding: 4px 5px 4px 10px;
    margin-bottom: 5px;
    border-bottom: 2px solid #dee6ed;

1. edit again the same file and change the line 177 change "asc" with "desc"

2. Can I have your forum url?
(12-26-2016, 04:20 PM)chack1172 Wrote: [ -> ]1. edit again the same file and change the line 177 change "asc" with "desc"

2. Can I have your forum url?

Yes , but my forum still in offline mode .
Did you want to sign in to check ?
If yes i create account for you .
i PM my forum url for you .
Edit stylesheet global.css and search:
.post .post_author div.author_statistics

Before it add:
.post.classic .post_author div.author_statistics {
    border-top: 1px solid #537393;
    margin: 6px 0 0 0;
    padding: 6px 6px 3px 6px;
    float: none;
    text-align: left;
Thanks , can you visit one more time to my forum .
I still have the url question .
I already post in the thread .

Ok , i find out the problem .
Should be this one
I change float:right > left .
Now is solve .

.post .post_author div.author_statistics {
float : left;
font-size : 12px;
padding : 3px 10px;
color : #e6e6e6;
line-height : 1.3;