Abeceda mod (Sort topics alphabetically) 1.0.2

[en] Add panel with letters to each forum
[sk] Modifikácia na pridanie písmen nad každé fórum - po kliknutí na písmeno zobrazí iba témy, ktorých názvy na neho začínajú

Abeceda mod (Sort topics alphabetically) 1.0.2

Postby drndos » Sun Mar 15, 2009 12:58 pm

MOD Title (EN): Sort topics alphabetically
MOD Title (SK): Abeceda mod
MOD Description (EN): This MOD allows you to sort topics alphabetically within a forum.
MOD Description (SK): Táto modifikácia vám umožní vybrať témy začínajúce sa na dané písmeno.
MOD Version: 1.0.2

Works with: phpBB 3.0.x
Language: English, Slovak

Author: Drndos
License: GNU General Public License v2

Screenshot: prosilver
Demo board: prosilver

MOD Format: ModX

NOTE(EN): This Version is fixed and should work with all phpBB3 boards.
NOTE(SK): Táto verzia je opravená a mala by fungovať so všetkými fórami phpBB3.

Download :
abeceda.zip
(46.24 KiB) Downloaded 225 times

If you like this MOD please donate (ak sa vám modifikácia páči prosim vás prispejte)
User avatar
drndos
Site Admin
Site Admin
 
Posts: 234
Joined: Thu Feb 19, 2009 6:07 pm

Re: Abeceda mod (Sort topics alphabetically) 1.0.2

Postby drndos » Sun Mar 15, 2009 1:02 pm

HOW TO UPGRADE

info:
FIXED problém s pagination
FIXED problem with pagination

Ak máte verziu 1.0.1 nie je potrebné sťahovať túto verziu, stačí vykonať následovné:
Otvorte viewforum.php
Nájdite riadok:
Code: Select all
PAGINATION

V riadku nájdite:
Code: Select all
''

nahraďte s:
Code: Select all
'&start_letter=' . $start_letter


If you have version 1.0.1 just do this:
Open viewforum.php
Find line:
Code: Select all
PAGINATION

Inline find:
Code: Select all
''

replace with:
Code: Select all
'&start_letter=' . $start_letter
User avatar
drndos
Site Admin
Site Admin
 
Posts: 234
Joined: Thu Feb 19, 2009 6:07 pm

Re: Abeceda mod (Sort topics alphabetically) 1.0.2

Postby drndos » Sat Mar 28, 2009 6:02 pm

ZERO DUPLICATE COMPATIBILITY (only if you have installed SEO mod)

Find (Nájdi):
Code: Select all
$start      = request_var('start', 0);

After add (Za pridaj):
Code: Select all
// Start Sort Topics Alphabetically MOD
$letters_array = array('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9');
$start_letter = request_var('start_letter', '');
$start_letter = str_replace("\'", "''", $start_letter);

if ( !in_array($start_letter, $letters_array) )
{
   $start_letter = '';
}
// End Sort Topics Alphabetically MOD

Find and Delete (Nájdi a vymaž):
Code: Select all
// Start Sort Topics Alphabetically MOD
$letters_array = array('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9');
$start_letter = request_var('start_letter', '');
$start_letter = str_replace("\'", "''", $start_letter);

if ( !in_array($start_letter, $letters_array) )
{
   $start_letter = '';
}
// End Sort Topics Alphabetically MOD

Find (nájdi):
Code: Select all
'sd' => array('val' => $sort_dir, 'keep' => true),

After add (Za pridaj):
Code: Select all
'start_letter' => array('val' => $start_letter, 'keep' => true),
User avatar
drndos
Site Admin
Site Admin
 
Posts: 234
Joined: Thu Feb 19, 2009 6:07 pm


Return to Sort topics alphabetically / Abeceda

Who is online

Users browsing this forum: No registered users and 1 guest