Студия креативных разработок DevArt.PRO.
Разработка сайтов и форумов под ключ!
Сильнейшая команда в России по vBulletin - читать подробнее...
 
 
 
 

 
 
Здесь скоро опять что то будет...
 
 
 
 
 
 
Loading

Вернуться   форум vBSupport.org > vBulletin > vBulletin 3.7.x > Хаки, моды и скрипты 3.7

Объявления
  • Изменения в правах
  • Каталог Фрилансеров
  • Добро пожаловать!
  • Premoderation
  • Новичкам!
  • For English speaking users
Ответ
 
Опции темы Опции просмотра
Старый 25.12.2007, 23:35   #1
Эксперт
 
Аватар для shpunsetoy
Thumbs up Ajax Poll Preview Version: 0.5.0

Ссылка на орг

DESCRIPTION

We're living in a world of AJAX (at least some say so ), so why not minimize traffic by using AJAX technology? That's why I made this little hack for vbulletin (upon a request of a fellow mod on another forum).

So what this hack does is to display the poll results by hovering the thread poll icon in FORUMDISPLAY view (see screenshot), so you dont have to view the entire thread (and all its graphics and stuff) when you're just wanting to view the current poll results, and with this save forum traffic (though, granted, it's not that much). The hack uses the great jQuery javascript library and the modification jTip by Cody Lindley, which I've modified for proper vbulletin use (especially layout issues).

It uses every forum's custom style, so it'll look like it was made for your vbulletin.

The hack has been tested on 3.7.0B3 and 3.6.8, but should work on 3.5.x aswell.

STATISTICS

File Uploads: 5
File Changes: 0
Template Changes: 1
Products to Install: 1
Time to Install: ~ 2 minutes


FEATURES
Configuration Options in the AdminCP
Enable the Inline Poll Preview Plugin? (bool)
Tooltip Width (int)
Uses AJAX technology, so no extra query on any page
Uses vbulletin's permission system


INSTALLATION

- Upload files from the upload folder
- Import the product via ACP > Manage Products > Import
- Do the template change (can also be found within the ZIP file!)

In threadbit template replace
Код:
 <if condition="$show['threadicon']"><img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" /><else />&nbsp;</if>
with
Код:
<if condition="$show['threadicon']"> 
    <if condition="($vboptions[enable_inlinepollpreview]==TRUE) AND $thread['pollid']"> 
        <a href="pollinline.php?width=$vboptions[tipwidth_inlinepollpreview]&threadid=$thread[realthreadid]&rand={$pollprevrand}" class="jTip" id="pollpreview$thread[realthreadid]" name="$thread[threadtitle]"><img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" /></a> 
    <else /> 
        <img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" /> 
    </if> 
<else /> 
    &nbsp; 
</if>
CONFIGURATION

Note that by default (after installation) the hack in disabled! Go to the options page to enable and configure it.

The (yet) few configuration options shouldnt be hard to understand so no further info here. If someone has any questions (or suggestions), the hack is supported by myself. Just reply here.


SCREENSHOTS

1.) The options panel.
2.) Poll Preview on another forum layout.
3.) Permission message when the user doesnt have the rights to view thread's contents.
4.) Poll Preview in FORUMDISPLAY view.
Изображения
Тип файла: jpg screenshot01.jpg (44.2 Кб, 161 просмотров)
Тип файла: gif screenshot02.gif (29.0 Кб, 105 просмотров)
Тип файла: jpg screenshot04.jpg (36.7 Кб, 95 просмотров)
Тип файла: jpg screenshot03.jpg (55.3 Кб, 163 просмотров)
Вложения
Тип файла: zip os_inlinepollpreview_0_5_0.zip (139.8 Кб, 28 просмотров)

Последний раз редактировалось shpunsetoy; 26.12.2007 в 01:54..
  Ответить с цитированием
Рекламка
Реклама на форуме

Файловый Архив

  • Неограниченное количество категорий и суб-категорий
  • Тонкие настройки прав доступа
  • Предпросмотр медиа файлов: FLV, IFLV, F4A, F4V, MP4, MP3, MOV и других...
  • Мультизагрузка файлов - SWFUploader
  • Добавление файлов с сервера
Подробности и история обновлений продукта в этой теме
Старый 26.12.2007, 00:00   #2
Меф
Продвинутый
 
Аватар для Меф
Не... вывод голосования в тридбит это уже перебор имхо =\
  Ответить с цитированием
Старый 26.12.2007, 00:51   #3
shpunsetoy
Эксперт
 
Аватар для shpunsetoy
..а в чём проблема то?...запросов лишних вроде как нет ...всё через jQuery ..
  Ответить с цитированием
Старый 26.12.2007, 07:39   #4
Мик
Эксперт
 
Аватар для Мик
Цитата:
Сообщение от shpunsetoy Посмотреть сообщение
..а в чём проблема то?...запросов лишних вроде как нет ...всё через jQuery ..
а ты думаешь это не грузит машину юзвера???
грузит и еще как
  Ответить с цитированием
Старый 26.12.2007, 07:50   #5
shpunsetoy
Эксперт
 
Аватар для shpunsetoy
25к на сессию это разве грузит?...
  Ответить с цитированием
Старый 26.12.2007, 08:44   #6
Мик
Эксперт
 
Аватар для Мик
Цитата:
Сообщение от shpunsetoy Посмотреть сообщение
25к на сессию это разве грузит?...
ты не забывай, что форум не голый и таких фич может быть не одна и не две
а на много больше
  Ответить с цитированием
Старый 26.12.2007, 09:36   #7
xDEAD
Эксперт
 
Аватар для xDEAD
Себе на 3.6.8 поставлю.. мб перевести надо? О_о оо, заодно и Beta 3 посмотрим...
  Ответить с цитированием
Старый 26.12.2007, 10:09   #8
shpunsetoy
Эксперт
 
Аватар для shpunsetoy
Цитата:
Сообщение от Мик Посмотреть сообщение
ты не забывай, что форум не голый и таких фич может быть не одна и не две
а на много больше
ты прав..и по сему просто не стоит одну и туже библиотеку подгружать дважды)))
  Ответить с цитированием
Старый 26.12.2007, 11:30   #9
xDEAD
Эксперт
 
Аватар для xDEAD
http://217.65.8.114/~vbsuppor/forum/...250#post160250 рузкый пирифод
  Ответить с цитированием
Ответ

Закладки

Опции темы
Опции просмотра

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.



 
 

Текущее время: 11:45 24.05.2012. Часовой пояс GMT +4.


Powered by vBulletin® Version 3.6.2
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd. Перевод: zCarot