Note that there are some explanatory texts on larger screens.

plurals
  1. POlightbox plugin in codeigniter
    text
    copied!<p>I am trying this thing for 2 days, but I can't understand what the bug here. I try to use lightbox plugin in my codeigniter project, but it does not show the expected result, rather it does not show any error too.</p> <p>This is between where I include my necessary file:</p> <pre><code>&lt;link href="&lt;?php echo base_url(); ?&gt;assets/css/core.css" media="screen" rel="stylesheet" type="text/css" /&gt; &lt;link rel="stylesheet" type="text/css" href="&lt;?php echo base_url(); ?&gt;assets/css/jquery.lightbox-0.5.css" media="screen" /&gt; &lt;script type="text/javascript" src="&lt;?php echo base_url(); ?&gt;assets/js/jquery.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="&lt;?php echo base_url(); ?&gt;assets/js/jquery-1.3.2.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="&lt;?php echo base_url(); ?&gt;assets/js/manual_change.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="&lt;?php echo base_url(); ?&gt;assets/js/pre_change.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="&lt;?php echo base_url(); ?&gt;assets/js/core.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="&lt;?php echo base_url(); ?&gt;assets/js/jquery.lightbox-0.5.js"&gt;&lt;/script&gt; </code></pre> <p>I also include the function of lightbox: </p> <pre><code>$(function() { $('a.lightbox').lightBox({ 'imageLoading': "&lt;?php echo base_url(); ?&gt;assets/img/lightbox-ico-loading.gif", 'imageBtnClose': "&lt;?php echo base_url(); ?&gt;assets/img/lightbox-btn-close.gif", 'imageBtnPrev': "&lt;?php echo base_url(); ?&gt;assets/img/lightbox-btn-prev.gif", 'imageBtnNext': "&lt;?php echo base_url(); ?&gt;assets/img/lightbox-btn-next.gif", 'imageBlank': "&lt;?php echo base_url(); ?&gt;assets/img/lightbox-blank.gif" }); // Select all links with lightbox class }); </code></pre> <p>I have used the image in html as like following:</p> <pre><code>&lt;a href="&lt;?php echo base_url(); ?&gt;assets/img/products/Acer_AX1400.jpg" class="lightbox"&gt;&lt;img src="&lt;?php echo base_url(); ?&gt;assets/img/products/Acer_AX1400.jpg" alt="" /&gt;&lt;/a&gt; </code></pre> <p>The .htaccess file is:</p> <pre><code>RewriteEngine on RewriteCond $1 !^(index\.php|images|jquery\.js\robots\.txt) RewriteRule ^(.*)$ /index.php/$1 [L] </code></pre> <p>My file location is correct:<br/> All Images to show are in:<br/> <b>assets/img/products/</b><br/> All Images additional for lightbox are in:<br/> <b>assets/img/</b><br/> All Javascript are in:<br/> <b>assets/js/</b><br/> All CSS are in:<br/> <b>assets/css/</b></p> <p>The page link is at first is: localhost/shop/ <img src="https://i.stack.imgur.com/f2kas.png" alt="enter image description here"> <br/>The page clicking after on the image is: localhost/shop/assets/img/products/Acer_AX1400.jpg <img src="https://i.stack.imgur.com/7EsTQ.png" alt="enter image description here"></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload