Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Dėl sublinku
Parašė seNses· 2010 Rugs. 14 13:09:00
#1
Sveiki,
Aš noriu padaryt kad iš tokio linkų kodo išeitu sublinkai:
echo "<table cellspacing='0' cellpadding='0' width='".THEME_WIDTH."' align='center' >\n<tr>\n";
echo "<td>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td>
<td background='".THEME."images/subheader.png' height='60' width='1000' align='center'>
<a href='#'>Linkas</a>
<a href='#'>Linkas</a>
<a href='#'>Linkas</a>
<a href='#'>Linkas</a>
</td>
Tikiuosi supratot.
Beja kad nekurti naujos temos paklausiu čia. Kai aš vaikštau po tinklapi ir įeinu į pvz.lt/forum/index.php, tai iš jo negaliu sugrįžti į pvz.lt/news.php o perkelia mane į pvz.lt/forum/news.php kame galėtu būti problema?
Parašė PyccKuu· 2010 Rugs. 14 13:09:54
#2
<a href='http://pilnas.adresas.lt/news.php'>
Kad neeitu i /forums/news.php naudok pilna nuoroda su
http://
EDIT: Aj cia tik 2 atsakymas. O pirmo nesupratau ko reikejo tau
Redagavo PyccKuu· 2010 Rugs. 14 13:09:02
Parašė seNses· 2010 Rugs. 14 13:09:50
#3
Dėkui kad padėjai, o pirmam norėjau kad būtų sublinkai pvz: paspaudi navigacijoje Skilti Žaidimai ir tau išlenda lentele iš jos pvz Lenktynės, arcade ir t.t. nemoku tiksliai paaiškint. ;D
Redagavo seNses· 2010 Rugs. 14 13:09:35
Parašė ZW· 2010 Rugs. 14 14:09:19
#4
Yra modu saite... ;)
Netingesiu surasiu idesiu....
Parašė seNses· 2010 Rugs. 14 14:09:43
#5
Tai kad man nereikia navigacijos modo nes šis dalykas pas mane įrašytas i
theme.php
Va
theme.php:
<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_WIDTH", "999");
define("THEME_BULLET", "<img src='".THEME."images/bullet.gif' alt='' style='border:0' />");
require_once INCLUDES."theme_functions_include.php";
function render_page($license=false) {
global $settings, $main_style;
//Header
echo "<table cellspacing='0' cellpadding='0' width='".THEME_WIDTH."' align='center' >\n<tr>\n";
echo "<td>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td>
<td background='".THEME."images/itouch_02.png' height='44' width='1000'></td>
</td>
</tr></td>\n";
echo "</tr>\n</table>\n";
echo "</td>\n</tr>\n</table>\n";
echo "<table cellspacing='0' cellpadding='0' width='".THEME_WIDTH."' align='center' >\n<tr>\n";
echo "<td>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td>
<img src='".THEME."images/itouch_04.png'>
</td>
</tr></td>\n";
echo "</tr>\n</table>\n";
echo "</td>\n</tr>\n</table>\n";
echo "<table cellspacing='0' cellpadding='0' width='".THEME_WIDTH."' align='center' >\n<tr>\n";
echo "<td>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td>
<td background='".THEME."images/subheader.png' height='60' width='1000' align='center'>
<a href='#'>linkas1</a>
<a href='#'>linkas2</a>
<a href='#'>linkas3</a>
<a href='#'>linkas4</a>
</td>
</td>
</tr></td>\n";
echo "</tr>\n</table>\n";
echo "</td>\n</tr>\n</table>\n";
echo "<table cellspacing='0' cellpadding='0' width='".THEME_WIDTH."' align='center' >\n<tr>\n";
echo "<td>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td>
<marquee>Čia galį būtį jūsų reklamos tekstas!</marquee>
</td>
</tr></td>\n";
echo "</tr>\n</table>\n";
echo "</td>\n</tr>\n</table>\n";
echo "<table cellspacing='0' cellpadding='0' width='".THEME_WIDTH."' align='center' >\n<tr>\n";
echo "<td>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td>
<img src='".THEME."images/itouch_17.png'>
</td>
</tr></td>\n";
echo "</tr>\n</table>\n";
echo "</td>\n</tr>\n</table>\n";
//Content
echo "<table cellpadding='0' cellspacing='0' align='center' width='999' class='$main_style'>\n<tr>\n";
if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }
echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }
echo "</tr>\n</table>\n";
//Footer
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' align='center' width='999'>\n<tr>\n";
echo "<td background='".THEME."images/itouch_32.png' height='100' align='center'>Visos teisės saugomos <a href='http://mobiz.xe.lt'>MobiZ.Xe.LT</a><br><a href='http://MobiZ.Xe.LT/viewpage.php?page_id=1'>[Taisyklės]</a><a href='http://MobiZ.Xe.LT/viewpage.php?page_id=2'>[Reklama]</a><a href='http://MobiZ.Xe.LT/viewpage.php?page_id=3'>[Kontaktai]</a></td></td>\n";
echo "</td>\n</tr>\n</table>\n";
echo "</td>\n</tr>\n</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' align='center' width='500'>\n<tr>\n";
echo "<td background='".THEME."images/blekat_01.png' height='33' class='capmain'>".$subject."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td background='".THEME."images/blekat_02.png' class='main-body'>".$news."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td background='".THEME."images/foot.png' height='34' align='center'>\n";;
echo "</td>\n</tr>\n</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table cellpadding='0' cellspacing='0' align='center' width='500'>\n<tr>\n";
echo "<td background='".THEME."images/blekat_01.png' height='33' class='capmain'>".$subject."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td background='".THEME."images/blekat_02.png' class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td background='".THEME."images/foot.png' height='34' align='center' >\n";
echo "</td>\n</tr>\n</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='500' align='center'>\n<tr>\n";
echo "<td background='".THEME."images/blekat_01.png' height='33' class='capmain'>".$title."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td background='".THEME."images/blekat_02.png' class='main-body'>\n";
}
function closetable() {
echo "<td background='".THEME."images/foot.png' height='34' align='center' >\n";
echo "</td>\n</tr>\n</table><br>\n";
}
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo "<table cellpadding='0' cellspacing='0' width='211' class='border'>\n<tr>\n";
echo "<td background='".THEME."images/panel_01.png' height='37' class='scapmain'>".$title."</td>\n";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>\n";
}
echo "</tr>\n<tr>\n";
echo "<td".($collapse == true ? " colspan='2'" : "")." background='".THEME."images/panel_02.png' class='side-body'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside($collapse = false) {
global $panel_collapse;
echo"<td background='".THEME."images/panel_03.png' height='20'></td>\n";
echo "</td>\n</tr>\n</table>\n";
}
?>
Man tarkim reikia kai privedi pelyte prie linkas1 parodytu sublinkus pvz
1
2
3
Į apačia
Redagavo seNses· 2010 Rugs. 14 15:09:21