PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
If you click on an image (For example test.png) it opens it in Slim Box. I'd for that code to be able to do this:
You click on "test.png" and "test_LRG.png" opens in slim box. Pretty much all I need to do to the code is somehow to tell it to add _LRG to the end of the image path.
You could have the code check for extensions that were not three characters by searching for the last dot in the string and finding that position. You also might want to look into the pathinfo() function.
I'm so sorry, I don't get it. Can you just give me the code?
Basically all I need is to display a thumb image and when you click on it, it opens the "large" version. Scratch the lightbox.
For example:
<a href="<?php code goes here. This should link to the 'large' version of the image."><img src="images/this_is_the_thumb_image.png" alt=""</a>
Essentially, If someone were to look at my website's source code, the image code would look like: