текстовые категории / алфавит / переводы

admin
Site Admin
Posts: 37249
Joined: Wed Sep 10, 2008 11:43 am

Re: текстовые категории / алфавит / переводы

Post by admin »

Тогда не знаю
скидывайте админку и какой темпелейт смотреть
Don't forget to run script update
mega
Posts: 529
Joined: Fri Aug 07, 2015 6:25 pm

Re: текстовые категории / алфавит / переводы

Post by mega »

admin wrote:Тогда не знаю
скидывайте админку и какой темпелейт смотреть
скинул админку
admin
Site Admin
Posts: 37249
Joined: Wed Sep 10, 2008 11:43 am

Re: текстовые категории / алфавит / переводы

Post by admin »

Пока нет примера на чем смотреть баг.
Don't forget to run script update
mega
Posts: 529
Joined: Fri Aug 07, 2015 6:25 pm

Re: текстовые категории / алфавит / переводы

Post by mega »

admin wrote:Пока нет примера на чем смотреть баг.
возвращаемся к старой проблеме )

по прежнему косяк с алфавитом и переводами

как перевести заглавные буквы алфавита ? у нас 25+ языков

http://prntscr.com/inz7kj - это выбран немецкий язык на скришноте, следовательно буквы должны быть на немецком

из таких мелочей складываются хорошие сайты, давайте победим эту проблему
admin
Site Admin
Posts: 37249
Joined: Wed Sep 10, 2008 11:43 am

Re: текстовые категории / алфавит / переводы

Post by admin »

Как конкретно выводиться в темпелйте этот кусок ?
Don't forget to run script update
mega
Posts: 529
Joined: Fri Aug 07, 2015 6:25 pm

Re: текстовые категории / алфавит / переводы

Post by mega »

admin wrote:Как конкретно выводиться в темпелйте этот кусок ?

Code: Select all

<!-- All Categories -->

                <section class="sc">

                    <div class="wr">

                        <div class="sh">
                            <h2><?=$lang['heading_categories']?></h2>
                        </div>

                        <div class="ctg">
<category num=1-1 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=a><b>A</b></category><category order=alphabet num=1-8 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=a><a href="<?=$url_lng_prefix?>/<?php echo str_replace(" ","-", mb_strtolower("<!--CATEGORY_NAME-->")); ?>/"><?=mb_ucfirst("<!--CATEGORY_CUSTOM_NAME-->")?><span>(<!--TOTAL_ITEMS-->)</span></a></category>
<category num=1-1 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=b><b>B</b></category><category order=alphabet num=1-8 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=b><a href="<?=$url_lng_prefix?>/<?php echo str_replace(" ","-", mb_strtolower("<!--CATEGORY_NAME-->")); ?>/"><?=mb_ucfirst("<!--CATEGORY_CUSTOM_NAME-->")?><span>(<!--TOTAL_ITEMS-->)</span></a></category>
<category num=1-1 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=c><b>C</b></category><category order=alphabet num=1-8 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=c><a href="<?=$url_lng_prefix?>/<?php echo str_replace(" ","-", mb_strtolower("<!--CATEGORY_NAME-->")); ?>/"><?=mb_ucfirst("<!--CATEGORY_CUSTOM_NAME-->")?><span>(<!--TOTAL_ITEMS-->)</span></a></category>
<category num=1-1 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=d><b>D</b></category><category order=alphabet num=1-8 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=d><a href="<?=$url_lng_prefix?>/<?php echo str_replace(" ","-", mb_strtolower("<!--CATEGORY_NAME-->")); ?>/"><?=mb_ucfirst("<!--CATEGORY_CUSTOM_NAME-->")?><span>(<!--TOTAL_ITEMS-->)</span></a></category>
<category num=1-1 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=e><b>E</b></category><category order=alphabet num=1-8 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=e><a href="<?=$url_lng_prefix?>/<?php echo str_replace(" ","-", mb_strtolower("<!--CATEGORY_NAME-->")); ?>/"><?=mb_ucfirst("<!--CATEGORY_CUSTOM_NAME-->")?><span>(<!--TOTAL_ITEMS-->)</span></a></category>
<category num=1-1 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=f><b>F</b></category><category order=alphabet num=1-8 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=f><a href="<?=$url_lng_prefix?>/<?php echo str_replace(" ","-", mb_strtolower("<!--CATEGORY_NAME-->")); ?>/"><?=mb_ucfirst("<!--CATEGORY_CUSTOM_NAME-->")?><span>(<!--TOTAL_ITEMS-->)</span></a></category>
<category num=1-1 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=g><b>G</b></category><category order=alphabet num=1-8 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=g><a href="<?=$url_lng_prefix?>/<?php echo str_replace(" ","-", mb_strtolower("<!--CATEGORY_NAME-->")); ?>/"><?=mb_ucfirst("<!--CATEGORY_CUSTOM_NAME-->")?><span>(<!--TOTAL_ITEMS-->)</span></a></category>
<category num=1-1 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=h><b>H</b></category><category order=alphabet num=1-8 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=h><a href="<?=$url_lng_prefix?>/<?php echo str_replace(" ","-", mb_strtolower("<!--CATEGORY_NAME-->")); ?>/"><?=mb_ucfirst("<!--CATEGORY_CUSTOM_NAME-->")?><span>(<!--TOTAL_ITEMS-->)</span></a></category>
<category num=1-1 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=i><b>I</b></category><category order=alphabet num=1-8 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=i><a href="<?=$url_lng_prefix?>/<?php echo str_replace(" ","-", mb_strtolower("<!--CATEGORY_NAME-->")); ?>/"><?=mb_ucfirst("<!--CATEGORY_CUSTOM_NAME-->")?><span>(<!--TOTAL_ITEMS-->)</span></a></category>
<category num=1-1 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=j><b>J</b></category><category order=alphabet num=1-8 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=j><a href="<?=$url_lng_prefix?>/<?php echo str_replace(" ","-", mb_strtolower("<!--CATEGORY_NAME-->")); ?>/"><?=mb_ucfirst("<!--CATEGORY_CUSTOM_NAME-->")?><span>(<!--TOTAL_ITEMS-->)</span></a></category>
<category num=1-1 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=k><b>K</b></category><category order=alphabet num=1-8 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=k><a href="<?=$url_lng_prefix?>/<?php echo str_replace(" ","-", mb_strtolower("<!--CATEGORY_NAME-->")); ?>/"><?=mb_ucfirst("<!--CATEGORY_CUSTOM_NAME-->")?><span>(<!--TOTAL_ITEMS-->)</span></a></category>
<category num=1-1 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=l><b>L</b></category><category order=alphabet num=1-8 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=l><a href="<?=$url_lng_prefix?>/<?php echo str_replace(" ","-", mb_strtolower("<!--CATEGORY_NAME-->")); ?>/"><?=mb_ucfirst("<!--CATEGORY_CUSTOM_NAME-->")?><span>(<!--TOTAL_ITEMS-->)</span></a></category>
<category num=1-1 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=m><b>M</b></category><category order=alphabet num=1-8 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=m><a href="<?=$url_lng_prefix?>/<?php echo str_replace(" ","-", mb_strtolower("<!--CATEGORY_NAME-->")); ?>/"><?=mb_ucfirst("<!--CATEGORY_CUSTOM_NAME-->")?><span>(<!--TOTAL_ITEMS-->)</span></a></category>
<category num=1-1 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=n><b>N</b></category><category order=alphabet num=1-8 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=n><a href="<?=$url_lng_prefix?>/<?php echo str_replace(" ","-", mb_strtolower("<!--CATEGORY_NAME-->")); ?>/"><?=mb_ucfirst("<!--CATEGORY_CUSTOM_NAME-->")?><span>(<!--TOTAL_ITEMS-->)</span></a></category>
<category num=1-1 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=o><b>O</b></category><category order=alphabet num=1-8 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=o><a href="<?=$url_lng_prefix?>/<?php echo str_replace(" ","-", mb_strtolower("<!--CATEGORY_NAME-->")); ?>/"><?=mb_ucfirst("<!--CATEGORY_CUSTOM_NAME-->")?><span>(<!--TOTAL_ITEMS-->)</span></a></category>
<category num=1-1 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=p><b>P</b></category><category order=alphabet num=1-8 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=p><a href="<?=$url_lng_prefix?>/<?php echo str_replace(" ","-", mb_strtolower("<!--CATEGORY_NAME-->")); ?>/"><?=mb_ucfirst("<!--CATEGORY_CUSTOM_NAME-->")?><span>(<!--TOTAL_ITEMS-->)</span></a></category>
<category num=1-1 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=q><b>Q</b></category><category order=alphabet num=1-8 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=q><a href="<?=$url_lng_prefix?>/<?php echo str_replace(" ","-", mb_strtolower("<!--CATEGORY_NAME-->")); ?>/"><?=mb_ucfirst("<!--CATEGORY_CUSTOM_NAME-->")?><span>(<!--TOTAL_ITEMS-->)</span></a></category>
<category num=1-1 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=r><b>R</b></category><category order=alphabet num=1-8 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=r><a href="<?=$url_lng_prefix?>/<?php echo str_replace(" ","-", mb_strtolower("<!--CATEGORY_NAME-->")); ?>/"><?=mb_ucfirst("<!--CATEGORY_CUSTOM_NAME-->")?><span>(<!--TOTAL_ITEMS-->)</span></a></category>
<category num=1-1 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=s><b>S</b></category><category order=alphabet num=1-8 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=s><a href="<?=$url_lng_prefix?>/<?php echo str_replace(" ","-", mb_strtolower("<!--CATEGORY_NAME-->")); ?>/"><?=mb_ucfirst("<!--CATEGORY_CUSTOM_NAME-->")?><span>(<!--TOTAL_ITEMS-->)</span></a></category>
<category num=1-1 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=t><b>T</b></category><category order=alphabet num=1-8 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=t><a href="<?=$url_lng_prefix?>/<?php echo str_replace(" ","-", mb_strtolower("<!--CATEGORY_NAME-->")); ?>/"><?=mb_ucfirst("<!--CATEGORY_CUSTOM_NAME-->")?><span>(<!--TOTAL_ITEMS-->)</span></a></category>
<category num=1-1 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=u><b>U</b></category><category order=alphabet num=1-8 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=u><a href="<?=$url_lng_prefix?>/<?php echo str_replace(" ","-", mb_strtolower("<!--CATEGORY_NAME-->")); ?>/"><?=mb_ucfirst("<!--CATEGORY_CUSTOM_NAME-->")?><span>(<!--TOTAL_ITEMS-->)</span></a></category>
<category num=1-1 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=v><b>V</b></category><category order=alphabet num=1-8 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=v><a href="<?=$url_lng_prefix?>/<?php echo str_replace(" ","-", mb_strtolower("<!--CATEGORY_NAME-->")); ?>/"><?=mb_ucfirst("<!--CATEGORY_CUSTOM_NAME-->")?><span>(<!--TOTAL_ITEMS-->)</span></a></category>
<category num=1-1 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=w><b>W</b></category><category order=alphabet num=1-8 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=w><a href="<?=$url_lng_prefix?>/<?php echo str_replace(" ","-", mb_strtolower("<!--CATEGORY_NAME-->")); ?>/"><?=mb_ucfirst("<!--CATEGORY_CUSTOM_NAME-->")?><span>(<!--TOTAL_ITEMS-->)</span></a></category>
<category num=1-1 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=x><b>X</b></category><category order=alphabet num=1-8 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=x><a href="<?=$url_lng_prefix?>/<?php echo str_replace(" ","-", mb_strtolower("<!--CATEGORY_NAME-->")); ?>/"><?=mb_ucfirst("<!--CATEGORY_CUSTOM_NAME-->")?><span>(<!--TOTAL_ITEMS-->)</span></a></category>
<category num=1-1 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=y><b>Y</b></category><category order=alphabet num=1-8 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=y><a href="<?=$url_lng_prefix?>/<?php echo str_replace(" ","-", mb_strtolower("<!--CATEGORY_NAME-->")); ?>/"><?=mb_ucfirst("<!--CATEGORY_CUSTOM_NAME-->")?><span>(<!--TOTAL_ITEMS-->)</span></a></category>
<category num=1-1 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=z><b>Z</b></category><category order=alphabet num=1-8 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=z><a href="<?=$url_lng_prefix?>/<?php echo str_replace(" ","-", mb_strtolower("<!--CATEGORY_NAME-->")); ?>/"><?=mb_ucfirst("<!--CATEGORY_CUSTOM_NAME-->")?><span>(<!--TOTAL_ITEMS-->)</span></a></category>
                        </div>
                    </div>

                </section>

<!-- All Categories -->
admin
Site Admin
Posts: 37249
Joined: Wed Sep 10, 2008 11:43 am

Re: текстовые категории / алфавит / переводы

Post by admin »

А зачем вы делаете

<category num=1-1 gallery_count_min=50 filter_field=group_custom_var1 filter_value=GET_orientation first_letter=a><b>A</b></category>

почему не написать просто А ?
Don't forget to run script update
admin
Site Admin
Posts: 37249
Joined: Wed Sep 10, 2008 11:43 am

Re: текстовые категории / алфавит / переводы

Post by admin »

<category order=alphabet num=1-8 first_letter=a>
<!--CATEGORY_NAME--> ... <!--CATEGORY_CUSTOM_NAME--> <br>
</category>
вот простейший вариант в индексе

/tube/?skip_cache=1&force_lng=de

выводит как надо

у вас точно не работает этот темпелйт?
Don't forget to run script update
burn
Posts: 262
Joined: Wed Feb 01, 2017 11:27 am

Re: текстовые категории / алфавит / переводы

Post by burn »

Добавил в индекс

Code: Select all

<category order=alphabet num=1-8 first_letter=g sort_field=custom_name>
<!--CATEGORY_NAME--> ... <!--CATEGORY_CUSTOM_NAME--> <br>
</category>
/tube/?skip_cache=1&force_lng=ru
выводит

Code: Select all

Gangbang ... Групповуха 
Gangbang gay ... Групповуха 
Gangbang shemale ... Групповуха 
Gaping ... Зияющие 
Gaping gay ... Зияющие 
Gay Porn ... Гей Порно 
German ... Немецкий 
Ghetto ... Гетто 
заменил first_letter=g на first_letter=г (русская буква "г")
выводит

Code: Select all

Cum Swallowing ... Глотанием 
Deep Throats ... Глубокие Глотки 
Dirty Talk ... Грязные Разговоры 
Dutch ... Голландский 
Gangbang ... Групповуха 
Gangbang gay ... Групповуха 
Gangbang shemale ... Групповуха 
Gay Porn ... Гей Порно
т.е. видно что теперь выводит по нужной букве, но сортировка по name, а не по custom_name
аргумент "sort_field=custom_name" не работает (
admin
Site Admin
Posts: 37249
Joined: Wed Sep 10, 2008 11:43 am

Re: текстовые категории / алфавит / переводы

Post by admin »

Скиньте плз дамп или админку что б мне сразу тестировать на конкретном примере
Don't forget to run script update
Post Reply