Dynamically create an image array

Hi, I need done a dynamic image list for a jquery slideshow using php. This is in a template in joomla 2.5 I am designing that is not on the root of the website. The code below will show what I mean.

<?php if ($this->params->get( 'bgimage' )) {

$bgdir = $this->baseurl'/images/bgimages/'; //this needs to be an absolute directory from the root of the website

$bgimages = glob(“” . $bgdir . “{*.jpg,*.png}”, GLOB_BRACE); //check directory for file types

$last_item = end($bgimages);

$last_item = each($bgimages);

foreach($bgimages as $bgimage){ //begin foreach loop

echo "'"$bgimage"',"; //echos the backgrounds

if($value == $last_item['value'] && $key == $last_item['key']){ //if last item

echo "'"$bgimage"'"; //echos the last background



}else{ ?>

'<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/[url removed, login to view]',

'<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/[url removed, login to view]'

<?php } ?>

As you can see I have made a parameter for the entire thing which is not the problem. The problem is the variables and the for each loop. I know these are wrong thats what I need fixed. It needs to check if the folder website-root/images/bgimages exists and if so check if it has .jpg and .png and arrange them in alphabetical order. Then the last image needs to be different, it cant have a comma at the end.

I would like this done asap as I have a deadline to meet.


Compétences : Joomla, jQuery / Prototype, PHP

en voir plus : create dynamic image array jquery, jquery dynamic images array, what is in a background check, designing backgrounds website, array template, create folder, php file array, dynamic slideshow folder, create png image, jquery list folder, joomla file directory, php image jquery, image folder, jquery php templates, joomla image folder, php code slideshow, problem parameter, image create png, jquery create, jquery file create

Concernant l'employeur :
( 15 commentaires ) Sydney, Australia

Nº du projet : #2556723

Décerné à:


i can do this .check your PMB.

%selectedBids___i_sum_sub_4% %project_currencyDetails_sign_sub_5% AUD en 1 jour
(9 Commentaires)

7 freelance font une offre moyenne de $105 pour ce travail


Please review PMB for further details.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% AUD en 4 jours
(47 Commentaires)

hi i can do this..please check PM

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% AUD en 0 jours
(2 Commentaires)

Toolkit Solutions today boasts of maintaining and working with a large database of desirable programmers. If you hired Toolkit Solutions today, you can be assured that at least someone professional will be looking a Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% AUD en 5 jours
(1 Évaluation)

Hello Respected Client, I have Read your requirements and we are very experience in this concept. please check Message Board for more details. Thanks

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% AUD en 1 jour
(1 Évaluation)

Hi, we have gone through with the requirements. We can easily do it with our [login to view URL] will provide you regular updates during progress And if you have any query please let us know. We are available for you all the Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% AUD en 20 jours
(0 Commentaires)

Respected Client, This is not even a problem. I can start working on it from this same instant and can provide you results. I am also ready for an interview, if you like. Wiating for your consideration. Rega Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% AUD en 1 jour
(0 Commentaires)