Recent

Author Topic: Lazarus Homepage - Recent Announcements  (Read 6888 times)

FTurtle

  • Sr. Member
  • ****
  • Posts: 292
Lazarus Homepage - Recent Announcements
« on: June 21, 2015, 04:18:11 am »
Now at Lazarus Homepage in Recent Announcements last topic is "Lazarus Release Candidate 1 of 1.2 - November 06, 2013, 10:12:02 pm".
I think it's better to sort the topics in this list by the date of start topic than the date of the last message in theme at forum.

jc99

  • Hero Member
  • *****
  • Posts: 553
    • My private Site
Re: Lazarus Homepage - Recent Announcements
« Reply #1 on: June 21, 2015, 11:01:06 am »
Now at Lazarus Homepage in Recent Announcements last topic is "Lazarus Release Candidate 1 of 1.2 - November 06, 2013, 10:12:02 pm".
I think it's better to sort the topics in this list by the date of start topic than the date of the last message in theme at forum.
I admit it looks funny, but they where talking about an error that might still exist in the actual version.
OS: Win XP x64, Win 7, Win 7 x64, Win 10, Win 10 x64, Suse Linux 13.2
Laz: 1.4 - 1.8.4, 2.0
https://github.com/joecare99/public
'~|    /''
,_|oe \_,are
If you want to do something for the environment: Twitter: #reduceCO2 or
https://www.betterplace.me/klimawandel-stoppen-co-ueber-preis-reduzieren

FTurtle

  • Sr. Member
  • ****
  • Posts: 292
Re: Lazarus Homepage - Recent Announcements
« Reply #2 on: June 21, 2015, 12:24:33 pm »
I admit it looks funny, but they where talking about an error that might still exist in the actual version.
Forum is a forum. Anyone can go back to any topic. I just drew attention to the fact that under certain conditions the main page may look a little strange.

jc99

  • Hero Member
  • *****
  • Posts: 553
    • My private Site
Re: Lazarus Homepage - Recent Announcements
« Reply #3 on: June 21, 2015, 01:45:41 pm »
Forum is a forum. Anyone can go back to any topic. I just drew attention to the fact that under certain conditions the main page may look a little strange.
... But only for a few moments. Then there is enough going on to get it into the background.
and if you try to reply in an old topic there is a capcha to bail out lamers, so you should only add to a discussion if you have something new to say.
... and then it is worth to be put on the frontpage.
Since we are in the internet, and against filters/censorship everybody has the right to speak/write, and to be heard/read.
OS: Win XP x64, Win 7, Win 7 x64, Win 10, Win 10 x64, Suse Linux 13.2
Laz: 1.4 - 1.8.4, 2.0
https://github.com/joecare99/public
'~|    /''
,_|oe \_,are
If you want to do something for the environment: Twitter: #reduceCO2 or
https://www.betterplace.me/klimawandel-stoppen-co-ueber-preis-reduzieren

eny

  • Hero Member
  • *****
  • Posts: 1634
Re: Lazarus Homepage - Recent Announcements
« Reply #4 on: June 21, 2015, 04:02:42 pm »
Now at Lazarus Homepage in Recent Announcements last topic is "Lazarus Release Candidate 1 of 1.2 - November 06, 2013, 10:12:02 pm".
I think it's better to sort the topics in this list by the date of start topic than the date of the last message in theme at forum.
It happens when people add useless posts to old threads (happens more and more unfortunately these days).
All posts based on: Win10 (Win64); Lazarus 2.0.10 'stable' (x64) unless specified otherwise...

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9904
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus Homepage - Recent Announcements
« Reply #5 on: June 21, 2015, 04:21:58 pm »
Well if anyone knows how to fix it we can try: http://www.simplemachines.org/community/ssi_examples.php

This is the call used to get the data
Code: [Select]
  $posts = ssi_recentTopics($num_recent = 4, $exclude_boards = null, $include_boards = $smf_announcements_board, $output_method = 'return', $first_message = true);

dmytron

  • New Member
  • *
  • Posts: 43
Re: Lazarus Homepage - Recent Announcements
« Reply #6 on: June 21, 2015, 06:07:57 pm »
I'm still concrned about MainMenu bug you may encounter on Windows 7 (menu items are missing 1-3 pixels). This theme was thoroughly discussed in the thread of Lazarus release 1 of 1.2. I asked about the current status of the bug removal in the same thread. Maybe some of the moderators can put the discussion to a completely new different thread?

FTurtle

  • Sr. Member
  • ****
  • Posts: 292
Re: Lazarus Homepage - Recent Announcements
« Reply #7 on: June 21, 2015, 07:09:57 pm »
Well if anyone knows how to fix it we can try: http://www.simplemachines.org/community/ssi_examples.php

This is the call used to get the data
Code: [Select]
  $posts = ssi_recentTopics($num_recent = 4, $exclude_boards = null, $include_boards = $smf_announcements_board, $output_method = 'return', $first_message = true);

I think it should be function ssi_boardNews
It might look something like this:
Code: [Select]
$posts = ssi_boardNews($board = $smf_announcements_board, $limit = 4, $start = null, $length = 200, $output_method = 'return');
But most likely $board should not be a name but some number (ID)
I'm absolute zero in php.

Useful links:
1. Your link + click Board News
2. http://wiki.simplemachines.org/smf/SSI_FAQ_Advanced

« Last Edit: June 21, 2015, 07:11:46 pm by FTurtle »

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9904
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus Homepage - Recent Announcements
« Reply #8 on: June 22, 2015, 12:56:27 am »
Thanks, I ll try to test this, but it might be a few weeks before I get a chance

jc99

  • Hero Member
  • *****
  • Posts: 553
    • My private Site
Re: Lazarus Homepage - Recent Announcements
« Reply #9 on: June 22, 2015, 01:38:58 pm »
 :-[
Sorry FTurtle, you are right, the "Recent Announcements" should be sorted by the release-date.
I mistook "Recent Announcements" with "Recent Forum Posts".
Sorry again.
OS: Win XP x64, Win 7, Win 7 x64, Win 10, Win 10 x64, Suse Linux 13.2
Laz: 1.4 - 1.8.4, 2.0
https://github.com/joecare99/public
'~|    /''
,_|oe \_,are
If you want to do something for the environment: Twitter: #reduceCO2 or
https://www.betterplace.me/klimawandel-stoppen-co-ueber-preis-reduzieren

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9904
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus Homepage - Recent Announcements
« Reply #10 on: June 30, 2015, 03:44:52 pm »
I think it should be function ssi_boardNews

Thanks, tested that, and it works. I applied it to our code base. It should be rolled out to the live page in the near future.

FTurtle

  • Sr. Member
  • ****
  • Posts: 292
Re: Lazarus Homepage - Recent Announcements
« Reply #11 on: July 04, 2015, 06:47:39 pm »
Thanks, tested that, and it works. I applied it to our code base. It should be rolled out to the live page in the near future.
Yes, I see it works. Very well.
« Last Edit: July 04, 2015, 07:02:34 pm by FTurtle »

 

TinyPortal © 2005-2018