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

Всем привет

интересует один вопрос
Реально ли сделать так что бы с одним кликом Изменить стиль форума

например на верхнем в углу RED -Blue
и кликнув на РЕд например изменилось бы стиль

для языка есть

Откройте шаблон footer, найдите:

PHP Code:
   <td class="tfoot">
                        <
select name="langid" onchange="switch_id(this, 'lang')">
                                <
optgroup label="$vbphrase[quick_language_chooser]">
                                        
$languagechooserbits
                                
</optgroup>
                        </
select>
                </
td
И замените на:

PHP Code:
      <td class="tfoot" style="white-space:nowrap;">
                        <
a href="$vboptions[forumhome].php?langid=1">
                                <
img src="$stylevar[imgdir_misc]/lang_us.png" alt="EN" width="16" height="11" border="0" />
                        </
a>
                        <
a href="$vboptions[forumhome].php?langid=2">
                                <
img src="$stylevar[imgdir_misc]/lang_ru.png" alt="RU" width="16" height="11" border="0" />
                        </
a>
                </
td
Параметр langid={id}, где {id} - это ID языка.

и надо загрузить картинки

такое бы создать со стилем тоже Скартинками если еще лучше )

Спасибо Заранее

Last edited by FBI : 08-06-2012 at 02:10 AM.
Bot
Yandex Bot Yandex Bot is online now
 
Join Date: 05.05.2005
Реклама на форуме А что у нас тут интересного? =)
 
 
Hobot
Эксперт
 
Hobot's Avatar
Default
0

style swither в помощь.
 
 
kerk
k0t
 
kerk's Avatar
Default
1

<a href="index.php?styleid=1"><img src="image_tyle_1.png" /></a>
<a href="index.php?styleid=2"><img src="image_tyle_2.png" /></a>
<a href="index.php?styleid=3"><img src="image_tyle_3.png" /></a>
 
 
FBI
Знаток
 
FBI's Avatar
Default
0

Получилось)
а как эту кнопку в правый угол разместить?)
в Навбаре или в хеадере надо ?и после чего ?что бы было в самом верху справа?
 
 
Excalibur
Знаток
 
Excalibur's Avatar
Default
1

FBI, по всей видимости в header перед всем кодом шаблона.
 
 
Sven
Front-End Developer
 
Sven's Avatar
Default
1

а вопроса "Как их поставить в одну строку?" не будет? :(
 
 
FBI
Знаток
 
FBI's Avatar
Default
0

Quote:
Originally Posted by Sven View Post
а вопроса "Как их поставить в одну строку?" не будет? :(
вообще то будет))
кстати как?)


Quote:
Originally Posted by Excalibur View Post
FBI, по всей видимости в header перед всем кодом шаблона.

а насчет справа ?)

Last edited by FBI : 12-03-2010 at 02:01 AM. Reason: Добавлено сообщение
 
 
Волк
Эксперт
 
Волк's Avatar
Default
1

Quote:
Originally Posted by FBI View Post
кстати как?
Quote:
Originally Posted by FBI View Post
а насчет справа ?
В шаблоне header , в самом начале , меняешь этот код:

HTML Code:
<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
	<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
	<td align="$stylevar[right]" id="header_right_cell">
		<if condition="$ad_location['ad_header_logo']">$ad_location[ad_header_logo]<else />&nbsp;</if>
	</td>
</tr>
</table>
<!-- /logo -->
на этот:

HTML Code:
<!-- logo -->
<a name="top"></a>
	<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
		<tr>
			<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a>
			</td>
			<td align="$stylevar[right]" id="header_right_cell">
				<if condition="$ad_location['ad_header_logo']">$ad_location[ad_header_logo]<else />&nbsp;</if>
			</td>
			<td align="$stylevar[right]" valign="top" nowrap>
				<a href="index.php?styleid=1"><img src="$stylevar[imgdir_misc]/image_style_1.png" alt="Синий" width="16" height="16" border="0" /></a>
				<a href="index.php?styleid=2"><img src="$stylevar[imgdir_misc]/image_style_2.png" alt="Красный" width="16" height="16" border="0" /></a>
				<a href="index.php?styleid=3"><img src="$stylevar[imgdir_misc]/image_style_3.png" alt="Зеленый" width="16" height="16" border="0" /></a>
			</td>
		</tr>
	</table>
<!-- /logo -->

Last edited by Волк : 12-07-2010 at 03:06 AM.
 
 
FBI
Знаток
 
FBI's Avatar
Default
0

а в этом коде куда надо добавить тот код, что было так как в коде Волка
имею в воду что бы картинки в том же месте , но уже в другом шаблоне
хеадер код

HTML Code:
<a name="top"></a>
<div align="center">
<div id="hxy" style="width:950px">
   <div align="left" class="bl">

<div class="hxy_logo">
<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center">
 <tr valign="bottom">

	<td align="left"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>

<td width="100%" align="right" nowrap="nowrap" style="padding-right:9px">

<table width="100%" align="right" style="margin-bottom:1px" cellpadding="0" cellspacing="0" border="0">
<tr>
	<td align="right" class="logo-info" nowrap="nowrap" style="padding-bottom:9px">
<if condition="$show['member']">

	<div align="right" class="white"> 
			<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong>
			Ваш последний визит: $pmbox[lastvisitdate] в $pmbox[lastvisittime]
			<if condition="$show['pmstats']"><br />
		<if condition="$bbuserinfo['pmunread'] != 0">  
<a href="private.php$session[sessionurl_q]"><img class="inlineimg" src="$stylevar[imgdir_misc]/_newemail.gif" alt="new private message(s)" border="0" /></a>  </if> <phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
			<if condition="$show['pmwarning']"><br /><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></if>
	<else />
		<!-- login form -->
		<form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
		<script type="text/javascript" src="clientscript/vbulletin_md5.js?v=$vboptions[simpleversion]"></script>
		<table align="right" cellpadding="0" cellspacing="1" border="0">
		<tr align="center">
			<td style="font-size:11px; color:white;" nowrap="nowrap"><label for="navbar_username">$vbphrase[username]</label></td>
			<td style="font-size:11px; color:white;"><label for="navbar_password">$vbphrase[password]</label></td>
	<td colspan="2"></td>
 </tr><tr>
			<td><input type="text" class="bginput" style="font-size: 10px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" />&nbsp;</td>
			<td><input type="password" class="bginput" style="font-size: 10px" name="vb_login_password" id="navbar_password" size="10" tabindex="102" /></td>
			<td align="center"><input type="submit" class="button" value=" $vbphrase[log_in] " tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
			<td style="font-size:10px; color:white;" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />Запомнить?</label></td>
		</tr>
		</table>
		<input type="hidden" name="s" value="$session[sessionhash]" />
		<input type="hidden" name="do" value="login" />		
		<input type="hidden" name="vb_login_md5password" />
		<input type="hidden" name="vb_login_md5password_utf" />
		</form>
		<!-- / login form -->
	</if>
</td>
 </tr><tr>
<td width="100%" align="right">
	<a href="http://www.сайт.com/forum/forumdisplay.php?f=101" class="tab">Видео </a>
	<a href="http://www.сайт.com/forum/arcade.php" class="tab">Игры</a>
	<a href="http://www.сайт.com/forum/vbsoccer.php" class="tab">Футбол</a>
	<a href="http://www.сайт.com/photoplog" class="tab">Фото </a>
	<a href="http://www.сайт.com/forum" class="tab">Форумы</a>
<a href="http://www.сайт.com/" class="tab">Главная</a>
 </td>
</tr ></table>

<!-- /tabs -->
 </td>
</tr ></table>
</div>

<!-- content table -->
$spacer_open
$_phpinclude_output


и последний стиль)

HTML Code:
<!-- logo -->
<a name="top"></a>
<table background="$stylevar[imgdir_misc]/header.jpg" border="0" width="$stylevar[outertablewidth]" height="113" cellpadding="0" cellspacing="0" align="center">
<tr>
	<td width="225" align="left"></td>
	<td align="center"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
	<td width="225" align="left"></td>
</tr>
</table>
<!-- /logo -->

<!-- content table -->

$_phpinclude_output

$ad_location[ad_header_end]
больше не буду вас Мучат)

надеюсь ВОЛК скоро зайдешь в эту тему)

Last edited by FBI : 12-07-2010 at 02:38 AM. Reason: Добавлено сообщение
 
 
Волк
Эксперт
 
Волк's Avatar
Default
1

Quote:
Originally Posted by FBI View Post
и последний стиль
HTML Code:
<!-- logo -->
<a name="top"></a>
<table background="$stylevar[imgdir_misc]/header.jpg" border="0" width="$stylevar[outertablewidth]" height="113" cellpadding="0" cellspacing="0" align="center">
<tr>
	<td width="225" align="left"></td>
	<td align="center"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
	<td width="225" align="$stylevar[right]" valign="top" nowrap>
	<a href="index.php?styleid=1"><img src="$stylevar[imgdir_misc]/image_style_1.png" alt="Синий" width="16" height="16" border="0" /></a>
	<a href="index.php?styleid=2"><img src="$stylevar[imgdir_misc]/image_style_2.png" alt="Красный" width="16" height="16" border="0" /></a>
	<a href="index.php?styleid=3"><img src="$stylevar[imgdir_misc]/image_style_3.png" alt="Зеленый" width="16" height="16" border="0" /></a>
	</td>
</tr>
</table>
<!-- /logo -->

<!-- content table -->

$_phpinclude_output

$ad_location[ad_header_end]
Quote:
Originally Posted by FBI View Post
а в этом коде куда надо добавить тот код, что было так как в коде Волка
имею в воду что бы картинки в том же месте , но уже в другом шаблоне
хеадер код
Выложи куда нибудь весь этот стиль (из которого этот код) и дай ссылку, а то так не совсем понятно как это должно выглядеть. Если вставляю твой код себе в header получется венигрет какой то

Last edited by Волк : 12-07-2010 at 03:08 AM. Reason: Добавлено сообщение
 


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 08:33 PM.


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