Recent posts user preference

Started by miseryshining, March 19, 2007, 05:37:32 PM

Previous topic - Next topic

NEMINI

my block seem to show various number of recent topics irregardless of what the setting is.  it seems to be related to what forums are chosen to show.

Ie: if I have all forums showing and 15 topics chosen it shows 15.  but if I have forum A, B, C but not D or E and 15 topics to show it will show less then 15.  it's like its counting ALL recent posts and just not showing the forums unchecked rather then showing 15 topics from the forum chosen.

hope that makes some sense, if not I can provide links to my site and a test account.

signatures are boring.

miseryshining

Quote from: NEMINI on February 01, 2008, 03:58:02 AM
my block seem to show various number of recent topics irregardless of what the setting is.  it seems to be related to what forums are chosen to show.

Ie: if I have all forums showing and 15 topics chosen it shows 15.  but if I have forum A, B, C but not D or E and 15 topics to show it will show less then 15.  it's like its counting ALL recent posts and just not showing the forums unchecked rather then showing 15 topics from the forum chosen.

hope that makes some sense, if not I can provide links to my site and a test account.



its not really a bug but how it's programmed (the query will only search a limited number of posts and threads). since it's supposed to display recent topics, if there have been many posts in boards other then the ones you choose to display, it's likely that there aren't many recent topics to display for these boards.

possibly i could change it's behaviour a bit so that when you add a date limitation (last 2 days for instance), it will search through all posts in that time period.

NEMINI

why the limit?  shouldn't it just find the most recent X posts/topics irregardless of date?  what about a slow forum that might only have 5 posts a day and someone visits once a week and wants to see the latest 25?
signatures are boring.

miseryshining

Quote from: NEMINI on February 02, 2008, 01:15:25 AM
why the limit?  shouldn't it just find the most recent X posts/topics irregardless of date?  what about a slow forum that might only have 5 posts a day and someone visits once a week and wants to see the latest 25?

Performance considerations. The query does not know when it will find the 25th thread with new posts, worst case it will have to search the complete message table. For the recent topics list (action=recenttopics) i changed the behaviour when you limit it to x days. it will then find all relevant threads in that time span. Will upload a new version soon.

NEMINI

signatures are boring.

miseryshining

Quote from: NEMINI on February 05, 2008, 12:00:16 AM
okay.

In the next version i'll introduce a setting for admins to specify a timeframe in which to search for recent posts/topics, so you can find out for yourself if performance becomes an issue. Also i will add and regroup recent posts/topics related settings for admins so it's easier to set up blocks.

NEMINI

signatures are boring.

miseryshining

Quote from: NEMINI on February 07, 2008, 12:00:22 AM
i am looking forward to it
Updated to 2.5. Make sure you uninstall the old version first.

NEMINI

have it installed. will report back on performance/whatnot after my users thrash it around for a while.  thank you for your work on this.
signatures are boring.

miseryshining

I uploaded a new package with some important fixes (it wasnt showing any posts for the majority of users..). Please download the latest package (2.51). Feedback appreciated!

Sarai

Hi, I've read every page since the beginning just to see the development of the mod. I'm running SMF 1.1.4.

Quoterecent topics page example
hxxp:www.yourforum.com/index.php?action=recenttopics;boards=2,4;limit=1 [nonactive]
(will show a list of recent topics from boards 2 and 4, limited to the last day)

I tried to set the limit for 2 days, but it did not work. Is it supposed to, or am I trying to perform an action that does not exist?

Quote[admins]
"features and options -> user preferences"

    * enable extra user settings for users (only relevant for blocks)

"Current Theme -> Use recent topics mode instead on board index"

    * display recent topics for guests and members that haven't changed config

I don't see any of these options in my Admin panel. Did I download the wrong package or have I done something wrong?


miseryshining

#211
Quote from: Sarai on February 15, 2008, 06:43:47 PM
Hi, I've read every page since the beginning just to see the development of the mod. I'm running SMF 1.1.4.

Quoterecent topics page example
http://www.yourforum.com/index.php?action=recenttopics;boards=2,4;limit=1
(will show a list of recent topics from boards 2 and 4, limited to the last day)

I tried to set the limit for 2 days, but it did not work. Is it supposed to, or am I trying to perform an action that does not exist?

it should work if you set the day limit in the admin panel to 2 days or higher. if it's not set it might not give the expected result. 

Quote
Quote[admins]
"features and options -> user preferences"

    * enable extra user settings for users (only relevant for blocks)

"Current Theme -> Use recent topics mode instead on board index"

    * display recent topics for guests and members that haven't changed config

I don't see any of these options in my Admin panel. Did I download the wrong package or have I done something wrong?



hmm, you will need 2.51 for that (latest package). i updated the documentation, you should see the following in your admin panel:

Quote
[admins]
"features and options -> Recent posts/topics"

    * enable extra user settings for users (only relevant for blocks)
    * Use recent topics mode instead on board index
    * Nr of posts to whow in blocks by default
    * Timeframe in which to search for recent posts/topics (in days)

NEMINI

after having had mine set for a 10 day limit for the past month, I can safely report there has been zero performance impact to my site.  All user issues appear to have been resolved.  Thank you.
signatures are boring.

miseryshining

Quote from: NEMINI on March 05, 2008, 02:02:01 PM
after having had mine set for a 10 day limit for the past month, I can safely report there has been zero performance impact to my site.  All user issues appear to have been resolved.  Thank you.

thanks for the feedback, good to know!

Chopper

I get this error upon install:

Installing this package will perform the following actions:  Type Action Description
1. Execute Code RP_db.php 
2. Execute Modification .//Themes/default/languages/Profile.english.php Test successful
3. Execute Modification .//Themes/default/languages/ModSettings.english.php Test successful
4. Execute Modification .//Themes/default/languages/index.english.php Test successful
5. Execute Modification .//Sources/Load.php Test successful
6. Execute Modification .//SSI.php Test failed
7. Execute Modification .//Sources/Profile.php Test successful
8. Execute Modification .//Themes/default/Profile.template.php Test successful
9. Execute Modification .//Sources/Recent.php Test successful
10. Execute Modification .//Themes/default/Recent.template.php Test failed
11. Execute Modification .//Sources/BoardIndex.php Test successful
12. Execute Modification .//index.php Test successful
13. Execute Modification .//Sources/ModSettings.php Test successful
-----------------------------------------------------------------------------------------

Is there anyway i can still install this?

Thanks

miseryshining

Quote from: Chopper on March 26, 2008, 06:11:38 PM
I get this error upon install:

Installing this package will perform the following actions:  Type Action Description
1. Execute Code RP_db.php 
2. Execute Modification .//Themes/default/languages/Profile.english.php Test successful
3. Execute Modification .//Themes/default/languages/ModSettings.english.php Test successful
4. Execute Modification .//Themes/default/languages/index.english.php Test successful
5. Execute Modification .//Sources/Load.php Test successful
6. Execute Modification .//SSI.php Test failed
7. Execute Modification .//Sources/Profile.php Test successful
8. Execute Modification .//Themes/default/Profile.template.php Test successful
9. Execute Modification .//Sources/Recent.php Test successful
10. Execute Modification .//Themes/default/Recent.template.php Test failed
11. Execute Modification .//Sources/BoardIndex.php Test successful
12. Execute Modification .//index.php Test successful
13. Execute Modification .//Sources/ModSettings.php Test successful
-----------------------------------------------------------------------------------------

Is there anyway i can still install this?

Thanks

Uninstall all modifications, then try to install it again. It's likely that another modification has changed these files. I assume you are using the latest SMF version.

Chopper

Im using 1.1.4 . Dont want to try 2.0 as its at beta stage

miseryshining

Quote from: Chopper on March 27, 2008, 06:40:27 AM
Im using 1.1.4 . Dont want to try 2.0 as its at beta stage

yes, latest stable i meant = 1.1.4

Chopper

I done as you said but still the same errors??

How do i manually install?

miseryshining

Quote from: Chopper on March 27, 2008, 10:11:21 AM
I done as you said but still the same errors??

How do i manually install?

I wouldn't do it manually. its better to backup these two files which give you the erros and replace them with the files that original came with the 1.1.4 package. that should fix it for sure.

Advertisement: