[OBSOLETE] Search latest 24h 48h 72h v1.0.2
 
 
Post new topic   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    phpMiX.org Forum Index -> phpBB MODs -> Search latest 24h 48h 72h
View previous topic :: View next topic  
Author Message
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Wed Jun 08, 2005 5:30 am    Post subject: [OBSOLETE] Search latest 24h 48h 72h v1.0.2 Reply with quote

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Note:
A new version of this MOD can now be found here:
http://forums.phpmix.org/viewtopic.php?t=594
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


MOD Title: Search latest 24h 48h 72h

MOD Description: This MOD adds a new search feature so it allows to search for posts from latest 24, 48 or 72 hours (results as topics).

MOD Version: 1.0.2


Download: link removed


MOD Header:

Code:
##############################################################
## MOD Title: Search latest 24h 48h 72h
## MOD Author: markus_petrux < nospam@phpmix.com > (Markus) http://www.phpmix.com
## MOD Description: This MOD adds a new search feature so it allows to search for
##                  posts from latest 24, 48 or 72 hours (results as topics).
## MOD Version: 1.0.2
##
## Installation Level: (Easy)
## Installation Time: 5 Minutes
## Files To Edit: 4
##      language/lang_english/lang_main.php
##      includes/page_header.php
##      templates/subSilver/index_body.tpl
##      search.php
## Included Files: none
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
## - MOD related comments:
##   Tested with phpBB 2.0.15
##   This MOD is EasyMOD friendly.
##
##############################################################
## MOD History:
##
## 2005/06/17 - 1.0.2
##   - Changed the way the links are constructed, so all HTML/CSS attributes
##    are now moved to the template, for easy adaption to other styles.
##
## 2005/01/31 - 1.0.0
##   - Initial release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Fri Jun 17, 2005 3:35 pm    Post subject: Re: [RC] Search latest 24h 48h 72h v1.0.2 Reply with quote

ok, the MOD was rejected by the MOD validation process due to some HTML/CSS attributes hardcoded in page_header.php.

I have re-submitted the MOD with the following changes:

OPEN: language/lang_english/lang_main.php

FIND:
Code:
$lang['Search_latest_hours'] = "View latest: %s24h%s %s48h%s %s72h%s";


REPLACE WITH:
Code:
$lang['Search_latest'] = "View latest";
$lang['Search_latest_24h'] = "24h";
$lang['Search_latest_48h'] = "48h";
$lang['Search_latest_72h'] = "72h";


OPEN: includes/page_header.php

FIND:
Code:
   'S_SEARCH_LATEST' => sprintf($lang['Search_latest_hours'], '<a href="'.append_sid('search.'.$phpEx.'?search_id=latest&amp;hours=24').'" class="gensmall">', '</a>', '<a href="'.append_sid('search.'.$phpEx.'?search_id=latest&amp;hours=48').'" class="gensmall">', '</a>', '<a href="'.append_sid('search.'.$phpEx.'?search_id=latest&amp;hours=72').'" class="gensmall">', '</a>'),


REPLACE WITH:
Code:
   'L_SEARCH_LATEST' => $lang['Search_latest'],
   'L_SEARCH_LATEST_24H' => $lang['Search_latest_24h'],
   'U_SEARCH_LATEST_24H' => append_sid('search.'.$phpEx.'?search_id=latest&amp;hours=24'),
   'L_SEARCH_LATEST_48H' => $lang['Search_latest_48h'],
   'U_SEARCH_LATEST_48H' => append_sid('search.'.$phpEx.'?search_id=latest&amp;hours=48'),
   'L_SEARCH_LATEST_72H' => $lang['Search_latest_72h'],
   'U_SEARCH_LATEST_72H' => append_sid('search.'.$phpEx.'?search_id=latest&amp;hours=72'),


OPEN: templates/subSilver/index_body.tpl

FIND:
Code:
      {S_SEARCH_LATEST}<br />


REPLACE WITH:
Code:
      {L_SEARCH_LATEST}:&nbsp;<a href="{U_SEARCH_LATEST_24H}" class="gensmall">{L_SEARCH_LATEST_24H}</a>&nbsp;<a href="{U_SEARCH_LATEST_48H}" class="gensmall">{L_SEARCH_LATEST_48H}</a>&nbsp;<a href="{U_SEARCH_LATEST_72H}" class="gensmall">{L_SEARCH_LATEST_72H}</a><br />


Topic starter has been updated, as well as the ZIP in the download section.

Therefore, the version number of the MOD has been changed to: 1.0.2

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Wed Jun 29, 2005 2:07 am    Post subject: Re: [MOD-DB] Search latest 24h 48h 72h v1.0.2 Reply with quote

This MOD has been kindly approved by the phpBB MOD Team. Smile

Check out its Release Announcement topic:
http://www.phpbb.com/phpBB/viewtopic.php?t=299341

Download:
Please use the phpBB MODs Database (Add-On's category).

Support, feeback, suggestions:
Feel free to use this forum, here at phpMiX.

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Wed Jul 27, 2005 3:31 am    Post subject: Re: [OBSOLETE] Search latest 24h 48h 72h v1.0.2 Reply with quote

Version 1.0.2 is now obsolete.

Version 1.1.0 of this MOD can now be found here:
http://forums.phpmix.org/viewtopic.php?t=594

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    phpMiX.org Forum Index -> phpBB MODs -> Search latest 24h 48h 72h All times are GMT + 1 Hour
 
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum