Closed Thread
Results 1 to 7 of 7

Thread: How Can I Format Latest Files List addon?

  1. #1
    Walkman is offline Newbie
    Join Date
    May 2008
    Posts
    8
    Rep Power
    0

    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

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Jordan Guest

    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.

  4. #3
    Walkman is offline Newbie
    Join Date
    May 2008
    Posts
    8
    Rep Power
    0

    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

  5. #4
    Walkman is offline Newbie
    Join Date
    May 2008
    Posts
    8
    Rep Power
    0

    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

  6. #5
    Jordan Guest

    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.

  7. #6
    rolandd is offline Learning Programmer
    Join Date
    Jul 2007
    Posts
    43
    Rep Power
    0

    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

  8. #7
    Walkman is offline Newbie
    Join Date
    May 2008
    Posts
    8
    Rep Power
    0

    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

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. List files in a directory for C++
    By Groogy in forum C and C++
    Replies: 4
    Last Post: 08-01-2010, 09:57 PM
  2. Latest files module link doesnt work
    By alexistkd in forum ionFiles
    Replies: 1
    Last Post: 11-29-2008, 11:28 AM
  3. pulling a list of files in C#
    By Siten0308 in forum C# Programming
    Replies: 7
    Last Post: 07-31-2008, 09:33 AM
  4. Latest Files module for J1.5 Native
    By kenmcd in forum ionFiles
    Replies: 2
    Last Post: 07-15-2008, 02:52 PM
  5. Replies: 0
    Last Post: 05-04-2008, 03:37 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts