Тема: DTO Garage
Показать сообщение отдельно
Старый 16.04.2011, 10:36 Вверх   #1
Коренной житель
 
Аватар для disait
disait вне форума
Доп. информация
По умолчанию DTO Garage


DTO Гараж - это бесплатный продукт позволяет всем членам сайта, показать свой автомобиль.
Функции:
-экстерьер
-интерьер
-мультимедия
-обвес
-шины и диски


Нашел тему на vbsupport.org, скачал и не мог установить (а спрашивать у них бестолку сразу в бан).
Нашел офф сайт, скачал, перевел и сразу все установилось...



Фикс к хаку:

Найти в XML
Нажми для просмотра
Код:
<plugin active="1" executionorder="5">
			<title>DTO Garage Postbit Pop-up Menu</title>
			<hookname>postbit_display_start</hookname>
			<phpcode><![CDATA[global $pm, $threadpm;

$show['dto_garage_has_vehicles'] = false;

$usepostid = false;
$doable = false;

// If this is a private message postbit draw then retrieve the userinfo of the user that the PM is from
if (THIS_SCRIPT == 'private') {
  if ($_REQUEST['do']!= 'showhistory')
  {
    $userinfo = fetch_userinfo($pm['fromuserid']);
    $doable = true;
  }
}
else if ((THIS_SCRIPT == 'showpost' || THIS_SCRIPT == 'showthread' || THIS_SCRIPT == 'newreply') && $post['visible'] != 2)
{
  $usepostid = true;
  
  // Get the poster's userinfo
  $userinfo = fetch_userinfo($post['userid']);
  $doable = true;  
}   

if($doable && !empty($userinfo))
{
     require_once(DIR . '/includes/functions_dto_garage_common.php');

     // Build the Garage popup menu for this user
     $dto_garage_popup_menu = generate_garage_popup_menu($userinfo, false, true, false);

     eval('$template_hook[postbit_userinfo_right] .= "' . fetch_template('dto_garage_postbit_userinfo') . '";');
}]]></phpcode>
		</plugin>

Заменить на
Нажми для просмотра
Код:
<plugin active="1" executionorder="5" product="dto_garage">
		<title>DTO Garage Postbit Pop-up Menu</title>
		<hookname>postbit_display_start</hookname>
		<phpcode><![CDATA[global $pm, $threadpm;

$show['dto_garage_has_vehicles'] = false;

$usepostid = false;
$doable = false;

// If this is a private message postbit draw then retrieve the userinfo of the user that the PM is from
if (THIS_SCRIPT == 'private') {
  if ($_REQUEST['do']!= 'showhistory')
  {
    $userinfo = fetch_userinfo($pm['fromuserid']);
    $doable = true;
  }
}
else if ((THIS_SCRIPT == 'showpost' || THIS_SCRIPT == 'showthread') && $post['visible'] != 2)
{
  $usepostid = true;
  
  // Get the poster's userinfo
  $userinfo = fetch_userinfo($post['userid']);
  $doable = true;  
}   

if($doable && !empty($userinfo))
{
     require_once(DIR . '/includes/functions_dto_garage_common.php');

     // Build the Garage popup menu for this user
     $dto_garage_popup_menu = generate_garage_popup_menu($userinfo, false, true, true);

     eval('$template_hook[postbit_userinfo_right] .= "' . fetch_template('dto_garage_postbit_userinfo') . '";');
}]]></phpcode>
	</plugin>

Последний раз редактировалось disait; 27.04.2011 в 11:59..
  Ответить с цитированием
Cказали cпасибо:
 
Время генерации страницы 0.03880 секунды с 10 запросами