• Welcome to Simple Machines Community Forum. Please login or sign up.
December 03, 2021, 06:48:35 AM

News:

SMF 2.1 RC4 has been released! Try it out and help us test! :) Read more.


SMF Events Module - Ordering question

Started by sharni, November 03, 2006, 10:57:28 AM

Previous topic - Next topic

sharni

November 03, 2006, 10:57:28 AM Last Edit: November 03, 2006, 05:59:22 PM by Orstio
I am sorry, this is really just a nitpick on my part, so its not an urgent issue.

I have the latest versions of Joomla, SMF and the bridge installed.  I downloaded the SMF calendar and events modules and installed them.  I put the events module on my front page and it looks great.

However, to me the order is backwards.  Instead of showing the next event coming up, it shows one a week from now and works backwards down the list.  I tried to see if there is anyway in the Joomla admin for the modules to set the order and I cant see it (I could be missing the obvious).

I would like for it to show tonights event first, followed by tomorrows and so on, rather than next weeks at the top and tonights at the bottom.

hxxp:www.legendarymyths.net [nonactive]

Sharni

jonopow

I don't think there is an option to change the order, but there is a simple edit to the mod_smf_events.php file you can do.

Around line 101 change the sql query from 'ORDER BY cal.startDate DESC' to 'ORDER BY cal.startDate ASC'

Kindred

yep...   my mistake when I created the module...   if/when I release a new version that will be fixed... but in the mean time, just change it in your code. :)
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.<br /><br />"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

sharni

Thank you.  That worked like a charm.

Had issues with ownership on the file though.  Couldnt do an ordinary upload via dreamweaver.  Had to go to server admin, delete the orginal to upload my fix.  I have found that a problem with Joomla, not having permission to edit the files.

Sharni

Kindred

one point:   I recommend that you do not use dreamweaver to edit php files.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.<br /><br />"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

dbrown

Please do not PM me with support questions.  You will get better and faster responses by contacting someone who has a clue. Thank you.

sharni

Why not?

And what do you recommend instead?

A good percentage of my website is in php thanks to the various software downloads I am using.  And I am slowly teaching it to myself via editing these files and php book purchases.

Sharni

Kindred

I suggest UltraEdit.

ConText and EditPlus2 are both decent as well...   and I've heard good things about notepad2

basically, get a text editor that parses php...   and use a straight FTP program like FileZilla or FTP Voyager.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.<br /><br />"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Aravot


sharni

I very rarely use the design part of dreamweaver, I use the code side of it all, so I dont think I am trying to parse anything.  I just used dreamweaver because it shows the code nicely (I am a handcoder, not a wyswiger) and does ftp all in the one piece of software.  

I read somewhere else that if you only look at it in the code side of it, it shouldnt be a problem.  This the case?

Sharni

Kindred

I don't know for sure... but from all the horror stories, I wouldn't.

All of the ones that I listed show nice parsed-colour-coded code...
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.<br /><br />"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: