News:

Wondering if this will always be free?  See why free is better.

Main Menu

Advanced Recent Posts

Started by Matthew K., March 08, 2010, 02:59:23 AM

Previous topic - Next topic

Afro


Matthew K.

Version 1.1 will be released shortly.

Features
Bugfix - In v1.0, a CSS issue that was overlooked, throws off Posts display. Thank you Afro for pointing this out.
Compatibility - Advanced Recent Posts will be compatible with SMF 2.0 RC3.

Labradoodle-360

Am'

اذا أحس أحد انه لم يخطأ ابدا في حياته, فهذا يعني أنه لم يجرب أي جديد في حياته
My Mods For SMF 2 RC3 : XQuote XCode - Vbulletin Style New Meta Tags

Matthew K.

Additional Features will be added to hopefully the next version.

Right now, I cannot add more features because I am leaving on vacation for about a week tomorrow morning, and am trying to just shoot out RC3 updates and any bugfixes so that they work, and work with the latest version.

This is on my to-do list though,
Labradoodle-360

Afro

Ok mate.
I upgraded to RC3 which of course threw off all mods.

I am waiting to install this mod again when you release the new version.

Matthew K.

Version 1.1 Released!

If you have version 1.0, please uninstall it and reinstall v1.1 as it includes a bugfix, as well as compatibility for RC3, and utf-8 for English.

Enjoy,
Labradoodle-360

Sudhakar Arjunan

Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Afro


Bruno36

Hello!

I just installed the mod and I do not see anything new?
http://www.scooter-chinois-4t.com/forum/
Bruno36 the French
SMF 2.0.9

Matthew K.

Make sure you go to Admin > Configuration > Current Theme and set posts on boardindex to your desired number, by default it's zero which doesn't use my mod.

Labradoodle-360

Afro

Hey buddy ,

can the table columns be removed without resetting the parameters ?

Bruno36

thank you Labradoodle-360 it works fine now ;)
Bruno36 the French
SMF 2.0.9


technica

Is there any setting through which we can exclude posts from some boards on the forum from "Recent Topic" page?
Programming and Webmaster Forum - AdSense Revenue Sharing Forum
Online Magazine

4b11l

#34
Any chance of having it recent topics instead of posts?
Also, can I set the table width to a certain size?

Matthew K.

The recent topics mod, can be integrated into this mod, I believe. But I do not planning on having that option apart of Advanced Recent Posts.

Furthermore, you can change the table width by the following edit.

./Themes/default/BoardIndex.template.php
Code (Find) Select
<table align="center" cellpadding="5" cellspacing="0" width="100%" border="0">
Code (Replace) Select
<table align="center" cellpadding="5" cellspacing="0" width="YOURWIDTH" border="0">
Obviously, replacing "YOURWIDTH" with your desired with.

If you wish to change each column individually, you'll need to do some further editing.
./Themes/default/css/index.css
Code (Find) Select
.arppost
{
background-color: #F6F6F6;
width: 20%;
text-align: center;
}

Code (Replace) Select
.arppost
{
background-color: #F6F6F6;
text-align: center;
}


./Themes/default/BoardIndex.template.php
Code (Find) Select

<td class="arppost arppost_hover arp_left">', $post['link'], '</td>
<td class="arppost arppost_hover arp_rest">', $post['poster']['link'], '</td>
<td class="arppost arppost_hover arp_rest">', $post['board']['link'], '</td>
<td class="arppost arppost_hover arp_rest">', $post['time'], '</td>

Code (Replace) Select

<td class="arppost arppost_hover arp_left" style="width: YOURWIDTH;">', $post['link'], '</td>
<td class="arppost arppost_hover arp_rest" style="width: YOURWIDTH;">', $post['poster']['link'], '</td>
<td class="arppost arppost_hover arp_rest" style="width: YOURWIDTH;">', $post['board']['link'], '</td>
<td class="arppost arppost_hover arp_rest" style="width: YOURWIDTH;">', $post['time'], '</td>

C4G-TK

#36
Hey Lab, I changed the colors to suit my theme better, but what do I do in order to get rid of the hover?

NEVERMIND!! I got it!!  I just deleted the area of the index.css for the hover!

Ooops, saw you replied.  Dang you're fast.  OK, gotta do one other change that you had listed.

-img removed-

Matthew K.

Hey C4G-TK! Sorry for the delay on the edits.

Here you go.

./Themes/default/css/index.css
Code (Find and Remove) Select

.arppost_hover:hover,.arppost_hoverHover
{
background: #E0E6E6;
}


./Themes/default/index.template.php
Code (Find) Select

            echo '
               <tr>
                  <td class="arppost arppost_hover arp_left">', $post['link'], '</td>
                  <td class="arppost arppost_hover arp_rest">', $post['poster']['link'], '</td>
                  <td class="arppost arppost_hover arp_rest">', $post['board']['link'], '</td>
                  <td class="arppost arppost_hover arp_rest">', $post['time'], '</td>
               </tr>';

Code (Replace) Select

            echo '
               <tr>
                  <td class="arppost arp_left">', $post['link'], '</td>
                  <td class="arppost arp_rest">', $post['poster']['link'], '</td>
                  <td class="arppost arp_rest">', $post['board']['link'], '</td>
                  <td class="arppost arp_rest">', $post['time'], '</td>
               </tr>';


To be honest, a hover toggle along with input for changing the color of hover "is" in the plan for the next version if I ever get around to updating my mods, as well as writing new ones.

Hope this helps,
Labradoodle-360

C4G-TK

Thanks, I got it.  I had gone back and deleted the css info while you were replying.
I figured I'd take the chance and try it.  I didn't realize you would reply so fast.

Thanks for the help!

-img removed-

Matthew K.

Not a problem, technically removing the CSS "works", but I always remove all traces.

Glad you got it though,
Labradoodle-360

Advertisement: