Rozwijane menu - problem
|
alechinek |
Dodany dnia 27.05.2006 19:19:23
|
Przedszkolak
Postów: 6
Data rejestracji: 12.05.2006 13:47
|
moja strona- www.angel.sof2.pl W panelu uzytkownicy widoczny jest znak - lub + , w tym themie zastepuje on trojkacik do rowijania menu. Niestety nie dziala on, jak zmienei na them deufalt z trojkaciikiem wtedy jest wszytko ok. Jak zlikwidowac ten blad??? Z góry dziękuje za pomoc.
Jetsem noobkiem wiec mi pomożcie
|
|
|
|
Wścibski Gość |
Dodany dnia 23.12.2024 17:02:47
|
Pan Kontekstualny
Postów: n^x
Data rejestracji: Zawsze
|
|
IP: localhost |
|
|
Pieka |
Dodany dnia 27.05.2006 21:10:02
|
Postów: 19885 Pomógł: 767
v7.02.03 Data rejestracji: 23.02.2005 18:12
|
Zastap funkcje opensidex i closesidex tej skorki odpowiednimi funkcjami z tej, w ktorej dzialaja.
Znajdziesz je w pliku theme.php.
Jestem jaki jestem
|
|
|
|
m_i_n |
Dodany dnia 27.05.2006 21:12:05
|
Bywalec
Postów: 836 Pomógł: 3
Data rejestracji: 15.02.2006 10:04
|
Ej to opensidex sluzy do robienia rozwijanego panelu? LOL, nie wiedzialem a tyle sie glowilem po co to jest w theme.pl skoro nigdzie to wykozystane nie jest.
|
|
|
|
szer |
Dodany dnia 27.05.2006 21:36:31
|
Zaawansowany
Postów: 1139 Pomógł: 4
Data rejestracji: 13.11.2004 23:06
|
Hehehe zostawie to bez komentarza xDxD
Ale powiem że jak ktoś tego nie używał to mógł nie wiedzieć i się głowić nad tym po kiego boba to jest w theme.php
Edytowane przez szer dnia 27.05.2006 21:37:14
|
|
|
|
alechinek |
Dodany dnia 28.05.2006 11:19:52
|
Przedszkolak
Postów: 6
Data rejestracji: 12.05.2006 13:47
|
function opentable($title) { <p> function closeside() { <p> Chyba o to chodzi ...jak robie nowy panel to co mam wpisac zamiast opensidex i closesidex????
Jetsem noobkiem wiec mi pomożcie
|
|
|
|
alechinek |
Dodany dnia 28.05.2006 11:25:52
|
Przedszkolak
Postów: 6
Data rejestracji: 12.05.2006 13:47
|
kurde sry ze pisze podt pod postem - polaczcie - u gory wpisalem nie rowijany panel function opensidex($title,$open="on" { function closesidex() { wiec co mam wpisac za opensidex ja za bardzo nie widze roznicy wiec czemu nie dziala??
Jetsem noobkiem wiec mi pomożcie
|
|
|
|
szer |
Dodany dnia 28.05.2006 12:07:29
|
Zaawansowany
Postów: 1139 Pomógł: 4
Data rejestracji: 13.11.2004 23:06
|
Eh n/c :/
Żeby panel był rozwijany to wystarczy wpisać:
opensidex("Tytuł");
echo "treść";
closesidex();
jak ma być odrazu zwinięty to:
opensidex("Tytuł","off");
echo "treść";
closesidex();
|
|
|
|
alechinek |
Dodany dnia 28.05.2006 12:20:26
|
Przedszkolak
Postów: 6
Data rejestracji: 12.05.2006 13:47
|
chyba sie nei zrozumielismy. Wiem jak zrobic panel rozwiajny ale wlasnie w themie ktory mam to nie dzala! I dlatego zrobilem ten temat.
Jetsem noobkiem wiec mi pomożcie
|
|
|
|
szer |
Dodany dnia 28.05.2006 14:50:01
|
Zaawansowany
Postów: 1139 Pomógł: 4
Data rejestracji: 13.11.2004 23:06
|
lol. To podaj kod thema |
|
|
|
alechinek |
Dodany dnia 28.05.2006 18:38:40
|
Przedszkolak
Postów: 6
Data rejestracji: 12.05.2006 13:47
|
Dla przykladu dodalem po lewej stronie na dlole panel "Tytuł" zrobiony tak jak robi sie normalnie rozwijane menu. strona: www.angel.sof2.
Oto kod thema zrobionego przewz sonat gt-cs green:
<?
$body_text = "#C5F2B8";
$body_bg = "#2C2C2C";
$theme_width = "100%";
$theme_width_l = "207";
$theme_width_r = "207";
function render_header($header_content) {
global $theme_width,$settings;
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>Powered by: <b><a href='http://www.php-fusion.co.uk'>PHP-Fusion</a> v". sprintf("%.2f", $settings['version'])."</b> <br> <b>gt-cs</b> theme by: <b><a href='http://webmer.pl' target='_blank'>sonar</a></b></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='207' 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();
}
function opensidex($title,$open="on") {
global $p_data;
$box_img = ($open=="on" ? "off" : "on");
echo "<table width='207' 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 <img onclick=\"javascript:flipBox('$title')\" name='b_$title' alt='$box_img' border='0' src='".THEME."images/panel_$box_img.gif'><br><div id='box_$title'".($open=="off" ? "style='display:none'" : "")."></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 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";
}
?>
Jetsem noobkiem wiec mi pomożcie
|
|
|