News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Topics Filter v3.0

Started by M-DVD, October 10, 2007, 06:57:55 PM

Previous topic - Next topic

falguni1

Quote from: karlbenson on December 27, 2007, 05:04:41 PM
Ok, I've just uploaded version 2.0
I tried to get unread topics and attachments to show, but I couldn't do it. I spent days trying to get it working without success.  I can't' afford to spend so much time on one mod.

TOPICS FILTER v2.0

2.0 - 28th December 2007
o New version, substantially re-wrote mod
o Added alphanum bar to search for starting letter with per board setting
o Added over 365 days filter option
o Added poll/locked/hot topics filters

you will suceed I have full faith in your coding skills.

very nice mod take your own time dear.

atachment filtering is very important and special feature. you can do it.

also the filter is placed below the topics by default, it should be handy and in view so I feel the topic filter should be placed above all topics by default.

karlbenson

There was a reason I put it at the bottom originally, I forgot the reason though.

*I'll have a think.

falguni1

Quote from: karlbenson on December 28, 2007, 08:21:55 AM
There was a reason I put it at the bottom originally, I forgot the reason though.

*I'll have a think.

lol

put it at top important features should be handy and visible and at top.

karlbenson

#23
I think the original reason for having it at the bottom is because it wouldn't work with original way I was doing the mod.
I couldn't make it so the edits were similar for each theme.

It will work at the top. I just tested it.

But personally I'd prefer to have it at the bottom.

If you want it at the top you will need to move the code in MessageIndex.template.php

Edit*

falguni1

I dont get it.

does it work at top or bottom.

let it be nice mod.

I still feel it should be at top.

if you have google search in your site, will you put it at top or bottom.

I will put it at top. so I feel it should be at top.

karlbenson

It works at the top.

But you're free to customize/move it whereever you want on your forum.

falguni1

how to do that.

I am having some mods at top like

Social Bookmarks
vMessageIcon Filters
Digg Topic.

karlbenson

Use the package parser.

Find the code that was inserted into MessageIndex.template.php (so you know what the starting and ending points of the code)

Find that in your MessageIndex.template.php
Cut it, and move it to just above the line

foreach ($context['topics'] as $topic)
{


I usually don't make mods for other people. I make them how I want them, for my own forum.
So I doubt by default I'll be adding functionality to automatically choose where to place it (because it would duplicate the code) and I personally prefer it at the bottom.

falguni1


Hoochie Coochie Man

Hi karlbenson,
Here is the new Turkish Language
// Topics Filter Mod - Turkish Language by HOOCHIE COOCHIE MAN
$txt['filter_saved'] = 'Kayıtlı';
$txt['filter_date_title'] = 'Tarih Sırasına göre..';
$txt['filter_date_0'] = 'Hiç';
$txt['filter_date_1'] = 'Bugün';
$txt['filter_date_2'] = 'Dünden İtibaren';
$txt['filter_date_7'] = 'Son 7 Gün';
$txt['filter_date_30'] = 'Son 30 Gün';
$txt['filter_date_60'] = 'Son 60 Gün';
$txt['filter_date_90'] = 'Son 90 Gün';
$txt['filter_date_180'] = 'Son 180 Gün';
$txt['filter_date_270'] = 'Son 270 Gün';
$txt['filter_date_365'] = 'Son 365 Gün';
$txt['filter_date_366'] = '365 Gün Üzeri';
$txt['filter_topics_title'] = 'Mesaj Sayısına göre..';
$txt['filter_topics_0'] = 'Hiç';
$txt['filter_topics_1'] = 'Cevapsız Konular';
$txt['filter_topics_2'] = 'Beğenilen Konular';
$txt['filter_topics_3'] = 'Çok Beğenilen Konular';
$txt['filter_topics_4'] = 'Anketler';
$txt['filter_topics_5'] = 'Kilitli Konular';
$txt['filter_topics_6'] = 'Kendi Konularınız';
$txt['filter_paginate_title'] = 'Sayfa Başına göre..';
$txt['filter_paginate_10'] = 10 ;
$txt['filter_paginate_20'] = 20 ;
$txt['filter_paginate_30'] = 30 ;
$txt['filter_paginate_40'] = 40 ;
$txt['filter_paginate_50'] = 50 ;
$txt['filter_paginate_forumdefault'] = 'Forum Varsayılan';
$txt['filter_paginate_perpage'] = 'Sayfa Başına';
$txt['filter_alphanum'] = 'Alfabetik Sıralamayı Aktif Et';
$txt['filter_alphanum_desc'] = 'Konuları Alfabetik Sırala';
$txt['filter_alphanum_all'] = 'Hepsi';
İnadına SMF 1.1.X

karlbenson

Thanks Hoochie Coochie Man

I had to remove the old translations due to all the changes. ;)

I'll add them asap.
Thanks again.

Hoochie Coochie Man

Quote from: karlbenson on January 02, 2008, 11:48:45 AM
Thanks Hoochie Coochie Man

I had to remove the old translations due to all the changes. ;)

I'll add them asap.
Thanks again.

You are welcome buddy
I already understand when you remove :D
Take care..
İnadına SMF 1.1.X

ne.miguelito

Translated for the Portuguese language:

<file name="$languagedir/Modifications.portuguese.php" error="skip">
<!--// Adds the language strings used by this modification //-->
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
$txt['filter_saved'] = '(Salvo)';
$txt['filter_date_title'] = '=Filtro de Data dos Tópicos=';
$txt['filter_date_0'] = 'Nenhum';
$txt['filter_date_1'] = 'Hoje';
$txt['filter_date_2'] = 'Desde Ontem';
$txt['filter_date_7'] = 'Nos Últimos 7 Dias';
$txt['filter_date_30'] = 'Nos Últimos 30 Dias';
$txt['filter_date_60'] = 'Nos Últimos 60 Dias';
$txt['filter_date_90'] = 'Nos Últimos 90 Dias';
$txt['filter_date_180'] = 'Nos Últimos 180 Dias';
$txt['filter_date_270'] = 'Nos Últimos 270 Dias';
$txt['filter_date_365'] = 'Nos Últimos 365 Dias';
$txt['filter_date_366'] = 'Há Mais de 365 Dias';
$txt['filter_topics_title'] = '=Filtro de Tópicos/Mensagens=';
$txt['filter_topics_0'] = 'Nenhum';
$txt['filter_topics_1'] = 'Tópicos Sem Resposta';
$txt['filter_topics_2'] = 'Tópicos Quentes';
$txt['filter_topics_3'] = 'Tópicos Muito Quentes';
$txt['filter_topics_4'] = 'Votações';
$txt['filter_topics_5'] = 'Tópicos Trancados';
$txt['filter_topics_6'] = 'Tópicos Próprios';
$txt['filter_paginate_title'] = '=Tópicos Por Página=';
$txt['filter_paginate_10'] = 10 ;
$txt['filter_paginate_20'] = 20 ;
$txt['filter_paginate_30'] = 30 ;
$txt['filter_paginate_40'] = 40 ;
$txt['filter_paginate_50'] = 50 ;
$txt['filter_paginate_forumdefault'] = 'Padrão do Fórum';
$txt['filter_paginate_perpage'] = 'Por Página';
$txt['filter_alphanum'] = 'Activar Barra Alfanumérica do Filtro';
$txt['filter_alphanum_desc'] = 'Filtrar tópicos começados pelo carácter';
$txt['filter_alphanum_all'] = 'Todos';

]]></add>
</operation>
</file>

<file name="$languagedir/Modifications.portuguese-utf8.php" error="skip">
<!--// Adds the language strings used by this modification //-->
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
$txt['filter_saved'] = '(Salvo)';
$txt['filter_date_title'] = '=Filtro de Data dos Tópicos=';
$txt['filter_date_0'] = 'Nenhum';
$txt['filter_date_1'] = 'Hoje';
$txt['filter_date_2'] = 'Desde Ontem';
$txt['filter_date_7'] = 'Nos Últimos 7 Dias';
$txt['filter_date_30'] = 'Nos Últimos 30 Dias';
$txt['filter_date_60'] = 'Nos Últimos 60 Dias';
$txt['filter_date_90'] = 'Nos Últimos 90 Dias';
$txt['filter_date_180'] = 'Nos Últimos 180 Dias';
$txt['filter_date_270'] = 'Nos Últimos 270 Dias';
$txt['filter_date_365'] = 'Nos Últimos 365 Dias';
$txt['filter_date_366'] = 'Há Mais de 365 Dias';
$txt['filter_topics_title'] = '=Filtro de Tópicos/Mensagens=';
$txt['filter_topics_0'] = 'Nenhum';
$txt['filter_topics_1'] = 'Tópicos Sem Resposta';
$txt['filter_topics_2'] = 'Tópicos Quentes';
$txt['filter_topics_3'] = 'Tópicos Muito Quentes';
$txt['filter_topics_4'] = 'Votações';
$txt['filter_topics_5'] = 'Tópicos Trancados';
$txt['filter_topics_6'] = 'Tópicos Próprios';
$txt['filter_paginate_title'] = '=Tópicos Por Página=';
$txt['filter_paginate_10'] = 10 ;
$txt['filter_paginate_20'] = 20 ;
$txt['filter_paginate_30'] = 30 ;
$txt['filter_paginate_40'] = 40 ;
$txt['filter_paginate_50'] = 50 ;
$txt['filter_paginate_forumdefault'] = 'Padrão do Fórum';
$txt['filter_paginate_perpage'] = 'Por Página';
$txt['filter_alphanum'] = 'Activar Barra Alfanumérica do Filtro';
$txt['filter_alphanum_desc'] = 'Filtrar tópicos começados pelo carácter';
$txt['filter_alphanum_all'] = 'Todos';


]]></add>
</operation>
</file>



a question:

how to list topics started in ".([?!+*-_!#$%&/{="...

thank you

karlbenson

Thanks.
The mod doesn't have the ability to sort by non-alphanumeric characters.

It checks the starting letter for security reasons, so even if you tried to sneak it into the url, it wouldn't work.

Once I had redone the mod I did look into having 'other characters' but no other modification for any software did it, and mysql didnt do it very well.

karlbenson

2.1 - 4th January 2008
o Added Turkish/Turkish-utf8 (Thanks Hoochie Coochie Man)
o Added Portuguese/Portuguese-utf8 (Thanks ne.miguelito)

qubbah

#35
i got modification parse error... while installing....

can i go to install or....is there other instruction....

tq

kamili34


Marook

There is a bug in the mod (i think). If you select a filter which returns no threads, the filter bar dissapears and also no threads were shown. In this case you're unable to remove the filter...

btw, a great mod!
SMF Rulez ;) | Meet me home ! | My Mods

karlbenson

The filter bar shouldn't disappear.

What theme are you using?

Other mods installed?

Marook

i itested it in your demo-forum :)
SMF Rulez ;) | Meet me home ! | My Mods

Advertisement: