Pradinis
Pagalba
Užsisakyk!
- Reklamą
- Hostingą
- El. pašto dėžutę
Užsisakyk!
Įrankiai
Pasidalink
- Visos temos
Forumas | PHP-Fusion, WordPress, Shopify, PHP ir MySQL (PROGRAMAVIMAS) | Žaliems |
Autorius: Atviorke | Peržiūrų: 1806 |
Atviorke Narys Žalias Pranešimai: 11 Įstojęs: 2011 Lie. 25 22:07:52 | |
Kaip idet skaitliuka? Va theme.php info <?php if (!defined("IN_FUSION")) { die("Access Denied"); } define("THEME_WIDTH", "1090"); 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,$userdata,$locale,$aidlink,$db_prefix; //Header echo "<div id='bg_fonas'><table cellspacing='0' cellpadding='0' width='".THEME_WIDTH."' align='center'>\n<tr>\n"; echo "<td>\n"; echo"<div id='header'>"; echo "<div id='logo'><img src='".THEME."/images/logo.png'></div>"; echo"</div>"; echo"<div id='meniu'>"; echo"<div id='nav' class='sub-header'>".showsublinks("", "white")."</div>"; echo"</div>"; echo "</td>\n</tr>\n</table>\n"; //Content echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center' 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 "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center'>\n<tr>\n"; echo "<td align='center' class='footer'>"; //Backlinkai echo "Kopijuoti be Savininko leidimo DRAUDZIAMA. Mus saugo WWW.CYBERPOLICE.LT"; echo "</td>"; echo "</tr>\n</table>\n"; } function render_news($subject, $news, $info) { echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n"; echo "<td class='capmain'>".$subject." </td>\n"; echo "</tr>\n<tr>\n"; echo "<td class='main-body'>".$news."</td>\n"; echo "</tr>\n<tr><br/>\n"; echo "<td align='center' class='news-footer'>\n"; echo newsposter($info," ·").newsopts($info,"·").itemoptions("N",$info['news_id']); echo "</td>"; echo "\n</tr>\n</table>\n"; } function render_article($subject, $article, $info) { echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n"; echo "<td class='capmain'>".$subject."</td>\n"; echo "</tr>\n<tr>\n"; echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n"; echo "</tr>\n<tr>\n"; echo "<td align='center' class='news-footer'>\n"; echo articleposter($info," ·").articleopts($info,"·").itemoptions("A",$info['article_id']); echo "</td>\n</tr>\n</table>\n"; } function opentable($title) { echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n"; echo "<td class='capmain'><div class='text'>".$title."</div></td>\n"; echo "</tr>\n<tr>\n"; echo "<td class='main-body'>\n"; } function closetable() { echo "</td>\n</tr>\n</table>\n"; } function openside($title, $collapse = false, $state = "on") { global $panel_collapse; $panel_collapse = $collapse; echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n"; echo "<td class='scapmain'><div class='text'>".$title."</div></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'" : "")." class='side-body'>\n"; if ($collapse == true) { echo panelstate($state, $boxname); } } function closeside($collapse = false) { global $panel_collapse; if ($panel_collapse == true) { echo "</div>\n"; } echo "</td>\n</tr><tr><td class='apacia'></td></tr></table>\n"; } ?> O va skaitliuko info 1) Nukopijuokite šį kodą į atmintį (clipboard). <a href="http://www.stats.lt/counter28667.html" target="_blank"><img id="statslt_cnt" src="" border="0" alt="www.stats.lt - Lankomumo statistika, reitingai, skaitliukas" style="display: none"></a> <script language="JavaScript" type="text/javascript"> <!-- var st_img; if (document.getElementById) st_img = document.getElementById('statslt_cnt'); if (!st_img && document.all) st_img = document.all['statslt_cnt']; if (st_img) { st_img.onload = function () { this.style.display = 'inline'; } st_img.src = "http://images.stats.lt/countme.php?site=28667&ref="+escape(document.referrer)+"&h="+ screen.height +"&w="+ screen.width + "&cs="+Math.random()*9999; } //--> </script> 2) Įterpkite šį kodą savo svetainės puslapiuose tarp <body> ir </body> žymenų toje vietoje, kurioje norite, kad atsirastų STATS.LT skaitliukas. Prasau padekit... |
|
Wasiulis Narys Terminatorius Pranešimai: 1251 Įstojęs: 2010 Sau. 27 14:01:08 | |
Eini į Administracija -> Sistemos valdymas -> Panelės -> [Sukurti naują panele] ir įrašai:openside("Skaitliukas"); FILMAITAU.in |
|
Atviorke Narys Žalias Pranešimai: 11 Įstojęs: 2011 Lie. 25 22:07:52 | |
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/sweetest/domains/sweet.wu.lt/public_html/administration/panel_editor.php(111) : eval()'d code on line 6 |
|
Jointass Narys Kapitonas Pranešimai: 647 Įstojęs: 2007 Spa. 31 20:10:10 | |
openside("Skaitliukas"); Šitas kodas turi veikti. Kas Nupiso Mano Kedus? |
|
switz Narys Tankas Pranešimai: 2261 Įstojęs: 2009 Lap. 7 14:11:14 | |
|
|
Atviorke Narys Žalias Pranešimai: 11 Įstojęs: 2011 Lie. 25 22:07:52 | |
Abudu variantai veikia dekui jum. jai dar galit padekit del mokejimai.lt... |
Peršokti į forumą: |