Lost Password?


Go Back   CodeCall Programming Forum > Community > Community Projects > ionFiles

ionFiles Forum for the support of ionFiles - Joomla! component

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-04-2008, 05:47 PM
Walkman Walkman is offline
Newbie
 
Join Date: May 2008
Posts: 7
Rep Power: 0
Walkman is on a distinguished road
Default How Can I Format Latest Files List addon?

Hello,

I'm using ionFiles with the addons Latest Files and Popular Files, and the issue that I'm having is that when I create my files, the Latest addon doesn't list the files close enough. Below is an example:



but I would like the files to be listed like

.

Is it possible to do? If so, how do I format the file names to list like so?

Thanks for such a great product.


Kevin
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 05-04-2008, 07:20 PM
Jordan's Avatar   
Jordan Jordan is offline
Administrator
 
Join Date: Nov 2005
Location: Hendersonville, NC
Posts: 9,650
Last Blog:
PHP Objects, Patterns,...
Rep Power: 20
Jordan is just really niceJordan is just really niceJordan is just really niceJordan is just really nice
Send a message via ICQ to Jordan Send a message via AIM to Jordan Send a message via MSN to Jordan
Default Re: How Can I Format Latest Files List addon?

What is your site URL? You probably need to edit your CSS to have no margins or paddings top/bottom for links.
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog
The CodeCall Wiki is now fully integrated with vBulletin users! Check it out and add some new pages!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-04-2008, 07:49 PM
Walkman Walkman is offline
Newbie
 
Join Date: May 2008
Posts: 7
Rep Power: 0
Walkman is on a distinguished road
Default Re: How Can I Format Latest Files List addon?

Quote:
Originally Posted by Jordan View Post
What is your site URL? You probably need to edit your CSS to have no margins or paddings top/bottom for links.
Thanks for the quick reply.

My domain is Welcome to the Frontpage

I'm about 3 weeks into Joomla, and I am still trying to learn my way around it. So, not much of my content is on there yet. I haven't looked at the CSS file yet.

Is the CSS file in the ionFiles folder?

Kevin
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 05-04-2008, 07:52 PM
Walkman Walkman is offline
Newbie
 
Join Date: May 2008
Posts: 7
Rep Power: 0
Walkman is on a distinguished road
Default Re: How Can I Format Latest Files List addon?

That's real slick how my url got converted into my page title when I posted the above. I never saw that before.

Cool.

Kevin
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 05-05-2008, 07:59 AM
Jordan's Avatar   
Jordan Jordan is offline
Administrator
 
Join Date: Nov 2005
Location: Hendersonville, NC
Posts: 9,650
Last Blog:
PHP Objects, Patterns,...
Rep Power: 20
Jordan is just really niceJordan is just really niceJordan is just really niceJordan is just really nice
Send a message via ICQ to Jordan Send a message via AIM to Jordan Send a message via MSN to Jordan
Default Re: How Can I Format Latest Files List addon?

It looks like you are using the version that Rolandd created. Send him a PM and he should be able to help. I can see it is trying to print the descriptions and adding a <br /> tag. There may be an option to disable descriptions.
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog
The CodeCall Wiki is now fully integrated with vBulletin users! Check it out and add some new pages!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #6 (permalink)  
Old 05-08-2008, 04:32 AM
rolandd rolandd is offline
Learning Programmer
 
Join Date: Jul 2007
Posts: 43
Rep Power: 6
rolandd is on a distinguished road
Default Re: How Can I Format Latest Files List addon?

Hello,

You can change this in the file modules/mod_ionfileslatest.php. On line 80 it says:
Code:
		echo '</span><br />';
You can remove the <br /> tag there. The items should then show as you want.
__________________
Regards,

RolandD

Author of: CSV Improved and ionFilesLatest
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 05-08-2008, 06:23 PM
Walkman Walkman is offline
Newbie
 
Join Date: May 2008
Posts: 7
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Project: ionFiles - Joomla Simple File Download Jordan Community Projects 331 11-26-2008 12:35 PM
Windows Shortcut List - Saves Time 2stamlers The Lounge 6 04-10-2008 07:58 AM
retrieve information about the files in a driver roxelana Computer Software/OS 0 03-05-2008 04:08 PM
How do I read .mbm (Multi BitMap) files? moondog General Programming 7 08-07-2007 08:08 AM
Java Help Files xXHalfSliceXx Java Help 3 11-29-2006 12:30 AM


All times are GMT -5. The time now is 11:25 PM.

Contest Stats

WingedPanther ........ 2753.6
Xav ........ 2704
Brandon W ........ 1702.32
John ........ 1207.73
marwex89 ........ 1175.24
morefood2001 ........ 966.05
dcs ........ 655.75
Steve.L ........ 475.59
orjan ........ 418.58
Aereshaa ........ 383.54

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 100%


Complete - Celebrate!

Ads