форум 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'а физически не в состоянии проверять все стили, хаки и нули, выкладываемые пользователями.
Помните: безопасность Вашего проекта - Ваша забота.
Убедительная просьба: при обнаружении уязвимостей или сомнительных кодов обязательно отписывайтесь в теме хака/стиля
Спасибо за понимание
 
 
 
 
welf
Знаток
 
welf's Avatar
Default Оформление цитаты на vb 3.x от vb 4.x
7

Оформление цитаты на vb 3.x от vb 4.x [Инструкция от IRIDON]

Источник

На текущий момент вышло два типа оформления цитаты: с скругленными и квадратными краями.

Вариант с квадратными краями:



1. Скачиваем файлы для квадратной цитаты. Заливаем папки misc и buttons в папки своего стиля (если у Вас стиль по умолчанию, то обе папки скидываем в папку images.

2. Находим шаблон bbcode_quote в своем стиле и заменяем его содержимое на:
PHP Code:
<div <if condition="$show['iewidthfix']"></if>">
<div style="
padding-left:20px;">
<div class="
bbcode_container">
  <div class="
bbcode_quote">
    <div class="
btbtbt">
<div class="
quote_container">
            <div class="
bbcode_quote_container"></div>
                <div class="
bbcode_postedby">
                    <if condition="
$show['username']">
        <img title="
Цитата" src="$stylevar[imgdir_button]/quote_icon.png" alt="Цитата">
        <phrase 1="
$username">$vbphrase[originally_posted_by_x]</phrase>
                        <if condition="
$postid"><a href="showthread.php?$session[sessionurl]p=$postid#post$postid" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/viewpost-right.png" border="0" alt="$vbphrase[view_post]" /></a>
                        
</if>
                </
div>
          <
div class="message">$message</div>
        </
div>
            <else />
                
$message
            
</if>
    </
div
  </
div>
</
div>
    </
div>
</
div
Сохраняем изменения.

3. Зайти в опцию "Все опции стиля" (админка - Стили и шаблоны - Управление стилями. В выпадающем меню нужного стиля выбрать Все опции стиля и нажать Вперед). Опускаемся в самый низ и в окно "Дополнительные определения CSS" (обычно там два окошка стиля, добавляем во второе) вот это CSS:
Code:
.quote_container {
padding-top: 5px;
padding-right: 10px;
padding-bottom: 5px;
padding-left: 10px;
}


div.bbcode_quote div.message {
	padding:8px 0px;
}

.bbcode_container {
	margin-right: 20px;
	margin-bottom: 20px;
	margin-left: 0px;
	margin-top: 5px;
	display: block;
}

.bbcode_container div.bbcode_quote {
margin-top: 0pt;
margin-right: 10px;
margin-left: 10px;
margin-bottom: 10px;
background-color: #f2f6f8;
background-image: none;
background-repeat: repeat;
background-attachment: scroll;
background-position: 0% 0%;
font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif;
font-style: italic;
font-variant: normal;
font-weight: normal;
font-size: 13px;
line-height: normal;
font-size-adjust: none;
font-stretch: normal;
-x-system-font: none;
position: relative;
top: 0pt;
}


.bbcode_quote_container {
background-color: transparent;
background-image: url("images/misc/quote-left.png");
background-repeat: no-repeat;
background-attachment: scroll;
background-position: left center;
display: block;
width: 9px;
height: 13px;
position: absolute;
left: -8px;
}

.bbcode_postedby {
font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif;
font-style: normal;
font-variant: normal;
font-weight: normal;
font-size: 12px;
line-height: normal;
font-size-adjust: none;
font-stretch: normal;
-x-system-font: none;
}

.bbcode_container div.bbcode_quote div.message {
padding-top: 8px;
padding-right: 0px;
padding-bottom: 8px;
padding-left: 0px;
}

.btbtbt {
border-left:solid 1px;
border-right:solid 1px;
border-bottom:solid 1px;
border-top:solid 1px;
border-color: #417394;
}
Сохраняем изменения.
Все.



Вариант с скругленными краями:



1. Скачиваем файлы для квадратной цитаты. Заливаем папки misc и buttons в папки своего стиля (если у Вас стиль по умолчанию, то обе папки скидываем в папку images.

2. Находим шаблон bbcode_quote в своем стиле и заменяем его содержимое на:
PHP Code:
<div <if condition="$show['iewidthfix']"></if>"> 
    <div style="
padding-left:20px;"> 
        <div class="
bbcode_container"> 
            <div class="
bbcode_quote"> 
                <div> 
                    <div class="
tl"> 
                        <div class="
tr"> 
                            <div class="
bord_top"></div> 
                        </div> 
                    </div>  
                </div> 
            <div class="
btbtbt"> 
                <div class="
quote_container"> 
                    <div class="
bbcode_quote_container"></div> 
                        <div class="
bbcode_postedby"> 
                            <if condition="
$show['username']"> 
                                <img title="
$vbphrase[quote]" src="$stylevar[imgdir_button]/quote_icon.png" alt="$vbphrase[quote]"> 
                                <phrase 1="
$username">$vbphrase[originally_posted_by_x]</phrase> 
                                    <if condition="
$postid"><a href="showthread.php?$session[sessionurl]p=$postid#post$postid" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/viewpost-right.png" border="0" alt="$vbphrase[view_post]" /></a> 
                                    
</if> 
                        </
div
                    <
div class="message">$message</div
                </
div
                            <else />
                        </
div>
                
$message 
                
</div
                            </if> 
            </
div
                <
div class="bl"
                    <
div class="br"><div class="bord_top2"></div></div
                    <
div class="bord_botom"></div
                </
div>  
            </
div
        </
div
    </
div
</
div
Сохраняем изменения.

3. Зайти в опцию "Все опции стиля" (админка - Стили и шаблоны - Управление стилями. В выпадающем меню нужного стиля выбрать Все опции стиля и нажать Вперед). Опускаемся в самый низ и в окно "Дополнительные определения CSS" (обычно там два окошка стиля, добавляем во второе) вот это CSS:
Code:
.quote_container {
padding-top: 5px;
padding-right: 10px;
padding-bottom: 5px;
padding-left: 10px;
}


div.bbcode_quote div.message {
	padding:8px 0px;
}

.bbcode_container {
	margin-right: 20px;
	margin-bottom: 20px;
	margin-left: 0px;
	margin-top: 5px;
	display: block;
}

.bbcode_container div.bbcode_quote {
margin-top: 0pt;
margin-right: 10px;
margin-left: 10px;

background-color: #f2f6f8;
background-image: none;
background-repeat: repeat;
background-attachment: scroll;
background-position: 0% 0%;
font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif;
font-style: italic;
font-variant: normal;
font-weight: normal;
font-size: 13px;
line-height: normal;
font-size-adjust: none;
font-stretch: normal;
-x-system-font: none;
position: relative;
top: 0pt;
}


.bbcode_quote_container {
background-color: transparent;
background-image: url("images/misc/quote-left.png");
background-repeat: no-repeat;
background-attachment: scroll;
background-position: left center;
display: block;
width: 9px;
height: 13px;
position: absolute;
left: -8px;
}

.bbcode_postedby {
font-family: Tahoma,Calibri,Verdana,Geneva,sans-serif;
font-style: normal;
font-variant: normal;
font-weight: normal;
font-size: 12px;
line-height: normal;
font-size-adjust: none;
font-stretch: normal;
-x-system-font: none;
}

.bbcode_container div.bbcode_quote div.message {
padding-top: 8px;
padding-right: 0px;
padding-bottom: 8px;
padding-left: 0px;
}


.tl{
background:url(images/misc/tl_grey.gif) no-repeat left;
height: 10px;

}

.tr{
background:url(images/misc/tr_grey.gif) no-repeat right;
height: 10px;

}

.bl{
background:url(images/misc/bl_grey.gif) no-repeat left bottom;
height: 10px;

}

.br{
background:url(images/misc/br_grey.gif) no-repeat right bottom;
height: 10px;
}

.btbtbt {
border-left:solid 1px;
border-right:solid 1px;
border-color: #417394;
}

.bord_top {
border-top: 1px solid;
border-color:#417394;
margin-left: 10px;
margin-right: 10px;
border-color: #417394;
}

.bord_botom {
border-bottom: 1px solid;
border-color:#417394;
margin-left: 10px;
margin-right: 10px;
}

.bord_top2 {
border-left:1px solid;
border-right: 1px solid;
border-color: #417394;
}
Сохраняем изменения.
Все.
Attached Files
File Type: zip quote_kvadratnie_kraya.zip (10.1 KB, 30 views)
File Type: zip quote_kruglie_kraya.zip (11.0 KB, 37 views)

Last edited by welf : 08-27-2011 at 01:08 PM.
Bot
Yandex Bot Yandex Bot is online now
 
Join Date: 05.05.2005
Реклама на форуме А что у нас тут интересного? =)
 
 
liner
Эксперт
 
liner's Avatar
Default
0

что же у меня цитата так криво?
http://forum.clubvolvo.ru/showthread...18#post1605918
 
 
welf
Знаток
 
welf's Avatar
Default
0

Quote:
Originally Posted by liner View Post
цитата так криво?
liner, если честно, то закругленную проверял только на локалке - вроде, все было Ок.
На форуме стоит "прямоугольная"...
 
 
liner
Эксперт
 
liner's Avatar
Default
0

наблюдение:
создайте в сообщении форума просто текст в цитате, без упоминания автора и ссылки на его цитируемый пост - появится косячок.
В любой цитате, где есть "Сообщение от ....>>" все нормально
 
 
welf
Знаток
 
welf's Avatar
Default
2

Не хватало закрытия 2х <div> кодов...
Собственно, поэтому и кривая простая цитата получается, когда нет в ней "Сообщение от Username".

Рабочий вариант:
PHP Code:
<div <if condition="$show['iewidthfix']"></if>"> 
    <div style="
padding-left:20px;"> 
        <div class="
bbcode_container"> 
            <div class="
bbcode_quote"> 
                <div> 
                    <div class="
tl"> 
                        <div class="
tr"> 
                            <div class="
bord_top"></div> 
                        </div> 
                    </div>  
                </div> 
            <div class="
btbtbt"> 
                <div class="
quote_container"> 
                    <div class="
bbcode_quote_container"></div> 
                        <div class="
bbcode_postedby"> 
                            <if condition="
$show['username']"> 
                                <img title="
$vbphrase[quote]" src="$stylevar[imgdir_button]/quote_icon.png" alt="$vbphrase[quote]"> 
                                <phrase 1="
$username">$vbphrase[originally_posted_by_x]</phrase> 
                                    <if condition="
$postid"><a href="showthread.php?$session[sessionurl]p=$postid#post$postid" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/viewpost-right.png" border="0" alt="$vbphrase[view_post]" /></a> 
                                    
</if> 
                        </
div
                    <
div class="message">$message</div
                </
div
                            <else />
                        </
div>
                
$message 
                
</div
                            </if> 
            </
div
                <
div class="bl"
                    <
div class="br"><div class="bord_top2"></div></div
                    <
div class="bord_botom"></div
                </
div>  
            </
div
        </
div
    </
div
</
div
 
 
liner
Эксперт
 
liner's Avatar
Default
0

спасибо, помогло
 
 
welf
Знаток
 
welf's Avatar
Default
0

Quote:
Originally Posted by liner View Post
помогло
Поправил пост #1
 
 
incognito
Продвинутый
 
incognito's Avatar
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 11:52 AM.


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