Recent Topics On "Recent Posts" Page

Started by Nathaniel, September 22, 2008, 07:20:01 PM

Previous topic - Next topic

Akyhne

I didn't test it as i understood it would give me something else than I wanted.

Did i get this part wrong? "Please note, that its still just showing a list of the most recent topics, just with the last post instead of the first post, the edit will be slightly different if you want the 'Most Recently Updated topics'. "

Nathaniel

No actually I got it wrong. ;D

I actually didn't realise that making such a small edit would do exactly what you want, that edit should make the page into a 'Most Recently Updated Topics' page, although it won't change any of the language strings. ;)
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

Akyhne

It works as it should.
I get one post from each topic now, but the most recent instead of the first (that's the idea with most recent ain't it ;) ).

Thanks a lot. You should concider the option I mentioned to make people being able to change wether they want the first or the latest post shown.

Nathaniel

I did have a think about that option when I first created this mod, although I decided that I was too lazy to actually implement it. ;) I might put it in, because its sooo easy, but it will probably wait until I have to update it for the next versions of SMF (whenever they come). ;)
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

Akyhne

I would actually think of keeping the old link and add your mod, so that people had both choices - view recent posts and wiev recent topics.

Akyhne

Wouldn't it just be to add 'recent' => array('Recent.php', 'RecentTopics'), in the index.php file and then make a copy of the function
function RecentPosts() and rename it  function RecentTopics(), then call it with a new link in BoardIndex.template.php?

Nathaniel

Yes, that should work fine. I gave it a test and it worked well. ;)
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

Akyhne

'recent' => array('Recent.php', 'RecentTopics')
should of course be
'recentTopic' => array('Recent.php', 'RecentTopics')
or similar.

.. or how did you do it?

Nathaniel

I just used this code, but 'recentTopic' should work. ;)
'recent2' => array('Recent.php', 'RecentTopics')
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

gigz09

Quote from: akyhne on October 02, 2008, 06:56:03 AM
I just tried this mod, but it gives me the first post in a topic, not the the newest. Isn't that the idea?

What I'm trying to say is that it shows me the most recent topics, but with the first post of the topic and not the newest post.

im using 1.1.6

you can use my test account

user: test
password: 369369369
ONYX is a non-profit, voluntary initiative of Filipino computer, electronics and software engineers. It was launched on July 2007 in Manila, Philippines. The initial idea is to create a broad organization where the Open Source and Open Content volunteers and professionals can exchange their ideas and embark on new initiatives. In the last year after formation ONYX has matured into an independent organization with partnerships with other Open Source based organization and individuals.

Visit ONYX - Pinoy Open Source Technologies


Akyhne

LHVWB: It worked great for me. I removed your mod and made the changes manually. Are you going to change the mod? I hate making manual changes as it is hard to recover everything when upgrading to 2.0

Nathaniel

Well, like I said. When I next upgrade this mod, for SMF version compatibility I will try to remember to add this feature as well. ;)
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

gigz09

anyone can help me? how do i activate this mod? im using 1.1.6 in my site..
ONYX is a non-profit, voluntary initiative of Filipino computer, electronics and software engineers. It was launched on July 2007 in Manila, Philippines. The initial idea is to create a broad organization where the Open Source and Open Content volunteers and professionals can exchange their ideas and embark on new initiatives. In the last year after formation ONYX has matured into an independent organization with partnerships with other Open Source based organization and individuals.

Visit ONYX - Pinoy Open Source Technologies

Nathaniel

@gigz09,
As far as I can see, the mod works fine on your website. Click on the 'View the most recent topics on the forum.' link in the information center at the bottom of your forum and SMF will show you a list of the most recent topics.
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

gigz09

Quote from: LHVWB on October 04, 2008, 01:47:11 AM
@gigz09,
As far as I can see, the mod works fine on your website. Click on the 'View the most recent topics on the forum.' link in the information center at the bottom of your forum and SMF will show you a list of the most recent topics.

oh im really sorry i thought this mod works same as the advance recent post.. im so sorry...
ONYX is a non-profit, voluntary initiative of Filipino computer, electronics and software engineers. It was launched on July 2007 in Manila, Philippines. The initial idea is to create a broad organization where the Open Source and Open Content volunteers and professionals can exchange their ideas and embark on new initiatives. In the last year after formation ONYX has matured into an independent organization with partnerships with other Open Source based organization and individuals.

Visit ONYX - Pinoy Open Source Technologies

katib

LHVWB
thank you very much
please! how can I display those recent  topics in scrolling fashion with marquee tag ?
منتدى الحجاج ... منتدى للقراءة والكتاب
http://www.hijaj.net

Nathaniel

@katib,
Can you explain that a bit more? Which parts of the page do you want to scroll?
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

katib

//
Quote from: LHVWB on October 07, 2008, 11:14:12 PM
@katib,
Can you explain that a bit more? Which parts of the page do you want to scroll?
thank you very much for help
I found a way to doing it using
include('SSI.php');
$posts = ssi_recentTopics(10, null, 'vivo');
I have posted ir here
http://www.simplemachines.org/community/index.php?topic=266701.0
in arabic section so other users my find it usefull
منتدى الحجاج ... منتدى للقراءة والكتاب
http://www.hijaj.net

Nathaniel

Tested Compatibility with SMF 1.1.7, the mod page has been updated accordingly.
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

Advertisement: