day & night

Меню в spaiz-nuke, PHP
Дата обновления: , перейти к новому сообщению
#1
liohaa



Unregistered














Подскажите пожалуйста где и как вставлять свои ссылки в блок навигация ??


Знаю что в файле block-Menu.php, а вот
в каком месте незнаю sad.gif



QUOTE

defined('SPAIZ_CODE') or die('Direct Access to this location is not allowed.');

global $prefix, $dbi, $admin;
$a = '';

$content = '· '._INDEX3.'
';
$content .= '· '._INDEX4.'
';

$result = sql_query("SELECT mod_title, mod_custom_title FROM ".$prefix."_mods WHERE mod_active='1' AND mod_in_block='1' ORDER BY mod_custom_title ASC", $dbi);
while(list($m_title, $mod_custom_title) = sql_fetch_row($result))
{
$m_title2 = ereg_replace("_", " ", $m_title);
if ($mod_custom_title != "")
{
  $m_title2 = $mod_custom_title;
}
$content .= '· '.$m_title2.'
';
}

if (is_admin())
{
$content .= "
"._INDEX5."
";
$result = sql_query("select mod_title, mod_custom_title from ".$prefix."_mods where mod_active='1' AND mod_in_block='0' ORDER BY mod_title ASC", $dbi);
while(list($mn_title, $mod_custom_title) = sql_fetch_row($result)) {
  $mn_title2 = ereg_replace("_", " ", $mn_title);
  if ($mod_custom_title != "")
  {
  $mn_title2 = $mod_custom_title;
  }
  if ($mn_title2 != "")
  {
  $content .= "· $mn_title2
\n";
  $dummy = 1;
  }
  else
  {
  $a = 1;
  }
}
if ($a == 1 AND $dummy != 1)
{
  $content .= "· "._INDEX7."
\n";
}
$content .= "
"._INDEX6."
";
$result = sql_query("select mod_title, mod_custom_title from ".$prefix."_mods where mod_active='0' ORDER BY mod_title ASC", $dbi);
while(list($mn_title, $mod_custom_title) = sql_fetch_row($result))
{
  $mn_title2 = ereg_replace("_", " ", $mn_title);
  if ($mod_custom_title != "")
  {
  $mn_title2 = $mod_custom_title;
  }
  if ($mn_title2 != "")
  {
  $content .= "· $mn_title2
\n";
  $dummy = 1;
  }
  else
  {
  $a = 1;
  }
}
if ($a == 1 AND $dummy != 1)
{
    $content .= "· "._INDEX7."
\n";
}
}

?>
Go topGo end
 

Ответов(1 - 1)
20.03.2006 - 22:54
#2
PRYANIK



Made In Tula
[SoftoRooMTeaM] Group Icon

Группа: Администраторы
Сообщений: 31.368
Регистрация: 22.02.2004
Пользователь №: 7


Респектов: 6432
-----XXXXX




К примеру так, под этот кусок кода:
CODE
global $prefix, $dbi, $admin;
$a = '';

$content = '<strong><big>·</big></strong> <a href="index.php">'._INDEX3.'</a><br>';

Ниже добавлять строки (нужное кол-во ссылок)
CODE
$content .= '<strong><big>·</big></strong> <a href="http://softoroom.org/page2.html">Нужный текст</a><br>';
$content .= '<strong><big>·</big></strong> <a href="http://softoroom.org/page3.html">Нужный текст</a><br>';



--------------------
Не работает ссылка? Пишите в теме, обновим :)! Link not working? Let us know in the comments, we'll fix it!


Трудно найти слова, когда действительно есть что сказать. Э.М. Ремарк
User is offline
Go topGo end

Topic Options
Сейчас: 28.04.2024 - 2:20
Мобильная версия | Lite версия