• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space

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