форум vBSupport.ru > vBulletin > vBulletin 4.0.x-4.1.х > Хаки, моды и скрипты 4.0.x-4.1.х
Register Меню vBsupport Изображения Files Manager О рекламе Today's Posts Search
  • Родная гавань
  • Блок РКН снят
  • Premoderation
  • For English speaking users
  • Каталог Фрилансеров
  • If you want to buy some product or script
  • Администраторам
VBsupport перешел с домена .ORG на родной .RU Ура! Пожалуйста, обновите свои закладки - VBsupport.ru
Блок РКН снят, форум доступен на всей территории России, включая новые терртории, без VPN
На форуме введена премодерация ВСЕХ новых пользователей

Почта с временных сервисов, типа mailinator.com, gawab.com и/или прочих, которые предоставляют временный почтовый ящик без регистрации и/или почтовый ящик для рассылки спама, отслеживается и блокируется, а так же заносится в спам-блок форума, аккаунты удаляются
for English speaking users:
You may be surprised with restriction of access to the attachments of the forum. The reason is the recent change in vbsupport.org strategy:

- users with reputation < 10 belong to "simple_users" users' group
- if your reputation > 10 then administrator (kerk, Luvilla) can decide to move you into an "improved" group, but only manually

Main idea is to increase motivation of community members to share their ideas and willingness to support to each other. You may write an article for the subject where you are good enough, you may answer questions, you may share vbulletin.com/org content with vbsupport.org users, receiving "thanks" equal your reputation points. We should not only consume, we should produce something.

- you may:
* increase your reputation (doing something useful for another members of community) and being improved
* purchase temporary access to the improved category:
10 $ for 3 months. - this group can download attachments, reputation/posts do not matter.
20 $ for 3 months. - this group can download attachments, reputation/posts do not matter + adds eliminated + Inbox capacity increased + files manager increased permissions.

Please contact kerk or Luvilla regarding payments.

Important!:
- if your reputation will become less then 0, you will be moved into "simple_users" users' group automatically.*
*for temporary groups (pre-paid for 3 months) reputation/posts do not matter.
Уважаемые пользователи!

На форуме открыт новый раздел "Каталог фрилансеров"

и отдельный раздел для платных заказов "Куплю/Закажу"

Если вы хотите приобрести какой то скрипт/продукт/хак из каталогов перечисленных ниже:
Каталог модулей/хаков
Ещё раз обращаем Ваше внимание: всё, что Вы скачиваете и устанавливаете на свой форум, Вы устанавливаете исключительно на свой страх и риск.
Сообщество vBSupport'а физически не в состоянии проверять все стили, хаки и нули, выкладываемые пользователями.
Помните: безопасность Вашего проекта - Ваша забота.
Убедительная просьба: при обнаружении уязвимостей или сомнительных кодов обязательно отписывайтесь в теме хака/стиля
Спасибо за понимание
 
 
 
 
CityCat
Эксперт
 
CityCat's Avatar
Default Alphabetical Forum Filtering
2

Взято отсюда

Alphabetical Forum Filtering

Description:
Add an alphabetical forum filtering on Forumdisplay.

Installation:
Import "product-alphabetical_forum_filter.xml" as a product, overwrite if it's already installed
Where to set option:
Settings-> Options-> Forum Display Options (forumdisplay)->
Forums to Enable Alphabetical Filtering

Languages:
- English

History:
25-12-10: v4.0 First Release
26-12-10: v4.0.1 Fixed css problems when storing css as files. Added a vBulletin Setting to choose forums where enable

----------
I did not add any setting or option to this mod. I would like that you decide which settings or options should be added. Please post feedback in thread.

This hack is created for your use free of charge. No payment is requested. However, if you would like to donate money for the work I put in to this hack, a donation would show your appreciation.
Attached Thumbnails
alphabetical_forum_filter.jpg   alphabetical_forum_filter_option.png  
Attached Files
File Type: xml product-alphabetical_forum_filter.xml (6.3 KB, 4 views)
File Type: xml product-alphabetical_forum_filter-4.0.1.xml (9.2 KB, 10 views)
Bot
Yandex Bot Yandex Bot is online now
 
Join Date: 05.05.2005
Реклама на форуме А что у нас тут интересного? =)
 
 
Dyuhaha
Эксперт
 
Dyuhaha's Avatar
Default
0

Ок! Огромное спасибо. Именно то что нужно!
У кого-нибудь есть идеи как прикрутить к нему русский алфавит? Пробовал менять рег. выр. \"^[a-zA-Z]\" на \"^[а-яА-Я]\" в XML - безрезультатно...
 
 
Dyuhaha
Эксперт
 
Dyuhaha's Avatar
Default
0

Что-ж...Настроил сам...)))
Может кому-то пригодится:
Идём в аминпанель - управление модулями - Add Alphabetical Forum Filtering(forumdisplay_complete)

Меняем код на такой:
PHP Code:
if (in_array($foruminfo['forumid'], explode(','$vbulletin->options['forumfiltering_forums'])))
{
    
$url fetch_seo_url('forum'$foruminfo$pageinfo_pagenav);

    
$selectedletter =& $ltr;

    
$currentletter $vbphrase['reset'];
    
$linkletter urlencode('reset');
    
$show['selectedletter'] = $selectedletter == 'reset' true false;
    
$templater vB_Template::create('forumdisplay_letter');
    
$templater->register('url'$url);
    
$templater->register('currentletter'$currentletter);
    
$templater->register('linkletter'$linkletter);
    
$letterbits $templater->render();

    
$currentletter '#';
    
$linkletter urlencode('#');
    
$show['selectedletter'] = $selectedletter == '#' true false;
    
$templater vB_Template::create('forumdisplay_letter');
    
$templater->register('url'$url);
    
$templater->register('currentletter'$currentletter);
    
$templater->register('linkletter'$linkletter);
    
$letterbits .= $templater->render();

    for (
$i 192$i 198$i++)
    {
        
$currentletter chr($i);
        
$linkletter =& $currentletter;
        
$show['selectedletter'] = $selectedletter == $currentletter true false;
        
$templater vB_Template::create('forumdisplay_letter');
        
$templater->register('url'$url);
        
$templater->register('currentletter'$currentletter);
        
$templater->register('linkletter'$linkletter);
        
$letterbits .= $templater->render();
    }
    for (
$i 198$i 218$i++)
    {
        
$currentletter chr($i);
        
$linkletter =& $currentletter;
        
$show['selectedletter'] = $selectedletter == $currentletter true false;
        
$templater vB_Template::create('forumdisplay_letter');
        
$templater->register('url'$url);
        
$templater->register('currentletter'$currentletter);
        
$templater->register('linkletter'$linkletter);
        
$letterbits .= $templater->render();
    }
        for (
$i 221$i 224$i++)
    {
        
$currentletter chr($i);
        
$linkletter =& $currentletter;
        
$show['selectedletter'] = $selectedletter == $currentletter true false;
        
$templater vB_Template::create('forumdisplay_letter');
        
$templater->register('url'$url);
        
$templater->register('currentletter'$currentletter);
        
$templater->register('linkletter'$linkletter);
        
$letterbits .= $templater->render();
    }
    
$templater vB_Template::create('forumdisplay_letters');
    
$templater->register('letterbits'$letterbits);
    
$template_hook['forumdisplay_above_threadlist'] .= $templater->render();

Далее:
аминпанель - управление модулями - Alphabetical Forum Filtering(forumdisplay_query_threadid)

Меняем код на:
PHP Code:
if (in_array($foruminfo['forumid'], explode(','$vbulletin->options['forumfiltering_forums'])))
{
    if (!empty(
$ltr))
    {
        switch(
$ltr)
        {
            case 
'reset':
                break;
            case 
'#':
                
$hook_query_where .= " AND thread.title NOT REGEXP(\"^[а-яА-Я]\")";
                break;
            default:
                
$ltr chr(intval(ord($ltr)));
                
$hook_query_where .= " AND thread.title LIKE(\"" $db->escape_string_like($ltr) . "%\")";
        }
    }

зы Наверное криво переделал, но на 4.0.8 работает!))
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off




All times are GMT +4. The time now is 04:53 AM.


Powered by vBulletin® Version 3.0.7
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.