Topic: plugin last image uploaded

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

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

$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

<? } ?>

replace it to

<?
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

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

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

congrulation the plugin its installed big_smile

Last edited by benelmokadem (2009-03-12 16:35:05)

Thumbs up

Re: plugin last image uploaded

Great! but this link seems "dead" !

benelmokadem wrote:

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

Please, somebody could re upload this file ?

Many thanks in advance

Thumbs up

Re: plugin last image uploaded

Pame wrote:

Great! but this link seems "dead" !

benelmokadem wrote:

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

Please, somebody could re upload this file ?

Many thanks in advance

PM benelmokadem if you want that file.

rodolfoberrios.com | PLEASE use Tech Support forums to ask for support!

Re: plugin last image uploaded

Rodolfo wrote:

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" ?

Thumbs up

Re: plugin last image uploaded

have tryed yet this plugin anyone, have any demo ???

Last edited by art0on (2009-07-12 15:56:20)

Thumbs up

Re: plugin last image uploaded

Dont worry, doesn't works.
The coding is horrible and has a lot of php warnings neutral

Thumbs up

Re: plugin last image uploaded

gonzalarcon wrote:

Dont worry, doesn't works.
The coding is horrible and has a lot of php warnings neutral

Ok! but ;-) do you know a (better) way to display latest images uploaded ? Thanks...

Thumbs up

Re: plugin last image uploaded

Pame wrote:

Ok! but ;-) do you know a (better) way to display latest images uploaded ? Thanks...

Of course! http://chevereto.com/foro/topic282-last … patch.html

Thumbs up