форум vBSupport.ru > vBulletin > vBulletin 3.8.x > Хаки, моды и скрипты 3.8
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'а физически не в состоянии проверять все стили, хаки и нули, выкладываемые пользователями.
Помните: безопасность Вашего проекта - Ваша забота.
Убедительная просьба: при обнаружении уязвимостей или сомнительных кодов обязательно отписывайтесь в теме хака/стиля
Спасибо за понимание
 
 
 
 
Centurion
Эксперт
vBSSecurity
 
Centurion's Avatar
Default Автосохранение сообщений при закрытии
9

Message auto-save/drafts

Источник: http://www.vbulletin.org/

Поддержка браузеров: Safari, FF 3.5+, Opera, Chrome, IE8+

Сохраняет написанный текст в случае случайного закрытия браузера или нажатия кнопки "Назад" и тд. и при повторном открытии данной страницы, вкладки недописанный текст будет "на месте".

Описание автора An auto-save feature was recently added to vB4, so I figured it would be nice if we vB3 users could also get something similar

While this this isn't a server-side solution, I think that it's still pretty solid, as it relies on the localStorage system in your browser, which is supported by Safari, FF 3.5+, Opera, Chrome, and IE8+.

I have tested this on FF6, the latest Safari and Chrome, and IE9. I wrote it with IE8 in mind, but haven't tested IE8 as my forum skin doesn't support it (yup, it's a terrible browser).

For now, I am marking this as a beta release until we're sure it works in all browsers that support localStorage and there aren't any outstanding bugs.

Where does this work?

Quick reply
New reply/New thread
PM quick reply
New PM
PM regular reply
Anywhere else you want, given that the page contains a form named "vbform" and a textarea named "message" (or the vbulletin wysiwyg editor)


How does this work?
You can start typing a post, close your browser, open the same page, and the post will still be there. Note that this mod keys data by URL in order to avoid collisions.

The mod automatically and silently restores posts when possible. However, if the editor already contains something when you load the page (i.e. PM quick reply), then you will receive a prompt asking you whether or not you want to work with the recovered text.

This mod works even if you disable the WYSIWYG editor and it will quite likely work with older versions of vB all the way down to 3.5.


Установка
[1]Download the attached file (or download the file directly and skip step 2)
[2]Change the extension to .js from .js.txt
[3]Upload it to your forum's clientscript directory
[4]Add the following code to the bottom of your forum templates* wherever you want this mod to work:
Code:
<script type="text/javascript" src="$vboptions[bburl]/clientscript/vbulletin_autosave.js"></script>
If you don't care about http overhead, you can put this code in your footer template as it will die gracefully on pages without an editor. However, I recommend only putting it in templates that use it. On my forum, I've added it to the following templates: SHOWTHREAD, newreply, newthread, pm_showpm, pm_newpm On top of that, if you don't allow guests to post, wrap the code in a member-only conditional: <if condition="$show['member']">...</if>

*the script tags must be placed after the editor text area element; this doesn't necessarily have to be the very end of the template, although it's good practice to do so


Если вы уже видели на vb.org новую версия данного мода. Что делать?
Если вышла новая версия данной модификации:
1) Если доступа на vb.org нет - просто сообщите в этой теме о наличии новой версии.
2) Если есть доступ на vb.org - проинформируйте в этой теме и загрузите новую версию в своем сообщении.

Новая версия будет добавлена в 1 сообщение.
Attached Files
File Type: txt vbulletin_autosave.js.txt (4.8 KB, 28 views)

Last edited by Centurion : 02-03-2012 at 12:59 PM. Reason: Version: 0.5
Bot
Yandex Bot Yandex Bot is online now
 
Join Date: 05.05.2005
Реклама на форуме А что у нас тут интересного? =)
 
 
Time Keeper2
Продвинутый
Default
0

Я просто поставил в шаблоне Footer в самый них код скрипта. Самый оптимальный вариант. Скрипт супер! Спасибо за наводку!
 
 
AleX
Гость
Default

Centurion, что это за разрешение такое — .js.txt? =)
Quote:
Originally Posted by Time Keeper2 View Post
Самый оптимальный вариант.
Нифига не оптимальный. Для инклудов .js имеется свой шаблон — headinclude.
 
 
kerk
k0t
 
kerk's Avatar
Default
0

Quote:
Originally Posted by AleX View Post
что это за разрешение такое
javascript нельзя вставлять как аттач
можно было упаковать в архив или залить файл с другим расширением
 
 
AleX
Гость
Default

kerk, ну, обычно в zip пакуется подобное.
 
 
Centurion
Эксперт
vBSSecurity
 
Centurion's Avatar
Default
0

ничего не менял - поэтому название, расширение... такое, какое сделал автор.
 
 
liner
Эксперт
 
liner's Avatar
Default
0

создал тему и вписал текст
нажал на другую тему, потом ссылку "назад" - недописанная и несозданная тема на месте и неотправленный текст тоже.
ок
потом дописал текст в окне быстрого ответа - не сохраняется.
ни ссылка назад, ни переход и возврат с других тем текст не сохраняется.

js загружен в корень форума, а код скрипта - в headinclude
что не так?

liner добавил 03.02.2012 в 05:52
в расширенном ответе - сохраняется

Last edited by liner : 02-03-2012 at 07:52 AM. Reason: Добавлено сообщение
 
 
AleX
Гость
Default

liner, новая версия — 0.5. В данной теме сейчас 0.2.
JS новой версии во вложение.
Attached Files
File Type: zip vbulletin_autosave.zip (1.7 KB, 22 views)
 
 
liner
Эксперт
 
liner's Avatar
Default
0

перезалил js

неа, в форме быстрого ответа не арбайтен
 
 
AleX
Гость
Default

liner, 2 варианта:
— Проблема в браузере (попробовать другой);
— Проблема в совместимости с другими модулями.
 


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 05:31 PM.


Powered by vBulletin® Version 4.x.fuck
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.