View Single Post
  #7 (permalink)  
Old 05-08-2008, 06:23 PM
Walkman Walkman is offline
Newbie
 
Join Date: May 2008
Posts: 7
Credits: 0
Rep Power: 0
Walkman is on a distinguished road
Default Re: How Can I Format Latest Files List addon?

Hi Rolandd,

Thanks for the reply.

I've tried it and it notches it up just a tidbit, and the small separator is still visible. I'm still looking over the code and I at least know where to begin.

[UPDATE]

I've made these changes, and it's looking good, but now I need to clean it up and format it better.

Old Code:
Code:
{
	foreach ($filedetails as $id => $details) {
		echo '<a class="link" href="'.$mosConfig_live_site.'/index.php?option=com_ionfiles">'.$details['title'].'</a><br />';
		echo '<span class="description">';
		if (strlen($details['description']) > $description_length) echo substr($details['description'], 0, $description_length).'...';
		else echo $details['description'];
		echo '</span><br />';
		if ($show_divider && $affectedrows > 1) echo '<div class="hr"><hr /></div>';
	}
New Code: after removing the red areas from above.

Code:
{
	foreach ($filedetails as $id => $details) {
		echo '<a class="link" href="'.$mosConfig_live_site.'/index.php?option=com_ionfiles">'.$details['title'].'</a><br />';
		echo '<span class="description">';
		if (strlen($details['description']) > $description_length) echo substr($details['description'], 0, $description_length).'...';
		else echo $details['description'];
		echo '';
		if ($show_divider && $affectedrows > 1) echo '<div class="hr"></div>';
	}
and the results are:



Now I need to try a way to line them up properly and get rid of the pre-dots from the beginning.

Thanks again for your help.


Kevin
Reply With Quote