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
LightBox 2 in the near future?
Topic Started: Nov 4 2011, 05:43 PM (1,608 Views)
Kotton
Member Avatar
★ Career Criminal ★
[ *  * ]
like it says on the tin,

I'm curious if Zeta plans on keeping up with the Jones' by incorporating LightBox2 or any similar .js based image handler

thanks for the read, it's appreciated :)
Offline Profile Quote Post Goto Top
 
Geoffrey-ZNS
Member Avatar
I want you for worse or for better
[ *  *  *  * ]
Mind educating those of us who are completely unaware with what you're referencing?
Offline Profile Quote Post Goto Top
 
Kotton
Member Avatar
★ Career Criminal ★
[ *  * ]
sure bro, earchugo --> LB2 ;)
Offline Profile Quote Post Goto Top
 
Ben
Member Avatar
Quantum-locked when observed.

Who are the Jones’? :ph34r:

I doubt you will see a lightbox integrated with ZetaBoards any time soon, and there’s a simple reason: there are too many lightboxes out there, and different types work for different people. It’s really something better served by a third-party code. We are lucky to have an active community of coders who make things like ZetaBoards-specific lightbox scripts. So perhaps the question isn’t will we incorporate “LightBox 2” but when will some intrepid coder come out with a LightBox 2 script for ZetaBoards? (Maybe it’s already happened!)
Offline Profile Quote Post Goto Top
 
Kotton
Member Avatar
★ Career Criminal ★
[ *  * ]
nah.. I'm pretty sure I meant exactly what was originally asked ~ thanks for the sidetrack and speculation tho, it's appreciated for sure lol -.-

and the Jones' (or Joneses) is an idiom...
Edited by Kotton, Nov 5 2011, 09:38 PM.
Offline Profile Quote Post Goto Top
 
ElementalAlchemist
Member Avatar


Ben's post was hardly sidetracking/speculation...

It's not something that applies to many boards, so I can't see it being integrated natively into ZB. However, a very quick Google search has showed me a jQuery plugin that does it; using this, it is easy to apply a lightbox effect to your board. (You'll have to upload the script and CSS to your board to be able to link them in the Board Wrappers.)

If you want it to affect posts, you'll also need to do this:
Code:
 
<script type="text/javascript">$("td.c_post img").wrap("<a rel=\"lightbox\"></a>");</script>

If you want grouping, a somewhat fancier script will be necessary but can be done.
Online Profile Quote Post Goto Top
 
Deleted User
Deleted User

GAK
Nov 4 2011, 07:04 PM
Mind educating those of us who are completely unaware with what you're referencing?
I'm glad you said that. :lol:
Quote Post Goto Top
 
Kotton
Member Avatar
★ Career Criminal ★
[ *  * ]
thx Alchemist, I ran across that a while ago, but considering it would require image links to be html and add specific Slimbox attributes within those html tags, it wasn't at all what I was looking for and the main reason for my question (ease of use thru Zeta's native coding) ..or does your additional script tags handle this to where we can utilize the scripts via normal BBCode within the posts? ..if so, what would be contained within the tags because I've tried it and nothing happens with a normal BBCode linked full size image within posts

as for the speculation, I meant this;
Quote:
 
I doubt you will see a lightbox integrated with ZetaBoards any time soon, and there’s a simple reason: there are too many lightboxes out there, and different types work for different people.

and the sidetrack, this;
Quote:
 
So perhaps the question isn’t will we incorporate “LightBox 2” but when will some intrepid coder come out with a LightBox 2 script for ZetaBoards? (Maybe it’s already happened!)


I was initially looking for a definitive answer to my query.. so Ben's post did not answer my question at all imo, and further went on to describe lightbox scripts made for and by the community, which was not what I was looking for or asking about ~ as all the Zeta specific LightBox scripts I've found in the past (other than the one you've posted) were either outdated, had no support, or flat out did not work - if my statement came across as rude, my apologies as that was not my intent - thanks again for the links and additional 411
Edited by Kotton, Nov 7 2011, 11:21 PM.
Offline Profile Quote Post Goto Top
 
Ben
Member Avatar
Quantum-locked when observed.

Kotton
Nov 7 2011, 10:45 PM
I was initially looking for a definitive answer to my query.. so Ben's post did not answer my question at all imo, and further went on to describe lightbox scripts made for and by the community, which was not what I was looking for or asking about
You will find that we do not often provide “definitive answers” to these feature requests. We will often share our personal opinions about potential features, or we will provide, as I have done, some reasons why these features are likely or not likely to appear. Ultimately, Brandon is the one who decides what gets implemented.

Also, we like to hear what other users have to say about these features as well and gauge whether there is interest in them. I think a lightbox script is an unlikely addition, but we could change our minds, and demand is sometimes a reason for that. However, the nature of such discussions mean that “sidetracks” are inevitable. People often bring unanticipated insights or, as I attempted to do, suggest an alternative that would help in the short term.
Offline Profile Quote Post Goto Top
 
ElementalAlchemist
Member Avatar


Kotton
Nov 7 2011, 10:45 PM
thx Alchemist, I ran across that a while ago, but considering it would require image links to be html and add specific Slimbox attributes within those html tags, it wasn't at all what I was looking for and the main reason for my question (ease of use thru Zeta's native coding) ..or does your additional script tags handle this to where we can utilize the scripts via normal BBCode within the posts? ..if so, what would be contained within the tags because I've tried it and nothing happens with a normal BBCode linked full size image within posts
Browsers only display data given to them in HTML. Forum software (including ZetaBoards) automatically converts the BBCode you give to it into HTML that browsers can see. (If you look at the page source, you'll see that images in posts are along the lines of <img src="IMAGE URL HERE" alt="Posted Image" />.) The additional script should handle adding the appropriate anchor tags to images in posts and belongs at the bottom of the board; however, it appears I didn't look at the page source fully and so I didn't quite understand exactly what they wanted; I'll put up another one shortly. That script goes at the bottom of the board, but it does not include the lightbox plugin (you'll have to upload that and include it yourself in the JavaScripts section).
Here you go. Put it below the board or above the copyright; this should make all the images in posts 72px wide until you click on them and group them by post.
Code:
 
<script type="text/javascript">
$("td.c_post img[alt=Posted Image]").each(function() {
var postid = $(this).parents("tr").prev().attr("id");
$(this).css("width", "72px").wrap("<a rel=\"lightbox-" + postid + "\" href=\"" + $(this).attr("src") + "\"></a>");
});
</script>
Edited by ElementalAlchemist, Nov 8 2011, 09:04 AM.
Online Profile Quote Post Goto Top
 
Kotton
Member Avatar
★ Career Criminal ★
[ *  * ]
wow, that's pretty freakn awesome Alchemist, thank you!

only problem I seem to have is with kats that use imageBam and ScreenSider as their service, it pulls up the thumbnail instead of the full res image ~ it also re-sizes all images within a post to the given pixel within your code (even thumbnails), which I flipped to 350, so thumbnails that were 180px width for example, are now 350 lol.. BUT I can easily gather a consensus about it.. because most other services seem to work fine (Shack, Bucket, Abload, herosh, fotki.yandex.ru, gallery.ru, ect, ect) - basically anything that allows hotlinking works, anything that does not, seemingly will not (makes sense tho)

..unless of course, is there any way to exclude imgBam's service within your code? if not, no worries - as I'm grateful just to have a working lightbox on my sh*t WOO! lol
Offline Profile Quote Post Goto Top
 
ElementalAlchemist
Member Avatar


I'm not familiar with them, but it's possible to exclude sites with thumbnails that already link to full-sized images (as long as I have a list of those sites, or I could check the URL for an image file extension).

As for images less than 350px being enlarged, you can change the "width" to "max-width" to prevent smaller images from being enlarged.
Online Profile Quote Post Goto Top
 
Kotton
Member Avatar
★ Career Criminal ★
[ *  * ]
the only two that seem to need exclusions atm.. threw in BBCode examples for reference as well;

(imageBam) - [url=http://www.imagebam.com/image/4dbe16157965594][img]http://thumbnails27.imagebam.com/15797/4dbe16157965594.jpg[/img][/url]
(Screensider) - [url=http://screensider.com/6401][img]http://screensider.com/images/albums/62/84jTdA-300x200.jpg[/img][/url]

and many thanks for the 'max-width' attribute/correction, works flawlessly

the only suggestion I might add, is if you're going to release this (DO IT! lol), it'd be hella sikk to have an on/off text button up top in the submenu (oooh that'd be bat sh*t HOT! lol)
Offline Profile Quote Post Goto Top
 
HolySavior
Member Avatar
if( holy + alcohol){ happycoding()}
[ *  *  *  *  *  *  * ]
hmmm.... ZB lightbox.

i can see that for the RDB :P

maybe that might be a come back script for me :)
Offline Profile Quote Post Goto Top
 
Kotton
Member Avatar
★ Career Criminal ★
[ *  * ]
hey Dan, sup man.. still DJ'n for your local retirement communities and funeral homes? xD ..I'm jus playin bro :lol: lmao
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · Service Discussion and Feedback · Next Topic »
Add Reply
  • Pages:
  • 1