Владельцам 3.8.6: не поставили патч - потеряли форум!

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

  • Неограниченное количество категорий и суб-категорий
  • Настройки прав доступа по группам
  • Настройки прав доступа по каждой категории
  • Предпросмотр медиа файлов: FLV, IFLV, F4A, F4V, MP4, MP3, MOV и других...
  • Мультизагрузка файлов - SWFUploader
  • Добавление файлов с сервера
Подробности и история обновлений продукта в этой теме
Loading

Go Back   форум vBSupport.org > > >
Register Изображения Меню vBsupport Files Manager Аллея Звёзд Реклама на форуме Search Today's Posts Mark Forums Read
  • Мемберка
  • Администраторам
  • Premoderation
  • For English speaking users
  • Изменения в правах
  • Каталог Фрилансеров
Пароли на скачивание файлов в Member Area меняются автоматически каждый день
Если вам нужно скачать какой то скрипт, за паролем ко мне в ЛС
привет какирам kerk
Ещё раз обращаем Ваше внимание: всё, что Вы скачиваете и устанавливаете на свой форум, Вы устанавливаете исключительно на свой страх и риск.
Сообщество vBSupport'а физически не в состоянии проверять все стили, хаки и нули, выкладываемые пользователями.
Помните: безопасность Вашего проекта - Ваша забота.
Убедительная просьба: при обнаружении уязвимостей или сомнительных кодов обязательно отписывайтесь в теме хака/стиля
Спасибо за понимание
На форуме введена премодерация ВСЕХ новых пользователей

Почта с временных сервисов, типа 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.
Не можете скачать вложение?
Изменения в правах групп пользователей
внимательно читаем эту и эту темы
Короткая версия - тут
Уважаемые пользователи!

На форуме открыт новый раздел "Каталог фрилансеров"

и отдельный раздел для платных заказов "Куплю/Закажу"

 
 
Old  
mmmalinin
Продвинутый
Default [Вопрос] Мануал по созданию стилей/шаблонов (список переменных) 0

а есть ли в природе мануал по созданию стилей? То есть некое руководство со списком переменных, описанием шаблонов и т.п. Понимаю, что можно многое нагуглить, но это неправильный подход к изучению системы. Хотелось бы научиться создавать стили с нуля (например, на ukoz-е все расписано по созданию шаблонов, все переменные)
Здесь на форуме нашла отрывочные сведения и попытки что-то систематизировать, типа этого:
http://vbsupport.org/forum/showthread.php?t=31078
 
Bot
Yandex Bot Yandex Bot is online now
 
Join Date: 05.05.2005
Реклама на форуме А что у нас тут интересного? =)
Old  
OldEr
Мастер
Master
 
OldEr's Avatar
Default 1

Условия в шаблонах:

If Viewer is a Member
--------------------------------------------------
If you want to show a link only to registered members you would use this conditional.
HTML Code:
Code:
<if condition="$show['member']"></if>
If Viewer is in the Following Usergroups Array. Enter the Usergroup Number(s) Seperated by a Comma
--------------------------------------------------
If you want to show an advertisement to viewers that are unregistered, registered members and awaiting email confirmation you would use the usergroup ids 1,2,3 within the array.
Code:
<if condition="is_member_of($vbulletin->userinfo, 1, 2, 3)"></if>
If This Script Is or Is Not XXX
--------------------------------------------------
If this script is index (as used in the example below) then it will show the code within the conditional. You can use it to show a piece of code only on Forumhome if you have to put it in a template that is global such as the header. To find out what the script is per page open up the php file that loads the page like for instance showthread.php and look for
PHP Code:
define('THIS_SCRIPT''showthread'); 
and the showthread part is what you would use.
Code:
<if condition="THIS_SCRIPT == 'index'"></if>
and here you can show information on every page but the index page by using this conditional
Code:
<if condition="THIS_SCRIPT != 'index'"></if>
If this user equals or does not equal xxx
--------------------------------------------------
What this conditional will do is only show certain information if the person viewing the page has the same userid as defined within the conditional. So if you put userid 667 inside the conditional below and put a link inside the conditional tags only the user that has the userid 667 will see that link.
Code:
<if condition="$bbuserinfo['userid'] == 667"></if>
and it works the opposite way as well if you do not want information to show for 667 but you want it to show for everyone else you would use
Code:
<if condition="$bbuserinfo['userid'] != 667"></if>
Display Information To Guests Only
--------------------------------------------------
The following conditional will display information only to guests and no one else. This is helpful in displaying a welcome message that you only wish for guests to see.
Code:
<if condition="$show['guest']"></if>
Display Information On a Per Forum Basis
--------------------------------------------------
This conditional allows you to display information on a per forum basis. This can be helpful if you wish to display different advertisements depending on what forum that the user is in. You would simply replace X with the forum id that you wish the information to appear in.
Code:
<if condition="$forum[forumid] == X"></if>
and on the other hand you can use the ! to do the opposite and display the information in every forum but the id you list
Code:
<if condition="$forum[forumid] != X"></if>
or if you have multiple forums you wish to include something with you can use an array such as this
Code:
<if condition="in_array($forum['forumid'], array(1,2,3,6))"></if>
If Usergroup Is or Is Not X
--------------------------------------------------
If the user is a member of the x usergroup then show the code
Code:
<if condition="$post['usergroupid'] == 6"></if>
and then you can use the ! to tell it to not show it to the x usergroup but show it to everyone else.
Code:
<if condition="$post['usergroupid'] != 6"></if>
If Users Birthday is Less Than or Greater Than XXXX-XX-XX Do Something
--------------------------------------------------
Just to show the power of vBulletin here is a cool conditional that will show information based on the birthday of the user. The one below will show "Too Young" if they were born after 01-01-1980.
Code:
<if condition="$bbuserinfo['birthday_search'] > '1980-01-01'">Too Young</if>
and this one will show you "Too Young" if the user was born before 01-01-1980
Code:
<if condition="$bbuserinfo['birthday_search'] < '1980-01-01'">Too Young</if>
If Thread is or is not in X Forum Execute Code
--------------------------------------------------
For instance if you want a piece of code to appear within thread in a particular forum you can do so with this conditional.
Code:
<if condition="$thread['forumid'] == X"></if>
If you want to show the piece of code on every new reply on every thread but 1 forum you can use this which says if thread is in forum x do not show the code but show it for all the other threads out side of forum x.
Code:
<if condition="$thread['forumid'] != X"></if>
and of course you can define multiple forum ids with the array
Code:
<if conditional="in_array($thread['forumid'], array(1,2,3,6))"></if>
Is user moderator of any forum?
--------------------------------------------------
If the user is a moderator execute code.
Code:
<if condition="can_moderate()"></if>
Is user moderator of current forum?
--------------------------------------------------
If the user is a moderator of the current forum execute code
Code:
<if condition="can_moderate($forum['forumid'])"></if>
Is user moderator of x Forum?
--------------------------------------------------
If the user is a moderator of x forum execute code.
Code:
<if condition="can_moderate($forum['x'])"></if>
Note: can_moderate() may add queries to your page.

Is user the thread starter?
--------------------------------------------------
Is the user the thread creator? If so execute code.
Code:
<if condition="$threadinfo['postuserid'] == $bbuserinfo['userid']"></if>
Is user the thread starter?
--------------------------------------------------
If the thread is closed execute code.
Code:
<if condition="!$show['closethread']"></if>
Place Information After First Post
--------------------------------------------------
Useful for adding a advertisement or other information after the first post on every page.
Code:
<if condition="!$GLOBALS['FIRSTPOSTID']"></if>
Place Information After x Post On Every Page
--------------------------------------------------
This will add your code directly after the post number you define on each page. If you put 2 in place of x the code will appear on every page after the second post.
Code:
<if condition="$post['postcount'] % $vboptions['maxposts'] == x"></if>
Using If Else in Templates
--------------------------------------------------
You can also use If Else conditionals within your templates. The below shows you how to correctly do this.
Code:
<if condition="$show['guest']">
    Show Guest This Message
<else />
    Show Everyone but guests this message
</if>
Офф. тема: http://forum.vbulletinsetup.com/f18/...list-2185.html
 
 

Thread Tools

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 10:28 PM.


Powered by vBulletin® Version 3.6.0
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.