Page 1 of 2

[ABD] Today's Posts 0.2.0

Posted: Fri Feb 08, 2008 3:17 am
by pgarvin76
MOD Title: Today's Posts
MOD Description: Adds a search for the posts in the last 24 hours (aka Today's Posts) at the top of the index page. It is the same as the vBulletin function of the same name.
MOD Version: 0.2.0

MOD Download: http://www.paulgarvin.net/code/todays_posts_0.2.0.zip

Demo Board: http://www.phillyscca.com/testforum/

Re: [BETA] Today's Posts 0.2.0

Posted: Fri Feb 08, 2008 3:19 am
by Hamed2000
Thanks ;)

Re: [BETA] Today's Posts 0.2.0

Posted: Sun Feb 17, 2008 2:13 am
by updown
Thanks, works great in my testing area!

But I've two questions:

1.) What is the difference between this mod and the standard "View Active Topics" - except for the exact last 24 hours? I don't understand yet fully, where this mod can be an added value?

2.) I'm missing a script für the subsilver2-templates. Will you add this in the next version?

Thanks in advance for your answers!

Re: [BETA] Today's Posts 0.2.0

Posted: Sun Feb 17, 2008 9:56 pm
by pgarvin76
updown wrote: 1.) What is the difference between this mod and the standard "View Active Topics" - except for the exact last 24 hours? I don't understand yet fully, where this mod can be an added value?
The search results will disappear from "View Active Topics" after you read the thread or mark the forum read. I had some users who wanted to see the active topics in the last day regardless of if they had read them or not. I think they got used to this feature on vBulletin boards and got cranky w/o it.
updown wrote: 2.) I'm missing a script für the subsilver2-templates. Will you add this in the next version?
I can't promise anything right now. None of my boards are using subsilver2.

Re: [BETA] Today's Posts 0.2.0

Posted: Sun Feb 17, 2008 10:42 pm
by updown
pgarvin76 wrote:
updown wrote: 1.) What is the difference between this mod and the standard "View Active Topics" - except for the exact last 24 hours? I don't understand yet fully, where this mod can be an added value?
The search results will disappear from "View Active Topics" after you read the thread or mark the forum read. I had some users who wanted to see the active topics in the last day regardless of if they had read them or not. I think they got used to this feature on vBulletin boards and got cranky w/o it.
Thanks for your statement. But that's very strange: In my board (3.0.0. Gold) the "View Active Topics" is not influenced by viewing posts, mark-forums-read, logging-out, deleting cookies etc. - It always (!) shows exactly (!) the same topics as your "Today's Posts"-mod, especially when I choose to show active topics of the last 1 day :!:

So, at least for me - there is absolutely no difference... :?

Re: [BETA] Today's Posts 0.2.0

Posted: Sun Aug 31, 2008 2:07 am
by Peter77sx
Hey! glad you came up with this MOD. just one small problem with the apostrophe...

Image



OK I replaced it with ’ I think that works..

Re: [BETA] Today's Posts 0.2.0

Posted: Mon Sep 01, 2008 2:53 pm
by biffstallion
Hi,

Does this MOD exist or work for the last BB2 version ??? If not, what can I do for BB2 ??? I can't upgrade yet so please don't tell me to upgrade ;)

Re: [BETA] Today's Posts 0.2.0

Posted: Wed Sep 17, 2008 10:21 pm
by Anyasha
pgarvin76 wrote:None of my boards are using subsilver2.

Just because your boards don't use subsilver doesn't mean that's the case for everyone else. If you want everyone to be able to use this mod you should write it for both templates.

Open subsilver/templates/overall_header.html:

Find

Code: Select all

<a href="{U_SEARCH_ACTIVE_TOPICS}">{L_SEARCH_ACTIVE_TOPICS}</a>
After, add

Code: Select all

 | <a href="{U_SEARCH_TODAY}">{L_SEARCH_TODAY}</a>
Open subsilver/templates/search_results.html

Find

Code: Select all

		<td class="cat" colspan="7" valign="middle" align="center"><!-- IF S_SELECT_SORT_DAYS or S_SELECT_SORT_KEY or S_SELECT_SORT_DIR --><span class="gensmall">{L_DISPLAY_POSTS}:</span> {S_SELECT_SORT_DAYS}<!-- IF S_SELECT_SORT_KEY or S_SELECT_SORT_DIR -->&nbsp;<span class="gensmall">{L_SORT_BY}:</span> {S_SELECT_SORT_KEY} {S_SELECT_SORT_DIR}<!-- ENDIF -->&nbsp;<input class="btnlite" type="submit" value="{L_GO}" name="sort" /><!-- ENDIF --></td>
Replace with

Code: Select all

		<td class="cat" colspan="7" valign="middle" align="center"><!-- IF S_SELECT_SORT_DAYS or S_SELECT_SORT_KEY or S_SELECT_SORT_DIR --><span class="gensmall"><!-- IF S_SHOW_TOPICS -->{L_DISPLAY_TOPICS}<!-- ELSE -->{L_DISPLAY_POSTS}<!-- ENDIF -->:</span> {S_SELECT_SORT_DAYS}<!-- IF S_SELECT_SORT_KEY or S_SELECT_SORT_DIR -->&nbsp;<span class="gensmall">{L_SORT_BY}:</span> <!-- IF S_SELECT_SORT_KEY -->{S_SELECT_SORT_KEY}&nbsp;<!-- ENDIF -->
				<!-- IF S_SELECT_SORT_DIR -->{S_SELECT_SORT_DIR}<!-- ENDIF --><!-- ENDIF -->&nbsp;<input class="btnlite" type="submit" value="{L_GO}" name="sort" /><!-- ENDIF --></td>
Though it seems to be working for me, I am not sure if the edits to search_results.html are entirely correct, if they are incorrect please post the correct ones.

Re: [BETA] Today's Posts 0.2.0

Posted: Mon Sep 22, 2008 3:39 am
by pgarvin76
Peter77sx wrote:Hey! glad you came up with this MOD. just one small problem with the apostrophe...

Image



OK I replaced it with &#8217; I think that works..
I choose to use a UTF-8 apostrophe. You can also use

Code: Select all

\'
.

Re: [BETA] Today's Posts 0.2.0

Posted: Mon Sep 22, 2008 3:41 am
by pgarvin76
biffstallion wrote:Hi,

Does this MOD exist or work for the last BB2 version ??? If not, what can I do for BB2 ??? I can't upgrade yet so please don't tell me to upgrade ;)
I made this same mod for phpBB2. But back then it was called "Posts in Last 24 hours." You can change the line in the language file to be whatever you want.

http://www.paulgarvin.net/code/posts_in ... _1_mod.zip

Re: [BETA] Today's Posts 0.2.0

Posted: Fri Sep 26, 2008 4:37 am
by pgarvin76
This MOD doesn't get a lot of traffic but I wanted to give a heads up. I will be on vacation and away from a computer for three weeks. Starting 9/26/08 thru 10/18/08. I will answer any posts when I return. Thanks.

Re: [BETA] Today's Posts 0.2.0

Posted: Fri Sep 26, 2008 5:07 am
by Peter77sx
Thanks for the tip, I do remeber escaping it, but that did not seem to work. I am starting overs on a new test board one more time before I convert my site over and I will take second look into it.

Thanks for this MOD. :)

Re: [BETA] Today's Posts 0.2.0

Posted: Sat Oct 25, 2008 10:09 am
by koalaii
Thanks for this mod. Would it be possible to include/exclude some specific forums ?

Thanks

Re: [BETA] Today's Posts 0.2.0

Posted: Mon Nov 24, 2008 7:15 pm
by sedaniel
So I installed this mod, but when I go to my index.php page the link for viewing new posts does not appear. Can someone help me? My site is http://hogwarts-interactive.com.

EDIT: Nvm! Figured it out. Thank you!

Re: [BETA] Today's Posts 0.2.0

Posted: Sun Dec 05, 2010 9:30 am
by tonyvsuk
I tried installing this mod today, but there were errors. I'll have a go later installing manually, but thought I would report the error here.

Tony.

_________________________________________________
styles/prosilver/template/index_body.html
Find
<a href="{U_SEARCH_ACTIVE_TOPIC}">{L_SEARCH_ACTIVE_TOPICS}</a></li>
In-Line Find
</li>
The In-Line Find specified by the MOD could not be found.
The Find specified by the MOD could not be found
_________________________________________________

styles/prosilver/template/search_results.html
Find
<label><!-- IF S_SHOW_TOPICS -->{L_DISPLAY_POSTS}<!-- ELSE -->{L_SORT_BY}</label><label><!-- ENDIF --> {S_SELECT_SORT_DAYS}<!-- IF S_SELECT_SORT_KEY --></label> <label>{S_SELECT_SORT_KEY}</label>
<label>{S_SELECT_SORT_DIR} <!-- ELSE --></label><!-- ENDIF --><input type="submit" name="sort" value="{L_GO}" class="button2" /></label>
Replace With
<!-- IF S_SELECT_SORT_DAYS --><label><!-- IF S_SHOW_TOPICS -->{L_DISPLAY_TOPICS}<!-- ELSE -->{L_DISPLAY_POSTS}<!-- ENDIF -->&nbsp;{S_SELECT_SORT_DAYS}</label><!-- ENDIF -->
<!-- IF S_SELECT_SORT_KEY or S_SELECT_SORT_DIR -->&nbsp;<label>{L_SORT_BY}
<!-- IF S_SELECT_SORT_KEY -->{S_SELECT_SORT_KEY}&nbsp;<!-- ENDIF -->
<!-- IF S_SELECT_SORT_DIR -->{S_SELECT_SORT_DIR}<!-- ENDIF -->
</label><!-- ENDIF -->
<label><input type="submit" name="sort" value="{L_GO}" class="button2" /></label>

The Find specified by the MOD could not be found

_________________________________________________