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-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.


All times are GMT. The time now is 09:42 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.01151 seconds
  • Memory Usage 1,747KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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