Форум сетевых администраторов Страницы (6): [1] 2 3 » ... Последняя »
Показаны 82 сообщений на этой странице

Форум сетевых администраторов (http://netadmin.ws/forum/index.php)
- Хаки от Netadmin или "Сделай сам" (http://netadmin.ws/forum/forumdisplay.php?forumid=76)
-- Изменение шаблонов и стлей vBulletin 3.х.х (начинающему скиноделу) (http://netadmin.ws/forum/showthread.php?threadid=8311)


Помещено tohaaa 29-03-2004 в 10:27:

vBulletin3 - начинающему скиноделу

Не знаю насколько это нужно и если нужно то кому %)

Все, что вам нужно для создания собственного скина - знание основ HTML и руки, растущие из плеч
Ну и какие-то дизайнерские навыки (у меня с этим плохо так, что надеюсь на дополнения от дизайнеров)

1ое что надо сделать - включить "Add Template Name in HTML Comments" (General Settings > Add Template Name in HTML Comments - ДА)
Теперь когда вы будете просматривать страничку в виде HTML - увидите вставки типа <!-- BEGIN TEMPLATE: navbar --> очень удобно когда разбираешься, что есть где %)


ШАГ 1ый – «МОÐ_ДА»

http://alkata.ru/vbulletin3_gold.jpg

За морду отвечают следующие тимплейты:
1. header (header) – логотип (рис.1a) + пустое место (рис.1b)
2. navbar (Navigation / Breadcrumb Templates > navbar) – дерево форумов (рис.2a) + вэлкам, новые сообщения, авторизация (рис.2b) + (ниже) навигация по форуму (рис.2c)
3. FORUMHOME (Forum Home Templates > FORUMHOME) – вообще-то должен быть на 1ом месте, но для удобства пусть будет здесь. Содержит meta-теги, guest welcome message, шапку форумов (рис.3a), «Mark Forums Read» + «View Forum Leaders» (рис.3b), what's going on box (активные юзеры + статисти + днирож) (рис.3c), описание иконок (рис.3d), логаут (рис.3e)… все…
З.Ы. вообще говоря FORUMHOME – основной тимплейт «морды», а все остальные подгружаются из него.
4. forumhome_forumbit_level2_post и соответственно …_nopost (Forum Home Templates > forumhome_forumbit_level2_post) – этот тимплейт отвечает за внешний вид форумов (список форумов) (рис.4)
5. footer – время (рис.5a), выбор стиля (рис.5b), менюшку (рис.5c) и копирайты (рис.5d).


ЧТО ЕСТЬ ГДЕ В ТИМПЛЕЙТАХ

1. header

Простая табличка – 2е ячейки, в одной логотип в другой


code:

<!--
  NEW HEADER & NAVBAR

  Now that the nav buttons are in the
  navbar template, you can stick whatever
  you like into this space.

  This makes it much easier for novice
  admins to customize their header
  template without affecting important
  navigation elements.
-->



2. navbar

#######################
дерево форумов (рис.2a)
#######################



code:
	<td class="alt1" width="100%">
		<if condition="is_array($navbits)">
			<table cellpadding="0" cellspacing="0" border="0">
			<tr valign="bottom">
				<td><a href="#" onclick="history.back(1)"><img src="$stylevar[imgdir_misc]/navbits_start.gif" alt="$vbphrase[go_back]" border="0" /></a></td>
				<td> </td>
				<td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php?$session[sessionurl]">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
			</tr>
			<tr>
				<td class="navbar" style="font-size:10pt; padding-top:1px" colspan="3"><a href="$scriptpath"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink.gif" alt="$vbphrase[reload_this_page]" border="0" /></a> <strong>$navbits[lastelement]</strong></td>
			</tr>
			</table>			
		<else />
			<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php?$session[sessionurl]"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
		</if>
	</td>	




################################
вэлкам, новые сообщения (рис.2b)
################################



code:
	<if condition="$bbuserinfo['userid']">
	
		<td class="alt2" valign="top" nowrap="nowrap">
		<div class="smallfont">
			<!--<span style="float:$stylevar[right]">[<a href="login.php?$session[sessionurl]do=logout" onclick="return log_out()">$vbphrase[log_out]</a>]</span>-->
			<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
			<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
			<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl]">$vbphrase[private_messages_nav]</phrase></if>
		</div>
		</td>
		
	<else />




####################
авторизация (рис.2b)
####################



code:
		<td class="alt2" nowrap="nowrap" style="padding:0px">
			
		<!-- login form -->
		<form action="login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5password)">
		<script type="text/javascript" src="clientscript/vbulletin_md5.js"></script>
		<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
		<tr>
			<td class="smallfont">$vbphrase[username]</td>
			<td><input type="text" class="button" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="1" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
			<td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="3" id="cb_cookieuser_navbar" accesskey="c" checked="checked" />$vbphrase[remember_me]</label></td>
		</tr>
		<tr>
			<td class="smallfont">$vbphrase[password]</td>
			<td><input type="password" class="button" name="vb_login_password" size="10" accesskey="p" tabindex="2" /></td>
			<td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="4" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
		</tr>
		</table>
		<input type="hidden" name="s" value="$session[sessionhash]" />
		<input type="hidden" name="do" value="login" />
		<input type="hidden" name="forceredirect" value="1" />			
		<input type="hidden" name="vb_login_md5password" />
		</form>
		<!-- / login form -->
			
		</td>
		
	</if>	




############################
навигация по форуму (рис.2c)
############################

Здоровенный кусок кода между



code:
<!-- nav buttons bar -->
…
<!-- / nav buttons bar -->




3. FORUMHOME

#####################
guest welcome message
#####################



code:
	<if condition="$show['guest']">
	<!-- guest welcome message -->
	<tr>
		<td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><phrase 1="$vboptions[bbtitle]">$vbphrase[welcome_to_the_x]</phrase></td>
	</tr>
	<tr>
		<td class="alt1" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>">
			<phrase 1="faq.php?$session[sessionurl]" 2="register.php?$session[sessionurl]">$vbphrase[first_visit_message]</phrase>
		</td>
	</tr>
	<!-- / guest welcome message -->
	</if>




######################
шапка форумов (рис.3a)
######################



code:
<tr align="center">
	  <td class="thead"> </td>
	  <td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
	  <td class="thead" width="175">$vbphrase[last_post]</td>
	  <td class="thead">$vbphrase[threads]</td>
	  <td class="thead">$vbphrase[posts]</td>
	  <if condition="$vboptions['showmoderatorcolumn']">
	  <td class="thead">$vbphrase[moderator]</td>
	  </if>
	</tr>




##################################################

«Mark Forums Read» + «View Forum Leaders» (рис.3b)
##################################################




code:
	<tr>
		<td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong>
			<a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a>
			   
			<a href="showgroups.php?$session[sessionurl]">$vbphrase[view_forum_leaders]</a>
		</strong></div></td>
	</tr>




############################
what's going on box (рис.3c)
############################

Здоровенный кусок кода между



code:
<!-- what's going on box -->
…
<!-- end what's going on box -->




Я с ним особо не морочился поэтому останавливаться на нем не буду

#########################
описание иконок (рис.3d)
#########################



code:
		<table cellpadding="2" cellspacing="0" border="0">
		<tr>
			<td><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[contains_new_posts]" border="0" /></td>
			<td class="smallfont">  $vbphrase[forum_contains_new_posts]</td>
		</tr>
		<tr>
			<td><img src="$stylevar[imgdir_statusicon]/forum_old.gif" alt="$vbphrase[contains_no_new_posts]" border="0" /></td>
			<td class="smallfont">  $vbphrase[forum_contains_no_new_posts]</td>
		</tr>
		<tr>
			<td><img src="$stylevar[imgdir_statusicon]/forum_old_lock.gif" alt="$vbphrase[a_closed_forum]" border="0" /></td>
			<td class="smallfont">  $vbphrase[forum_is_closed_for_posting]</td>
		</tr>
		</table>




###############
логаут (рис.3e)
###############



code:
	<if condition="!$show['guest']">
		<!-- member logout -->
		<td align="$stylevar[right]"><a href="login.php?$session[sessionurl]do=logout"  onclick="return log_out()"><phrase 1="$bbuserinfo[username]">$vbphrase[log_out_x]</phrase></a></td>
		<!-- end member logout -->
	</if>




4. forumhome_forumbit_level2_post

Смотри тимплейт – ничего лишнего там нет

5. footer

##############
время (рис.5a)
##############



code:
<br />
<div class="smallfont" align="center">$vbphrase[all_times_are_gmt_x_time_now_is_y]</div>
<br />




####################
выбор стиля (рис.5b)
####################



code:
	<if condition="$show['quickchooser']">
		<td class="tfoot">
			<select name="styleid" id="ressel" onchange="switch_styleid(this)">
				<optgroup label="$vbphrase[quick_style_chooser]">
					$quickchooserbits
				</optgroup>
			</select>
		</td>
	</if>




################
менюшка (рис.5c)
################



code:
		<div class="smallfont">
			<strong>
				<a href="$vboptions[contactuslink]">$vbphrase[contact_us]</a> -
				<a href="$vboptions[homeurl]">$vboptions[hometitle]</a> -
				<if condition="$show['admincplink']"><a href="$admincpdir/">$vbphrase[admin]</a> -</if>
				<if condition="$show['modcplink']"><a href="$modcpdir/">$vbphrase[mod]</a> -</if>
				<if condition="$vboptions['archiveenabled']"><a href="archive/index.php">$vbphrase[archive]</a> -</if>
				<!-- - <a href="$vboptions[privacyurl]">$vbphrase[privacy_statement]</a> - -->
				<a href="#top">$vbphrase[top]</a>
			</strong>
		</div>




##################
копирайты (рис.5d)
##################

В самом низу между надписями



code:
<!-- Do not remove this copyright notice -->







ПÐ_ИМЕÐ_Ы

1. Приводим список форумов к виду:

http://alkata.ru/vbulletin3_gold_1.jpg

Тимплейт FORUMHOME. Меняем в «шапка форумов (рис.3a)»



code:
<tr align="center">
	  <td class="thead"> </td>
	  <td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
	  <td class="thead" width="175">$vbphrase[last_post]</td>
	  <td class="thead">$vbphrase[threads]</td>
	  <td class="thead">$vbphrase[posts]</td>
	  <if condition="$vboptions['showmoderatorcolumn']">
	  <td class="thead">$vbphrase[moderator]</td>
	  </if>
	</tr>




на



code:
<tr align="center">
	  <td class="thead"> </td>
	  <td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
	  <td class="thead">$vbphrase[threads]</td>
	  <td class="thead">$vbphrase[posts]</td>
	  <td class="thead" width="175">$vbphrase[last_post]</td>
	  <if condition="$vboptions['showmoderatorcolumn']">
	  <td class="thead">$vbphrase[moderator]</td>
	  </if>
	</tr>




В тимплейте forumhome_forumbit_level2_post



code:
	<td class="alt2" nowrap="nowrap"><p>$forum[lastpostinfo]</p></td>
	<td class="alt1">$forum[threadcount]</td>
	<td class="alt2">$forum[replycount]</td>
	<if condition="$vboptions['showmoderatorcolumn']">
	<td class="alt1"><div class="smallfont">$forum[moderators] </div></td>
	</if>




на



code:
	<td class="alt2">$forum[threadcount]</td>
	<td class="alt1">$forum[replycount]</td>
	<td class="alt2" nowrap="nowrap"><p>$forum[lastpostinfo]</p></td>
	<if condition="$vboptions['showmoderatorcolumn']">
	<td class="alt1"><div class="smallfont">$forum[moderators] </div></td>
	</if>




2. Приводим описание иконок к виду:

http://alkata.ru/vbulletin3_gold_2.jpg

Тимплейт FORUMHOME. Меняем в конце:

Все, что находится между



code:
<!-- icons and login code -->
…
<!-- / icons and login code -->



на


code:
<!-- icons and login code -->
<table cellpadding="0" cellspacing="2" border="0" width="100%">
<tr valign="bottom" align="middle">
	<td>
		<table class="alt2" cellpadding="2" cellspacing="2" border="0">
		<tr>
			<td><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[contains_new_posts]" border="0" /></td>
			<td class="smallfont">$vbphrase[forum_contains_new_posts]  </td>
		
			<td><img src="$stylevar[imgdir_statusicon]/forum_old.gif" alt="$vbphrase[contains_no_new_posts]" border="0" /></td>
			<td class="smallfont">$vbphrase[forum_contains_no_new_posts]  </td>
		
			<td><img src="$stylevar[imgdir_statusicon]/forum_old_lock.gif" alt="$vbphrase[a_closed_forum]" border="0" /></td>
			<td class="smallfont">$vbphrase[forum_is_closed_for_posting]</td>
		</tr>
		</table>
	</td>
</tr>
</table>
<!-- / icons and login code -->




Обратите внимание – логаут я убрал!
Вот этот кусок



code:
	<if condition="!$show['guest']">
		<td align="$stylevar[right]"><a href="login.php?$session[sessionurl]do=logout"  onclick="return log_out()"><phrase 1="$bbuserinfo[username]">$vbphrase[log_out_x]</phrase></a></td>
	</if>




Если тема заинтересовала продолжу. Пока жду отзывов и дополнений


Помещено MCTarakan 29-03-2004 в 16:30:

маладчина! очень полезная информация для новичков! Одобряю!

__________________
yMC.ru - хомяк музыканта


Помещено ... 01-04-2004 в 17:07:

10х за очень полезную информицию, продолжай в том же духе +5


Помещено tohaaa 03-04-2004 в 23:52:

В дополнение к шаг1:

Если менять в верхней менюшке текстовые ссылки на графические кнопки может получится как с кнопкой «поиск» (треугольник остался), а то и похуже %)

http://alkata.ru/vbulletin3_gold_3.jpg


code:

<td id="navbar_search"> <script type="text/javascript"> vbmenu_register("navbar_search"); </script> <a href="search.php?$session[sessionurl]"><img src="images/bar/menu_05.gif" border="0" alt="Поиск" /></a></td>



Меняем на


code:
<td id="navbar_search"> <script type="text/javascript"> vbmenu_register("navbar_search", true); </script> <a href="search.php?$session[sessionurl]"><img src="images/bar/menu_05.gif" border="0" alt="Поиск" /></a></td>



т.е. добавляем в vbmenu_register параметр “TRUE” и все будет хорошо (как с копкой «меню»)

tohaaa добавил 03-04-2004 в 23:54:46:
ШАГ 2ой – level_2
Очень похоже на шаг1, поэтому особо останавливаться на нем не буду.

http://alkata.ru/vbulletin3_gold_4.jpg

За него отвечают следующие тимплейты:
1. header (header) – было (рис.1)
2. navbar (Navigation / Breadcrumb Templates > navbar) – тоже было (рис.2)
3. FORUMDISPLAY (Forum Display Templates > FORUMDISPLAY) – содержит meta-теги, меню форума (не знаю как назвать рис.3a), шапку форумов (рис.3b) и все, что внизу (рис.3c)
4. forumhome_forumbit_level1_post и соответственно …_nopost (Forum Home Templates > forumhome_forumbit_level1_post) – этот тимплейт отвечает за внешний вид форумов (список форумов) (рис.4)
5. footer – ничего не изменилось(рис.5).


ЧТО ЕСТЬ ГДЕ В ТИМПЛЕЙТАХ

Если честно, жалко тратить время на эту хреновину. По сравнению с шаг1, поменялись только 2а тимплейта FORUMHOME и forumhome_forumbit_level2_post на FORUMDISPLAY и forumhome_forumbit_level1_post. Все по аналогии с шаг1 – лучше спрашивайте если, что непонятно.

tohaaa добавил 03-04-2004 в 23:57:37:
ШАГ 3ий – FORUMDISPLAY
Вот это уже интереснее.

http://alkata.ru/vbulletin3_gold_5.jpg

За него отвечают следующие тимплейты:
1. header (header) – было (рис.1)
2. navbar (Navigation / Breadcrumb Templates > navbar) – тоже было (рис.2)
3. FORUMDISPLAY (Forum Display Templates > FORUMDISPLAY) – содержит meta-теги, кнопку «newthread» (рис.3a), меню форума (не знаю как назвать рис.3b), шапку форумов (рис.3c), опять кнопка (рис.3d), Display Options (рис.3e, 3f, 3g), иконки (рис.3h), Posting Rules и Forum Jump (рис.3i)
4. announcebits – объявления (см. тимплейт)
5. threadbit (Threadbit Templates > threadbit) – этот тимплейт отвечает за внешний вид форумов (список форумов) (рис.4)
5. footer – ничего не изменилось(рис.5).


ЧТО ЕСТЬ ГДЕ В ТИМПЛЕЙТАХ

1. FORUMDISPLAY

Начиная со строки <!-- threads list -->, до этого все относилось к шаг.2 т.е. между <!-- sub-forum list -->…<!-- / sub-forum list -->

###########################
кнопка «newthread» (рис.3a)
###########################


code:
<!-- controls above thread list -->
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
<tr valign="bottom">
	<td class="smallfont"><if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else /> </if></td>
	<if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if>
</tr>
</table>
<!-- / controls above thread list -->



####################
меню форума (рис.3b)
####################


code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-bottom-width:0px">
<tr>
	<td class="tcat" width="100%">$vbphrase[threads_in_forum]<span class="normal">: $foruminfo[title]</span></td>
	<td class="vbmenu_control" id="forumtools"><a href="#goto_forumtools">$vbphrase[forum_tools]</a> <script type="text/javascript"> vbmenu_register("forumtools"); </script></td>
	<if condition="$show['forumsearch']">
	<td class="vbmenu_control" id="forumsearch"><a href="#goto_forumsearch">$vbphrase[search_this_forum]</a> <script type="text/javascript"> vbmenu_register("forumsearch"); </script></td>
	</if>
</tr>
</table>



######################
шапка форумов (рис.3c)
######################


code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
$announcebits
<tr>
	<if condition="$show['threadicons']">
		<td class="thead" colspan="2"> </td>
	<else />
		<td class="thead"> </td>
	</if>	
	<td class="thead" width="100%">
		<if condition="$show['threadratings']"><span style="float:$stylevar[right]"><a href="$sorturl&order=desc&sort=voteavg">$vbphrase[rating]</a> $sortarrow[voteavg]</span></if>
		<a href="$sorturl&order=asc&sort=title">$vbphrase[thread]</a> $sortarrow[title] /
		<a href="$sorturl&order=asc&sort=postusername">$vbphrase[thread_starter]</a> $sortarrow[postusername]
	</td>
	<td class="thead" width="150" align="center" nowrap="nowrap"><span style="white-space:nowrap"><a href="$sorturl&order=desc&sort=lastpost">$vbphrase[last_post]</a> $sortarrow[lastpost]</span></td>
	<td class="thead" align="center" nowrap="nowrap"><span style="white-space:nowrap"><a href="$sorturl&order=desc&sort=replycount">$vbphrase[replies]</a> $sortarrow[replycount]</span></td>
	<td class="thead" align="center" nowrap="nowrap"><span style="white-space:nowrap"><a href="$sorturl&order=desc&sort=views">$vbphrase[views]</a> $sortarrow[views]</span></td>
</tr>
<if condition="$show['threads']">
	<!-- show threads -->
	<if condition="$show['stickies']">
	$threadbits_sticky
	<!-- <tr><td class="thead" colspan="<if condition="$show['threadicons']">6<else />5</if>"> </td></tr>-->
	</if>
	$threadbits	
	<!-- end show threads -->
<else />
	<!-- show no threads message -->
	<tr>
		<td class="alt1" colspan="$foruminfo[bottomcolspan]" align="center">
			<div style="padding: 16px">
				<if condition="$show['noposts']"><strong>$vbphrase[no_posts_in_this_forum]</strong><else /><strong><phrase 1="$daysprune">$vbphrase[no_posts_last_x_days_forum]</phrase></strong><br />
				<span class="smallfont">$vbphrase[try_controls_below_for_older_posts]</span></if>
			</div>
		</td>
	</tr>
	<!-- end show no threads message -->
</if>
</table>



###########################
кнопка «newthread» (рис.3d)
###########################


code:
<!-- controls below thread list -->
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-top:3px">
<tr valign="top">
	<td class="smallfont"><if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else /> </if></td>
	<if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if>
</tr>
</table>
<!-- / controls below thread list -->



########################
Display Options (рис.3e)
########################
Display Options между <!-- Active Users in this Forum (and sub-forums) and Moderators -->


code:
<tr>
	<td class="tcat">$vbphrase[display_options]</td>
	<if condition="$show['activeusers']">
	<td class="tcat">$vbphrase[currently_active_users]</td>
	</if>
	<if condition="$show['moderators']">
	<td class="tcat">$vbphrase[moderators]</td>
	</if>
</tr>



########################
Display Options (рис.3f)
########################


code:
<tr>
	<td class="thead"><phrase 1="$limitlower" 2="$limitupper" 3="$totalthreads">$vbphrase[showing_threads_x_to_y_of_z]</phrase></td>
	<if condition="$show['activeusers']">
	<td class="thead">$totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_y_guests]</phrase> )</td>
	</if>
	<if condition="$show['moderators']">
	<td class="thead">$vbphrase[moderators]: $totalmods</td>
	</if>
</tr>



########################
Display Options (рис.3g)
########################


code:
<tr valign="top">
	<td class="alt1">
	
		<table cellpadding="0" cellspacing="1" border="0" width="100%">
		<tr>
			<td class="smallfont">$vbphrase[sorted_by]:</td>
			<td><select name="sort" style="width:125px">
				<option value="title" $sort[title]>$vbphrase[thread_title]</option>
				<option value="lastpost" $sort[lastpost]>$vbphrase[last_post_time]</option>
				<option value="replycount" $sort[replycount]>$vbphrase[number_of_replies]</option>
				<option value="views" $sort[views]>$vbphrase[number_of_views]</option>
				<option value="postusername" $sort[postusername]>$vbphrase[thread_starter]</option>
				<if condition="$show['threadratings']"><option value="voteavg" $sort[voteavg]>$vbphrase[thread_rating]</option></if>
			</select></td>
			<td class="smallfont">$vbphrase[sort_order]:</td>
			<td><select name="order" style="width:100px">
				<option value="asc" $order[asc]>$vbphrase[ascending]</option>
				<option value="desc" $order[desc]>$vbphrase[descending]</option>
			</select></td>
		</tr>
		<tr>
			<td class="smallfont">$vbphrase[from_the]:</td>
			<td><select name="daysprune" style="width:125px">
				<option value="1" $daysprunesel[1]>$vbphrase[last_day]</option>
				<option value="2" $daysprunesel[2]>$vbphrase[last_2_days]</option>
				<option value="7" $daysprunesel[7]>$vbphrase[last_week]</option>
				<option value="10" $daysprunesel[10]>$vbphrase[last_10_days]</option>
				<option value="14" $daysprunesel[14]>$vbphrase[last_2_weeks]</option>
				<option value="30" $daysprunesel[30]>$vbphrase[last_month]</option>
				<option value="45" $daysprunesel[45]>$vbphrase[last_45_days]</option>
				<option value="60" $daysprunesel[60]>$vbphrase[last_2_months]</option>
				<option value="75" $daysprunesel[75]>$vbphrase[last_75_days]</option>
				<option value="100" $daysprunesel[100]>$vbphrase[last_100_days]</option>
				<option value="365" $daysprunesel[365]>$vbphrase[last_year]</option>
				<option value="-1" $daysprunesel[all]>$vbphrase[beginning]</option>
			</select></td>
			<td class="smallfont"> </td>
			<td><input type="submit" class="button" value="$vbphrase[show_threads]" style="width:100px" /></td>
		</tr>
		</table>
	
	</td>



Активные участники (если есть)


code:
<if condition="$show['activeusers']">
	<td class="alt1"><div class="smallfont">$activeusers</div></td>
	</if>
	<if condition="$show['moderators']">
	<td class="alt1"><div class="smallfont">$moderatorslist </div></td>
	</if>



###############
иконки (рис.3h)
###############

Для экономии места, все, что находится между:

code:
<!-- icon key -->
…
<!-- / icon key -->



###################################
Posting Rules и Forum Jump (рис.3i)
###################################

Между тегами <!-- forum rules & forum jump -->, но основное находится в тимплейтах forumrules и forumjump

2. threadbit
См. тимплейт – выглядит стремно, но если присмотреться, ничего сложного


ПÐ_ИМЕÐ_Ы
Ну и напоследок

Приводим список форумов к виду:

http://alkata.ru/vbulletin3_gold_6.jpg

В тимплейте FORUMDISPLEY

######################
шапка форумов (рис.3c)
######################

2ой столбец надо разделить на два отдельных


code:
	<td class="thead" width="100%">
		<if condition="$show['threadratings']"><span style="float:$stylevar[right]"><a href="$sorturl&order=desc&sort=voteavg">$vbphrase[rating]</a> $sortarrow[voteavg]</span></if>
		<a href="$sorturl&order=asc&sort=title">$vbphrase[thread]</a> $sortarrow[title] /
		<a href="$sorturl&order=asc&sort=postusername">$vbphrase[thread_starter]</a> $sortarrow[postusername]
	</td>



на:


code:
<td class="thead" width="100%">
		<if condition="$show['threadratings']"><span style="float:$stylevar[right]"><a href="$sorturl&order=desc&sort=voteavg">$vbphrase[rating]</a> $sortarrow[voteavg]</span></if>
		<a href="$sorturl&order=asc&sort=title">$vbphrase[thread]</a> $sortarrow[title]	</td>

	<td class="thead" align="center" nowrap="nowrap" width="100"><span style="white-space:nowrap"><a href="$sorturl&order=asc&sort=postusername">$vbphrase[thread_starter]</a> $sortarrow[postusername]</span></td>



а 3ий столбец поставить после 5го (Views).

Теперь в тимплейте threadbit… проще всего заменить его полностью на


code:
<tr>
	<td class="alt1"><img src="$stylevar[imgdir_statusicon]/thread$thread[statusicon].gif" alt="<if condition="$show['threadcount']"><phrase 1="$thread[dot_count]" 2="$thread[dot_lastpost]">$vbphrase[have_x_posts_in_thread_last_y]</phrase></if>" border="" /></td>
	<if condition="$show['threadicons']">
		<td class="alt2"><if condition="$show['threadicon']"><img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" /><else /> </if></td>
	</if>
	<td class="alt1Active" id="t$thread[threadid]" title="$thread[preview]">
		
		<div>
			<span style="float:$stylevar[right]">
				<if condition="$show['paperclip']"><img class="inlineimg" src="$stylevar[imgdir_misc]/paperclip.gif" alt="<phrase 1="$thread[attach]">$vbphrase[x_attachments]</phrase>" /></if>
				<if condition="$show['subscribed']"><img class="inlineimg" src="$stylevar[imgdir_misc]/subscribed.gif" alt="$vbphrase[you_are_subscribed_to_this_thread]" /></if>
				<if condition="$show['sticky']"><img class="inlineimg" src="$stylevar[imgdir_misc]/sticky.gif" alt="$vbphrase[sticky_thread]" /></if>
			</span>
			<if condition="$show['gotonewpost']"><a href="showthread.php?$session[sessionurl]goto=newpost&t=$thread[threadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[go_to_first_new_post]" border="0" /></a></if>
			$thread[movedprefix]
			$thread[typeprefix]
			<a href="showthread.php? $session[sessionurl]t=$thread[threadid]$thread[hig
hlight]"><if condition="$show['gotonewpost']"><strong>$thread[threadtitle]</strong><else />$thread[threadtitle]</if></a>
			<if condition="$thread['pagenav']"><span class="smallfont" style="white-space:nowrap">( <img class="inlineimg" src="$stylevar[imgdir_misc]/multipage.gif" alt="$vbphrase[multipage_thread]" border="0" /> $thread[pagenav] <if condition="$show[pagenavmore]">... <a href="showthread.php?$session[sessionurl]t=$thread[threadid]&goto=lastpost$thread[highlight]">$vbphrase[last_page]</a></if> )</span></if>
		</div>
	
		<div class="smallfont">
			<if condition="$show['threadratings'] AND $show['threadrating']"><span style="float:$stylevar[right]"><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_$thread[rating].gif" border="0" alt="<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>" /></span></if>
		</div>
		
		<if condition="$show['unsubscribe']">
			<div class="smallfont">
				<a href="newreply.php?$session[sessionurl]do=newreply&t=$thread[threadid]">$vbphrase[reply]</a> |
				<a href="subscription.php?$session[sessionurl]do=removesubscription&return=ucp&t=$thread[threadid]">$vbphrase[unsubscribe]</a>
			</div>
		</if>
		
	</td>
	
		<td class="alt2" align="center" width="100"><div class="smallfont"><span style="cursorointer" onclick="window.open('member.php?$session[sessionurl]u=$thread[postuserid]')">$thread[postusername]</span></div></td>
	
	<if condition="$show['notificationtype']">
		<td class="alt1"><div class="smallfont" align="$stylevar[right]">
			<label for="sub$subscribethread[$threadid]">$thread[notification]<input type="checkbox" name="deletebox[$subscribethread[$threadid]]" id="sub$subscribethread[$threadid]" value="yes" /></label>
			<input type="hidden" name="oldemailupdate[$subscribethread[$threadid]]" id="oe_$subscribethread[$threadid]" value="$emailupdate[$threadid]" />
		</div></td>
	<else />
		<td class="alt1" align="center"><a href="#" onclick="who($thread[threadid]); return false;">$thread[replycount]</a></td>
		<td class="alt2" align="center">$thread[views]</td>


	<td class="alt1" title="<phrase 1="$thread[replycount]" 2="$thread[views]">$vbphrase[replies_x_views_y]</phrase>">
		<div class="smallfont" style="text-align:$stylevar[right]; white-space:nowrap">
			$thread[lastpostdate] <if condition="!$show['detailedtime']"><span class="time">$thread[lastposttime]</span></if><br />
			<phrase 1="member.php?find=lastposter&t=$thread[threadid]" 2="$thread[lastposter]">$vbphrase[by_x]</phrase>  <a href="showthread.php?$session[sessionurl]goto=lastpost&t=$thread[threadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]" border="0" /></a>
		</div>
	</td>
			
		<if condition="$show['forumlink']">
			<td class="alt1"><a href="forumdisplay.php?$session[sessionurl]f=$thread[forumid]">$thread[forumtitle]</a></td>
		</if>
	</if>
</tr>





С этим все. Осталось совсем немного, но силы закончились… Продолжу попозже

__________________
So much aggression in your head
Try to relax and understand
Babilon`s penetrated to your soul
Don`t loose your mind, hold on control!
Rastaman vibration - Positive!!!


Помещено Junio 09-04-2004 в 12:44:

Вот мои вопросы:

1: Как убрать копирайт внизу сайта?
2: Как убрать Копирайт в заголовке?
3: Как сделать вход в админку POP-UP окном?

__________________
Vip-Soft Group


Помещено xmaker 14-04-2004 в 10:18:

Как сделать чтобы на главной странице подфорумы выводились не встрочку, а в столбик?

__________________
Bonа mente...


Помещено tohaaa 15-04-2004 в 14:42:

Уряяяя..... заработало

В дополнение к примеру в шаге№3

Последний штрих (чтоб все было красиво)… В тимплейте forumdisplay_announcement меняем


PHP:


<td class="alt2" colspan="<if condition="$show['threadicons']">5<else />4</if>">



на


PHP:

<td class="alt2" colspan="<if condition="$show['threadicons']">6<else />5</if>">

__________________
So much aggression in your head
Try to relax and understand
Babilon`s penetrated to your soul
Don`t loose your mind, hold on control!
Rastaman vibration - Positive!!!


Помещено polo 15-04-2004 в 21:31:

На заметку: Когда предпологается не использовать в сообщении php код, то юзайте тег code, а то пхп задыхается при обработке.

__________________
Всегда есть решение.


Помещено kolorom 17-04-2004 в 00:58:

Ð_ебята нужно 2 вещи:
1) втулить SWF файл вместо логотипа с размером вточ подобнык как самая верхняя менюшка и чтоб поцентру было очень нужно пытаюсь но ника не выходит 8(

2) На главной есть строка (Последний пост) так нужно научится самой таблицей этой строки тоесть увеличить размер последнего поста а то место пустое раздражает 8(

Памагите 8)


Помещено ... 17-04-2004 в 13:08:

ты доки прочитал прежде чем задать вопрос? прочитай и вопросы сами собой отподут.


Помещено kolorom 17-04-2004 в 13:17:

tohaaa ответь плз на эти вопросы мгне нужен результат а не попытки ...


Помещено MCTarakan 17-04-2004 в 23:34:

kolorom это все ХТМЛ... а шаблоны: forumhome, navbar, header

__________________
yMC.ru - хомяк музыканта


Помещено kolorom 17-04-2004 в 23:49:

я впринципе предполагал но чтоб самому делать то стремно но ниче если есть с опытом то пишите как с флеш втулкой разобратся ато я сам долго возится буду влом мне свой креатив проявлять 8)


Помещено MCTarakan 17-04-2004 в 23:55:


code:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="234" height="60" />
      <param name="movie" value="http://link.to/your.swf">
      <param name="quality" value="high">
      <param name="play" value="true">
      <param name="scale" value="false">
      <embed src="http://link.to/your.swf" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="234" height="60"></embed></object>

__________________
yMC.ru - хомяк музыканта


Помещено tohaaa 18-04-2004 в 10:00:

kolorom
1ое: заходишь в админпанель... Styles & Templates > Style Manager > All Style Options.... Смотришь Sizes and Dimensions - в 1ой строке задется ширина борды в пикселях.... делаешь флэшку такогоже размера или меняешь размер борды на нужный....
Дальше лезешь в тимплейт Header - там таблица из 2ух ячеек - делаешь ее из одной и запихиваешь туда флешку как сказал MCTarakan ..... все!

2ое: Лезешь в тимплейт.... прямо здесь нажимаешь Ctrl+f вбиваешь "шапка форумов (рис.3a)" и смотрешь в коде на width="175" - это и есть размер нужной ячейки

__________________
So much aggression in your head
Try to relax and understand
Babilon`s penetrated to your soul
Don`t loose your mind, hold on control!
Rastaman vibration - Positive!!!


Формат времени GMT. Текущее время 22:06. Страницы (6): [1] 2 3 » ... Последняя »
Показаны 82 сообщений на этой странице

Powered by: vBulletin Version 2.2.4
Copyright © Jelsoft Enterprises Limited 2000, 2001.