Welcome Guest, Not a member yet? Register   Sign In
problems using shadow box with codeigniter
#1

[eluser]Unknown[/eluser]
Hello codeigniters,

can anyone help?

I have set up a shadowbox gallery on my CI site. i am generating the image names through the
controller and onto the page as you might expect. ie:

<?php

foreach($featured as $val)
{

echo '<a >imageName.'" rel="shadowbox[Gallery]">

<img class="thumbs">imageName.'"/></a>';
}
?&gt;

the thumb images display fine and the main image opens successfully as you
click on the thumbs, as you would expect in shadowbox. however, when you click on the forward or backwards icons on the image the images will not scroll through the gallery. i have tried the exact same script outside of the codeignoter environment and
it works fine. i am guessing it has something to do with the way codeigniter handles urls etc but i am pretty much at a loss. i could take the shadowbox portion of the site outside of the CI environment but i would prefer to keep things simple.

has anyone had a similar issue or can anyone suggest a solution?

many thanks.
#2

[eluser]Nick_MyShuitings[/eluser]
You've got a typo in your code which might have something to do with it, you're closing the anchor prior to the rel part. If that isn't in your actual code then you should post up the outputted source. Codeigniter won't have anything to do with the shadowbox, it just outputs source html, so what you need to worry about is making sure the outputted html is correct for shadowbox to take it from there.

Nick




Theme © iAndrew 2016 - Forum software by © MyBB