From the getgo, without edits?
No
No
No
You will have to make those your self.
You are not logged in. Please login or register.
Chevereto Forums » Posts by gamerlv
From the getgo, without edits?
No
No
No
You will have to make those your self.
Rodolfo wrote:Good news
Hey Rodolfo,
I'm not sure if it's still in "active" development or not, but I'll gladly contribute to the core code as long as time permits me to do so.
I can't read Spanish, so any code commenting I do will be in English, but I'm pretty decent at coding and can help.
You can take a look at the admin code when I get finished with it and decide for yourself.Thanks again!
Can you add me on a IM network? I am still work on getting 2.0 out there (yes, Rodolfo. still at it whenever I have time), however work has been slow (well slow. already wrote a plugin system) due too other projects needing my attention and all the Spanish variables.
But seeing as you want to help I'm willing to talk, 2 heads are always better then one.
BTW great idea, a image manger with the power of mysql with out the need for a server. ![]()
I have this working just fine but would like to enlarge the thumbs a bit. I've been going through the code but I just don't see where to make the change. Has anyone changed this already and would you be willing to point me as to where to look to make this change? Thanks.
for chev 1.9: config.php lines 37 - 39
// Thumbs
$mini_ancho = '150'; // Thumb width (pixels)
$mini_alto = '150'; // Thumb height (pixels)How to do that comment?? Can u explain plz?? Put the code here so that i can do that! I knw deleting .htaccess is not a gud thingy!! Quick reply plzz!
Well not really quick but any way.
just put a # in front of the line you want to eliminate.
SOLVED BY MYSELF! DELETE THE .htaccess from the images folder!! DAMN! SUCH A SIMPLE THINGY AND NO ONE ANSWERED!
that the same as commenting out the line. I just don't tell people to delete files because htaccess file can contain more rules for apache then the one that caused your problem.
Well anyway I'm glad you solved it.
That might be a restriction by your host. If you have two course of action.
You contact/ read the FAQ of your hosting provider
you comment out the line with a #
I would do the second one. But then I don't mind people looking at the file indexes. (you could also just put an empty index.html file in the images folder)
Ok Now we need the logs (or you look at them). You can find them under logs, then error log.
Make sure the time stamps are correct (aka you don't copy past a 3 month old error).
How ever with out these I would say you have a faulty value in you htaccess file. in the image folder.
You haven't chmodded the required folders. You have to fix this before We can help further.
gamerlv wrote:AndreasHW wrote:Hi, i have install this nice software and i have in dir/images about 1100 images.
Then i install this mod( Admin-panel (MySQL)) and almost all are ok except i dont have images in admin panel as you see (i hope understand what i mean with poor english)
http://tinyurl.com/33byehpThis admin panel only works if you install it from the start. Since all images have to be in its db.
I have recently done some image work, I might be able to make a import script.yes i understand but when i install this mod i have in db many images and i see in admin panel but without pictures, is easy to fix this someboby?
ho lolz. wrote an import whiles you didn't need it. waist of time
.
I can probably fix it if I can look at the source code. Can you pm you url and login stuff ( I won't change anything)?
I don't know if this helps any one, but it was fun to make ![]()
very basic import script. just adds the images to the db. nothing more. (doesn't get the image file size however, idk. if you want it ask)
the script:
<?php
// timer FTW
$mtime = microtime();
$mtime = explode(" ",$mtime);
$mtime = $mtime[1] + $mtime[0];
$starttime = $mtime;
echo "<h1>Admin importer thing by Gamerlv</h1>";
echo "<h2>Warning, this script may run ALOT of mysql queries!</h2>";
echo "<p>So make sure you have engouht time to let it run.</p>";
echo "<p>This takes about 0.001527 seconds per image (that's what it takes on my pc)</p>";
echo "<form action=\"\">
<p><input type=\"hidden\" value=1 name=\"ihavethetime\" /></p>
<input type=\"submit\" value=\"I have the time\" />
</form>";
if (!isset($_GET['ihavethetime']) || !$_GET['ihavethetime'])
die(); //no need to go any futher.
require_once('config.php');
require_once('db_connect.php');
#This header only is for the function getImages
# Original PHP code by Chirp Internet: www.chirp.com.au
# Please acknowledge use of this code by including this header.
# 25% rewitten by Gamerlv
function getImages($dir)
{
$cachefile = "cache.import";
if (file_exists($cachefile)){
$cache = explode("|||" ,file_get_contents($cachefile));
if (time() - $cache[0] > 172800) {
return $cache;
}
unset($cache);
}
$imagetypes = array("image/jpeg", "image/gif", "image/png", "image/bmp");
# array to hold return value
$retval = array();
$return = array();
# add trailing slash if missing
if(substr($dir, -1) != "/") $dir .= "/";
# full server path to directory
$fulldir = getcwd()."/".$dir;
$d = @dir($fulldir) or die("getImages: Failed opening directory ".$dir." for reading <br />In ".getcwd() );
while(false !== ($entry = $d->read())) {
# skip hidden files
if($entry[0] == ".") continue;
if (!function_exists('mime_content_type'))
{
function mime_content_type($file)
{
//!!!!!THIS ONLY WORKS @ LINUX!!!!!!!
return trim(exec('file -bi ' . escapeshellarg($file)));
}
}
# check for image files
if(in_array(mime_content_type($fulldir.$entry), $imagetypes)) {
$retval[] = array(
'path' => "/".$dir.$entry,
'name' => $entry
);
}
}
$d->close();
$return[0] = time();
foreach($retval as $key => $value)
{
$five = substr($value['name'], 0 , 6);
if ( !($five == "thumb_") && !($five == "editor") ){
unset($five);
$return[] = $value['name'];
echo "I found ". $value['name'] ."<br />\n";
}
}
unset($retval);
if (file_exists($cachefile)){
$cache = implode("|||" ,$return);
file_put_contents($cachefile, $cache);
}
return $return;
}
//For admin-panel.
$now=mktime(date("H"),date("i"),date("s"),date("m"),date("d"),date("Y"));
$uid=0;
$created=$now;
$lastviewed=0;
$submitip=$_SERVER["REMOTE_ADDR"] or "127.0.0.1";
$views=0;
$picfsize=0;
$pic_width=0;
$pic_height=0;
$tamano = 0;
echo "<br /><p>Okay, here we go, I'm now starting to look for your images.</p><br />\n";
if (isset($config))
{
$images = getImages($config['dir']['images']);
} elseif (isset($_GET['folder']) && $_GET['sec'] == "Ag5Fw4afbhFP52" ) {
$images = getImages($_GET['folder']); //for testing
define("DIR_IM", $_GET['folder']."/");
} else {
$images = getImages(DIR_IM);
}
//For admin-panel. Send info about img to DB.
/*mysql_query("insert into pics(created,lastviewed,pictype,submitip,picfsize,uniqid,pic_width,pic_height)
values(
".$created.",
".$lastviewed.",
'".$exten."',
'".$submitip."',
".$tamano.",
'".$name."',
".$ancho.",
".$alto."
)");*/
echo "<h3>-=Got the images, lets import them=-</h3>\n";
$i = 0;
$c = 0;
$query = "insert IGNORE into pics(created,lastviewed,pictype,submitip,picfsize,uniqid,pic_width,pic_height) values";
foreach ($images as $key => $image)
{
if ($key == 0) continue;
echo "Generating sql on " . $image . "<br />\n";
$exten = substr($image, -3);
list($width, $height) = getimagesize(DIR_IM . $image);
$query .= " (
".$created.",
".$lastviewed.",
'".$exten."',
'".$submitip."',
".$tamano.",
'".$image."',
".$width.",
".$height."
)";
if ($i == 60){
echo "<h3>-=Running the query to not make it too long=-</h3>\n";
mysql_query($query); //excute, so it doesn't become to big
$i = 0;// rest count
//die("lets stop right here. <br />". $query); //debug
$query = "insert IGNORE into pics(created,lastviewed,pictype,submitip,picfsize,uniqid,pic_width,pic_height) values"; //start fresh
} else {
$query .= ",";
}
$i++; $c++; //add one to count
}
// yeay timing
$mtime = microtime();
$mtime = explode(" ",$mtime);
$mtime = $mtime[1] + $mtime[0];
$endtime = $mtime;
$totaltime = ($endtime - $starttime);
echo "<br />
<br />
<p>Okay, where all done.</p>
<p>In total I imported: ".$c." images and this took ".$totaltime." seconds.</p>
That's " . $totaltime / $c . " seconds per image <br /> ps, dont forget to delete me.";
?>
Please note, I did not test this with the panel. There for I need your help to test this.
Hi, i have install this nice software and i have in dir/images about 1100 images.
Then i install this mod( Admin-panel (MySQL)) and almost all are ok except i dont have images in admin panel as you see (i hope understand what i mean with poor english)
http://tinyurl.com/33byehp
This admin panel only works if you install it from the start. Since all images have to be in its db.
I have recently done some image work, I might be able to make a import script.
So from my poor understanding of your text I get that you want some one to install Chevereto on your server.
That is possible. PM me with your server info and any other relevant data.
Please note, this does not include any modification, You need to do those yourself.
Thanks it work super
I would donate some money, i like this projekt.
That would be super man!
short_open_tag Off OffNeeds to be on.
No, This is not possible and outside of the scope of this program. You will have to write your own code to bypass the thumbnailer and allow upload of psd.
Chevereto Forums » Posts by gamerlv
Powered by PunBB, supported by Informer Technologies, Inc.
Powered by PunBB