форум 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'а физически не в состоянии проверять все стили, хаки и нули, выкладываемые пользователями.
Помните: безопасность Вашего проекта - Ваша забота.
Убедительная просьба: при обнаружении уязвимостей или сомнительных кодов обязательно отписывайтесь в теме хака/стиля
Спасибо за понимание
 
 
 
 
Centurion
Эксперт
vBSSecurity
 
Centurion's Avatar
Default Функция "Выделить все" для BB Code : CODE/HTML/PHP
1

Функция "Выделить все" для BB Code : CODE/HTML/PHP

Установка:

Insert javascript code into headinclude template
AdminCP -> Styles & Templates -> Style Manager -> Edit Templates -> headinclude
Copy and paste following js code to bottom of headinclude template :

HTML Code:
<script type="text/javascript">
    function selectAll(a)
    {
        var e  = a.parentNode.parentNode.getElementsByTagName('code')[0];
        if  (window.getSelection)
        {
            var s = window.getSelection();
            if  (s.setBaseAndExtent)
            {
                s.setBaseAndExtent(e, 0, e, e.innerText.length -  1);
            }
            else
            {
                var r = document.createRange();
                r.selectNodeContents(e);
                s.removeAllRanges();
                s.addRange(r);
            }
        }
        else if (document.getSelection)
        {
            var s = document.getSelection();
            var r = document.createRange();
            r.selectNodeContents(e);
            s.removeAllRanges();
            s.addRange(r);
        }
        else if  (document.selection)
        {
            var r = document.body.createTextRange();
            r.moveToElementText(e);
            r.select();
        }
    }
</script>
Insert new code to bbcode template
... -> Edit Templates -> BB Code Layout Templates -> bbcode_code
Find :
HTML Code:
{vb:rawphrase code}:

...and...

{vb:raw code}
Change :
HTML Code:
{vb:rawphrase code}:&nbsp;<input type="button" value="{vb:rawphrase selectall}" onclick="selectAll(this); return false;">

...and...

<code>{vb:raw code}</code>
Insert new code to bbcode_html template (same bbcode_code)
... -> Edit Templates -> BB Code Layout Templates -> bbcode_html
Find :
HTML Code:
{vb:rawphrase html_code}:

...and...

{vb:raw code}
Change :
HTML Code:
{vb:rawphrase html_code}:&nbsp;<input type="button" value="{vb:rawphrase selectall}" onclick="selectAll(this); return false;">

...and...

<code>{vb:raw code}</code>
Insert new code to bbcode_php template (same bbcode_code)
... -> Edit Templates -> BB Code Layout Templates -> bbcode_php
Find :
HTML Code:
{vb:rawphrase php_code}:
Change :
HTML Code:
{vb:rawphrase php_code}:&nbsp;<input type="button" value="{vb:rawphrase selectall}" onclick="selectAll(this); return false;">
Add new phrase :
AdminCP -> Languages & Phrases -> Phrase Manager -> [Add New Phrase]

Phrase Type : GLOBAL
Product : vBulletin
Varname : selectall
Text : select all
If you don't want to create new phrase (step 5), you can search for : {vb:rawphrase selectall} and replace with select all
Next version : add new feature "copy to clipboard".
Attached Thumbnails
screenshot%201.jpg  
Bot
Yandex Bot Yandex Bot is online now
 
Join Date: 05.05.2005
Реклама на форуме А что у нас тут интересного? =)
 
 
DeusEx
Продвинутый
 
DeusEx's Avatar
Default
0

Спасибо. Давно искал вариант для vb 4.1 . на VBteam.info нашел для 4.0 , но он криво работал на 4.1.
Сейчас проверю как работает этот, отпишусь

DeusEx добавил 11.06.2011 в 11:11
Все работает ! спасибо

Last edited by DeusEx : 06-11-2011 at 12:11 PM. Reason: Добавлено сообщение
 
 
acumeTpua
Простоузер
Default
0

работает отлично. спасибо.
 


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:54 AM.


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