* * *

Author Topic: "Recent" width (forum)  (Read 3767 times)

BBasile

  • Sr. Member
  • ****
  • Posts: 333
"Recent" width (forum)
« on: November 14, 2016, 11:16:46 am »
The "Recent" widget is not wide enough. 75% of the time a thread message is shortened.

wp

  • Hero Member
  • *****
  • Posts: 3896
Re: "Recent" width (forum)
« Reply #1 on: November 14, 2016, 12:30:19 pm »
Also: Why are there only ten "Show recent" pages? I think it should not be a problem to sort all posts by date in descending order without limitation in page count.
« Last Edit: November 14, 2016, 03:44:43 pm by wp »
Lazarus trunk / fpc 3.0.4 / all 32-bit on Win-10

Bart

  • Hero Member
  • *****
  • Posts: 2745
    • Bart en Mariska's Webstek
Re: "Recent" width (forum)
« Reply #2 on: November 14, 2016, 07:19:35 pm »
Yes please make it wider, [sarcasm]that would be sooooo nice for people with laptops or other devises with not so wide screens[/sarcasm].

Bart

User137

  • Hero Member
  • *****
  • Posts: 1732
    • Nxpascal home
Re: "Recent" width (forum)
« Reply #3 on: November 14, 2016, 07:51:52 pm »
You can't rely on the Recent, i noticed long ago. My bookmark to this site opens directly the unread posts
http://forum.lazarus.freepascal.org/index.php?action=unread

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 4381
    • wiki
Re: "Recent" width (forum)
« Reply #4 on: November 15, 2016, 02:54:23 am »
you can use the recent page: http://forum.lazarus-ide.org/index.php?action=recent
but that includes the text of each post.

Or the rss feed, if you want
http://forum.lazarus-ide.org/index.php?action=.xml&sa=recent&type=rss2&limit=200

Available types
    type=atom - Atom
    type=rdf - RDF
    type=rss - RSS 0.91
    type=rss2 - RSS 2.0

BBasile

  • Sr. Member
  • ****
  • Posts: 333
Re: "Recent" width (forum)
« Reply #5 on: November 15, 2016, 09:59:29 am »
Yes please make it wider, [sarcasm]that would be sooooo nice for people with laptops or other devises with not so wide screens[/sarcasm].

Bart
It has nothing to do with the screen resolution. If you look at the source it's fixed to 170 px.

rvk

  • Hero Member
  • *****
  • Posts: 2945
Re: "Recent" width (forum)
« Reply #6 on: November 15, 2016, 10:24:26 am »
Yes please make it wider, [sarcasm]that would be sooooo nice for people with laptops or other devises with not so wide screens[/sarcasm].
It has nothing to do with the screen resolution. If you look at the source it's fixed to 170 px.
And making it wider would eat up precious pixels if somebody has a 1024x768 screen. So setting it at a fixed width which is wider, isn't acceptable either. They could make it dynamic but for that you would need to ask TinyPortal (which is the module for the side-bars). But for me on a 1920x1080 it's just the perfect size. I don't want it to be wider. So... it would also need to be user configurable (which is a whole lot more work).

You could stretch it to 300px yourself with GreaseMonkey or TamperMonkey. But the subject will still be cut. And your next question would be to put a lot more posts in that side-bar, wouldn't it :)

I'm glad I can hide the TinyPortal-modules because at home I have a large resolution (on a TV-screen).

As for the "Recent-page"... Recent is to 100 items back. If you want to go back years you would need to have a "All-page". But that's not "Recent". I'm not sure SMF-forum-software has an "All-page".


Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 4381
    • wiki
Re: "Recent" width (forum)
« Reply #7 on: November 15, 2016, 05:38:58 pm »
Actually the hint gives the full title. So you can ...Monkey it.

I suggest to use the feed. That also gives you more items.

BBasile

  • Sr. Member
  • ****
  • Posts: 333
Re: "Recent" width (forum)
« Reply #8 on: November 15, 2016, 11:47:20 pm »
Ok I adm
it that yo
u are all
right. Fe
eds will
solve th
e issue.
Feeds
are so t
rending
that no
web bro
wser su
port the
m nativ
ely.

lainz

  • Hero Member
  • *****
  • Posts: 2016
Re: "Recent" width (forum)
« Reply #9 on: November 16, 2016, 12:27:11 am »
L
O
L

T
h
a
t

w
a
s

f
u
n
n
y
!

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 4381
    • wiki
Re: "Recent" width (forum)
« Reply #10 on: November 16, 2016, 12:51:57 am »
Well you didn't say that you can not read feeds. (out of interest, which browser does not, yet can display this forum? )

Changing the widths of the panel is not an option (If at all possible). A few pixel extra don't really solve the issue. A lot of pixel extra, and you don't need to insert linebreaks to wrap after every word.

Adding a separate page like http://forum.lazarus-ide.org/index.php?action=recent
But with only titles, and no bodies, that would be helpful (if possible).

This is SMF 2.0.12
Do you have documentation how to add such a page (ideally without extra plugins, since my admin account is limited)

BeniBela

  • Hero Member
  • *****
  • Posts: 595
    • homepage
Re: "Recent" width (forum)
« Reply #11 on: November 16, 2016, 01:28:21 am »
The bigger issue is that the panel is too short.

There often is some interesting recent post, and when I later want to read it, I do not find it anymore, because more recent threads have appeared and the interesting thread popped away at the bottom (although I did not know about the unread page)

lainz

  • Hero Member
  • *****
  • Posts: 2016
Re: "Recent" width (forum)
« Reply #12 on: November 16, 2016, 01:33:52 am »
Hi, I don't know that forum software but I did a google search and gives me this page:

http://www.simplemachines.org/community/index.php?topic=25009.0

So you can do something like this
http://forum.lazarus.freepascal.org/index.php?action=.xml;limit=100

And set the limit as you want. Then you need to add a feed reader for a special page and that's it ( a page like this? http://forum.lazarus-ide.org/index.php/page,21.html) but with a feed reader (again, I don't know how to do it).

This is the stuff that contains the generated file:

Code: Pascal  [Select]
  1. <recent-post>
  2. <time>November 15, 2016, 11:54:04 pm</time>
  3. <id>228991</id>
  4. <subject>
  5. <![CDATA[ Re: FPS and smooth movement ]]>
  6. </subject>
  7. <body>
  8. <![CDATA[ I mark this post as solved. ]]>
  9. </body>
  10. <starter>
  11. <name>
  12. <![CDATA[ lainz ]]>
  13. </name>
  14. <id>53955</id>
  15. <link>
  16. http://forum.lazarus.freepascal.org/index.php?action=profile;u=53955
  17. </link>
  18. </starter>
  19. <poster>
  20. <name>
  21. <![CDATA[ lainz ]]>
  22. </name>
  23. <id>53955</id>
  24. <link>
  25. http://forum.lazarus.freepascal.org/index.php?action=profile;u=53955
  26. </link>
  27. </poster>
  28. <topic>
  29. <subject>
  30. <![CDATA[ [SOLVED ]]>
  31. ]
  32. <![CDATA[ FPS and smooth movement ]]>
  33. </subject>
  34. <id>34776</id>
  35. <link>
  36. http://forum.lazarus.freepascal.org/index.php/topic,34776.new.html#new
  37. </link>
  38. </topic>
  39. <board>
  40. <name>
  41. <![CDATA[ BGRABitmap and LazPaint ]]>
  42. </name>
  43. <id>46</id>
  44. <link>
  45. http://forum.lazarus.freepascal.org/index.php/board,46.0.html
  46. </link>
  47. </board>
  48. <link>
  49. http://forum.lazarus.freepascal.org/index.php/topic,34776.msg228991.html#msg228991
  50. </link>
  51. </recent-post>

Edit: Here is more information
http://support.simplemachines.org/function_db/index.php?action=view_function;id=368

Quote
RecentPosts
Description
Gets the 10 most recent posts that you can see.
Syntax
void RecentPosts ()

Notes
Called by index.php?action=recent
Uses the Recent template file
Loads RemoveTopic.php and calls RemoveMessage if $_REQUEST['delete'] is set
Doesn't return anything but loads the information into $context['posts'] for the template

So maybe you can grab the code from "Recent template file" and modify it to display only the titles.
« Last Edit: November 16, 2016, 01:44:00 am by lainz »

rvk

  • Hero Member
  • *****
  • Posts: 2945
Re: "Recent" width (forum)
« Reply #13 on: November 16, 2016, 03:27:24 am »
(although I did not know about the unread page)
I also have a shortcut to unread which I use almost exclusively to enter the forum. And when you want to save an interesting topic you can use the new bookmark-feature.

mse

  • Full Member
  • ***
  • Posts: 234
Re: "Recent" width (forum)
« Reply #14 on: November 16, 2016, 08:35:43 am »
One could take a look how http://www.delphipraxis.net/ does it. The forum with the best usability I know.


 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus