Customizing SMF > Modifications and Packages
Advanced Recent Posts
Labradoodle-360:
./Themes/default/BoardIndex.template.php
--- Code: (Find) --- <td class="arp_header">', $txt['board_name'] ,'</td>
<td class="arp_header">', $txt['post_time'] ,'</td></tr>';
--- End code ---
--- Code: (Replace) --- <td class="arp_header">', $txt['board_name'] ,'</td></tr>';
--- End code ---
--- Code: (Find) --- <td class="post post_hover arp_rest">', $post['board']['link'], '</td>
<td class="post post_hover arp_rest">', $post['time'], '</td>
--- End code ---
--- Code: (Replace) --- <td class="post post_hover arp_rest">', $post['board']['link'], '</td>
--- End code ---
./Themes/default/languages/Modifications.english.php
--- Code: (Find) ---
// Labradoodle-360's Advanced Recent Posts Mod.
$txt['topic_name'] = 'Topic:';
$txt['poster_name'] = 'Poster:';
$txt['board_name'] = 'Board:';
$txt['post_time'] = 'Post Time:';
--- End code ---
--- Code: (Replace) ---
// Labradoodle-360's Advanced Recent Posts Mod.
$txt['topic_name'] = 'Topic:';
$txt['poster_name'] = 'Poster:';
$txt['board_name'] = 'Board:';
--- End code ---
That will remove the column "Post Time:" from the BoardIndex.
It will however throw off the width since it's set as 20% for each column and there are four columns (= 80%).
To change the column width:
./Themes/default/css/index.css
--- Code: (Find) ---.post
{
background-color: #F6F6F6;
width: 20%;
text-align: center;
}
--- End code ---
and edit width: 20%; to fit your needs.
Labradoodle-360
--- Quote from: Afro on March 08, 2010, 01:08:40 PM ---How do you remove the post time "Today at 19:04:17" entirely ?
i mean from the board index template ?.
--- End quote ---
Afro:
Ok , cool work there.
It worked like Charm man...
see the work on my test forum www.afro-ads.com/afro
Now its time to apply it on the main forum.
www.afrowall.com
Here is what i need.
I am already using the recent topic mod , the one that removes the "RE" prefix.
Any chance I can use it together with your good mod.
2.. I have my recent posts underlined and bolded, any chance the mod wouldnt change that >
The, the last one..
If the above cant work, can you just help out in removing the ''post time'' and centering the ''recent post feeds'' without throwing errors on my logs..
Thanks again...
Labradoodle-360:
Hey there, glad it worked for you.
The future of this mod will include the ability to toggle each column on or off, and since this is already needed (by you), it will probably get me to update it sooner than later.
Regarding the bold/underline - This will also be a feature in the updated version of this mod, as the complete style will be in your control, for now though, you can add this by changing the CSS.
./Themes/default/css/index.css
--- Code: (Find) ---.post
{
background-color: #F6F6F6;
width: 20%;
text-align: center;
}
--- End code ---
--- Code: (Replace) ---.post
{
background-color: #F6F6F6;
width: 20%;
text-align: center;
font-weight: bold;
text-decoration: underline;
}
--- End code ---
Please provide a mod link for the Recent Topics Mod and I will give you the code to make Advanced Recent Posts work with it.
Labradoodle-360
--- Quote from: Afro on March 08, 2010, 02:21:51 PM ---Ok , cool work there.
It worked like Charm man...
see the work on my test forum www.afro-ads.com/afro
Now its time to apply it on the main forum.
www.afrowall.com
Here is what i need.
I am already using the recent topic mod , the one that removes the "RE" prefix.
Any chance I can use it together with your good mod.
2.. I have my recent posts underlined and bolded, any chance the mod wouldnt change that >
The, the last one..
If the above cant work, can you just help out in removing the ''post time'' and centering the ''recent post feeds'' without throwing errors on my logs..
Thanks again...
--- End quote ---
Afro:
here is the mod
http://custom.simplemachines.org/mods/index.php?mod=1314
recent topic
Labradoodle-360:
I installed Recent Topics On Board Index on my dev site for Advanced Recent Posts, and they work fine together.
Labradoodle-360
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version