• 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.

plugin last image uploaded

Status
Not open for further replies.

benelmokadem

Chevereto Noob
welcom dear friends i'm new user
i'm developer my name its benelmokadem from morocco

for install my plugin you can to create the database

open your database an add

Code:
CREATE TABLE `filles` (
  `id` int(50) NOT NULL auto_increment,
  `filles` varchar(250) NOT NULL default '',
  `thumbs` varchar(250) NOT NULL default '',
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=19 ;

step 2

open config.php
add
Code:
$host="";
$username="";
$password="";
$db="";
$tbl="filles";
mysql_connect("$host","$username","$password") or die("erreur de connextion avec la base de donneès");

mysql_select_db("$db")  or die ("erreur de selection de la base de donneès");

step3
open index.php
search in the page last code
Code:
<? } ?>
replace it to
Code:
<?
include("config.php");
$sql="SELECT * FROM filles WHERE filles='$URLimg' and thumbs='$URLthm'";
$result=mysql_query($sql);


$count=mysql_num_rows($result);

if($count==1){
$sql8="delete LAST(id) FROM filles";
$result360= mysql_query($sql8);

}
else {
$sql8="INSERT INTO `$db`.`$tbl` (
`id` ,
`filles` ,
`thumbs` 
)
VALUES (
NULL , '$URLimg', '$URLthm'
)
";
$result360=mysql_query($sql8);
}
?>

step4

search <!-- contenido -->

after
Code:
<div id="foot">
<?include("more_image.php");?>
</div>

step 5
upload this file
www.atiznit.com/more_image.zip

congrulation the plugin its installed 😀
 
Rodolfo said:
PM benelmokadem if you want that file.

Ok ;-)) I did it... but he seem do not go here since march! and may be an other member could upload this file for "us" ?
 
gonzalarcon said:
Dont worry, doesn't works.
The coding is horrible and has a lot of php warnings :|

Ok! but ;-) do you know a (better) way to display latest images uploaded ? Thanks...
 
Status
Not open for further replies.
Back
Top