Search Most Read Module (5.1 and 5.2 ready)
Posted by Oliver Riesen-Mallmann
All files from this thread
File Name | File Size | Posted by | Date | ||
---|---|---|---|---|---|
search_most_read-1.1.0.zip | 13.6 KB | open | download | Oliver Riesen-Mallmann | 09/07/2006 | Read message |
Search Most Read Module (5.1 and 5.2 ready) August 09, 2006 01:57AM |
Admin Registered: 18 years ago Posts: 746 |
Search Most Read Module (5.1 and 5.2 ready)
Adds search for most read posts.
Tested on version 5.1.16 and CVS (till revision 1334) for MySQL. DB-layer for mysqli and postgresql included but not tested. Please give me a feedback if this parts are working for you.
License:
Free to use, modify, or redistribute this code so long as I am given credit for the original development somewhere. This code comes with absolutly no warranty.
Installation:
1. Unpack the archive.
2. Move the directory "search_most_read" to the directory "mods" within your Phorum installation. Don't change the directory name!
3. Move search-most-read.php to your phorum-directory. Rename the file if you want to use a localised file name (in this case you have to change the file name also in the settings).
4. Move search-most-read.tpl, search-most-read-form.tpl and search-most-read-form-header.tpl to your template-directory.
5. To show a link to the most read topic page on the list page, edit list.tpl and list_threads.tpl. Add the following code just behind the •{INCLUDE "loginout_menu"}:
6. To show a search form, edit search.tpl. Add the following lines just before
the last </table>:
7. Login as administrator in Phorum's administrative interface and go to the
"Modules" section.
8. Enable the module "Search Most Read Module".
Update from 1.0 to 1.1:
Follow installation instructions. Additional disable and enable the module once.
Language support:
This module supports multiple languages.
The following languages are included:
- Englisch
- German (Sie)
- German (Du) male
- German (Du) female
If you want to translate the module to a new language, you'll have to do the following:
Copy lang/english.php to lang/yourlang.php (yourlang.php must have the same name as Phorum's main language file that you use). After this, translate the strings in lang/yourlang.php.
If you have created a translation for this module, please post a zip file containing lang/yourlang.php in the module thread at phorum.org, so the translation can be added to the module package.
Sanity Checks:
If you have problems with this module login as administrator in Phorum's administrative interface and go to the "System Sanity Checks" section. Check for warnings or errors for the Search Most Read Module.
Changelog:
2006/08/09 version 1.0.0 Initial version by Oliver Riesen (oliver@riesen.org)
2006/09/07 version 1.1.0 by Oliver Riesen (oliver@riesen.org)
- Support for future version 5.2.
- Added change sets
- 1204
- 1260
- 1229
- 1330
- Added sanity checks
Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.
Edited 6 time(s). Last edit at 09/07/2006 05:50AM by Oliver Riesen.
Adds search for most read posts.
Tested on version 5.1.16 and CVS (till revision 1334) for MySQL. DB-layer for mysqli and postgresql included but not tested. Please give me a feedback if this parts are working for you.
License:
Free to use, modify, or redistribute this code so long as I am given credit for the original development somewhere. This code comes with absolutly no warranty.
Installation:
1. Unpack the archive.
2. Move the directory "search_most_read" to the directory "mods" within your Phorum installation. Don't change the directory name!
3. Move search-most-read.php to your phorum-directory. Rename the file if you want to use a localised file name (in this case you have to change the file name also in the settings).
4. Move search-most-read.tpl, search-most-read-form.tpl and search-most-read-form-header.tpl to your template-directory.
5. To show a link to the most read topic page on the list page, edit list.tpl and list_threads.tpl. Add the following code just behind the •{INCLUDE "loginout_menu"}:
{IF URL->SEARCH_MOST_READ}•<a class="PhorumNavLink" href="{URL->SEARCH_MOST_READ}">{LANG->SEARCH_MOST_READ}</a>{/IF}
6. To show a search form, edit search.tpl. Add the following lines just before
the last </table>:
<tr> <td> </td> <td style="width: 10px"> </td> <td> </td> </tr> <tr> <td class="PhorumStdBlockHeader PhorumNarrowBlock" style="text-align: left;">{INCLUDE "search-most-read-form-header"}</td> <td style="width: 10px"> </td> <td> </td> </tr> <tr> <td class="PhorumStdBlock PhorumNarrowBlock" style="padding: 10px;"> {INCLUDE "search-most-read-form"} </td> <td style="width: 10px"> </td> <td> </td> </tr>
7. Login as administrator in Phorum's administrative interface and go to the
"Modules" section.
8. Enable the module "Search Most Read Module".
Update from 1.0 to 1.1:
Follow installation instructions. Additional disable and enable the module once.
Language support:
This module supports multiple languages.
The following languages are included:
- Englisch
- German (Sie)
- German (Du) male
- German (Du) female
If you want to translate the module to a new language, you'll have to do the following:
Copy lang/english.php to lang/yourlang.php (yourlang.php must have the same name as Phorum's main language file that you use). After this, translate the strings in lang/yourlang.php.
If you have created a translation for this module, please post a zip file containing lang/yourlang.php in the module thread at phorum.org, so the translation can be added to the module package.
Sanity Checks:
If you have problems with this module login as administrator in Phorum's administrative interface and go to the "System Sanity Checks" section. Check for warnings or errors for the Search Most Read Module.
Changelog:
2006/08/09 version 1.0.0 Initial version by Oliver Riesen (oliver@riesen.org)
2006/09/07 version 1.1.0 by Oliver Riesen (oliver@riesen.org)
- Support for future version 5.2.
- Added change sets
- 1204
- 1260
- 1229
- 1330
- Added sanity checks
Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.
Edited 6 time(s). Last edit at 09/07/2006 05:50AM by Oliver Riesen.
Re: Search Most Read Module (5.1 and 5.2 ready) September 07, 2006 05:48AM |
Admin Registered: 18 years ago Posts: 746 |
New version 1.1.0:
Update from 1.0 to 1.1:
Follow installation instructions. Additional disable and enable the module once.
Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.
2006/09/07 version 1.1.0 by Oliver Riesen (oliver@riesen.org) - Support for future version 5.2. - Added change sets - 1204 - 1260 - 1229 - 1330 - Added sanity checks
Update from 1.0 to 1.1:
Follow installation instructions. Additional disable and enable the module once.
Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.
Sorry, only registered users may post in this forum.