Recent Topics

1 Jul 18, 2005 23:18    

Well I've been after a gallery for my blog and saw several people using B2Evo have set this up.

I signed up for Flickr, setup a new blog for the pictures to be posted into.

After putting in the Endpoint into flickr it confirmed which blog I wanted to use and I entered all the details and it seemed to be happy. After trying to test post I just got an error and nothing appeared on the blog.

I switched logging on in the xmlrpc.php file. This gave me error 805 "Requested category does not exist." So I added the <Category> tags although then realised I have no idea what should go inside them. I've tryed the 'cat_ID' although I still get an error so ... how do I find out?

Cheers

3 Jul 19, 2005 03:29

Since we can't reply in that thread I can ask it here: Does anyone have this up and running so we can see it in action? I haven't looked into it much and would like to see what it would look like running in an actual blog.

Thanks.

4 Jul 19, 2005 03:52

Okay, I did the setup at flickr.com and on my blog. For those who don't know, you can upload photos to flickr by email and apparently they will automatically post to your blog as well. I'm not sure what else this enables you to do, I haven't tried it out yet.

5 Jul 19, 2005 09:06

I'm using that thing.
You can upload pictures to flickr by email, but it is not 'per default' that those pictures get blogged.

If you have an account at Flickr, and surf a lot a Flickr, sometimes you see pictures of others that you like.
If you want to publish that picture for example, than it's easy to click on the tab (in flickr) 'blog this'.

<deleted the link to the example, because it was deleted from my blog>

6 Jul 19, 2005 14:53

Thanks for the example. I was able to get the test post to work but when I tried to "blog this" on a picture it failed saying I needed to check my settings. I'll have to keep messing with it.

Thanks again.

7 Jul 19, 2005 15:39

Nate, if you are able to get the testpost, the solution is very near.

Try to change the layout of your blog in Flickr.
You have to make a choise, but you also can customize it.

Try to delete everything and put this : <a href="{photo_url}" title="photo sharing"><img src="{photo_src_m}" alt="" /></a>
{photo_desc}

The reason why it was not working is explained in the fas-post :

How to make it that you can actually post photo's ?

Flickr uses a lot of css-style in his post.
And b2evo does not like that.

8 Jul 19, 2005 17:14

Well I found my problem, I was putting a <category> tag in the Flickr layout rather than changing the default category in B2Evos options.

I can now post pictures straight to my blog :)

My last question is, how do you get the preview thing up on the sidebar (for example on Graham's blog - http://tin-men.net/ ).

Cheers

9 Jul 19, 2005 18:15

the 'preview' thing is just a flickrbadge.
And that , again, is a flickr -)thing, not a b2evo thing.

In flickr you'll find the code for that badge.
Paste that in your sidebar, and voila.. it's a preview of your latest pictures.
or a slideshow of a particular set of pictures...

10 Jul 19, 2005 21:49

I don't use the default flickr badge, I thought it was ugly. I use magpie rss to parse the flickr rss feed. I've just had a quick google for the original link, but I can't find it. I'm sure with a decent look you will be able to find it.

11 Jul 19, 2005 22:48

Cheers for all the replies. I've simply rewritten the Flickr preview a bit and I'm happy with the look :) - Maybe you should add that bit to your lil tutorial Topanga :)

Well it all seems to be working for me now, although not suprisingly I have another question, LOL. I host two blogs (one for someone else) on the same install of B2Evo, when Flickr posts to my gallery blog it uses a default setting in the configuration to know which category to post into correct? so if I want Flickr to post to a different blog on the same install - is this at all possible?

Cheers muchly :)

12 Jul 19, 2005 23:02

Unreal : can you than please write your 'preview' downhere ?
then I'll add it to the tutorial.

13 Jul 20, 2005 00:46

<div class="bSideItem">
		<h3 class="sideItemTitle"><?php echo T_('Gallery') ?></h3>

<!-- Start of Flickr Badge -->
<style type="text/css">
#flickr_badge_source_txt {padding:0; font: 11px Arial, Helvetica, Sans serif; color:#999999;}
#flickr_badge_icon {display:block !important; margin:0 !important; border: 1px solid rgb(0, 0, 0) !important;}
#flickr_icon_td {padding:0 5px 0 0 !important;}
.flickr_badge_image {text-align:center !important;}
.flickr_badge_image img {border: 1px solid black !important;}
#flickr_badge_uber_wrapper {width:150px;}
#flickr_www {display:block; text-align:center; padding:0 10px 0 10px !important; font: 11px Arial, Helvetica, Sans serif !important; color:#3993ff !important;}
#flickr_badge_uber_wrapper a:hover,
#flickr_badge_uber_wrapper a:link,
#flickr_badge_uber_wrapper a:active,
#flickr_badge_uber_wrapper a:visited {text-decoration:none !important; background:inherit !important;color:#556699;}
#flickr_badge_wrapper {background-color:#f2f2f2;border: solid 1px #505050}
#flickr_badge_source {padding:0 !important; font: 11px Arial, Helvetica, Sans serif !important; color:#999999 !important;}
</style>

<center>
<table id="flickr_badge_uber_wrapper" cellpadding="0" cellspacing="10" border="0"><tr><td><table cellpadding="0" cellspacing="10" border="0" id="flickr_badge_wrapper">

<script type="text/javascript" src="http://www.flickr.com/badge_code_v2.gne?show_name=1&count=3&display=latest&size=s&layout=v&source=user&user=INPUT YOUR OWN USER NUMBER HERE"></script>
<tr>
<td id="flickr_badge_source" valign="center" align="center">
<table cellpadding="0" cellspacing="0" border="0"><tr>
<td id="flickr_badge_source_txt"><nobr>More of</nobr> <a href="http://YOUR_URL/b2evolution/blogs/index.php/ADD BLOG NAME HERE"> my photos</a></td>
</tr></table>
</td>
</tr>
</table>
</td></tr></table></center>
<!-- End of Flickr Badge -->
</div>


If you use the autogenerated code to get the number needed to identify yourself, then input it into this code. This code fits into my blog although its a pretty generic colour scheme. The 'More of my photos' bit will link to my blog rather than the Flickr gallery, I've removed my blog name for you to add your own :)

If you want to see it in context, http://www.alexsblog.co.uk take a look at my blog :) (Gallery only has two photos in atm though, lol).

14 Jul 25, 2005 16:52

MikkyT mentioned that you should put the following code in your flickr layout so that a title is produced in your blog entry:

<title>{photo_title}</title>

By doing this your blog entry will take the photo title from flickr which often is something like IMG_01331 or DSCF0032. If you want to make your own title for your blog entry change the above code to:

<title>{title}</title>

Then, when you are about to upload from flickr to your blog you can add your own title in the form.

16 Jul 28, 2005 22:00

Hey so the code posted is not for the Flash version but for the HTML version. What do I need to modify to use the Flash version of the badge?

17 Jul 29, 2005 07:41

willemkooij wrote:

Topanga wrote:

Have your read this post ?
http://forums.b2evolution.net/viewtopic.php?p=21428

I've tried it all, but flickr will only post in blog #2

I have read all stuff and got things wording in a clean install b2evolution. But in my 'filled blog' it doesn't work. Connecting is OK but it won't post ?!?

18 Jul 29, 2005 08:38

willemkooij wrote:

Connecting is OK but it won't post ?!?

How do you know that connecting is ok ?
is it posting a test-blog ?

19 Jul 29, 2005 08:49

Topanga wrote:

willemkooij wrote:

Connecting is OK but it won't post ?!?

How do you know that connecting is ok ?
is it posting a test-blog ?

Well I get a problem with the test-blog, wich I don't get with a install blog from scratch. o setting mare OK (it recognisez the blogs)

20 Jul 29, 2005 15:09

It sounds to me like this is the part that is going wrong for you:

5) By the way, what blog are you targetting? This is the trickiest issue! By default Flickr will post into category #1 which is in most likely in blog "A" (#2). At least this is the default b2evo install.

If you want to post to another category/blog, you must edit /conf/_advanced.php around line 98 and change the following:
Code:
# by default posts will have this category
$default_category = 1;

Replace 1 with the number of the category you want to post to.

Make sure in your live blog that you have chosen a category number which posts to the blog you want (not blog #2). I went ahead and created a new category in my blog called "flickr" and then used the number of that new category. That worked for me.

21 Jul 29, 2005 17:53

Nate wrote:

It sounds to me like this is the part that is going wrong for you:

5) By the way, what blog are you targetting? This is the trickiest issue! By default Flickr will post into category #1 which is in most likely in blog "A" (#2). At least this is the default b2evo install.

If you want to post to another category/blog, you must edit /conf/_advanced.php around line 98 and change the following:
Code:
# by default posts will have this category
$default_category = 1;

Replace 1 with the number of the category you want to post to.

Make sure in your live blog that you have chosen a category number which posts to the blog you want (not blog #2). I went ahead and created a new category in my blog called "flickr" and then used the number of that new category. That worked for me.

Well, good reading is hard. After I did read and found the categorynumber and changed the config everything works OK.
Thanks for the help and I'll do my reading next time

22 Aug 09, 2005 21:42

I can successfully click blog this and it will post in my blog, even though it throws an error in flickr, but why won't it automatically post my emailed images??

The emailed images DO show up in flickr. Does it take time to post?

23 Sep 01, 2005 06:32

Hmm. I've been trying for a while, followed the instructions in http://forums.b2evolution.net/viewtopic.php?t=4528 and run smack into a brick wall.

I have created a whole new blog called pix, for which there is one category and one user.

I can get to the "Confirm your details" page in flickr, where it says:

Service: BloggerAPI
Username: flickr_user
Password: *****
Weblog: pix(#5)
URL: (my ungodly long url)
Label: pix

so I figure I have gotten past the endpoint error that other people have reported. After all, it gleaned the blog number from my site.

I then go to layout, remove all the css, leaving just the code to post the image:

<a href="{photo_url}" title="photo sharing"><img src="{photo_src_t}" alt="{photo_title}" /></a>

as suggested.

Well, I try to send a test post, and I get the dreaded message:

A test post to pix failed. Maybe your username and password were wrong

so I checked the blog to see if perhaps it had posted the test post but just reported an error anyway. Nope. nothing there from flickr.

Well, I can log into the blog as pix, I can post as pix, I can view the blog, so it isn't username and password.

I am running version 0.9.0.11 of b2evo.

Any ideas, folks?

24 Sep 01, 2005 09:37

5) By the way, what blog are you targetting? This is the trickiest issue! By default Flickr will post into category #1 which is in most likely in blog "A" (#2). At least this is the default b2evo install.

If you want to post to another category/blog, you must edit /conf/_advanced.php around line 98 and change the following:
Code:
# by default posts will have this category
$default_category = 1;

Replace 1 with the number of the category you want to post to.

You also did that I suppose ?

25 Sep 01, 2005 14:25

Topanga wrote:

5) By the way, what blog are you targetting? This is the trickiest issue! By default Flickr will post into category #1 which is in most likely in blog "A" (#2). At least this is the default b2evo install.

If you want to post to another category/blog, you must edit /conf/_advanced.php around line 98 and change the following:
Code:
# by default posts will have this category
$default_category = 1;

Replace 1 with the number of the category you want to post to.

oops!

okay. I just did that, but it sent back the error as well as making a test post. So, Success!

and now, I think I have just figured out the problem of flickr returning the error as well as posting. I changed flickr_user's group from blogger to priviledged bloggers and the error message went away. Thanks, Topanga!

26 Sep 07, 2005 05:53

rocketdyke wrote:

and now, I think I have just figured out the problem of flickr returning the error as well as posting. I changed flickr_user's group from blogger to priviledged bloggers and the error message went away. Thanks, Topanga!

Well, Flickr came back with returning an error again, so if it was the priviledged blogger trick it was intermittent. The photos are posting, though.

And to add some bonus thrills, I just crudely hacked together a way to show the photos down my sidebar because I really liked the way that Meg (http://www.megnut.com) has done hers.

To do so, I just copied my _linkblog.php to use as a starting point, called it _photoblog.php, hard-coded it to point to the blog ID of my photo blog, inserted a bit of text, added a call for it in my _main.php, and presto, it works. Not as pretty as I would like, but it will hold for a bit while I get some other projects done.

for a look at what it looks like, http://www.how-to-hide-a-corpse-on-federal-land.com/words/

Here is the code:


<?php
	/*
	 * This used the template that displayed the linkblog
	 * Now it is my photoblog page
	 *
	 * This file is not meant to be called directly.
	 * It is meant to be called by an include in the _main.php template.
	 */
	if(substr(basename($_SERVER['SCRIPT_FILENAME']),0,1)=='_')
		die("Please, do not access this page directly.");
	
	if( !isset( $photoblog ) )
	{	// I hardcoded the blog ID of my photo blog:
		$photoblog = 5;
	}
	
	if( ! $photoblog )
	{	// No photoblog blog requested for this blog
		return;
	}
		
	# maximum number of photoblog entries to display:
	if(!isset($photoblog_limit)) $photoblog_limit = 5;
	# global photoblog delimiters:
	if(!isset($photoblog_main_start)) $photoblog_main_start = '';
	if(!isset($photoblog_main_end)) $photoblog_main_end = '';
	# Category delimiters:
	if(!isset($photoblog_catname_before)) $photoblog_catname_before = '<li>';
	if(!isset($photoblog_catname_after)) $photoblog_catname_after = '</li><ul>';
	if(!isset($photoblog_catlist_end)) $photoblog_catlist_end = '</ul>';
	# Item delimiters:
	if(!isset($photoblog_item_before)) $photoblog_item_before = '<li>';
	if(!isset($photoblog_item_after)) $photoblog_item_after = '</li>';


	// --- //
	
	
	// Load the photoblog blog:
	$photoblogList = & new ItemList( $photoblog, array(), '', '', '', $photoblog_cat, $photoblog_catsel, '', 'ASC', 'category title', '', '', '', '', '', '', '', '', $photoblog_limit, 'posts', $timestamp_min, $timestamp_max );
	
	
	// Dirty trick until we get everything into objects:
	$saved_blog = $blog;  
	$blog = $photoblog;
	
	// Open the global list
	echo $photoblog_main_start;
		
	$previous_cat = '';
	$photoblog_cat = '';
	
	while( $Item = $photoblogList->get_category_group() )
	{
		// Open new cat:
		echo $photoblog_catname_before;

// here is what I added to give the intro text:
	echo "photos:";
		echo "<ul><li><cite>the last few photos I've taken with my phone, via <a href=\"http://www.flickr.com\">flickr</a></cite></li></ul>";


		echo $photoblog_catname_after;


		while( $Item = $photoblogList->get_item() )
		{
			echo $photoblog_item_before;
			$Item->title(); 
			echo ' ';
			$Item->content( 1, 0, T_('more'), '[', ']' );	// Description + more link 
			echo $photoblog_item_after;
		}
	
		// Close cat
		echo $photoblog_catlist_end;
	}
	// Close the global list

//put some space at the end of the blog:
	echo "<br><br>";
	echo $photoblog_main_end;
	
	// Restore after dirty trick:
	$blog = $saved_blog;		
?>

27 Oct 04, 2005 10:36

Okay, this is probably going to sounds really stoopid, but which file do I insert the flickr badge code into?

Can I do it from the backoffice?

Also, can I insert the code as it is generated by the flicker website, or do I need to change it?

Cheers!

Charlie Tyack
www.charlietyack.com

28 Oct 04, 2005 16:29

You're probably going to post it into your skin's _main.php file. Look through the file until you find the Sidebar section, then you can pick where on the sidebar you'd like (assuming you want it on the side). You'll probably want to notice how some of the other sidebar items are coded (notice especially the div tags). That you should get you started in the right direction.

29 Mar 21, 2006 10:52

Ok I got the right api with flickr (ithink) and used an admin login, but the test post is failing. I'm using 0.9.1 version.

I read in the FAQ forum that there is some flickr css to change... but I didn't understand where that code lives... on flickr? in my blog?

If anyone can help explain I'd much apreciate it!

Thanks!

Thomas

30 Aug 25, 2006 01:17

I'm having problems with b2evo 1.8.1 - I'm trying to set it up - have entered the details and when I click the flickr test post button I just get the message

"The test post to Fogcat failed. Maybe your username and password were wrong?"

I've checked and re-checked the user and passwords, tried a different user, given the user all rights. I get the same message evry time.

What stupid thing am I overlooking?

I checked the thread reffered to and that seems a little out of date. for example it refers to editing the default category in the _advanced.php file. That line doesn't seem to be in there any more.

31 Aug 27, 2006 13:33

I finally managed to get Flickr to post an entry to my blog using the test post button.

But to do that I had to select an interfcae type of MetaWeblogAPI and not BloggerAPI like it says on http://forums.b2evolution.net/viewtopic.php?p=21428

HOWEVER - the test post and any other subsequent pictures I select to post to the blog don't work properly. I get an empty post, no picture, no title, no comment - nothing.

I've tried various different layouts suggested, none of them work - I need some help please.

32 Jul 12, 2007 01:23

I am frustrated at every turn trying to setup the Flickr post portal. It finds my blog in the setup phase but has never successfully sent a test post. I keep getting The test post to FP failed. Maybe your username and password were wrong? I've done everything in each of the topics posted here, including

    using both BloggerAPI and MetaWeblogAPI using my own admin account in Flickr creating an account for Flickr, with Privileged Blogger access updating _advanced.php with the correct default blog and category numbers modifying the Flickr layout to the simplest format given here even creating a hacks.php file and setting the default category in there (that gave other errors...)[/list:u] Still it fails. I'm on b2e v1.9.3 and using the custom skin template. You can view my blog at www.FacilitatingParadox.com. I would appreciate any help you all can provide

33 Jul 12, 2007 02:46

I am using the Blogger API, and have a separate user account set up just for posting to that blog.

endpoint: /xmlsrv/xmlrpc.php
blog url: /index.php?blog=5

where the separate user can only post published to the blog.

I am currently using 0.9.2 however (yes, I know it is old, but I have it sufficiently protected against spam, and I will be upgrading when 2.0 comes out so I don't have to re-skin and re-do the photo blog more than once.)

34 Sep 28, 2009 16:45

I have searched and read everything I can find here about getting FlickR to work with my blog...unsuccessfully. I've never gotten past the error:" You have entered an incorrect end point". I've used myblogaddress/xmlsrv/xmlrpc.php and I've used various myblogaddress/index.php?blog=1 (my default) inputs and can't get past the end point message. I'm using version 1.9.*

Anyone willing to walk a newbie through the procedure? I just added the YouTube plug-in recently and that would be great to have such a feature for FlickR.

I should add I'm not understanding the <category> changes I have read in some posts and where these need to be entered...if that would be my problem.

Thank you in advance.

Edit: P.S. The drop down options for FlickR don't include the Blogger API option now. I do see the option for choosing the MetaWebBlogAPI and the Moveable Type.

35 Nov 11, 2009 11:11

Yep, kind of me too. I really want to know how to have FlickR work with my blog.

36 Nov 12, 2009 10:12

Thank fort this. I have same problem as willemkooij. It show only in blog #2.


Form is loading...