PDA

View Full Version : New Posting Features - bbFlickr - a full featured Flickr bbcode


hambil
03-29-2007, 10:00 PM
Note: This product is now being supported at www.catnine.net

Keywords: Flickr, Post Enhancement, posts, picture, photo

Description:
A bbcode to automatically format and display Flickr photos in a post.

Version 1.0.2:

Fixed bug in html that caused IE7 to not show the photos.Version 1.0.1:

Fixed bug in handling of urls without a trailing slash.
Now strips HTML tags from description, username, and photo name.Version 1.0.0:

Display formated using your skins colors.
Automatically gets author, title, and description.
Hyperlinks image to the original Flickr page to fully comply with Flickr guidelines.
Use a Flickr photo id or just the Flickr page url.
Automatically adds a Flickr button to the editor toolbar.
Puts phpFlickr files in same directory as amykhar's Flickr Integration (https://vborg.vbsupport.ru/showthread.php?t=119488) hack to avoid conflicts.Install:
Download the bbFlickr 1.0.1.zip.
Upload files in Upload directory to your forum root.
Import product-bbflickr.xml in your admin cp product manager.Note: Please update from 1.0.0, as allowing HTML in the photo description presents a security risk.

Support offered here, and on my own site: Catnine Software (http://www.catnine.net/vb)

Zia
03-30-2007, 06:07 AM
ahh ha....

looks like good

gonan use it..man thnx

ilydgn
03-30-2007, 06:52 AM
thank:up:

zhou
03-30-2007, 07:34 AM
nice mod

hambil
03-30-2007, 02:11 PM
Thanks :) I have a few more plans for it, but it's fairly complete as is I think.

zellvnn
03-30-2007, 03:21 PM
Is it possible to put a slide show URL inside my forum ?

Subah
03-30-2007, 03:43 PM
Thanks

hambil
03-30-2007, 03:46 PM
Is it possible to put a slide show URL inside my forum ?
Sure. But that would be a different hack.

Tralala
03-30-2007, 06:18 PM
Seems to be working fine, thanks! I did have to put the flickr.gif file into images/editor though, in order for it to show up in the toolbar of my custom skin.

Thanks for sharing!

/clicks install

Tralala
03-30-2007, 07:58 PM
Puts phpFlickr files in same directory as amykhar's Flickr Integration hack to avoid conflicts.

amykhar's hack (https://vborg.vbsupport.ru/showthread.php?t=119488) seems to require phpFlickr 1.6.1 (not 2.0) to work. When I merge/replace the files required by this one to work to that, amykhar's hack no longer works. I get an error at the top of the Member Info page.

What's the best way to get BOTH of these flickr integration tools to work? I'm using vB 3.6.4, if it matters.

hambil
03-31-2007, 08:02 AM
amykhar's hack (https://vborg.vbsupport.ru/showthread.php?t=119488) seems to require phpFlickr 1.6.1 (not 2.0) to work. When I merge/replace the files required by this one to work to that, amykhar's hack no longer works. I get an error at the top of the Member Info page.

What's the best way to get BOTH of these flickr integration tools to work? I'm using vB 3.6.4, if it matters.
After some investigation it appears the flickr api has changed so that people_findByUsername now returns an array instead of the userid. The userid can than be retrieved via 'id' in the array.

Amy's code:

// Find the NSID of the username inputted via the form
$nsid = $f->people_findByUsername($userinfo['field5']);

// Get the friendly URL of the user's photos
$photos_url = $f->urls_getUserPhotos($nsid);

// Get the user's first 5 public photos
$photos = $f->people_getPublicPhotos($nsid, NULL, 5);


Updated code:

// Find the NSID of the username inputted via the form
$nsid = $f->people_findByUsername($userinfo['field5']);

// Get the friendly URL of the user's photos
$photos_url = $f->urls_getUserPhotos($nsid['id']);

// Get the user's first 5 public photos
$photos = $f->people_getPublicPhotos($nsid['id'], NULL, 5);


The code in question is in amy's "Get Flickr Pictures" plugin.

I'd post in amy's thread if you want her to fix it, or you can just do the edit yourself. Amy's hack is marked as unsupported, but she's around a lot, so who knows.

Tralala
03-31-2007, 02:50 PM
Awesome, thanks for that hambil! I now have both hacks working, and with phpFlickr 2.0 to boot. I'll link to this fix in her thread.

romanticyao
03-31-2007, 04:18 PM
its pullin the info of photo but not pic.... um,,,

hambil
03-31-2007, 04:20 PM
Got a link?

romanticyao
03-31-2007, 04:23 PM
<a href="http://www.ccbbs.ca/forums/thread42.html" target="_blank">http://www.ccbbs.ca/forums/thread42.html</a>

Tralala
03-31-2007, 04:48 PM
romanticyao, I just checked your link and the flickr photos are loading fine for me...

romanticyao
03-31-2007, 05:03 PM
weird... this is wut i see

Tralala
04-01-2007, 03:00 AM
Hello... I have one issue, and it's strange because it only seems to be affecting one user, and his flickr images.

When he tries embedding a flickr image, it screws up the forum's layout and tables. Subsequent posts get inlined inside each other.

This is in the standard vBulletin skin (as well as my custom ones.)

All other images from all other users have been embedding fine. So I am really confused as to why JUST THIS user and HIS images are causing a problem.

Some of his won't display at all. The ones that do, screw up the tables in postbit_legacy, I believe.

Sadly I've had to turn the hack off until I can resolve the issue, since it was screwing up every thread that this user was posting flickr images in.

Any help would be most appreciated!

hambil
04-01-2007, 03:06 AM
its pullin the info of photo but not pic.... um,,,
Hmmm. This is what I see:
http://img337.imageshack.us/img337/1959/flickrcj7.jpg

hambil
04-01-2007, 03:08 AM
Hello... I have one issue, and it's strange because it only seems to be affecting one user, and his flickr images.

When he tries embedding a flickr image, it screws up the forum's layout and tables. Subsequent posts get inlined inside each other.

This is in the standard vBulletin skin (as well as my custom ones.)

All other images from all other users have been embedding fine. So I am really confused as to why JUST THIS user and HIS images are causing a problem.

Some of his won't display at all. The ones that do, screw up the tables in postbit_legacy, I believe.

Sadly I've had to turn the hack off until I can resolve the issue, since it was screwing up every thread that this user was posting flickr images in.

Any help would be most appreciated!
I posted the photo you provided on my board, and it worked fine, so I don't think it's the photos per-say. There is something else going on. I'm not sure what yet.

Tralala
04-01-2007, 03:23 AM
hambil, if you'd like I could send you an admin login for my private board if you'd like, to check this issue out directly.

hambil
04-01-2007, 03:24 AM
That would be very helpful :)

Tralala
04-01-2007, 03:34 AM
That would be very helpful :)

PM sent; thanks.

romanticyao
04-01-2007, 05:03 AM
am i blocked by flickr or somethin... :(

Tralala
04-01-2007, 05:35 AM
romanticyao, are you able to see pics directly on flickr?

ilydgn
04-01-2007, 10:04 AM
:up: thanks

Tralala
04-01-2007, 01:22 PM
am i blocked by flickr or somethin... :(

romanticyao (and hambil) -- I think I know the issue. Are you using IE7?

A user on my forum reported the same issue today. The images wouldn't appear for him in IE7 (and Vista.)

But they appeared for him in Firefox.


EDIT: A second user reports the same thing. Works in Firefox, not IE7.

hambil
04-01-2007, 05:50 PM
romanticyao (and hambil) -- I think I know the issue. Are you using IE7?

A user on my forum reported the same issue today. The images wouldn't appear for him in IE7 (and Vista.)

But they appeared for him in Firefox.


EDIT: A second user reports the same thing. Works in Firefox, not IE7.
Fixed. Thanks :)

Tralala
04-01-2007, 06:03 PM
No prob, downloading the update now.

Thank YOU for fixing it. :)

Tralala
04-01-2007, 09:52 PM
And I can confirm, it now displays fine for the IE7 users on my forum. Thanks again, hambil. romanticyao, you may want to install the newest update and see if it works for ya.

romanticyao
04-02-2007, 02:22 AM
i will give it a try. thanx for the update

romanticyao
04-02-2007, 03:48 AM
for somereason still not showin up

Tralala
04-02-2007, 10:50 PM
hambil, with these flickr images, when a user clicks them, it navigates away from our forum but stays in the same window. I'd very much like for it to open a new window, like it does for all other external links. (target="_blank) Would that be possible?

hambil
04-02-2007, 10:51 PM
hambil, with these flickr images, when a user clicks them, it navigates away from our forum but stays in the same window. I'd very much like for it to open a new window, like it does for all other external links. (target="_blank) Would that be possible?
Sure. I'll add it to the next update.

Tralala
04-02-2007, 11:36 PM
Sure. I'll add it to the next update.

Great, thanks again.

ijob
04-03-2007, 11:30 AM
how can I display the photos without the border and author, title, and description? ie, just the flickr photo?

great hack btw

hambil
04-03-2007, 12:43 PM
Thanks. Displaying the flickr photo without the info is a violation of Flickr policy. However, the idea for a size is interesting. I'd make it an optional param of the tag. e.g.

123456768

Tralala
04-03-2007, 01:10 PM
how can I display the photos without the border and author, title, and description? ie, just the flickr photo?

great hack btw

If you just wanted to show the flickr photo (even if it is a violation of flickr's policy)... why not just use the IMG tag?


Thanks. Displaying the flickr photo without the info is a violation of Flickr policy. However, the idea for a size is interesting. I'd make it an optional param of the tag. e.g.

123456768

ooooh! :) :up:

MelH
04-03-2007, 11:58 PM
In your second screenshot you show a number rapped in the Flickr tags. Is this a Flickr identification number? If so where do I find them for my photos on Flickr? I looked but can’t find them anywhere.

dannylin3000
04-20-2007, 12:59 PM
Was just wondering if this feature can be also included in this plugin?

- Show EXIF
If you mouse over to the flickr photo, there'll be a hint or layer showing the specific photo's EXIF?

hambil
04-20-2007, 01:20 PM
In your second screenshot you show a number rapped in the Flickr tags. Is this a Flickr identification number? If so where do I find them for my photos on Flickr? I looked but can?t find them anywhere.
It's typically the last number in the url of your photo: http://www.flickr.com/photos/81434493@N00/440545219/

Of course, you can also just put in the full url.

dannylin3000
04-22-2007, 02:00 PM
would be cool if you can directly browsing your flickr sets while posting in the WYSIWYG editor.

then just click that Flickr button, you'll see a add-on pane to display all your flickr sets where you can choose and insert specific photos from that set.

Tralala
04-23-2007, 12:56 AM
hambil, with these flickr images, when a user clicks them, it navigates away from our forum but stays in the same window. I'd very much like for it to open a new window, like it does for all other external links. (target="_blank) Would that be possible?

Sure. I'll add it to the next update.


Just wondering, in the meantime, could I use something like this: https://vborg.vbsupport.ru/showthread.php?t=145402

hambil
04-23-2007, 05:29 AM
Development on this mod is temporarily on hold. Please don't lose patience of faith :) I've just got a lot going on, and the new version of this is an expansion from a bbcode to a full Flickr integration.

dannylin3000
04-23-2007, 05:38 AM
hambil - great thanks for this great work!

Can you consider to add the show exif switch to each of the photos retrieved from Flickr?

Means below each photos, there'll be a block showing the EXIF info.

hambil
04-23-2007, 06:03 AM
hambil - great thanks for this great work!

Can you consider to add the show exif switch to each of the photos retrieved from Flickr?

Means below each photos, there'll be a block showing the EXIF info.
I will be adding that, along with a number of other requested features, when I release this as a full mod. I'm just alert everyone that I haven't forgotten about this, it just may be a couple weeks.

iogames
04-27-2007, 03:39 AM
Hey!
Call me 'old fashion' but how can I automatically center the picture on the middle of the thread???

Videx
05-02-2007, 02:36 AM
I'm getting this error when rebuilding my post cache:

Fatal error: Call to undefined function: handle_bbcode_flickr() in /forum/includes/class_bbcode.php on line 1261

I guess it's nothing to worry about if we're getting a new version shortly.?