• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • This community is user driven. Be polite with other users.
    • We recommend purchasing a Chevereto license to participate in this community.
    • Purchase a Community Subscription to get even faster ticket response times.

Making Admin panel play nice with images in folders year,month,date

th3fallen

Chevereto Noob
To make the thumbnails work and everything edit the following files
includes/browse.php
includes/search.php
includes/searchid.php
includes/delpic.php

Search for"
Code:
<a href="<?=$conf["site_url"]?>/?v=<?=$r['uniqid']?>" target=_blank><img src="<?=$conf["site_url"]."/thumbs";?>/<?=$r['uniqid']?>" border=0></a><br>

and replace with:

Code:
<a href="<?=$conf["site_url"]?>/?v=<?=$r['uniqid']?>" target=_blank><img src="<?=$conf["site_url"]. "/thumbs" . "/" . $thumb=date("Y",$r['created']) . "/" . $thumb=date("M",$r['created']) . "/" . $thumb=date("d",$r['created']);?>/<?=$r['uniqid']?>" border=0></a><br>

In delpic.php

replace
Code:
$bigpic and $smallpic

with

Code:
$rr = mysql_query("SELECT * FROM pics");
$created=date("M-d-Y h:i",$rr['created']);

$bigpic="../images/" . $picfile=date("Y",$r['created']) . "/" . $picfile=date("M",$r['created']) . "/" . $picfile=date("d",$r['created']) . "/" . $r['uniqid'];
$smallpic="../thumbs/" . $picfile=date("Y",$r['created']) . "/" . $picfile=date("M",$r['created']) . "/" . $picfile=date("d",$r['created']) . "/" . $r['uniqid'];
 
I will get a demo together sometime this week a screenshot really wouldnt show anything as it looks stock other than a different (more secure) authenication method i used and the ability to add admins from inside the panel.
 
Back
Top