PHP-Fusion Mods
Navigacija
Apsauga
Apsauga Neleista registracija: 38936
Šiandien: 13
Prisijungę nariai
» Svečių: 8
» Narių: 0

» Viso narių: 10,235
» Naujausias: ruslanas tuk

Prisijungimų istorija:
tabux10:48:52
sanpernepamenu
Zbigniew@nepamenu
CepelinasXnepamenu
VV91DDnepamenu
Minusnepamenu
priezilviciunepamenu
EdvinasG1337nepamenu
rolandas94nepamenu
Edis2nepamenu
klubogerbejasnepamenu
Miskinisnepamenu
Pask. modai
Prisijungti
Vardas

Slaptažodis



Dar ne narys?
Registruotis.

Pamiršai slaptažodį?
Prašyk naujo!.

Naujausi prašymai
[L] testas
Narių apklausa
Ar dar kuriate tinklalapius?

Ne
Ne
0% [0 Balsai]

Taip
Taip
88% [7 Balsai]

Naudojuosi socialiniais tinklais
Naudojuosi socialiniais tinklais
13% [1 Balsas]

Balsai: 8
Kad galėtum balsuoti, turi prisijungti.
Pradėta: 2022-05-29 19:54
Shoutbox
You must login to post a message.

2026-03-21 19:07

2025-07-13 17:07
svx, smagu kad dar atsiranda naujų narių Šypsosi2

2024-03-07 22:13
Oj Tabux… apkabinčiau už tą moderatorių 😁

2024-02-22 17:40
Šypsosi2 jo buvo laikai.. Senukai jau mes. Bega laikas greiciau nei noretusi. Smagu matyti kad uzsuka seni nariai, ne as vienas Šypsosi

2024-02-20 22:18
Zodziu.. Nostalgija. Sorry Tabux uz spam’a, netelpa viskas i viena shout’a. 😁

Shoutbox Archive
Peržiūrėti temą
PHP-Fusion Mods :: PHP-Fusion modifikacijų forumas :: Patobulinimai
 Spausdinti temą
v7 Dvi paneles vienoje puseje
jawa
#1 Spausdinti pranešimą
parašyta 2010-10-23 10:20
Vartotojo avataras

Savekas



Reputacija: 0

Pranešimai: 126
Įstojo: 2007-04-24

Sveiki. Niekaip negaliu rasti pamokos arba paaiskinimo, kaip padaryti kad desnioji ir kairioji panele butu desneje puseje ? Yra pamoka kaip tai padaryti v6 vgersijai .... o man reikia v7 :P

Stai jeigu ka mano templates/panels.php failas

/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2010 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: panels.php
| Author: Nick Jones (Digitanium)
| Co Author: Hans Kristian Flaatten (Starefossen)
| Co Author: bartek124
+--------------------------------------------------------+
| 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).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }

// Calculate current true url
$script_url = explode("/", $_SERVER['PHP_SELF'].(FUSION_QUERY ? "?".FUSION_QUERY : ""));
$url_count = count($script_url);
$base_url_count = substr_count(BASEDIR, "/") + 1;
$start_page = "";
while ($base_url_count != 0) {
$current = $url_count - $base_url_count;
$start_page .= "/".$script_url[$current];
$base_url_count--;
}

define("START_PAGE", substr(preg_replace("#(&|\?)(s_action=edit&shout_id=)([0-9]+)#s", "", $start_page), 1));

$p_sql = false; $p_arr = array(1 => false, 2 => false, 3 => false, 4 => false);
if (!defined("ADMIN_PANEL")) {
if (check_panel_status("left")) {
$p_sql = "panel_side='1'";
}
if (check_panel_status("upper")) {
$p_sql .= ($p_sql ? " OR " : "");
$p_sql .= ($settings['opening_page'] != START_PAGE ? "(panel_side='2' AND panel_display='1')" : "panel_side='2'");
}
if (check_panel_status("lower")) {
$p_sql .= ($p_sql ? " OR " : "");
$p_sql .= ($settings['opening_page'] != START_PAGE ? "(panel_side='3' AND panel_display='1')" : "panel_side='3'");
}
if (check_panel_status("right")) {
$p_sql .= ($p_sql ? " OR " : "")."panel_side='4'";
}

$p_sql = ($p_sql ? " AND (".$p_sql.")" : false);

if ($p_sql) {
$p_res = dbquery(
"SELECT panel_side, panel_type, panel_name, panel_filename, panel_content FROM ".DB_PANELS."
WHERE panel_status='1'".$p_sql." AND ".groupaccess('panel_access')."
ORDER BY panel_side, panel_order"
);
if (dbrows($p_res)) {
$current_side = 0;
while ($p_data = dbarray($p_res)) {
if ($current_side == 0) {
ob_start();
$current_side = $p_data['panel_side'];
}
if ($current_side > 0 && $current_side != $p_data['panel_side']) {
$p_arr[$current_side] = ob_get_contents();
ob_end_clean();
$current_side = $p_data['panel_side'];
ob_start();
}
if ($p_data['panel_type'] == "file") {
if (file_exists(INFUSIONS.$p_data['panel_filename']."/".$p_data['panel_filename'].".php")) {
include INFUSIONS.$p_data['panel_filename']."/".$p_data['panel_filename'].".php";
}
} else {
eval(stripslashes($p_data['panel_content']));
}
}
$p_arr[$current_side] .= ob_get_contents();
ob_end_clean();
}
}
} else {
ob_start();
require_once ADMIN."navigation.php";
$p_arr[1] = ob_get_contents();
ob_end_clean();
}

if (!defined("ADMIN_PANEL")) {
$p_arr[2] = "\n".$p_arr[2];
if (iADMIN && $settings['maintenance']) {
$p_arr[2] = "
".$locale['global_190']."
\n".$p_arr[2];
}
if (iSUPERADMIN && file_exists(BASEDIR."setup.php")) {
$p_arr[2] = "
".$locale['global_198']."
\n".$p_arr[2];
}
if (iADMIN && !$userdata['user_admin_password']) {
$p_arr[2] = "
".$locale['global_199']."
\n".$p_arr[2];
}
}

define("LEFT", $p_arr[1]);
define("U_CENTER", $p_arr[2]);
define("L_CENTER", $p_arr[3]);
define("RIGHT", $p_arr[4]);
unset($p_arr);

// Set the require div-width class
if (defined("ADMIN_PANEL")) {
$main_style = "side-left";
} elseif (LEFT && RIGHT) {
$main_style = "side-both";
} elseif (LEFT && !RIGHT) {
$main_style = "side-left";
} elseif (!LEFT && RIGHT) {
$main_style = "side-right";
} elseif (!LEFT && !RIGHT) {
$main_style = "";
}
?>

http://sensation-...
 
PM
Wyciokazz
#2 Spausdinti pranešimą
parašyta 2010-10-23 10:32
Vartotojo avataras

Administratorius



Reputacija: 1

Pranešimai: 2108
Įstojo: 2008-02-27

ne cia jau temoje keisti reiktu ten yra .RIGHT. po to .LEFT. ir ten va reik pakeisti jog right butu po left arba pries left bet ne pries UTCR ar kazkas panasaus.
Kam kurti tai kas jau sukurta.

Nesu ekstrasensas ar dar koks čigonas tad iš nieko negaliu suprast kur bėda.

[img]http://27.media.tumblr.com/tumblr_m3hdwudgjG1rteofuo1_500.gif[/img]
 
PM
avice
#3 Spausdinti pranešimą
parašyta 2010-10-23 11:56
Savekas



Reputacija: 0

Pranešimai: 110
Įstojo: 2008-02-07

na nesuprantu kodel tiesiog neperkelus visu paneliu i desne puse?dabar isigalvoja visokiu nesamoniu...
 
PM
Peršokti į forumą: