Студия креативных разработок DevArt.PRO.
Разработка сайтов и форумов под ключ!
Сильнейшая команда в России по vBulletin - читать подробнее...
 
 
 
 

 
 
Здесь скоро опять что то будет...
 
 
 
 
 
 
Loading

Вернуться   форум vBSupport.org > vBulletin > vBulletin 3.5.x > Внешний вид 3.5

Объявления
  • Изменения в правах
  • Каталог Фрилансеров
  • Добро пожаловать!
  • Premoderation
  • Новичкам!
  • For English speaking users
Ответ
 
Опции темы Опции просмотра
Старый 21.10.2005, 08:44   #1
Простоузер
 
Аватар для Kozatchek
Нужна помощь в изменении внешнего вида

Помогите, нужно вставить строку с моими ссылка, типа на почту корпоративную, на сайт, но мне нужно что бы эта страка была в точно таком же стиле как и navbar форума, см. прилагаемый скрин.
Вложение 936
  Ответить с цитированием
Рекламка
Реклама на форуме
Старый 21.10.2005, 09:39   #2
КотЪ
Администратор
Неадекватный
 
Аватар для КотЪ
1. To install this hack you will have to create a template in you ADMINCP and call it “navbar2” and insert the contents of the attached file "navbar2.txt" into this template file. Right now it is set up for my site. So you will have to modify it to what you want in this navbar for your site.

2. Put the following command in your phpinclude_start template:


PHP Code:
eval('$navbar2 = "' . fetch_template('navbar2') . '";');



2A. This is for users that have the beta version of vB 3.5 step 2 will not work because the phpinclude_start template no longer exist in 3.5. I have not tested this yet because I do not use beta versions. But another user has relayed that this is the updated to make this work with 3.5. So for 3.5 users ignore step 2 and use 2A.

Plugin System
Add new Plugin

Hook Location: global_start
Title: navbar2
Plugin PHP Code:


PHP Code:
eval('$navbar2 = "' . fetch_template('navbar2') . '";');



3. Now put the following command in you header or what ever template where your want the new navbar to be displayed (samples of where to put them are in the attached photos and directions are in 5A, B, C, D, E.):

PHP Code:
$navbar2



4. Since the template is uncached you will have an extra query on each page. To fix, open global.php
Find:

PHP Code:
// misc useful



Add below:

PHP Code:
'navbar2',



5A. Under Navigation / Breadcrumb Templaters - navbar:
Find:

Code:
<!-- / nav buttons bar -->
Below that place:

Code:
$navbar2

5B. On top of forums tables:
Go to navbar template and put $navbar in the last line of the template.

5C. Under your header:
Find:

Code:
<br />

<!-- breadcrumb, login, pm info -->
Above that add:

Code:
$navbar2

5D. Top of status bar:
Find:

Code:
<!-- breadcrumb, login, pm info -->
Under that add:

Code:
$navbar2

5E. On top of navbar:
Find:

Code:
<!-- / breadcrumb, login, pm info -->

Under that add:

Code:
$navbar2
  Ответить с цитированием
Старый 21.10.2005, 10:38   #3
Kozatchek
Простоузер
 
Аватар для Kozatchek
Спасибо сансей!
  Ответить с цитированием
Старый 11.01.2006, 17:47   #4
VikZet
Простоузер
Спасибо, всё работает
  Ответить с цитированием
Ответ

Закладки

Опции темы
Опции просмотра

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.



 
 

Текущее время: 03:01 22.05.2012. Часовой пояс GMT +4.


Powered by vBulletin® Version 3.0.7
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd. Перевод: zCarot