adding classes to img tag

Hi, i was wondering where and how to add things to the img tag. particularly a class.

thanks!
«1

Comments

  • I guess I should say that I am trying to get fotobuzz to work with zenphoto. I have searched and have found nothing, if someone out there has done this successfully, please share, thanks a lot!
  • You have to do it manually in the printDefaultSizedImage fuction in theme-fuctions.php, as best as I can tell. I tried this with reflection.js myself and had to use it for the class.
  • Thanks so much for the info i was able to get the class that i wanted into the tag, but now ive run into one other problem. on the same page that the image shows up on, i need two seperate java scripts. how would i go about placing a javascript?

    `

    <?php if (file_exists('..<#fbdir#>fotobuzz/fotobuzz.php')) {

    echo 'fotobuzz/fbLang.js">

    fotobuzz/fbIR.js">



    .fbIR-hasFlash img.fotobuzz {

    visibility : hidden;

    }

    .fbIR-flash {

    visibility : visible !important;

    margin : 0;

    }

    '; } ?>

    `
    and
    `

    <?php if (file_exists('..<#fbdir#>fotobuzz/fotobuzz.php')) { echo '



    fbViewletPath = "<#fbdir#>fotobuzz/fbloader.swf";

    fbScriptPath = "<#fbdir#>fotobuzz/fotobuzz.php";

    '; } ?>

    `

    are what ive been messing with.
  • when i place these and upload the site, and view the source they are not present at all in any way.
  • Skwid Member
    Hey pinecone, fotobuzz looks awesome. I can try to integrate it into ZP, but I cannot find it anywhere ?? Do you have a link ?
  • Hey there Skwid,
    first I'd like to say that you've made a very nice theme. :)

    Apparently the fotobuzz project was abandoned after the people working on it moved to google. There is very little documentation oh how exactly to set it up, as most of it was on their website.
    I have the original .zip, and have used it in the past, the program is great and looks really good when it is in use.

    If you could try integrating it to zenphoto that would be great! I could use a second persons help I know very little about php. I can send it to you through email if you'd like (just give me your address)
  • Geert Member
    There is another similar script, fotonotes.net. They say it is used on flickr and it is open source. I am trying it out today.
  • I've actually seen that one as well, it could possibly be a little bit easier having the extra support and all. I have used both, and like the way fotobuzz looks a little bit better, but may have to settle with fotonotes! -- keep us updated

    I am actually very close to getting fotobuzz to work, it seems to be recognizing the shockwave elements now, but no picture is showing up :-/
  • Skwid Member
    pinecone: send me the email at lostocean AT gmail DOT com

    Thanks for the comments ! :)
  • Geert Member
    I am still struggling to get the fotonotes to work... Is fotobuzz still downloadable somewhere?
  • ive read the legal stuff.. and as far as i can tell (that legal stuff boggles my mind) it seems to be alright for me to give it freely so long as it is fully in-tact.
    so i guess i can upload the zip to my site for you guys.

    here is a link:
    http://www.teamtreetops.com/files/fotobuzz0_22.zip

    i have gotten it to recognise the shockwave, but it is unable to show the picture, i think this has something to do with zen photo's i.php file and how it deals with the photos.
    i think that fotobuzz somehow needs to work through i.php
  • Geert Member
    Thx! I am going to take a look at this.

    I probably have similar problems with fotonotes. But I don't know enough about it, to change the code and try some things out... =(
    But I am not giving up already, it would be cool to have my own private flickr-like photosite. =)
  • Skwid Member
    I almost got it working, but i know what the problem is !

    Fotobuzz should be working in a couple days !
  • Geert, we are probably in the same place on this, haha.
    Thanks Skwid! you are a hero!
    Was I at all on the right track?
  • Geert Member
    Hehe... Well, now I am waiting for what Skwid can come up with. That will be a lot easier I guess. I am trying out exif and some other stuff, so I can keep myself busy. ;)
  • Skwid Member
    Well, with the help of Craig, we almost got it working. We just need to figure out how to get the dynamic URLs the way we want them.

    Trisweb, is there a way to access the image class variables on image.php ? We need to get to that kind of URL:

    /zp/Tests/image/400/peace.JPG

    What would be the best way ?
  • Skwid Member
    Well, it's working ! :D It's been 22 hours since I first had the zip file. ;)

    http://test.lostocean.net/zp/Tests/peace.JPG

    Right now it's kind of dirty, only works with mod_rewrite on, and in a subfolder, but I'm planning on fixing that. Just wanted to show you guys what I was up to.
  • good good work skwid and Craig! thanks so much for helping out.
    would it be too much to write a tutorial for us? maybe just list the files you have edited and what you added/replaced where?

    or maybe release a theme noting the changed sections?

    thanks again! cant wait to get it working on mine!
  • Geert Member
    This looks very good! Nice job.
  • pretty neat guys... pretty neat..
  • Yes, please document how to achieve this in any theme.
  • Geert Member
    I hope you don't mind Skwid, but I looked at your fotobuzz source code (your dir listing is open) and tried it out. My apologies. But it works great! :)
    You got any more updates on this?
  • anything anything?

    Geert, what should you chmod the dir so that the public cant see in it but have it all run fine as if it were open?
    ive been wanting to do that on my own site... close the dirs that is
  • Skwid Member
    Hum ... I'm sorry I've been very busy lately I haven't had time to make a release.

    Geert, you can't possibly have it working my current implementation needs a modification in the classes.php code..

    Pinecone, you need to mess in the apache config for that. You probably want to do it in a .htaccess file.
  • thanks skwid, and its cool man no rush, i was just afraid the project dropped completely :p
  • Geert Member
    Well, I did anyway, it works, without modifying the classes... I just changed fbIR.js like you did, that is all. What have I overlooked and did you change in the classes?

    Pinecone, sorry that I didn't answer yet, but like skwid said, you should use htaccess to do that.
  • Skwid Member
    Well I don't know how you did it, but your fotobuzz is probably linked to the cache images instead of being linked to the real images. Which means that if you clear your cache or change the display size, you lose all your notes ..
  • Geert Member
    Nope, I already checked that. Deleted my cache, notes remained.
    Isn't that what you changed in the JS file?
  • Geert Member
    Well... Nevermind, I was able to get fotonotes working with zenphoto (with some support from the author Greg Elin)!
    Works great. I think I prefer this instead of fotobuzz.
  • geert -

    it would be really cool if you could share your installation with all of us. I'd like to see how you implemented the fotonotes stuff. i think it would be really cool in zenphoto.

    thinkdreams.
Sign In or Register to comment.