Support Home Page › Forums › Joomla Software › Easy Folder Listing Pro Plugin › ascending and descending order in Easy Folder Listing Pro
- This topic has 11 replies, 2 voices, and was last updated 10 years, 10 months ago by Michael Gilkes.
-
AuthorPosts
-
December 9, 2013 at 5:24 pm #723luchokike1Participant
Good Morning
Please let me know how to solve the following problem:
I have 07 directories in my home directory Publications within each variety I can upload PDFs. I want to place each PDF and look by date, ie the last PDF uploaded look up or at the top of the list of PDFs that directory
The problem is that even though in the settings of pluggin choose Ascending
And even if I write the code in Article:
{easyfolderlistingpro method=’table’|extensions=’1’|folder=’images/foros/’|easing=’linear’|preview=’none’|sortcolumn=’date’|ratio=’4′<span><span></span></span>|sortdirection=’ASC’ }
I can not and I can not place it upwards, ie the last PDFS upload files that are above or at the top of the folder where the upload
Could someone please help?
My Easy folder listing pro here:
http://www.redextractivas.org/es/publicaciones.html
Thanks a lot
Att
Luchokike
December 9, 2013 at 11:04 pm #1958Michael GilkesKeymaster@luchokike1. Thanks for posting. Which editor do you use in Joomla? First thing I need you to do is to look at the underlying code. When typing or copy/pasting in an article, the editor often add extra tags and html entities that are not apparent until you reveal the codes. The TinyMCE editor has a button to “Toggle Editor” button that reveals the codes. The JCK editor has an icon for revealing the codes. You need to reveal the codes to see what is really there in the article text. Sometimes the editor even transcodes the quotes to html entities. All these issues will affect how things work.
Now, the directories themselves are not sorted. Only the files are sorted. So, I am not sure what you are trying to sort. Maybe you can clarify.
December 11, 2013 at 3:24 pm #1959luchokike1ParticipantHello Michael
I appreciate your answer. In the joomla code is ok . But in effect, by copying from the Show / Hide the code i forgot to remove <span> . Sorry. I use the JCE Editor that is good with the Toggle Editor like you said and displays the following
{easyfolderlistingpro method=’table’|extensions=’1’|folder=’images/foros/’|easing=’linear’|preview=’none’|sortcolumn=’date’|ratio=’4′<span><span></span></span>|sortdirection=’DES’ }
Then repeat the same question how I can make ascendenetemente appears the PFS inside a directory, I want that the PDFS within a directory most recent appear above and below the oldest . I ordered by date in ascending in pluggin settings and the code inside the article but nothing. It can be done ?
The principal to me is how to solve the problem. The coded is ok. Now is good posted. But not working.
Thank you
pd . in effect Michael would like also order the names of the directories which have not been ,but my most pressing is now sort files by date , most recent up.
I hope you can help me please
Thank you
Luchokike
December 11, 2013 at 3:35 pm #1960luchokike1ParticipantI posted the code correctly but the forum interface appear with <span> that I dont put.
My real EasyFolder Listing Pro code here like image (to can see) is this
I hope you can help me
Thanks
Luchokike
December 11, 2013 at 4:26 pm #1961Michael GilkesKeymaster@luchokike1. There are 3 datetime data that you can get from a file in PHP. I use the stat() function in PHP to get the file date time. With the stat function you can get:
- mtime: Date and time of last modification
- atime: Date and time file was last accessed
- ctime: Date and time the file’s status was changed… in other words… created time
Currently, the plugin is set to use mtime, which is the date and time of last modification. It seems as though you want to use something else instead of mtime. You will have to edit the code to do so. If you want to change it, go to somewhere around line 1249 and you will see:
1$list[$index] = $filestats;just change the ‘mtime’ text there to either ‘atime’ or ‘ctime’.
Lastly, when specifying sortdirection, please use either ‘asc’ or ‘desc’. No caps.
Hope this helps.
December 12, 2013 at 2:58 pm #1962luchokike1ParticipantHello Michael
I appreciate your answer.
Well im not expert in PHP exactly. Usually i can change code php in existing files of Joomla. I can do the change seeing in my Dreamweaver around the line 1249 like you said but I would like to know (entering by FTP) in what root or what directory of the pluggin EasyFolder Listing Pro is located the PFP file who generate or that have the date time ?
Or I should generate this datetime with a PHP code insidde a new file? can you please post me the code? where I should put this new file? what is the procedure exactly please?
I will try that you say if this change allow me put the PDFS within a directory most recent above and below the oldest
I hope you can help me
Thanks a lot
Luchokike
December 13, 2013 at 3:30 pm #1963Michael GilkesKeymaster@luchokike1. Ok. The file you want to edit is “easyfolderlistingpro.php” and is located in plugins/content/easyfolderlistingpro.
I see you are a real novice at PHP and programming. All you need to do is open the file, and follow the instructions in the previous post above. You should try to figure out how you want the files to be sorted. Is it by “Modified Date”, “Last Accessed Date” or “Created By Date”. And depending on which one, you just change ‘mtime’ on line 1249 to either ‘atime’ or ‘ctime’. This is the simplest way I can explain it.
Most people only thing about “most recent”, but there are different types of date information about a file. I hope you understand now.
December 13, 2013 at 10:45 pm #1964luchokike1ParticipantGood afternoon Michael
I recently see the carpet plugins/content/easyfolderlistingpro for this reason my question was what PHP file was. Only was one.
Now in Dreamweaver is not at the 1249.
$list[$index] = $filestats;
is at 2477 line.
Well I did the changes for ctime and atime and both and i tried with ASC or DESC sortdirectin but the result in 04 cases is the same. When I upload a PDFs to a directory it dont see most recent above and below the oldest. Ever the new goes below.
Is a shame that a good pluggin can not do this simple action
So I will try creating a new joomla category and put a weblink to my PDFs that allow me ordering by date, the most recently above.
If maybe there is another way to solve this important problem I appreciatte your comments.
Thanks
Regards
Luchokike1
December 13, 2013 at 11:14 pm #1965Michael GilkesKeymaster@luchokike1. I am sorry you would make a statement such as “Is a shame that a good pluggin can not do this simple action”. You keep using the term “recent”, and I am trying to let you understand that based on what PHP provides, the plugin can only find out those three datetime information about the file (Date Modified, Date Last Accessed, and Date Created). I don’t even know what you mean by the “most recent”, and the server will not have the same interpretation of what you think the “most recent” is. How do you determine what the “most recent” file is?
Sometimes the date/time values are reset when you upload the files, or even when you copy/paste them. This is not the fault of the plugin, or PHP, it is just the data that PHP gets from the file.
To better understand what I mean, enable the following settings in the plugin to see if the plugin is really sorting properly, and you will understand why you are getting the order you see. That way we can intelligently see which values are used.
You can find a screenshot of the settings I would like you to change: http://imageshack.com/a/img843/5213/efni.png. Please let me know
when you change the settings so I can see it with you.
December 13, 2013 at 11:22 pm #1966Michael GilkesKeymaster@luchokike1. Also, please do not use UPPER CASE letters for asc or desc. Please use lower case.
December 14, 2013 at 3:51 am #1967luchokike1ParticipantGood afternoon Michael
Thanks for reply. Well english is not my native languaje sorry about that maybe i dont let me understand. When I said most recent or recently file above i want to say that if I upload today a 1.pdf file inside a directory this appears like unique in this directory. Ok until here. If tomorrow or later I upload another 2.pdf this 2.pdf should be above of 1.pdf, if tomorrow or later I upload a third file called z.pdf this should above of 2.pdf. Most recently uploaded above, most old below.
The namefile is not considered because I want order by date not by filename
I dont know if the pluggin can do this. For logical reasons the last file that I upload inside a directory should see in the top of the list or above.
I hope you can help me please
I got the pluggin manager like you said
and my code inside the article
Thanks a lot
Regards
Luchokike
December 14, 2013 at 12:34 pm #1968Michael GilkesKeymaster@luchokike1. Since we seem to be having a difficult time understanding each other through the forum, please setup a temporary admin login for me on your site. Then, I will be able to login and have a look at it myself. Please send me an email with the temporary login credentials and the order number that you purchased the plugin with.
-
AuthorPosts
- The topic ‘ascending and descending order in Easy Folder Listing Pro’ is closed to new replies.