Jump to content

Recommended Posts

Название: [EN33] Ajax Thanks v1.0.7 Rus

Добавил: Respected

Добавлен: 27 Apr 2012

Обновлен: 27 Apr 2012

Категория: Русские хуки и моды IP.Board 3.3.x

Русская версия хук [EN33] Ajax Thanks v1.0.7, добавляющего на форум к каждому сообщению кнопку Спасибо!

Перевод: Respected

Link to comment
Share on other sites

  • 2 months later...

Вопросик, а как сделать, чтобы отображалось Благодарностей: 11, а сейчас 11 благодарностей, где править?

Link to comment
Share on other sites

  • 3 weeks later...

Написано вот так,зачем что то изменять! Поблагодарили 1раз!

rus, я думаю, что вопрос Caius не был актуален.

Я имел ввиду про версию 33, там в архиве 3 файла хука 31, 32, 33, 31 - английская версия, 32 - после её установки у меня выскакивает ошибка, 33 - все норм но в инфо панели пишется например: 12 благодарностей, а мне бы хотелось Благодарностей: 12 или Поблагодарили: 12 раз

Link to comment
Share on other sites

Так если быть правильным каждые версии,идут под версии ipb!

Я поставил себе на форум версию 3.3.x и поставил хук СПАСИБКИ,версии 33 у меня написанно Поблагодарили 1раз!

Я если найду как это изменить то напишу!

Link to comment
Share on other sites

  • 2 weeks later...

Какой-то чайник пометил файл, как испорченый - только что скачал и поставил на 3.3.3 - всё ок!

Link to comment
Share on other sites

  • 3 months later...

Я вот задумался, а можно как то выдавать определенное кол-во спасибок или отнимать за нарушения? Или это так для красоты они?

Link to comment
Share on other sites

  • 3 months later...

Можно ли сделать чтобы отображалось не только сколько тебя поблагодарили, но и сколько раз ты поблагодарил?? 

Link to comment
Share on other sites

  • 4 weeks later...

Доброго времени суток. 

установил данный хук. но кнопка не пропорциональна остальным. подскажите как подкорректировать?

post-3418-0-48394300-1363098279.png

post-3418-0-18053200-1363098280.png

Link to comment
Share on other sites

Если я правильно помню, нужно класс у кнопки сменить. Шаблоны - Темы - ajaxThanksButton
Класс ipsButton_secondary. За работоспособность метода не ручаюсь, ибо делал еще на версии 3.1, может изменилось чего

Link to comment
Share on other sites

Шаблоны - Темы - ajaxThanksButton

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

<if test="ajaxThanksEnabled:|:$this->settings['en30_ajaxthanks']">

<li class="post_count desc lighter">
{$author['thanked']} {$this->lang->words['en30_thanks']}
</li>
</if>

Link to comment
Share on other sites

У меня почему-то он вот такой. Правда версия посвежее, 1.0.8, но почему-то думаю что не должно отличаться так сильно

<if test="ajaxThanksButton:|:$post['post']['thanks']['button'] == 'thank'">
						<li class='ajax_thanks' id='ajaxThanks_{$post['post']['pid']}'>
							<a href="javascript: ajaxThanks( '{$post['post']['pid']}' );" title='{$this->lang->words['en30_thank_author']}' class='ipsButton_secondary'>{$this->lang->words['en30_thank']}</a>
						</li>
					</if>
					<if test="ajaxThanksButton:|:$post['post']['thanks']['button'] == 'remove' && $this->settings['en31_remove_thanks']">
						<li class='ajax_thanks' id='ajaxRemoveThanks_{$post['post']['pid']}'>
							<a href="javascript: ajaxRemoveThanks( '{$post['post']['pid']}' );" title='{$this->lang->words['en30_unthank_author']}' class='ipsButton_secondary'>{$this->lang->words['en30_unthank']}</a>
						</li>
					</if>

Тут используется класс ipsButton_secondary

Link to comment
Share on other sites

Прошу прошения не туда смотрел :$  в ajaxThankedCoun смотрел.

<if test="ajaxThanksButton:|:$post['post']['thanks']['button'] == 'thank'">

<li class='ajax_thanks' id='ajaxThanks_{$post['post']['pid']}'>
<a href="javascript: ajaxThanks( '{$post['post']['pid']}' );" title='{$this->lang->words['en30_thank_author']}' class='ipsButton_secondary'>{$this->lang->words['en30_thank']}</a>
</li>
</if>
<if test="ajaxThanksButton:|:$post['post']['thanks']['button'] == 'remove' && $this->settings['en31_remove_thanks']">
<li class='ajax_thanks' id='ajaxRemoveThanks_{$post['post']['pid']}'>
<a href="javascript: ajaxRemoveThanks( '{$post['post']['pid']}' );" title='{$this->lang->words['en30_unthank_author']}' class='ipsButton_secondary'>{$this->lang->words['en30_unthank']}</a>
</li>
</if>

Link to comment
Share on other sites

возможно для вас я сейчас задам глупейший вопрос... но всё же как добавить класс ipsButton_secondary?

Link to comment
Share on other sites

Добавил класс, код полностью:

<if test="ajaxThanksButton:|:$post['post']['thanks']['button'] == 'thank'">
<li class='ajax_thanks' id='ajaxThanks_{$post['post']['pid']}'>
<a class='ipsButton_secondary' href="javascript: ajaxThanks( '{$post['post']['pid']}' );" title='{$this->lang->words['en30_thank_author']}' class='ipsButton_secondary'>{$this->lang->words['en30_thank']}</a>
</li>
</if>
<if test="ajaxThanksButton:|:$post['post']['thanks']['button'] == 'remove' && $this->settings['en31_remove_thanks']">
<li class='ajax_thanks' id='ajaxRemoveThanks_{$post['post']['pid']}'>
<a class='ipsButton_secondary' href="javascript: ajaxRemoveThanks( '{$post['post']['pid']}' );" title='{$this->lang->words['en30_unthank_author']}' class='ipsButton_secondary'>{$this->lang->words['en30_unthank']}</a>
</li>
</if>
Link to comment
Share on other sites

Скажите, а как добавить показ количество благодарностей в профиль? Понятно, что править шаблон, но хотелось бы узнать каким ключом..

Link to comment
Share on other sites

  • 1 month later...

Не получается изменить кнопку "СПАСИБО" на свое изображения. Как это сделать, может кто то поподробнее разжевать ,показать?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Ваша ссылка была автоматически строена.   Отображать как обычную ссылку

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...