We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
  • Pages:
  • 1
  • 2
LightBox 2 in the near future?
Topic Started: Nov 4 2011, 05:43 PM (1,609 Views)
ElementalAlchemist
Member Avatar


I've opted to just exclude any image that's already a link to elsewhere. Is this one alright?
Code:
 
<script type="text/javascript">
$("td.c_post img[alt=Posted Image]").each(function() {
if ($(this).parents("a").length)
return true;
var postid = $(this).parents("tr").prev().attr("id");
$(this).css("width", "72px").wrap("<a rel=\"lightbox-" + postid + "\" href=\"" + $(this).attr("src") + "\"></a>");
});
</script>
Online Profile Quote Post Goto Top
 
Kotton
Member Avatar
★ Career Criminal ★
[ *  * ]
absolutely, that's more than good bro.. many many thanks for going out of your way to write this up Alchemist

I do have a few lingering questions tho if you don't mind.. we've long been using per theme CSS to restrict image sizes within the posts/sigs/ect

Code: for example
 

td.c_sig img {
max-width: 525px;
max-height: 200px;
}

.c_post img,#topic_review img {
max-width:525px;
}

would there be a way to read off of that setting? (posts) ..or would I be wrong in assuming the image reduction Lightbox creates is a necessary one?

and one last question (ot), I've implemented a per theme image reduction via CSS in the portal h4's.. it works, but it's also affecting the banners
so would you by chance happen to know the correct CSS for image restriction within the portal h4? ..as I'm absolutely positive I've coded it wrong xP

Offline Profile Quote Post Goto Top
 
ElementalAlchemist
Member Avatar


The one in the script overrides that; it's not necessary to reduce the thumbnails, but if the images are already full-size, it's not really necessary to click on them. :P That said, you can eliminate resizing entirely beyond what your CSS already does by just removing the bit that resizes (the .css() part).
Online Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Service Discussion and Feedback · Next Topic »
Add Reply
  • Pages:
  • 1
  • 2