форум vBSupport.ru > vBSupport.ru > Гурушник > ХРЮК
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'а физически не в состоянии проверять все стили, хаки и нули, выкладываемые пользователями.
Помните: безопасность Вашего проекта - Ваша забота.
Убедительная просьба: при обнаружении уязвимостей или сомнительных кодов обязательно отписывайтесь в теме хака/стиля
Спасибо за понимание
 
 
 
 
хрюк
Гость
Default VEA (EditArea for vb :: Code Editor for Template)

VEA (EditArea for vb :: Code Editor for Template)

Тема на орге

Версия: 1.00
Автор: Uno

Quote:
This small mod for vb is the integration di EditArea (http://www.cdolivet.com/index.php?page=editArea) in admin panel on the windows "large edit box"
(work also with the older versions of vb, i think from 3... 3.5)

EditArea is a free javascript editor for source code (That is no way a WYSIWYG editor). This editor is designed to edit souce code files in a textarea. The main goal is to allow text formatting, search and replace and real-time syntax highlight (for not too heavy text).

All rights di EditArea are of Christophe on cdolivet.com but he has released this software on license LGPL, Apche and BSD. Therefore free and freely distributable and then have now VEA


Is beautifulst for work on the template online
Хак из разряда Маст хэв.
Добавляет в Большое окно редактирования шаблонов и добавления модулей панель инструментов с различными "фишками", которые облегчат работу тех. администратора форума.
Смотрим скриншоты, на них все понятно.

Установка:
  1. Разархивировать edit_area.rar и залить папку edit_area с ее содержимым в папку админки(admincp по умолчанию)
  2. Открыть файл textarea.php (находится в папке админки, по умолчанию - admincp, надеюсь у вас она переименована) и

    ЗАМЕНИТЬ всё содержимое, которое находится ПОСЛЕ 35-ой строки
    Code:
    $vbulletin->GPC['name'] = preg_replace('#[^a-z0-9_-]#', '', $vbulletin->GPC['name']);
    ДО 77-ой строки:
    Code:
    <?php
    На это:
    Code:
    ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" dir="<?php echo $stylevar['textdirection']; ?>" lang="<?php echo $stylevar['languagecode']; ?>">
    <head>
        <title><?php echo $vbulletin->options['bbtitle'] . " - vBulletin $vbphrase[control_panel]"; ?></title>
        <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $stylevar['charset']; ?>" />
        <link rel="stylesheet" type="text/css" href="../cpstyles/<?php echo $vbulletin->options['cpstylefolder']; ?>/controlpanel.css" />
    
    <script language="Javascript" type="text/javascript" src="edit_area/edit_area_full.js"></script>
    <script language="Javascript" type="text/javascript">
            // initialisation
            editAreaLoader.init({
                             language:"ru"
                ,id: "popuptextarea"    // id of the textarea to transform        
                ,start_highlight: true    // if start with highlight
                ,allow_toggle: true
                            ,syntax: "html"
                            ,allow_resize: "both"
                            ,toolbar: "search, go_to_line, |, undo, redo, |, select_font, |, syntax_selection, |, change_smooth_selection, highlight, reset_highlight"
                            ,syntax_selection_allow: "html,php,js,css"
                            ,show_line_colors: true
                           
            });
    
    function toogle_editable(id)
            {
                editAreaLoader.execCommand(id, 'set_editable', !editAreaLoader.execCommand(id, 'is_editable'));
            }
    </script>
    
        <script type="text/javascript" src="../clientscript/vbulletin_global.js"></script>
        <script type="text/javascript">
        <!--
        function js_textarea_send(textarea,doclose)
        {
            opener.document.getElementsByName('<?php echo $vbulletin->GPC['name']; ?>')[0].value = textarea.value;
            if (doclose==1)
            {
                opener.focus();
                self.close();
            }
        }
        // -->
        </script>
    
    </head>
    
    <body onload="self.focus(); fetch_object('popuptextarea').value=opener.document.getElementsByName('<?php echo $vbulletin->GPC['name']; ?>')[0].value;" style="margin:0px">
    
    <!-- body onload="self.focus(); value=opener.document.getElementsByName('<php echo $vbulletin->GPC['name']; ?>')[0].value; editAreaLoader.setValue('popuptextarea', value )" style="margin:0px">  
    -->
    <form name="popupform" tabindex="1">
    <table cellpadding="4" cellspacing="0" border="0" width="100%" class="tborder">
    
    <tr>
        <td class="alt1" align="center">       
           <input type='button' onclick='editAreaLoader.insertTags("popuptextarea", "<if condition=\"\">", "</if>");' value='condition' />  
           <input type='button' onclick='editAreaLoader.insertTags("popuptextarea", "<else>", "");' value='else' />
           <input type='button' onclick='editAreaLoader.insertTags("popuptextarea", "<div>", "</div>");' value='div' />
           <input type='button' onclick='editAreaLoader.insertTags("popuptextarea", "<table>", "</table>");' value='table' />
           <input type='button' onclick='editAreaLoader.insertTags("popuptextarea", "<tr>", "</tr>");' value='tr' />
           <input type='button' onclick='editAreaLoader.insertTags("popuptextarea", "<td>", "</td>");' value='td' />
           <input type='button' onclick='editAreaLoader.insertTags("popuptextarea", "<br/>", "");' value='br/' />
           <input type='button' onclick='editAreaLoader.insertTags("popuptextarea", "<strong>", "</strong>");' value='strong' />
           <input type='button' onclick='editAreaLoader.insertTags("popuptextarea", "<img src=\"\" alt=\"\" width=\"\" heigth=\"\" border=\"0\">", "");' value='img' />                                                                                      
           <input type='button' onclick='editAreaLoader.insertTags("popuptextarea", "<a href=\"\">", "</a>");' value='url' />
           <input type='button' onclick='editAreaLoader.insertTags("popuptextarea", "<span>", "</span>");' value='span' />
         
    
           <textarea name="popuptextarea" id="popuptextarea" class="code" style=" width: 100%; height:570px" onkeydown="editAreaLoader.delete_instance('popuptextarea'); js_textarea_send(this, 0);" onkeyup="editAreaLoader.delete_instance('popuptextarea'); js_textarea_send(this, 0);"> 
            </textarea>
           </td>
    </tr>
    <tr>
        <td class="tfoot" align="center">
    
         <input type="button" class="button" value="<?php echo $vbphrase['send']; ?>" onclick="editAreaLoader.delete_instance('popuptextarea'); js_textarea_send(this.form.popuptextarea, 1);" accesskey="s" />
        </td>
    </tr>
    </table>
    </form>
    </body>
    </html>

Я вложил уже измененный textarea.php с дистра 3.8.4 (DGT), кто не хочет заморачиваться с изменением файла, качайте и заливайте.

Язык можно поменять на: Croatian, Czech, Danish, Dutch, English, Esperanto, French, German, Italian, Japanese, Macedonian, Polish, Portuguese, Russian, Slovak, Spanish
Изменив ru в куске кода
Code:
editAreaLoader.init({
                         language:"ru"
на какой вам угодно. Языковые файлы лежат в edit_area/langs там можете и подглядеть короткие обозначения языков.

=====================
Модификация от Yoskaldyr в сообщении #12
=====================
Всё.
Attached Thumbnails
after.jpg   before.jpg  
Attached Files
File Type: rar edit_area.rar (201.0 KB, 99 views)
File Type: php textarea.php (6.9 KB, 27 views)

Last edited by TAIFUN : 05-08-2009 at 04:40 PM.
Bot
Yandex Bot Yandex Bot is online now
 
Join Date: 05.05.2005
Реклама на форуме А что у нас тут интересного? =)
 
 
Ramzes
Знаток
Default
0

Это не просто маст хэв, а два раза маст хэв!
Спасибо!
 
 
хрюк
Гость
Default

Обновил прикрепленный файл textarea.php
(По запарке вложил другой)
 
 
Андрюшкин
Знаток
vBSponsor
 
Андрюшкин's Avatar
Default
0

круто! теперь бы все это правильно установить))
 
 
хрюк
Гость
Default

Андрюшкин, залить папку + отредактировать один файл. 10-15 секунд ))
 
 
Nightfall
Продвинутый
Default
1

Андрюшкин,
Оффтоп
 
 
Ramzes
Знаток
Default
0

Такое вопрос: а это безопасно для админки?
 
 
Nightfall
Продвинутый
Default
0

поживем увидим
 
 
хрюк
Гость
Default

Ramzes, да, это абсолютно безопасно
 
 
noviceuser
Продвинутый
 
noviceuser's Avatar
Default
0

Quote:
Originally Posted by TAIFUN View Post
# Разархивировать text_area.rar и залить папку text_area с ее содержимым в папку админки(admincp по умолчанию)
Может edit_area, а не text_area.

noviceuser добавил 08.05.2009 в 04:42
P.s. Спасибо за хак.

Last edited by noviceuser : 05-08-2009 at 05:41 AM. Reason: Добавлено сообщение
 

Tags
edit area, в помощь администратору


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 03:46 PM.


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