• 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.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.

viewer link

You are using a modified version, I can't give you support for something that I don't know.
Btw, the error must be in the mysql config (chevereto doesn't use mysql) so, it's a mod.
 
wilkiee said:
do you know which file the error is coming from ?

I don't know, I'm not a wizard 😛

Where did you download that script?
 
off your website and ive hardley modified it apart from changing when you click on the pic it comes up in a light box so dunno why it aint workin
 
Ok, if you have any issue using the contents of the official .zip then ask, otherwise ask the people who wrote that addon. Is not official or anything.

I know that whatever are you using is not default Chevereto, so don't try to fool me. Chevereto DOESN'T USE DATABASE.

Regards.
 
Open index.php

Find something similar too ( Won't be the exact same)
Code:
<div id="top">
    <div id="logo">
      <a href="http://imglocker.net/"><img src="/site-img/logo.png" alt="IMGlocker" /></a>
    </div>
    <div id="limite">
      <div align="right">

        <p>JPG PNG BMP GIF <span>Max.2Mb</span></p>
        <p><a href="ReportPhoto.php">Report Image</a> | <span class="addons"><a href="AddonDownload.php">Add-Ons</a></span></p>
      </div>
    </div>
</div>

and answer the topic with the next 10-20 lines following the code found before.
 
Code:
<script type="text/javascript">
// <![CDATA[
$(document).ready(function(){
<? if ($spit==true) { ?>error();<? } ?>
<? if ($modo==1 || $modo=='rr') { ?>upload();<? } ?>
<? if ($modo==3) { ?>process();<? } ?>
<? if ($modo==2) { ?>viewer();<? } ?>
<? if ($modo==2 || $modo==3) { ?>social();<? } ?>
<? if ($cut_url==true && $cut_url_user==true && $modo==1) { ?>pref();<? } ?>
});
// ]]>
</script>

<style type="text/css">
<!--
a:link {
    color: #000;
    text-decoration: none;
}
a:visited {
    color: #000;
    text-decoration: none;
}
.addons {
    color: #4B94D0;
}
a:hover {
    text-decoration: none;
}
a:active {
    text-decoration: none;
}
#top #limite div p .addons a {
    color: #4B94D0;
}
#top #limite div p a {
    color: #FF3737;
}
-->
</style></head>

<body>

<div id="top">
    <div id="logo">
      <a href="<?php echo URL_SCRIPT;?>"><img src="<?php echo PATH_SCRIPT;?>site-img/logo.png" alt="<?php echo APP_NAME;?>" /></a>
    </div>
    <div id="limite">
      <div align="right">
        <p>JPG PNG BMP GIF <span>Max.<?php echo $max_mb;?>Mb</span></p>
        <p><a href="ReportPhoto.php">Report Image</a> | <span class="addons"><a href="AddonDownload.php">Add-Ons</a></span></p>
      </div>
    </div>
</div>

<? if ($spit==true) { ?>
<h1 id="error"><span><?php echo $errormsg?></span></h1>
<? } ?>

<? if ($modo==1) { ?>
<div id="contenido">

<div id="selector_up">
    <div id="tab_container"<? if (isset($lang)) { echo ' class="'.$lang.'"'; } ?>>
        <div class="btn_local"><a class="local" id="linklocal" style="display: none;"></a></div>
        <div class="btn_remoto"><a class="remota" id="linkremota"></a></div>
    </div>
 
Okay well it is not in this code so...

Find :
Code:
<?php if ($modo==2 || $modo==3) {

And again answer this topic with the 20-30 lines of code following it.
 
Code:
<? if ($modo==2 || $modo==3) { ?>social();<? } ?>
<? if ($cut_url==true && $cut_url_user==true && $modo==1) { ?>pref();<? } ?>
});
// ]]>
</script>

<style type="text/css">
<!--
#limite2 div div p {
    color: #6A6A6A;
}
#limite2 div p {
    color: #6A6A6A;
}
a:link {
    color: #000;
    text-decoration: none;
}
a:visited {
    text-decoration: none;
    color: #000;
}
a:hover {
    text-decoration: none;
}
a:active {
    text-decoration: none;
}
#limite p a {
    color: #4B94D0;
}
body,td,th {
    font-size: 14px;
}
-->
</style>
</head>

<body>

<div id="top">
    <div id="logo">
      <a href="<?php echo URL_SCRIPT;?>"><img src="<?php echo PATH_SCRIPT;?>site-img/logo.png" alt="<?php echo APP_NAME;?>" /></a>
    </div>
 
sorry i copied wrong code here it is index down to line 263

Code:
<? if ($modo==2 || $modo==3) { // EL IF 2-3
    if (isset($v)) { 
        $quehace = TXT_SEEING;
        $namesun=$_GET['v'];
       $curtime=mktime(date("H"),date("i"),date("s"),date("m"),date("d"),date("Y"));
           mysql_query("update pics set lastviewed=$curtime, views=views+1 where uniqid='$namesun'")
           or die(mysql_error());
    } else {
        if ($red==1) {
            $retxt = ' '.TXT_AND_RESIZE;
        }
        $quehace = TXT_DID.$retxt;
    }
    $mensaje = $quehace.' <a href="'.PATH_SCRIPT.DIR_IM.$folhost.$name.'">'.$name.'</a> ('.$tamano_kb.' KB - '.$ancho.'x'.$alto.'px)'.$colita;

?>
<div id="subiste-viendo"><h1><?php echo $mensaje?></h1></div>

<div id="contenido">
    <div id="tools"><div id="fullsize"<? if ($ancho<=900) { echo ' style="display: none; "'; }?>><a href="<?php echo PATH_SCRIPT.DIR_IM.$folhost.$name?>" title="<?php echo $ancho?>x<?php echo $alto?>"><?php echo FULL_SIZE;?></a></div><div id="sharethis"><a id="sharing"><?php echo SHARE;?></a><a id="sharing-close" style="display: none;"><?php echo SHARE;?></a></div></div>
        <div id="imagen"><a rel="lightbox" href="<?php echo PATH_SCRIPT.DIR_IM.$folhost.$name?>"><img src="<?php echo PATH_SCRIPT.DIR_IM.$folhost.$name?>" alt="" <?php if ($ancho>=900) { echo 'width="900" '; } ?>/></a><br />
    </div>
 
Here is your problem

Code:
           mysql_query("update pics set lastviewed=$curtime, views=views+1 where uniqid='$namesun'")
           or die(mysql_error());

The connection to the database of your admin panel is invalid. You are trying to make a query to an invalid database... it is sure that it won't work. You could simply remove this line and your chevereto will work. but the last view feature on your admin panel won't.
 
Danny.Domb said:
Open index.php

Find something similabuy microsoft office 2010r too ( Won't be the exact same)
Code:
<div id="top">
    <div id="logo">
      <a href="http://imglocker.net/"><img src="/site-img/logo.png" alt="IMGlocker" /></a>
    </div>
    <div id="limite">
      <div align="right">

        <p>JPG PNG BMP GIF <span>Max.2Mb</span></p>
        <p><a href="ReportPhoto.php">Report Image</a> | <span class="addons"><a href="AddonDownload.php">Add-Ons</a></span></p>
      </div>
    </div>
</div>

and answerProfessional Plus 2010 the topic with the next 10-20 lines


following the code found before.


<?php if ($modo==2 || $modo==3) {
 
Back
Top