Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: brownrope klausmai
Parašė K-braun· 2009 Bir. 18 03:06:33
#1
Sveiki, sukūriau klausimų temą kurioje rašysiu savo klausimus.
Taigi,
#1. Ar įmanoma padaryti potemes straipsniams? Kaip phpBB būną forumų potemes, o čia straipsniams? Gal yra koks mod'as?
Redagavo K-braun· 2010 Sau. 2 17:01:18
Parašė Nepas· 2009 Bir. 18 03:06:33
#2
kad straipsniams modu isvis nera bent jau nemates.. :|
Parašė K-braun· 2009 Bir. 18 03:06:52
#3
O gal būt žinai kaip padaryti potemes?
Parašė Nepas· 2009 Bir. 18 03:06:52
#4
parodyk pvz : ??
Parašė K-braun· 2009 Bir. 18 03:06:31
#5
Kad turėtų kas nors nesu matęs, bet va nupiešiau.
Redagavo K-braun· 2009 Bir. 18 03:06:48
Parašė K-braun· 2009 Bir. 18 19:06:24
#6
UP^ :)
Parašė samsung123· 2009 Bir. 18 19:06:24
#7
tokio dalyko tikrai nera.
Parašė MAnjack· 2009 Bir. 18 20:06:33
#8
Čia tau tipo subkategorijų reikia? Esu kažkur matęs v7 versijai.
Parašė K-braun· 2009 Bir. 19 01:06:02
#9
Taip teisingai MAnjack, subkategorijų, gaila, kad tik ant v7. :)
Redagavo K-braun· 2009 Bir. 19 19:06:26
Parašė And2s· 2009 Lie. 1 18:07:47
#11
<?
/*--------------------------------------------+
| PHP-Fusion 5 - Content Management System |
|---------------------------------------------|
| author: Nick Jones (Digitanium) 2002-2005 |
| web: http://www.php-fusion.co.uk |
| email: nick@php-fusion.co.uk |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
if (!defined("IN_FUSION"merkia akį) { header("Location:../../index.php"); exit; }
include("../infusions/rank_system/locale/".$settings['locale'].".php"merkia akį;
$row = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='1'"merkia akį;
$posts=dbarray($row);
$post1 = $posts['posts'];
$row2 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='2'"merkia akį;
$posts2=dbarray($row2);
$post2 = $posts2['posts'];
$row3 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='3'"merkia akį;
$posts3=dbarray($row3);
$post3 = $posts3['posts'];
$row4 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='4'"merkia akį;
$posts4=dbarray($row4);
$post4 = $posts4['posts'];
$row5 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='5'"merkia akį;
$posts5=dbarray($row5);
$post5 = $posts5['posts'];
$row6 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='6'"merkia akį;
$posts6=dbarray($row6);
$post6= $posts6['posts'];
$row7= dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='7'"merkia akį;
$posts7=dbarray($row7);
$post7 = $posts7['posts'];
$row8 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='8'"merkia akį;
$posts8=dbarray($row8);
$post8 = $posts8['posts'];
$row9 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='9'"merkia akį;
$posts9=dbarray($row9);
$post9 = $posts9['posts'];
$row11 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='11'"merkia akį;
$posts11=dbarray($row11);
$post11 = $posts11['posts'];
$row12 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='12'"merkia akį;
$posts12=dbarray($row12);
$post12 = $posts12['posts'];
$row13 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='13'"merkia akį;
$posts13=dbarray($row13);
$post13 = $posts13['posts'];
$row14 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='14'"merkia akį;
$posts14=dbarray($row14);
$post14 = $posts14['posts'];
$row15 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='15'"merkia akį;
$posts15=dbarray($row15);
$post15 = $posts15['posts'];
$row16 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='16'"merkia akį;
$posts16=dbarray($row16);
$post16 = $posts16['posts'];
$row = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='1'"merkia akį;
$names=dbarray($row);
$name1 = $names['names'];
$row2 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='2'"merkia akį;
$names2=dbarray($row2);
$name2 = $names2['names'];
$row3 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='3'"merkia akį;
$names3=dbarray($row3);
$name3 = $names3['names'];
$row4 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='4'"merkia akį;
$names4=dbarray($row4);
$name4 = $names4['names'];
$row5 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='5'"merkia akį;
$names5=dbarray($row5);
$name5 = $names5['names'];
$row6 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='6'"merkia akį;
$names6=dbarray($row6);
$name6= $names6['names'];
$row7= dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='7'"merkia akį;
$names7=dbarray($row7);
$name7 = $names7['names'];
$row8 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='8'"merkia akį;
$names8=dbarray($row8);
$name8 = $names8['names'];
$row9 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='9'"merkia akį;
$names9=dbarray($row9);
$name9 = $names9['names'];
$row11 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='11'"merkia akį;
$names11=dbarray($row11);
$name11 = $names11['names'];
$row12 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='12'"merkia akį;
$names12=dbarray($row12);
$name12 = $names12['names'];
$row13 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='13'"merkia akį;
$names13=dbarray($row13);
$name13 = $names13['names'];
$row14 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='14'"merkia akį;
$names14=dbarray($row14);
$name14 = $names14['names'];
$row15 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='15'"merkia akį;
$names15 =dbarray($row15);
$name15 = $names15['names'];
$row16 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='16'"merkia akį;
$names16 =dbarray($row16);
$name16 = $names16['names'];
if ($data[user_level] == 252) {
echo "".RS_099."
<br>";
}
else if ($data[user_level] == 251) {
echo "".RS_000."
<br>";
}
else if ($data[user_posts] == 0 ) {
echo " Kein rank
<br>";
}
else if ($data[user_posts] <= $post1 ) {
echo "$name1
<br>";
}
else if ($data[user_posts] <= $post2) {
echo "$name2
<br>";
}
else if ($data[user_posts] <= $post3) {
echo "$name3
<br>";
}
else if ($data[user_posts] <= $post4) {
echo "$name4
<br>";
}
else if ($data[user_posts] <= $post5) {
echo "$name5
<br>";
}
else if ($data[user_posts] <= $post6) {
echo "$name6
<br>";
}
else if ($data[user_posts] <= $post7) {
echo "$name7
<br>";
}
else if ($data[user_posts] <= $post8) {
echo "$name8
<br>";
}
else if ($data[user_posts] <= $post9) {
echo "$name9
<br>";
}
else if ($data[user_posts] <= $post11) {
echo "$name11
<br>";
}
else if ($data[user_posts] <= $post12) {
echo "$name12
<br>";
}
else if ($data[user_posts] <= $post13) {
echo "$name13
<br>";
}
else if ($data[user_posts] <= $post14) {
echo "$name14
<br>";
}
else if ($data[user_posts] <= $post15) {
echo "$name15
<br>";
}
else if ($data[user_posts] <= $post16) {
echo "$name16
<br>";
}
else {
echo "".RS_006."
<br>";
}
?>
Redagavo ramon· 2009 Lie. 1 18:07:17
Parašė K-braun· 2009 Lie. 1 18:07:40
#12
And2s - ačiū šiek tiek pagelbėjo, bet dar yra problemėlė.
Prie avataro jau prisiglaudė, dabar belieka aukščiau pakelt. :)
Štai kodas: (atsiprašau ankstesniame kode šypsenėlių išjungęs nebuvau)
----
Redagavo K-braun· 2009 Gru. 19 21:12:52
Parašė K-braun· 2009 Lie. 1 18:07:02
#13
UP^
Parašė And2s· 2009 Lie. 1 20:07:31
#14
<?
/*--------------------------------------------+
| PHP-Fusion 5 - Content Management System |
|---------------------------------------------|
| author: Nick Jones (Digitanium) 2002-2005 |
| web: http://www.php-fusion.co.uk |
| email: nick@php-fusion.co.uk |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
include("../infusions/rank_system/locale/".$settings['locale'].".php");
$row = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='1'");
$posts=dbarray($row);
$post1 = $posts['posts'];
$row2 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='2'");
$posts2=dbarray($row2);
$post2 = $posts2['posts'];
$row3 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='3'");
$posts3=dbarray($row3);
$post3 = $posts3['posts'];
$row4 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='4'");
$posts4=dbarray($row4);
$post4 = $posts4['posts'];
$row5 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='5'");
$posts5=dbarray($row5);
$post5 = $posts5['posts'];
$row6 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='6'");
$posts6=dbarray($row6);
$post6= $posts6['posts'];
$row7= dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='7'");
$posts7=dbarray($row7);
$post7 = $posts7['posts'];
$row8 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='8'");
$posts8=dbarray($row8);
$post8 = $posts8['posts'];
$row9 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='9'");
$posts9=dbarray($row9);
$post9 = $posts9['posts'];
$row11 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='11'");
$posts11=dbarray($row11);
$post11 = $posts11['posts'];
$row12 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='12'");
$posts12=dbarray($row12);
$post12 = $posts12['posts'];
$row13 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='13'");
$posts13=dbarray($row13);
$post13 = $posts13['posts'];
$row14 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='14'");
$posts14=dbarray($row14);
$post14 = $posts14['posts'];
$row15 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='15'");
$posts15=dbarray($row15);
$post15 = $posts15['posts'];
$row16 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='16'");
$posts16=dbarray($row16);
$post16 = $posts16['posts'];
$row = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='1'");
$names=dbarray($row);
$name1 = $names['names'];
$row2 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='2'");
$names2=dbarray($row2);
$name2 = $names2['names'];
$row3 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='3'");
$names3=dbarray($row3);
$name3 = $names3['names'];
$row4 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='4'");
$names4=dbarray($row4);
$name4 = $names4['names'];
$row5 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='5'");
$names5=dbarray($row5);
$name5 = $names5['names'];
$row6 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='6'");
$names6=dbarray($row6);
$name6= $names6['names'];
$row7= dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='7'");
$names7=dbarray($row7);
$name7 = $names7['names'];
$row8 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='8'");
$names8=dbarray($row8);
$name8 = $names8['names'];
$row9 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='9'");
$names9=dbarray($row9);
$name9 = $names9['names'];
$row11 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='11'");
$names11=dbarray($row11);
$name11 = $names11['names'];
$row12 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='12'");
$names12=dbarray($row12);
$name12 = $names12['names'];
$row13 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='13'");
$names13=dbarray($row13);
$name13 = $names13['names'];
$row14 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='14'");
$names14=dbarray($row14);
$name14 = $names14['names'];
$row15 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='15'");
$names15 =dbarray($row15);
$name15 = $names15['names'];
$row16 = dbquery("SELECT * FROM ".$db_prefix."forumrank WHERE id='16'");
$names16 =dbarray($row16);
$name16 = $names16['names'];
if ($data[user_level] == 252) {
echo "".RS_099."
<br>";
}
else if ($data[user_level] == 251) {
echo "".RS_000."
<br>";
}
else if ($data[user_posts] == 0 ) {
echo " Kein rank
<br>";
}
else if ($data[user_posts] <= $post1 ) {
echo "$name1
<br>";
}
else if ($data[user_posts] <= $post2) {
echo "$name2
<br>";
}
else if ($data[user_posts] <= $post3) {
echo "$name3
<br>";
}
else if ($data[user_posts] <= $post4) {
echo "$name4
<br>";
}
else if ($data[user_posts] <= $post5) {
echo "$name5
<br>";
}
else if ($data[user_posts] <= $post6) {
echo "$name6
<br>";
}
else if ($data[user_posts] <= $post7) {
echo "$name7
<br>";
}
else if ($data[user_posts] <= $post8) {
echo "$name8
<br>";
}
else if ($data[user_posts] <= $post9) {
echo "$name9
<br>";
}
else if ($data[user_posts] <= $post11) {
echo "$name11
<br>";
}
else if ($data[user_posts] <= $post12) {
echo "$name12
<br>";
}
else if ($data[user_posts] <= $post13) {
echo "$name13
<br>";
}
else if ($data[user_posts] <= $post14) {
echo "$name14
<br>";
}
else if ($data[user_posts] <= $post15) {
echo "$name15
<br>";
}
else if ($data[user_posts] <= $post16) {
echo "$name16
<br>";
}
else {
echo "".RS_006."
<br>";
}
?>
Parašė K-braun· 2009 Lie. 1 20:07:26
#15
Vis vien tas pats. ?|
EDIT: susitvarkiau reikėjo <br><br> nutrint. :) And2s, ačiū už pagalbą, +10.
Redagavo K-braun· 2009 Lie. 1 20:07:19
Parašė K-braun· 2009 Lie. 9 00:07:17
#16
#3.
http://www.ipix.lt/images/712767... - paveikslėlis..
Taigi kur yra parašyta "šitoj vietoj noriu padaryti" ar įmanoma padaryti, kad tarkim įėjus į "apie mus" ten būtų keletas nuorodų tarkim: "apie projektą", "apie orą", "apie
php-fusion", įėjus į puslapį "darbai" būtų visiškai kitokios nuorodos "mechanikas", "statybininkas", "programuotojas" įėjus į "programuotojas" būtų nuorodos "prog. asilo galva", "prog. žirfafos galva", "prog.
php"?
Prašau jokio O.T. AČIŪ.
Parašė xetti· 2009 Lie. 9 00:07:51
#17
Imanoma.
Parašė K-braun· 2009 Lie. 9 01:07:20
#18
O kaip tai padaryti būtų įmanoma?
Parašė zDon· 2009 Lie. 9 14:07:27
#19
Su table daryk.
Parašė K-braun· 2009 Lie. 9 15:07:23
#20
Pateik pavyzdy. Nes aš nelabai nusimanau. :)
Galėtų kas kodą parašyt? Tarkim įėjus į
http://tinklapis.lt/apie-mane.php ir toje linijoje rodytų tuos adresus. :) Būčiau labai dėkingas.
Redagavo K-braun· 2009 Lie. 10 01:07:28
Parašė zDon· 2009 Lie. 11 06:07:00
#21
<table width='100%' height='tavo norimas dydis px' background='color:#333333'><tr><td>
Čia tipo tavo tekstas
</tr></td></table>
Parašė K-braun· 2009 Lie. 12 23:07:51
#22
Pabandysiu vėliau, dėkui. ;)
Parašė K-braun· 2009 Gru. 18 17:12:25
#23
#4. Senai jau berašiau šitoje temoje. :) Taigi iškilo klausimas: [V7] Kaip padaryti, kad ir kairiosios ir dešiniosios panelės nebūtų dešiniojoje pusėje, nes kai įkėliau naują temą tai taip ir paliko.
theme.php
// Content
echo "<div class='container'>\n<div class='container2'>\n";
if ($main_style == "side-both") {
echo "<div class='".$main_style."'>".U_CENTER.CONTENT.L_CENTER."</div>\n";
echo "<div class='right_panel'>".RIGHT."</div>\n";
echo "<div class='left_panel'>".LEFT."</div>\n"; }
elseif ($main_style == "side-left") {
echo "<div class='left_panel'>".LEFT."</div>\n";
echo "<div class='".$main_style."'>".U_CENTER.CONTENT.L_CENTER."</div>\n"; }
elseif ($main_style == "side-right") {
echo "<div class='right_panel'>".RIGHT."</div>\n";
echo "<div class='".$main_style."'>".U_CENTER.CONTENT.L_CENTER."</div>\n"; }
elseif ($main_style == "") {
echo "<div>".U_CENTER.CONTENT.L_CENTER."</div>\n"; }
echo "</div>\n"; // end of container2 class
Manau čia kažkas. V7 theme.php nesigaudau beveik išvis, nesenai v7 instaliavau.
Redagavo K-braun· 2009 Gru. 18 17:12:39
Parašė BigMan· 2009 Gru. 18 18:12:26
#24
// Content
echo "<div class='container'>\n<div class='container2'>\n";
if ($main_style == "side-both") {
echo "<div class='".$main_style."'>".U_CENTER.CONTENT.L_CENTER."</div>\n";
echo "<div class='left_panel'>".LEFT."</div>\n"; }
elseif ($main_style == "side-left") {
echo "<div class='left_panel'>".LEFT."</div>\n";
echo "<div class='".$main_style."'>".U_CENTER.CONTENT.L_CENTER."</div>\n"; }
elseif ($main_style == "") {
echo "<div>".U_CENTER.CONTENT.L_CENTER."</div>\n"; }
echo "</div>\n"; // end of container2 class
ta turejai omeny?
Redagavo BigMan· 2009 Gru. 18 18:12:40
Parašė K-braun· 2009 Gru. 18 18:12:16
#25
Tikriausiai, neveikia.?|
Parašė K-braun· 2009 Gru. 19 23:12:16
#26
Man atrodo, kad daviau per mažai informacijos. Tai duodu jos daugiau:
Dabar yra taip:
http://www.part.lt/img/17454ff65...7fa321.bmp
O reikia, kad būtų taip:
http://www.part.lt/img/e67418fbd...c30783.bmp
Theme.php failas:
<?php
// Author: Alex Unknown
// WebSite: http://creativethemes.org
// E-mail: info@creativethemes.org
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
define("THEME_BULLET", "<img src='".THEME."images/bullet.gif' width='4' height='6' alt='' class='bullet' />");
function get_head_tags() {
?>
<script language="JavaScript">
date = new Date();
a = date.getHours();
if (a > 7 && a < 21) {
document.write("<link rel='stylesheet' href='<?echo THEME;?>css/birds.css' type='text/css' media='screen' />");
}
else
{
document.write("<link rel='stylesheet' href='<?echo THEME;?>css/night.css' type='text/css' media='screen' />");
}
</script>
<?php
}
function render_page($license=false) {
global $settings, $main_style;
// Header
echo "<div class='toolbar'>\n";
echo "<div class='navi'>\n";
echo "<span>".showsublinks("")."</span>\n";
echo "</div>\n";
echo "<div class='date_time'>".showsubdate()."</div>\n";
echo "</div>\n"; // end of toolbar class
echo "<div class='wrapper'>\n";
echo "<div class='header'>\n";
echo "<div class='icons'>\n";
echo "<a href='".BASEDIR."index.php' title='Home'><img src='".THEME."images/home.gif' width='14' height='11' alt='Home' /></a>";
if (file_exists(INFUSIONS.'site_map/site_map.php')) { echo "<a href='".BASEDIR."infusions/site_map/site_map.php' title='Site Map'><img src='".THEME."images/site_map.gif' width='14' height='10' alt='Site Map' /></a>"; }
echo "<a href='".BASEDIR."contact.php' title='Contact'><img src='".THEME."images/contact.gif' width='14' height='9' alt='Contact' /></a>";
echo "</div>\n";
echo "<img src='".THEME."images/blank.gif' width='130' height='37' alt='' style='float: right; margin-top: 49px; margin-right: 175px;' class='birds' />\n";
// Header Banner
echo "<div class='banner'>\n";
echo "<!-- 468x60 Banner Code --><img src='".THEME."images/sample_banner.gif' width='468' height='60' alt='' />";
echo "\n</div>\n";
// Theme logotype
echo "<a href='".BASEDIR."index.php' title='".$settings['sitename']."'><img src='".THEME."images/blank.gif' width='251' height='170' alt='".$settings['sitename']."' class='logotype' /></a>\n";
// System logotype (need to edit position)
// echo "<div style='margin-left: 120px; padding-top: 20px;'>".showbanners()."</div>";
echo "</div>\n"; // end of header class
echo "<div class='grass'></div>\n";
// Content
echo "<div class='container'>\n<div class='container2'>\n";
if ($main_style == "side-both") {
echo "<div class='".$main_style."'>".U_CENTER.CONTENT.L_CENTER."</div>\n";
echo "<div class='right_panel'>".RIGHT."</div>\n";
echo "<div class='left_panel'>".LEFT."</div>\n"; }
elseif ($main_style == "side-left") {
echo "<div class='left_panel'>".LEFT."</div>\n";
echo "<div class='".$main_style."'>".U_CENTER.CONTENT.L_CENTER."</div>\n"; }
elseif ($main_style == "side-right") {
echo "<div class='right_panel'>".RIGHT."</div>\n";
echo "<div class='".$main_style."'>".U_CENTER.CONTENT.L_CENTER."</div>\n"; }
elseif ($main_style == "") {
echo "<div>".U_CENTER.CONTENT.L_CENTER."</div>\n"; }
echo "</div>\n"; // end of container2 classS
// Footer
echo "<div class='top'><a href='#' title='TOP'><img src='".THEME."images/blank.gif' width='18' height='14' alt='TOP' /></a></div>\n";
echo "<div class='footer_line'></div>\n";
echo "<a href='".BASEDIR."rss.php' title='RSS' target='_blank'><img src='".THEME."images/blank.gif' width='35' height='38' alt='RSS' class='rss' /></a>\n";
echo "<div class='footer_text'>\n";
// Don't change or delete this string!
echo "<div style='float: right; margin-top: 7px; margin-right: 10px;'><a href='http://creativethemes.org' title='Creative Themes for PHP-Fusion CMS' target='_blank'><img src='".THEME."images/signature.gif' width='125' height='15' alt='Creative Themes' /></a></div>\n";
echo stripslashes($settings['footer'])."<div style='margin-top: 3px;'></div>\n";
if (!$license) { echo showcopyright(); }
echo "</div>\n";
echo "</div>\n"; // end of container class
echo "<div class='footer_bottom'></div>\n";
echo "</div>\n"; // end of wrapper class
}
function render_news($subject, $news, $info) {
echo "<div class='title'>".$subject."</div>\n";
echo "<div class='news'>".$news."</div>\n";
echo "<div class='info'>\n";
echo "<div class='info-l'>".newsposter($info,"")."</div><div class='info-r'>".newsopts($info,"·").itemoptions("N",$info['news_id'])."</div>\n";
echo "</div>\n";
}
function render_article($subject, $article, $info) {
echo "<div class='title'>$subject</div>\n";
echo "<div>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>\n";
echo "<div class='info'>\n";
echo "<div class='info-l'>".articleposter($info,"")."</div><div class='info-r'>".articleopts($info,"·").itemoptions("A",$info['article_id'])."</div>\n";
echo "</div>\n";
}
function opentable($title) {
global $main_style;
echo "<div class='center_panel'>\n";
if ($main_style == "side-both")
{ echo "<div class='title'>$title</div>\n"; }
else
{ echo "<div class='admin_title'>$title</div>\n"; }
echo "<div>\n";
}
function closetable() {
global $main_style;
echo "</div>\n</div>\n";
}
function openside($title) {
echo "<div class='panel'><div class='panel_top'><div><div>\n";
echo "<div class='panel_title'>".$title."</div>\n";
echo "<div class='panel_body'>\n";
}
function closeside() {
echo "</div>\n</div></div></div></div>\n";
}
// IN GOD WE TRUST
?>
Styles.css failas yra "redirektinamas" į:
/css/panels.css
/* Author: Alex Unknown */
/* WebSite: http://creativethemes.org */
/* E-mail: info@creativethemes.org */
/* Side Panels */
.left_panel {
float: left;
width: 194px;
}
.right_panel {
float: right;
width: 194px;
}
.panel {
background: #fff url(../images/panel_bg.gif) left top repeat-y;
margin-bottom: 5px;
}
.left_panel .panel .panel_top {
background: transparent url(../images/panel_top_left.gif) left top no-repeat;
}
.panel div {
background: transparent url(../images/panel_top_right.gif) left top no-repeat;
}
.panel div div {
background: transparent url(../images/panel_bottom.gif) left bottom no-repeat;
}
.panel div div div {
background: transparent;
}
.panel_title {
font-size: 12px;
font-weight: bold;
padding: 12px 0 6px 15px;
}
.left_panel .panel_title {
color: #ff7800;
}
.right_panel .panel_title {
color: #519d41;
}
.panel_body {
padding: 12px 15px 17px 15px;
}
.panel select {
margin-top: 3px;
}
/* Center Panels */
.center_panel {
padding-bottom: 9px;
}
.center_panel div.title {
color: #ff7800;
}
Jeigu dar ko nors reikia sakykit.
Parašė Creatium· 2009 Gru. 20 00:12:19
#27
Čia ne theme.php bėda kogero. Reik ieškoti failo, kuriame būtų nustatomas $main_style.
Parašė K-braun· 2009 Gru. 20 00:12:03
#28
Bent man ši problema tik su šia tema, su kitomis viskas gerai.
Parašė Creatium· 2009 Gru. 20 00:12:02
#29
Ai blyn.. Pražiopsojau labai paprastą klaidą :D
Štai.
Šią vietą:
if ($main_style == "side-both") {
echo "<div class='".$main_style."'>".U_CENTER.CONTENT.L_CENTER."</div>\n";
echo "<div class='right_panel'>".RIGHT."</div>\n";
echo "<div class='left_panel'>".LEFT."</div>\n"; }
keisk į:
if ($main_style == "side-both") {
echo "<div class='right_panel'>".RIGHT."</div>\n";
echo "<div class='".$main_style."'>".U_CENTER.CONTENT.L_CENTER."</div>\n";
echo "<div class='left_panel'>".LEFT."</div>\n"; }
Parašė K-braun· 2009 Gru. 20 00:12:16
#30
Nepadėjo. ?| (Min. privalomas ilgis: 20 simbolių)
Parašė Creatium· 2009 Gru. 20 00:12:38
#31
Tai tada nežinau.. Nes pagal viską turėjo padėti.
Parašė K-braun· 2009 Gru. 20 00:12:58
#32
Gal kas turit v7 forumo SEO kaip, kad čia yra?
Parašė K-braun· 2010 Kov. 6 18:03:56
#33
Sveiki,
bandau pasidaryti pilną SEO, bet kylą bėdų, nesuprantu kas šiame kode blogai:
echo "<div class='news-footer'><a href='".seoname($info['news_subject']).",n".$info['news_id']."'>Plačiau</a></div>\n";
Kai šį kodą įdedu į theme.php failą man rašo ne saitas.lt/naujienos-pavadinimas,n1 , o saitas.lt/,n1
Jeigu kas nors galite pataisykite šį kodą. Beje čia [v7].
Parašė edeni· 2010 Kov. 6 19:03:20
#34
Atsidarai seoname.php failą, ten randi // $seoit = strip_tags($seoit); ir ištrini // ir viskas veikia ;)
Parašė K-braun· 2010 Kov. 6 19:03:20
#35
Vis vien tą pačią klaidą meta.
Parašė Pakartoti slaptažodį· 2010 Kov. 6 19:03:12
#36
Padaryk $info kintamaji global'iu.
global $info;
Sita kaikur pries ta eilute parasyk. :)
Parašė K-braun· 2010 Kov. 6 20:03:07
#37
Nepadeda. :)
Nesuprantu ką daryt, o kai rašai saitas.lt/naujienos-pavadinimas,n1 tai tą naujieną atidaro. Bet kai dedu į news kodo footer dalį (theme.php faile) kodą meta klaidą:
Notice: Undefined index: news_subject in /home/---/domains/---.lt/public_html/themes/FangBlue/theme.php on line 89
O 89 eilutė yra:
echo "<div class='news-footer'><a href='".seoname($info['news_subject']).",n".$info['news_id']."'>Plačiau</a></div>";
render_news:
function render_news($subject, $news, $info) {
echo "<br><table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='capmain2'>".$subject."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='news-body'>".$news."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td align='center' class='news-footer'>\n";
echo "<div class='news-footer'><a href='".seoname($info['news_subject']).",n".$info['news_id']."'>Plačiau</a></div>";
echo "</td>\n</tr>\n</table>\n";
}
P.S. jeigu reikia kokio nors failo galiu prisegt.
Redagavo K-braun· 2010 Kov. 6 20:03:46
Parašė K-braun· 2010 Kov. 9 22:03:49
#38
http://img96.imageshack.us/img96...trauka.png - nesuprantu, kodėl man čia toks tarpas? Lyg ir theme.php žiūėrjau.. Ir ant visų temų taip, jeigu nustatau, kad rodytų kokią nors panelę centre viršuje, to tarpo nerodo.:)
Parašė K-braun· 2010 Kov. 10 17:03:31
#39
Nejaugi niekas nežinote kaip šią klaidą ištaisyti?
Parašė Žmogus· 2010 Kov. 10 18:03:53
#40
Mančius parašė:
http://img96.imageshack.us/img96...trauka.png - nesuprantu, kodėl man čia toks tarpas? Lyg ir theme.php žiūėrjau.. Ir ant visų temų taip, jeigu nustatau, kad rodytų kokią nors panelę centre viršuje, to tarpo nerodo.:)
Čia dažnai taip būna su v7 dizainais
Parašė K-braun· 2010 Kov. 12 02:03:09
#41
Tai va mano problema vėl dėl SEO:
SEO lyg ir veikia, bet adresą meta labai keista:
render_news:
function render_news($subject, $news, $info) {
global $locale; $seoname;
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." :: <a href='".seoname($subject).",n".$info['news_id']."'><b>".$locale['global_072n']."</b></a></td>\n";
echo "</tr>\n<tr>\n";
echo "<td align='center' class='news-footer'>\n";
echo "</td>\n</tr>\n</table>\n";
4
Jeigu kuris nors galėtumėte padėti per skype tai mano skype: brownrope.nr1
Redagavo K-braun· 2010 Kov. 12 18:03:38
Parašė K-braun· 2010 Kov. 16 23:03:55
#42
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: shoutbox_panel.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------+
|Modified by Mirivlad - http://mirivlad.net
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
echo "<script src=\"".INCLUDES."ajax/JsHttpRequest.js\"></script>
<script language=\"JavaScript\">
// Ōóķźöč˙ āūēūāąåģą˙ ļšč ķąęąņčč ķą źķīļźó Ńźąēąņü
function say() {
var pict = document.getElementById('chat_pict');
pict.style.display = 'inline';
JsHttpRequest.query(
'".BASEDIR."/infusions/m_ajax_shoutbox_panel/backend.php', // backend
{
// ļīńūėąåģ ēąļšīń ā įåźåķä
'post_shout': 1,
'shout_message': document.getElementById(\"shout_message\").value,
";
if (iMEMBER){echo "'shout_name': ".$userdata['user_id'].",";}
echo "
'shout_id': document.getElementById(\"shout_id\").value
},
// Ļšč ļīėó÷åķčč īņāåņą āūēūāąåģ ōóķźöčž.
function(result) {
// ēąļčńü šåēóėüņąņą.
if (result) {
document.getElementById(\"chat_text\").innerHTML = result[\"text1\"];
document.getElementById(\"shout_message\").value = \"\";
document.getElementById(\"shout_id\").value = \"\";
pict.style.display = 'none';
}
},
true // do not disable caching
);
}
function refresh() {
var pict = document.getElementById('chat_pict');
pict.style.display = 'inline';
JsHttpRequest.query(
'".BASEDIR."/infusions/m_ajax_shoutbox_panel/backend.php', // backend
{
// ļīńūėąåģ ēąļšīń ā įåźåķä
'post_shout': 0
},
// Ļšč ļīėó÷åķčč īņāåņą āūēūāąåģ ōóķźöčž.
function(result1) {
// ēąļčńü šåēóėüņąņą.
if (result1) {
document.getElementById(\"chat_text\").innerHTML = result1[\"text1\"];
document.getElementById(\"shout_message\").value = \"\";
document.getElementById(\"shout_id\").value = '';
pict.style.display = 'none';
}
},
true // do not disable caching
);
}
function edit(shout_id) {
var pict = document.getElementById('chat_pict');
pict.style.display = 'inline';
JsHttpRequest.query(
'".BASEDIR."/infusions/m_ajax_shoutbox_panel/backend.php', // backend
{
// ļīńūėąåģ ēąļšīń ā įåźåķä
'post_shout': 3,
'shout_id': shout_id
},
// Ļšč ļīėó÷åķčč īņāåņą āūēūāąåģ ōóķźöčž.
function(result2) {
// ēąļčńü šåēóėüņąņą.
if (result2) {
document.getElementById(\"shout_message\").value = result2[\"message\"],
document.getElementById(\"shout_id\").value = result2[\"shout_id\"];
pict.style.display = 'none';
}
},
true // do not disable caching
);
}
function del(shout_id) {
var pict = document.getElementById('chat_pict');
pict.style.display = 'inline';
JsHttpRequest.query(
'".BASEDIR."/infusions/m_ajax_shoutbox_panel/backend.php', // backend
{
// ļīńūėąåģ ēąļšīń ā įåźåķä
'post_shout': 4,
'shout_id': shout_id
},
// Ļšč ļīėó÷åķčč īņāåņą āūēūāąåģ ōóķźöčž.
function(result3) {
// ēąļčńü šåēóėüņąņą.
if (result3) {
document.getElementById(\"chat_text\").innerHTML = result3[\"text1\"];
document.getElementById(\"shout_message\").value = \"\";
document.getElementById(\"shout_id\").value = '';
pict.style.display = 'none';
}
},
true // do not disable caching
);
}
</script>";
include_once INCLUDES."bbcode_include.php";
require_once INFUSIONS."m_ajax_shoutbox_panel/chat_text.php";
$shout_message="";
openside($locale['global_150']);
if (iMEMBER) {
//Ōīšģą ļīńņčķćą ā ÷ąņ
echo "<form name='chatform' method='post' onsubmit='return false'>";
//Āāīä ńīīįłåķč˙
echo "<div><textarea id='shout_message' name='shout_message' rows='4' cols='20' class='textbox' style='width:140px'>".@$shout_message."</textarea></div><br />";
// Äīįąāė˙åģ įį-źīäū
echo "
<div>".display_bbcodes("150px;", "shout_message", "chatform", "smiley|b|u|url|color")."<br />\n
<input type='hidden' id='shout_id' name='shout_id' value=''>
<input type='submit' name='post_shout' value='".$locale['global_153']."' class='button' onclick='say();'>
<input type='submit' name='post_refresh' value='Atnaujinti' class='button' onclick='refresh();' />
<br>
<img src='".IMAGES."ajax-loader.gif' id='chat_pict' style='display:none;vertical-align: middle;'>
</div>
</form>
<br>\n";
//Āūāīäčģ āńņšīåķķūé ōšåéģ
echo "<div id='chat_text'>".$text1."</div>";
} else {
echo "<div id='chat_text'>".$text1."</div></br>";
echo "<div align='center'>".$locale['global_154']."</div>\n";
}
closeside();
?>
Kas sutvarkys šitą kodą, kad vietoj ??? rodytų lietuviškas raides, tam duosiu pilną AJAX šaukyklą. ;)
Redagavo K-braun· 2010 Kov. 16 23:03:00
Parašė Apocal· 2010 Kov. 17 16:03:46
#43
reikėjo prieš įkeliant į FTP išsaugoti failą UTF-8 koduote
Parašė Kelmas· 2010 Kov. 17 16:03:19
#44
header('Content-type: text/html; charset=windows-1257');
maincore.php prieš
?>
Redagavo Kelmas· 2010 Kov. 17 16:03:29
Parašė K-braun· 2010 Kov. 17 16:03:30
#45
Nei vienas būdas kažkodėl nepadeda. Tos pačios modifikacijos shoutbox_archive.php raides rodo kai jas parašai per tą failą. Nesuprantu kas yra su panele, turiu kitą AJAX shoutbox, ten rodo LT raides, bet ten kažkokią "xujova" ta šaukykla yra.
Beje, čia v7.
Redagavo K-braun· 2010 Kov. 17 16:03:07
Parašė K-braun· 2010 Kov. 19 22:03:56
#46
Karolis parašė:
header('Content-type: text/html; charset=windows-1257');
maincore.php prieš
?>
if (iADMIN) {
define("iAUTH", substr($userdata['user_password'], 16, 32));
$aidlink = "?aid=".iAUTH;
}
include INCLUDES."system_images.php";
require_once INCLUDES."seoname.php";
header('Content-type: text/html; charset=windows-1257');
?>
Va taip atrodo apačia, ant v7.