Hi, I got the job lot working fine. However, I would love to add Lightbox 2.0 but have no idea how to begine - Please could you help with this?
Tanks, Raven
Raven Wrote:Hi, I got the job lot working fine. However, I would love to add Lightbox 2.0 but have no idea how to begine - Please could you help with this?
Hi Raven -
This is definitly an "Adapting templates" topic - So i moved it in the related forum:
- First of all read and make sure you understand
this page.
- Then get a
copy of the lightbox.js and place it in the root of your theme-directory.
- Include the JavaScript file in your themes header.php:
Code:
<script language="javascript" type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>lightbox.js"></script>
The next step depends on if you're using the "auto template adapting" feature from YAPB or if you adapted your theme manually.
Auto template adapting feature enabled:
- Disable the feature "Display images on HOME page listing."
The next steps are the same if you adapted your theme manually:
- Now adapt the YAPB-thumbnail code on your index.php as seen
here
- Finally place a link around the image:
Code:
<?php if ($post->image): ?>
<a href="<?php $post->image->getThumbnailHref(array('w=600')) ?>" rel="lightbox[YAPB]">
<img src="<?php echo $post->image->getThumbnailHref(array('w=200','fltr[]=usm|30|0.5|3')) ?>" width="200">
</a>
<?php endif ?>
The interesting part is the link itself and especially the
rel="lightbox[YAPB]" attribute. You could have a look into the
Lightbox Documentation also.
Hope that helps,
greets from Salzburg,
Johannes
Hi there Johannes, thanks for your reply - in fact it really helped me out a lot and I managed to get it working without too many problems. However, as I do with most things I got around to reading the sales blurb after playing with your script and found that it will only add one image per post... Ouch!
Now the daft question, how can I have the same ease of use that your script offers with the upload feature etc... but also do this:
http://gobonet.net/?cat=4 (
See: Snow in Boston).
I will smile like a crazy fool if you could help, but if you can't please please at least point me in the right direction. My blog needs this function so much it is starting to sting lol
Thank you thus far, Raven

Raven Wrote:Now the daft question, how can I have the same ease of use that your script offers with the upload feature etc... but also do this: http://gobonet.net/?cat=4 (See: Snow in Boston).
I will smile like a crazy fool if you could help, but if you can't please please at least point me in the right direction. My blog needs this function so much it is starting to sting lol 
I didn't found something this easy to use (that's why i programmed it

) - But you're definitly searching for something like
the mygallery plugin.
It's a great gallery plugin that allows to upload multiple images at once - And to use lightbox out of the box. I'm using it too - BUT:
I by myself definitly decided againced multiple images upload in one post (although i programmed a prototype once) since this stands against my opinion what a photoblog should be. Sorry for that in your case.
hope this helped,
greets from Salzburg,
Johannes
Hi Johannes, I agree that a photo blog should be one image with a little information about it including EXIF and that is cool. However, my site is not so dedicated to one photo but more to one day or event
So while i'm caving lets say I take 6 photos, well for me I want to show all of them at the bottom of my 'review' of the cave that I have just been in if you know what I mean
Sort of like this:
TITLE
DATE
REVIEW OF THE CAVE HERE IN TEXT
REVIEW OF THE CAVE HERE IN TEXT
REVIEW OF THE CAVE HERE IN TEXT
REVIEW OF THE CAVE HERE IN TEXT
IMAGE 1 - IMAGE 2 - IMAGE 3
IMAGE 4 - IMAGE 5 - IMAGE 6
All of the photos need to open/show using lightbox.js as there are so many popup blockers these days and besides, it looks cool as anything
Thank you again, Raven
Hi Raven -
That's all perfectly understandable - I myself need that too from time to time - Multiply images that only work togheter in a context. Currently i use myGallery to achieve that - But these images are not really accessible in a standard-compatible way...
I'm catching myself thinking how to solve this in a standard-way. If programming a multiple-images-in-one-single-post-feature - how may i allow comments and trackbacks to every single image, how do i render all of them into the rss stream... what's about the permanent urls... and so on.
I will meditate over this and decide if i really want it - A usable technical solution is only work (ok, ok - work in my spare time).
Greets from Salzburg,
Johannes
Hi there Johannes, you have also got me thinking now -- How about just having a single permalink/trackback/rss feed to the 'post' rather than each and every image...
This way you (and I... and anyone else that decides to take this on) won't get the head-ache of headaches trying to get your (our) minds around such a crazy mod
To be able to post one image and use it as a photo-blog is fantastic. However, to be able to generate each thumb, maybe crop too (using ImageMagick/GDLib) and then lay a number of photos out in a nice ordered table/list either above/below the post's main body text would be simply rocking!
Now i'm not talking about having a gallery here, that would be totally seprate from the body text of each article... What i'm suggestiong is still keeping the idea of a photo-blog but simply making it so that the user has more freedom to add more that one image to each post..
Looking forward to hearing your thoughts/comments.
Raven
Hi, sorry to hear about the SPAM-BOT! - I have a few mods for phpBB knocking about that helped me fight this sort of stuff if you keep getting problems
Anyway, just found
*THIS* web site and although it is not using yapb it is exactly what yapb should be able to do
The problem is that its using a port of Wordpress called
Pictorialis that is very old now and very 'clunky' to use...
Think of it, yapb would still function in the way it was intended with only one image (if required) or if the client/admin of his/her Wordpress installation wanted then they could add the amount of images they required
Really though, yapb in its current form is the best on WP plugin there is for adding images. However, in my opinion the addition of adding more than the default single image would would make it the bees-knees, mutts-nutz, the silver-lining, shall I continue
Any thoughts on upgrading/adding the above function(s)?
Raven
Anonymous Wrote:I by myself definitly decided againced multiple images upload in one post (although i programmed a prototype once) since this stands against my opinion what a photoblog should be. Sorry for that in your case.
hope this helped,
greets from Salzburg,
Johannes
Don't still happen to have the prototype knocking about do you

: ... Had to ask

Raven Wrote:Don't still happen to have the prototype knocking about do you
: ... Had to ask 
I'm very tempted to program the multiple images support - But i've had no time to think about how to do that in a standard way (And that would be the only way i want to do it):
All images have to appear in the rss and atom feeds
This rss feed has to be readable for sites like vfxy.com
There should be a possibility to comment every single image
There should be a possibility to view every image on it's own
etc. etc.
I tend to finalize YAPB in it's current form (After finding and correcting bugs eventually) and then to think about this major change - And my time is limited somewhat.
greets from Salzburg,
Johannes
arjzk1 Wrote:what r u talking about?
How did this spam-bot come through the registration captcha? The quote was filled with links to mobile ringtones etc... Do they hire third world workers to post things like this nowerdays?
arg.
Hi there, thanks for your reply Johannes. The work that you have put into YAPB so far is simply stunning and for that I thank and commend you - I also understand about the impact on your time etc... so no worries. However, I will still wait with baited breath for the 'multi-upload' version hehe
Thank you for all your support thus far.
P.S.
I personally think the post from 'arjzk1' is just someone being a crank poster after reading our comments on spam and this forum so I would'nt worry too much. Anyway, everyone else I know that is using the hacks I pointed out to you don't suffer from spam posts by the robots so this forum should'nt be any different.
Just delete the post and email arjzk1 reminding him/her that their account will be removed if there is any further spam posted. No, on 2nd thoughts don't email them as that could maybe prove that your forum is live (if it is a robot/rouge script) thus creating further issues of spam.
If it was my forum I would just delete the post and see if it happens again from the same user (and IP address) then just delete said account and ban the IP address from the main admin section.
Hi there,
Love your plugin and I love the idea of integrating Lightbox.
I've followed your instructions above but I must have missed something.
I wonder if you could please take a look and see?
My site is:
http://www.abouthere.co.uk/photoblog
Thanks in advance.
Cheers,
Rob
No need to worry - I've decided to implement it a different way
Cheers,
Rob