vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   New Posting Features - bbFlickr - a full featured Flickr bbcode (https://vborg.vbsupport.ru/showthread.php?t=143578)

hambil 03-29-2007 10:00 PM

bbFlickr - a full featured Flickr bbcode
 

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:
  1. Fixed bug in html that caused IE7 to not show the photos.
Version 1.0.1:
  1. Fixed bug in handling of urls without a trailing slash.
  2. Now strips HTML tags from description, username, and photo name.
Version 1.0.0:
  1. Display formated using your skins colors.
  2. Automatically gets author, title, and description.
  3. Hyperlinks image to the original Flickr page to fully comply with Flickr guidelines.
  4. Use a Flickr photo id or just the Flickr page url.
  5. Automatically adds a Flickr button to the editor toolbar.
  6. Puts phpFlickr files in same directory as amykhar's Flickr Integration hack to avoid conflicts.
Install:
  1. Download the bbFlickr 1.0.1.zip.
  2. Upload files in Upload directory to your forum root.
  3. 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

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

Quote:

Originally Posted by zellvnn (Post 1216162)
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

Quote:

Puts phpFlickr files in same directory as amykhar's Flickr Integration hack to avoid conflicts.
amykhar's hack 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

Quote:

Originally Posted by Tralala (Post 1216382)
amykhar's hack 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:
PHP 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($nsidNULL5); 

Updated code:
PHP 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'], NULL5); 

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

Quote:

Originally Posted by romanticyao (Post 1216919)
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

Quote:

Originally Posted by Tralala (Post 1217221)
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

Quote:

Originally Posted by hambil (Post 1217232)
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

Quote:

Originally Posted by romanticyao (Post 1217257)
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

Quote:

Originally Posted by Tralala (Post 1217480)
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

Quote:

Originally Posted by Tralala (Post 1218695)
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

Quote:

Originally Posted by hambil (Post 1218698)
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.

[flickr size="medium"]123456768[/flickr]

Tralala 04-03-2007 01:10 PM

Quote:

Originally Posted by ijob (Post 1218988)
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?


Quote:

Originally Posted by hambil (Post 1219017)
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.

[flickr size="medium"]123456768[/flickr]

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?


All times are GMT. The time now is 03:30 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01450 seconds
  • Memory Usage 1,834KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete