Просмотр темы |
# 1
| Тема: Мелкий вапрос. |
D1zMoNt
Пользователь
Местный
Сообщений: 39
Зарегистрирован: 21 Февраля 2008, 10:31:58
Сказали спасибо 1 раз Статус: offline
ICQ статус
|
Опубликовано 04 Марта 2008, 08:16:12 |
| |
А где задаётся парамерт отображения лого на форуме? Хочу задать его по центру я не могу найти где. |
|
|
|
^ наверх ^
|
# 2
| |
vjmykola
Пользователь
Завсегдатый
Сообщений: 96
Откуда: Красноярск
Зарегистрирован: 27 Ноября 2007, 07:32:59
Сказали спасибо 3 раз Статус: offline
ICQ статус
|
Опубликовано 04 Марта 2008, 08:41:39 |
| |
|
^ наверх ^
|
# 3
| |
D1zMoNt
Пользователь
Местный
Сообщений: 39
Зарегистрирован: 21 Февраля 2008, 10:31:58
Сказали спасибо 1 раз Статус: offline
ICQ статус
|
Опубликовано 04 Марта 2008, 10:09:46 |
| |
<?
$body_text = "#F2CEB8";
$body_bg = "#2C2C2C";
$theme_width = "90%";
$theme_width_l = "207";
$theme_width_r = "207";
function render_header($header_content) {
global $theme_width,$settings;
echo "<script type='text/javascript' src='".THEME."/grade.js'></script>";
echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0'>
<tr>
<td class='lefter'><img width='45' src='".THEME."images/lefter.gif' height='1' alt=''></td>
<td class='mbody' align='right'><table width='100%' cellpacing='0' cellpadding='0' border='0'><tr><td class='toplogo'><img src='".THEME."images/logo.jpg' alt=''></td></tr></table>
<table width='100%' cellspacing='0' cellpadding='0' border='0'>
<tr>
<td class='menuss'>\n";
$separator = " </td><td class='sep'></td><td class='menuss'> ";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
echo "\n";
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " $separator \n"; } else { echo "\n"; }
$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
echo "<a href='".$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."</td><td class='sep'></td><td width='30%' class='pustka'> </td>
</td><td class='sep'></td>
<td class='menus' align='right'>".ucwords(showdate($settings['subheaderdate'], time()))."</td>
</tr>
</table>\n";
echo "<table width='100%' cellspacing='0' cellpadding='0' align='center'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings;
echo "</tr>\n</table>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td class='footer' align='center'>".stripslashes($settings['footer'])."<br><br> <br></td>
</tr>
</table>
</td>
<td class='righter'><img width='45' src='".THEME."images/righter.gif' height='1' alt=''></td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
global $settings,$locale;
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td class='tresc01'></td>
<td colspan='3' class='tresc02'></td>
<td class='tresc03'></td>
</tr>
<tr>
<td class='tresc04'></td>
<td colspan='3' class='tresc05'>$subject</td>
<td class='tresc06'></td>
</tr>
<tr>
<td class='tresc07'></td>
<td colspan='3' class='tresc08'></td>
<td class='tresc09'></td>
</tr>
<tr>
<td class='tresc10'></td>
<td colspan='3' class='tresc11'>$news<br><br>
<img src='".THEME."images/bullet.gif' width='10' height='10' alt='' > ".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ".$locale['041'].showdate("longdate", $info['news_date'])."
<br><img src='".THEME."images/bullet.gif' width='10' height='10' alt='' > ".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")."
<a href='news.php?readmore=".$info['news_id']."'>".$locale['043']."</a> [ ".$info['news_comments']." ] · [ ".$info['news_reads']." ] ".$locale['044']." <a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0'></a></td>
<td class='tresc12'></td>
</tr>
<tr>
<td class='tresc13'><img src='".THEME."images/tresc/tresc_13.gif' width='4' height='29' alt=''></td>
<td class='tresc14'><img src='".THEME."images/tresc/tresc_14.gif' width='22' height='29' alt=''></td>
<td class='tresc15' width='100%'></td>
<td class='tresc16'><img src='".THEME."images/tresc/tresc_16.gif' width='22' height='29' alt=''></td>
<td class='tresc17'><img src='".THEME."images/tresc/tresc_17.gif' width='4' height='29' alt=''></td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td class='tresc01'></td>
<td colspan='3' class='tresc02'></td>
<td class='tresc03'></td>
</tr>
<tr>
<td class='tresc04'></td>
<td colspan='3' class='tresc05'>$subject</td>
<td class='tresc06'></td>
</tr>
<tr>
<td class='tresc07'></td>
<td colspan='3' class='tresc08'></td>
<td class='tresc09'></td>
</tr>
<tr>
<td class='tresc10'></td>
<td colspan='3' class='tresc11'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
<br>
<br><img src='".THEME."images/bullet.gif' width='10' height='10' alt='' > ".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['article_date'])."<br><img src='".THEME."images/bullet.gif' width='10' height='10' alt='' > <a href='articlecomments.php?article_id=".$info['article_id']."'>".$locale['043']."</a> [ ".$info['article_comments']." ] · [ ".$info['article_reads']." ] ".$locale['044']." <a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' ></a></td>
<td class='tresc12'></td>
</tr>
<tr>
<td class='tresc13'><img src='".THEME."images/tresc/tresc_13.gif' width='4' height='29' alt=''></td>
<td class='tresc14'><img src='".THEME."images/tresc/tresc_14.gif' width='22' height='29' alt=''></td>
<td class='tresc15' width='100%'></td>
<td class='tresc16'><img src='".THEME."images/tresc/tresc_16.gif' width='22' height='29' alt=''></td>
<td class='tresc17'><img src='".THEME."images/tresc/tresc_17.gif' width='4' height='29' alt=''></td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td class='tresc01'></td>
<td colspan='3' class='tresc02'></td>
<td class='tresc03'></td>
</tr>
<tr>
<td class='tresc04'></td>
<td colspan='3' class='tresc05'>$title</td>
<td class='tresc06'></td>
</tr>
<tr>
<td class='tresc07'></td>
<td colspan='3' class='tresc08'></td>
<td class='tresc09'></td>
</tr>
<tr>
<td class='tresc10'></td>
<td colspan='3' class='tresc11'>\n";
}
function closetable() {
echo "</td>
<td class='tresc12'></td>
</tr>
<tr>
<td class='tresc13'><img src='".THEME."images/tresc/tresc_13.gif' width='4' height='29' alt=''></td>
<td class='tresc14'><img src='".THEME."images/tresc/tresc_14.gif' width='22' height='29' alt=''></td>
<td class='tresc15' width='100%'></td>
<td class='tresc16'><img src='".THEME."images/tresc/tresc_16.gif' width='22' height='29' alt=''></td>
<td class='tresc17'><img src='".THEME."images/tresc/tresc_17.gif' width='4' height='29' alt=''></td>
</tr>
</table>\n";
}
function openside($title) {
global $p_data;
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td class='bok01'></td>
<td colspan='2' class='bok02'></td>
<td class='bok03'></td>
</tr>
<tr>
<td class='bok04'></td>
<td colspan='2' class='bok05'>$title</td>
<td class='bok06'></td>
</tr>
<tr>
<td class='bok07'></td>
<td colspan='2' class='bok08'></td>
<td class='bok09'></td>
</tr>
<tr>
<td class='bok10'></td>
<td colspan='2' class='bok11'>\n";
}
function closeside() {
global $p_data;
if ($p_data['panel_side'] == 1) {
echo "</td>
<td class='bok12'></td>
</tr>
<tr>
<td class='bok13'></td>
<td class='bok14'></td>
<td class='bok15'></td>
<td class='bok16'></td>
</tr>
</table>"; }
else {
echo "</td>
<td class='bok12'></td>
</tr>
<tr>
<td class='bok13'></td>
<td class='bok17'></td>
<td class='bok14'></td>
<td class='bok16'></td>
</tr>
</table>\n";
}
tablebreak();
}
$boxcounter = 1;
function opensidex($title,$open="on") {
global $boxcounter;
$boxname = "expbox".$boxcounter;
$boxcounter++;
$box_img = ($open=="on" ? "off" : "on");
echo "<table border='0' cellpadding='8' cellspacing='0' class='sideTitle' width='100%'><tr>"
."<td class='sideTitleOverlay' height='100%' width='100%' valign='top'>".$title."</td>"
."<td class='sideTitleMinMax' nowrap='nowrap'><img onclick=\"javascript:flipBox('$boxname')\" name='b_$boxname' alt='$box_img' src='".THEME."images/panel_$box_img.gif'></td>"
."</tr></table>\n";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr><td class='sideContent' width='100%'><div id='box_$boxname'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
global $p_data;
if ($p_data['panel_side'] == 1) {
echo "</div>
</td>
<td class='bok12'></td>
</tr>
<tr>
<td class='bok13'></td>
<td class='bok14'></td>
<td class='bok15'></td>
<td class='bok16'></td>
</tr>
</table>\n"; }
else {
echo "</div>
</td>
<td class='bok12'></td>
</tr>
<tr>
<td class='bok13'></td>
<td class='bok17'></td>
<td class='bok14'></td>
<td class='bok16'></td>
</tr>
</table>\n"; }
tablebreak();
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td height='2'></td>
</tr>
</table>\n";
}
?>
код файла |
|
|
|
^ наверх ^
|
# 4
| |
butters
Пользователь
Местный
Сообщений: 12
Зарегистрирован: 06 Февраля 2008, 09:03:37
Сказали спасибо 11 раз Статус: offline
|
Опубликовано 04 Марта 2008, 10:29:33 |
| |
Попробуй так: <?
$body_text = "#F2CEB8";
$body_bg = "#2C2C2C";
$theme_width = "90%";
$theme_width_l = "207";
$theme_width_r = "207";
function render_header($header_content) {
global $theme_width,$settings;
echo "<script type='text/javascript' src='".THEME."/grade.js'></script>";
echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0'>
<tr>
<td class='lefter'><img width='45' src='".THEME."images/lefter.gif' height='1' alt=''></td>
<td class='mbody' align='right'><table width='100%' cellpacing='0' cellpadding='0' border='0'><tr><td class='toplogo'><center><img src='".THEME."images/logo.jpg' alt=''></center></td></tr></table>
<table width='100%' cellspacing='0' cellpadding='0' border='0'>
<tr>
<td class='menuss'>\n";
$separator = " </td><td class='sep'></td><td class='menuss'> ";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
echo "\n";
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " $separator \n"; } else { echo "\n"; }
$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
if (strstr($data['link_url'], "http://";) || strstr($data['link_url'], "https://";)) {
echo "<a href='".$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."</td><td class='sep'></td><td width='30%' class='pustka'> </td>
</td><td class='sep'></td>
<td class='menus' align='right'>".ucwords(showdate($settings['subheaderdate'], time()))."</td>
</tr>
</table>\n";
echo "<table width='100%' cellspacing='0' cellpadding='0' align='center'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings;
echo "</tr>\n</table>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td class='footer' align='center'>".stripslashes($settings['footer'])."<br><br> <br></td>
</tr>
</table>
</td>
<td class='righter'><img width='45' src='".THEME."images/righter.gif' height='1' alt=''></td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
global $settings,$locale;
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td class='tresc01'></td>
<td colspan='3' class='tresc02'></td>
<td class='tresc03'></td>
</tr>
<tr>
<td class='tresc04'></td>
<td colspan='3' class='tresc05'>$subject</td>
<td class='tresc06'></td>
</tr>
<tr>
<td class='tresc07'></td>
<td colspan='3' class='tresc08'></td>
<td class='tresc09'></td>
</tr>
<tr>
<td class='tresc10'></td>
<td colspan='3' class='tresc11'>$news<br><br>
<img src='".THEME."images/bullet.gif' width='10' height='10' alt='' > ".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ".$locale['041'].showdate("longdate", $info['news_date'])."
<br><img src='".THEME."images/bullet.gif' width='10' height='10' alt='' > ".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")."
<a href='news.php?readmore=".$info['news_id']."'>".$locale['043']."</a> [ ".$info['news_comments']." ] · [ ".$info['news_reads']." ] ".$locale['044']." <a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0'></a></td>
<td class='tresc12'></td>
</tr>
<tr>
<td class='tresc13'><img src='".THEME."images/tresc/tresc_13.gif' width='4' height='29' alt=''></td>
<td class='tresc14'><img src='".THEME."images/tresc/tresc_14.gif' width='22' height='29' alt=''></td>
<td class='tresc15' width='100%'></td>
<td class='tresc16'><img src='".THEME."images/tresc/tresc_16.gif' width='22' height='29' alt=''></td>
<td class='tresc17'><img src='".THEME."images/tresc/tresc_17.gif' width='4' height='29' alt=''></td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td class='tresc01'></td>
<td colspan='3' class='tresc02'></td>
<td class='tresc03'></td>
</tr>
<tr>
<td class='tresc04'></td>
<td colspan='3' class='tresc05'>$subject</td>
<td class='tresc06'></td>
</tr>
<tr>
<td class='tresc07'></td>
<td colspan='3' class='tresc08'></td>
<td class='tresc09'></td>
</tr>
<tr>
<td class='tresc10'></td>
<td colspan='3' class='tresc11'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
<br>
<br><img src='".THEME."images/bullet.gif' width='10' height='10' alt='' > ".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['article_date'])."<br><img src='".THEME."images/bullet.gif' width='10' height='10' alt='' > <a href='articlecomments.php?article_id=".$info['article_id']."'>".$locale['043']."</a> [ ".$info['article_comments']." ] · [ ".$info['article_reads']." ] ".$locale['044']." <a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' ></a></td>
<td class='tresc12'></td>
</tr>
<tr>
<td class='tresc13'><img src='".THEME."images/tresc/tresc_13.gif' width='4' height='29' alt=''></td>
<td class='tresc14'><img src='".THEME."images/tresc/tresc_14.gif' width='22' height='29' alt=''></td>
<td class='tresc15' width='100%'></td>
<td class='tresc16'><img src='".THEME."images/tresc/tresc_16.gif' width='22' height='29' alt=''></td>
<td class='tresc17'><img src='".THEME."images/tresc/tresc_17.gif' width='4' height='29' alt=''></td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td class='tresc01'></td>
<td colspan='3' class='tresc02'></td>
<td class='tresc03'></td>
</tr>
<tr>
<td class='tresc04'></td>
<td colspan='3' class='tresc05'>$title</td>
<td class='tresc06'></td>
</tr>
<tr>
<td class='tresc07'></td>
<td colspan='3' class='tresc08'></td>
<td class='tresc09'></td>
</tr>
<tr>
<td class='tresc10'></td>
<td colspan='3' class='tresc11'>\n";
}
function closetable() {
echo "</td>
<td class='tresc12'></td>
</tr>
<tr>
<td class='tresc13'><img src='".THEME."images/tresc/tresc_13.gif' width='4' height='29' alt=''></td>
<td class='tresc14'><img src='".THEME."images/tresc/tresc_14.gif' width='22' height='29' alt=''></td>
<td class='tresc15' width='100%'></td>
<td class='tresc16'><img src='".THEME."images/tresc/tresc_16.gif' width='22' height='29' alt=''></td>
<td class='tresc17'><img src='".THEME."images/tresc/tresc_17.gif' width='4' height='29' alt=''></td>
</tr>
</table>\n";
}
function openside($title) {
global $p_data;
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td class='bok01'></td>
<td colspan='2' class='bok02'></td>
<td class='bok03'></td>
</tr>
<tr>
<td class='bok04'></td>
<td colspan='2' class='bok05'>$title</td>
<td class='bok06'></td>
</tr>
<tr>
<td class='bok07'></td>
<td colspan='2' class='bok08'></td>
<td class='bok09'></td>
</tr>
<tr>
<td class='bok10'></td>
<td colspan='2' class='bok11'>\n";
}
function closeside() {
global $p_data;
if ($p_data['panel_side'] == 1) {
echo "</td>
<td class='bok12'></td>
</tr>
<tr>
<td class='bok13'></td>
<td class='bok14'></td>
<td class='bok15'></td>
<td class='bok16'></td>
</tr>
</table>"; }
else {
echo "</td>
<td class='bok12'></td>
</tr>
<tr>
<td class='bok13'></td>
<td class='bok17'></td>
<td class='bok14'></td>
<td class='bok16'></td>
</tr>
</table>\n";
}
tablebreak();
}
$boxcounter = 1;
function opensidex($title,$open="on") {
global $boxcounter;
$boxname = "expbox".$boxcounter;
$boxcounter++;
$box_img = ($open=="on" ? "off" : "on");
echo "<table border='0' cellpadding='8' cellspacing='0' class='sideTitle' width='100%'><tr>"
."<td class='sideTitleOverlay' height='100%' width='100%' valign='top'>".$title."</td>"
."<td class='sideTitleMinMax' nowrap='nowrap'><img onclick=\"javascript:flipBox('$boxname')\" name='b_$boxname' alt='$box_img' src='".THEME."images/panel_$box_img.gif'></td>"
."</tr></table>\n";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr><td class='sideContent' width='100%'><div id='box_$boxname'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
global $p_data;
if ($p_data['panel_side'] == 1) {
echo "</div>
</td>
<td class='bok12'></td>
</tr>
<tr>
<td class='bok13'></td>
<td class='bok14'></td>
<td class='bok15'></td>
<td class='bok16'></td>
</tr>
</table>\n"; }
else {
echo "</div>
</td>
<td class='bok12'></td>
</tr>
<tr>
<td class='bok13'></td>
<td class='bok17'></td>
<td class='bok14'></td>
<td class='bok16'></td>
</tr>
</table>\n"; }
tablebreak();
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td height='2'></td>
</tr>
</table>\n";
}
?>
|
|
|
|
^ наверх ^
|
1 пользователь сказал спасибо Вам:
X-EcUt |
# 5
| |
D1zMoNt
Пользователь
Местный
Сообщений: 39
Зарегистрирован: 21 Февраля 2008, 10:31:58
Сказали спасибо 1 раз Статус: offline
ICQ статус
|
Опубликовано 04 Марта 2008, 11:20:30 |
| |
|
^ наверх ^
|
Перейти на форум:
|
|
|
105,467,942 уникальных посетителей сейчас: 22 Ноября 2024, 10:19:31 Генерация страницы: 0.14 сек.
|
|
Original size:52 кб. GZipped size: 9 кб. Compression:83% |
|