CKeditor : phpRS Fórum
Máte dotaz ohledně CKeditoru/FCKeditoru pro phpRS?
phpRS - redakční a informační systém
iBrowser a phprs 2.8.1
Zaslán uživatelem/kou: PTiCA (IP adresa zaznamenána)
Datum: 2007-04-24, 16:47

Zdravim,
mam furt problem s cestou k obrazkum muzete mi poradit???

server bezi na www2.tuningy.com

a cestu k obrazkum chci mit na www2.tuningy.com/images/

jak to mam udelat?


tento config mam nastavenej. Kde je chyba?
--------------code--------------
<?php
// ================================================
// PHP image browser - iBrowser
// ================================================
// iBrowser - configuration
// ================================================
// Developed: net4visions.com
// Copyright: net4visions.com
// License: GPL - see license.txt
// (c)2005 All rights reserved.
// ================================================
// Revision: 1.3.2 Date: 12/12/2005
// ================================================

//-------------------------------------------------------------------------
// INSTRUCTIONS:
//
// Please make sure that all of the following directories have writing permissions:
// 1. image libraries (chmod 0755 or 0777)
// 2. ibrowser/scripts/phpThumb/cache (chmod 0755 or 0777)
// 3. ibrowser/temp (chmod 0755 or 0777)

// see readme.txt for further instructions

//-------------------------------------------------------------------------
$cfg['lang'] = 'cs'; // default language; e.g. 'en'
$cfg['valid'] = array('gif', 'jpg', 'jpeg', 'png'); // valid extentions for image files
$cfg['upload'] = true; // allow uploading of image: 'true' or 'false'
$cfg['umax'] = 1; // max. number of image files to be uploaded; default: 1; value > 1
$cfg['create'] = true; // allow to create directory: 'true' or 'false'
$cfg['delete'] = true; // allow deletion of image: 'true' or 'false'
$cfg['rename'] = true; // allow renaming of image: 'true' or 'false'
$cfg['attrib'] = true; // allow changing image attributes: 'true' or 'false'; default = false;
$cfg['furl'] = true; // default: true; if set to true, full url incl. domain will be added to image src
$cfg['random'] = '&w=150&h=150&zc=1'; // random image parameters (see phpThumb readme for more information)
$cfg['style'] = array ( // css styles for images ('class' => 'descr'); - please make sure that the classes exist in your css file
'left' => 'align left', // image: float left
'right' => 'align right', // image: float right
'capDivRightBrd' => 'align right, border', // caption: float right with border
'capDivRight' => 'align right', // caption: float right
'capDivLeftBrd' => 'align left, border', // caption: float left with border
'capDivLeft' => 'align left', // caption: float left
);
$cfg['list'] = true; // default: true; if set to true, image selection will be shown as list; if set to false, image selection will show thumbnails
//-------------------------------------------------------------------------
// set image formats
$cfg['thumbs'] = array (
/* array ( // settings
'size' => '*', // 'size' = if set to '*' or '0', no image resizing will be done, otherwise set to desired width or height, e.g. 640
'ext' => '*', // 'ext' = if set to '*' width or height will be set as identifier. If set to '', no identifier will be set.
'crop' => false, // 'crop' = if set to true, image will be zoom cropped resulting in a square image
), */
/* array (
'size' => 1280,
'ext' => '*',
'crop' => false,
),
array (
'size' => 1024,
'ext' => '*',
'crop' => false,
),
array (
'size' => 640,
'ext' => '*',
'crop' => false,
),
array (
'size' => 512,
'ext' => '*',
'crop' => false,
), */
array (
'size' => 400,
'ext' => '*',
'crop' => false,
),
array (
'size' => 400,
'ext' => '*',
'crop' => true,
),
array (
'size' => 120,
'ext' => '*',
'crop' => false,
),
/* array (
'size' => 75,
'ext' => '*',
'crop' => false,
), */
);
//-------------------------------------------------------------------------
// use static image libraries
$cfg['ilibs'] = array ( // image library path with slashes; absolute to root directory - please make sure that the directories have write permissions
array (
'value' => '/storage/',
'text' => 'Různé obrázky',
),
array (
'value' => '/gallery/',
'text' => 'Gallery',
),
);
//-------------------------------------------------------------------------
// use dynamic image libraries - if $cfg['ilibs_inc'] is set, static image libraries above are ignored
// image directories to be scanned
$cfg['ilibs_dir'] = array('/mnt/raid/www1/tuningy.com/www2/images/'); // image library path with slashes; absolute to root directory - please make sure that the directories have write permissions
$cfg['ilibs_dir_show'] = true; // show main library (true) or only sub-dirs (false)
//$cfg['ilibs_inc'] = realpath(dirname(__FILE__) . '/../scripts/rdirs.php'); // file to include in ibrowser.php (useful for setting $cfg['ilibs] dynamically
//-------------------------------------------------------------------------
// you shouldn't need to make any changes to the config variable beyond this line!
//-------------------------------------------------------------------------
$osslash = ((strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') ? '\\' : '/');
$cfg['ver'] = '1.3.2 - build 12122005'; // iBrowser version
$cfg['root_dir'] = realpath((getenv('DOCUMENT_ROOT') && ereg('^'.preg_quote(realpath(getenv('DOCUMENT_ROOT'))), realpath(__FILE__))) ? getenv('DOCUMENT_ROOT') : str_replace(dirname(@$_SERVER['PHP_SELF']), '', str_replace($osslash, '/', dirname(__FILE__))));
//$cfg['root_dir'] = ((@$_SERVER['DOCUMENT_ROOT'] && file_exists(@$_SERVER['DOCUMENT_ROOT'] . $_SERVER['PHP_SELF'])) ? $_SERVER['DOCUMENT_ROOT'] : str_replace(dirname(@$_SERVER['PHP_SELF']), '', str_replace('\\', '/', realpath('.'))));
$cfg['base_url'] = 'http://www2.tuningy.com' . $_SERVER['SERVER_NAME']; // base url; e.g. 'http://localhost/'
$cfg['main_dir'] = '/mnt/raid/www1/tuningy.com/www2/tinymce/plugins/ibrowser/' . $_SERVER['PHP_SELF']; // iBrowser main dir; e.g. '/home/domain/public_html/ibrowser/'
$cfg['scripts'] = $cfg['main_dir'] . '/mnt/raid/www1/tuningy.com/www2/tinymce/plugins/ibrowser/scripts/'; // scripts dir; e.g. '/home/domain/public_html/ibrowser/scripts/'
$cfg['pop_url'] = $cfg['scripts'] . 'popup.php'; // popup dir; relative to 'script' dir
$cfg['temp'] = realpath(dirname(__FILE__) . '/../temp'); // temp dir; e.g. 'D:/www/temp'
?>
--------------/code--------------

Re: iBrowser a phprs 2.8.1
Zaslán uživatelem/kou: msteve (IP adresa zaznamenána)
Datum: 2007-04-27, 16:10

no tak si to treba nastavit v configu editora a je po probleme hladaj je to tam niekde default je to storage premenuj na images a pod tymto musis mat adresare

dir:
images (old storage)
File
Media
Flash
Image

MSteve
WEB: Webinfo
Shop: E-shop ---
Reklamný Systém Webinfo:Reklama WebInfo

Shop: Shop-Webinfo
phpRS systems: [url=http://ww.webinfo.sk/referencie.php[/url]
ICQ: 285553903
Skype : msteve1



Celkem upraveno 1×. Poslední úprava msteve v 27.04.2007 16:15.

Re: iBrowser a phprs 2.8.1
Zaslán uživatelem/kou: PTiCA (IP adresa zaznamenána)
Datum: 2007-04-27, 16:30

dik to us jsem vyresil. Ted jsem resil problem s timto:


Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/html/FCKeditor/editor/plugins/ibrowser/ibrowser.php) is not within the allowed path(s): (.:/mnt/raid/www1/tuningy.com) in /mnt/raid/www1/tuningy.com/www2/FCKeditor/editor/plugins/ibrowser/config/config.inc.php on line 118


Ukazuje to chybu na radku 118
a tam je toto:

$cfg['root_dir'] = (($_SERVER['DOCUMENT_ROOT'] && file_exists($_SERVER['DOCUMENT_ROOT'] . $_SERVER['PHP_SELF'])) ? $_SERVER['DOCUMENT_ROOT'] : str_replace(dirname(@$_SERVER['PHP_SELF']), '', str_replace('\\', '/', realpath('.'))));

Re: iBrowser a phprs 2.8.1
Zaslán uživatelem/kou: aggi (IP adresa zaznamenána)
Datum: 2007-08-16, 13:20

to PTiCA:

tohle jsem vyřešil aktivací řádku 117, a deaktivací řádků 118:

117: $cfg['root_dir'] = realpath((getenv('DOCUMENT_ROOT') && ereg('^'.preg_quote(realpath(getenv('DOCUMENT_ROOT'))), realpath(__FILE__))) ? getenv('DOCUMENT_ROOT') : str_replace(dirname(@$_SERVER['PHP_SELF']), '', str_replace($osslash, '/', dirname(__FILE__))));

118: //$cfg['root_dir'] = ((@$_SERVER['DOCUMENT_ROOT'] && file_exists(@$_SERVER['DOCUMENT_ROOT'] . $_SERVER['PHP_SELF'])) ? $_SERVER['DOCUMENT_ROOT'] : str_replace(dirname(@$_SERVER['PHP_SELF']), '', str_replace('\\', '/', realpath('.'))));


Bohužel se mi nedaří přijít na to jak teď nastavit cesty k adresářům obrázků protože v okně iBrowseru se mi místo obrázků zobrazuje hláška : Chyba při vytváření seznamu obrázků!

Takže jsem zase v pytli... Je tady někde nějaká chytrá hlava která by věděla co s tím??
Přiládám soubor config.inc.php s upravama které jsem udělal, mohl by prosím na to někdo kouknout a pisnout mi co je špatně... ???



Celkem upraveno 1×. Poslední úprava aggi v 16.08.2007 13:23.

Přílohy: config.inc.php.txt (7kB)  
Re: iBrowser a phprs 2.8.1
Zaslán uživatelem/kou: pa3k (IP adresa zaznamenána)
Datum: 2007-08-16, 17:11

Mám to takto:
//-------------------------------------------------------------------------
	// use static image libraries	
	$cfg['ilibs'] = array (																// image library path with slashes; absolute to root directory - please make sure that the directories have write permissions	
		array (
			'value'   	=> '/image/support/',
			'text'    	=> 'Support',
		),
		array (
			'value'   	=> '/image/katalogbig/',
			'text'    	=> 'Catalog BIG',
		),
		array (
			'value'   	=> '/image/katalogsmall/',
			'text'    	=> 'Catalog SMALL',
		),

		array (
			'value'   	=> '/image/banners/',
			'text'    	=> 'Bannery',
		),
		array (
			'value'   	=> '/image/poradenstvo/',
			'text'    	=> 'Poradenstvo',
		),
    );
	//-------------------------------------------------------------------------
	// use dynamic image libraries - if $cfg['ilibs_inc'] is set, static image libraries above are ignored
	// image directories to be scanned
    $cfg['ilibs_dir'] 	   = array('/image/');						   	// image library path with slashes; absolute to root directory - please make sure that the directories have write permissions
						   	// image library path with slashes; absolute to root directory - please make sure that the directories have write permissions
	$cfg['ilibs_dir_show'] = true;

Re: iBrowser a phprs 2.8.1
Zaslán uživatelem/kou: aggi (IP adresa zaznamenána)
Datum: 2007-08-16, 19:45

Používám dvě galerie, v dvou rozdílných složkách v rootu (storage a gallery)
Jak by potom měla vypadat uprava téhle části:

$cfg['ilibs_dir'] = array('/image/');

???

není třeba udělat i nějaké další změny??



Lituji, ale pouze registrovaní uživatelé mohou zasílat příspěvky do této sekce.
This forum powered by Phorum and designed by STaNBoSS.