Home arrow Forum SMF most recent post layout
  Welcome, Guest. Please login or register.
Did you miss your activation email?
November 23, 2008, 12:23:56 PM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  Joomla Addon Discussion
| |-+  Joomla Modules
| | |-+  SMF most recent post layout
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: SMF most recent post layout  (Read 928 times)
kev
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 11


View Profile
SMF most recent post layout
« on: November 07, 2006, 03:33:02 PM »

Hello everyone, My site is running Joomla 1.0.11, SMF 1.1 RC3, the latest bridge from simple machines, and the recent forum post module.

In the recent forum post block, is there a way to have to topic name on one line, then a break so that the persons name will be on the second line, and another break, and the date on the third line, with a break in between the topics?  Something like below.

Topic name<br>
Username<br>
Date<br>
<br>
Topic name<br>
username<br>

Is this possible?  If so, can someone please tell me what the code would be to make the layout like what I listed?
« Last Edit: November 07, 2006, 08:21:23 PM by kev » Logged
kev
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 11


View Profile
Re: SMF most recent post layout
« Reply #1 on: November 07, 2006, 08:20:53 PM »

The answer to this topic is to edit the mod_smf_recent_topics.php file in the /modules folder

Look for these strings towards the bottom - this is the first one

echo '('.$post['replies'].')';

        }

        echo "<br>";  <---- insert the echo "<br>";

NEXT

if ($bln_date_time) {

            //space

            echo ' ';

         echo "<br>";  <----- once again insert this line here

NEXT

echo ' ';

            echo $post['time'];

      }

        echo "<br>"; <----- insert this line

This makes the most recent forum post look a LOT more uniform, forcing each topic to its own line.



To add a break and empty line in between each topic, find the line below

echo '<ul class="latestnews',$moduleclass_sfx,'"> ';

   foreach ($posts as $post) {

       

        $post['href'] = removeTrailingSlash($post['href']);

        $post['member']['link'] = removeTrailingSlash($post['member']['link']);

        echo "<br>";  <----- insert a break here

The last one in the list forces a break in between each topic, making it whole layout easier to read.

ENJOY

AND I figured this out all by myself!!!!!!!
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal. None of the text or images in this public website may be copied without the expressed written consent of the authors. Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved.
Terms of Use
Joomla Hacks



Joomla Hacks
German Lang French Lang Italian Lang Spanish Lang Japanese Lang Chinese Lang
Search Contact About Advertise Blogs Topsites Submit News Register Login