Показать сообщение отдельно
Старый 13.02.2010, 10:33 Вверх   #32
Старший модератор
 
Аватар для Ghost
Ghost вне форума
Доп. информация
По умолчанию

Drupal VB модуль интегрируется с форумами VBulletin Drupal.

Особенности
- Существующие пользователи VBulletin войти в Drupal
- Новым пользователям VBulletin войти в Drupal
- Существующих пользователей Drupal войти в VBulletin (после первоначальной экспорт)
- Новый Drupal пользователей войти в VBulletin
- Одноместный / Общие входа при входе в систему через Drupal
- Обновление данных пользователя в VBulletin после обновления в Drupal
- Удаление пользователей в VBulletin после удаления в Drupal
Установка
- Распаковать в папку модулей (обычно / сайты / все / модули /) и позволить под Администрирование> Сайт Строительство> модули.
Страница загрузки.


что бы форум был расположен на страницах drupal без перехода на новую страницу
Идем в админку vbulletin и там в шаблон "footer".
vBulletin->admincp->styles&templates->edit style->global templates->footer
Ищем:

Код:
vBulletin_init();
//-->
</script>
Добавляем ниже:

Код:
<!--WINDOW REZISE-->
<SCRIPT LANGUAGE="JavaScript1.2">
function DocSizeH()
{
var myHeight = 0;
if( typeof( window.innerWidth ) == 'number' )
{
//Non-IE
//myHeight = window.innerHeight;
myHeight = document.body.clientHeight
}
else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) )
{
//IE 6+ in 'standards compliant mode'
// myHeight = document.documentElement.clientHeight;
myHeight = document.body.clientHeight;
}
else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) )
{
//IE 4 compatible
myHeight = document.body.clientHeight;
}
//window.alert( 'Height = ' + myHeight );
return myHeight;
}
function DocSizeW() {
var myWidth = 0;
if( typeof( window.innerWidth ) == 'number' ) {
//Non-IE
myWidth = window.innerWidth;
} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
//IE 6+ in 'standards compliant mode'
myWidth = document.documentElement.clientWidth;
} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
//IE 4 compatible
myWidth = document.body.clientWidth;
}
//window.alert( 'Height = ' + myHeight );
return myWidth;
}
function resizeparent(iframeName)
{
//var iframeWin = window.frames[iframeName];
var iframeEl = parent.document.getElementById? parent.document.getElementById(iframeName): parent.document.all? parent.document.all[iframeName]: null;
if (iframeEl)
{
iframeEl.style.height = "auto"; // helps resize (for some) if new doc shorter than previous
//var docHt = getDocHeight(iframeWin.document);
// need to add to height to be sure it will all show
var h = DocSizeH();
var w = DocSizeW();
var new_h = (h);
var new_w = (w);
iframeEl.style.height = new_h + "px";
iframeEl.style.width = new_w + "px";
//alertSize();
}
}
</SCRIPT>
<SCRIPT FOR=document EVENT="onresize" LANGUAGE="JavaScript1.2">
//alert('onrezise');
resizeparent('ifrm');
</SCRIPT>
<SCRIPT FOR=window EVENT="onload" LANGUAGE="JavaScript1.2">
//alert('onload');
resizeparent('ifrm');
</SCRIPT>
<!--/WINDOW REZISE-->
 Дальше создаете страницу в Drupal и помещаете туда:

<iframe id="ifrm" src="/yourforum/yourforum.php" width="100%" scrolling="no" frameborder="0" >
Your Browser doesn't support iframes</iframe>
"/yourforum/yourforum.php" понятное дело заменяем на свой vbulletin/index.php п
  Ответить с цитированием
 
Время генерации страницы 0.04184 секунды с 10 запросами