Recent Topics

1 Aug 28, 2005 00:16    

Some have expressed interest in this. I'm releasing it for everyone and trying to get any hacks I've done that are fairly generic published and in the wild, as I'm developing my own ASP.NET/MS SQL blog solution and have ceased any functional modification/development on my b2evo blog.

This is really just a hack to automate pinging your blog to http://pingomatic.com . It adds a checkbox in the backoffice and if checked will ping pingomatic via xmlrpc.

Details are here:
http://www.brotherson.com/index.php/2005/08/27/b2evolution_hack_ping_pingomatic

EDIT: Should mention that this should work on most versions...I know at least 0.9.0.9+. I'd have to look in the cvs and see if the new code is similiar for pinging, but i doubt I'll do that.

3 Aug 28, 2005 02:23

Close. The checkbox is actually blog-wide, in the settings section where ping b2evolution/ping technorati/ping blo.gs/ping weblogs is. You can turn it on or off on a per blog basis, not a post by post basis.

4 Aug 28, 2005 15:00

Ok, I changed it. Thanks.

5 Aug 28, 2005 15:30

There were a few other things that I needed to add to make it work

In file : admin/b2blogs.php

Find


param( 'blog_pingblodotgs', 'integer', 0 );
$edited_Blog->set( 'pingblodotgs', $blog_pingblodotgs );

Then add


param( 'blog_pingpingomatic', 'integer', 0 );
$edited_Blog->set( 'pingpingomatic', $blog_pingpingomatic );

Then find


case 'advanced':
				$blog_staticfilename = get_bloginfo( 'staticfilename' );
				$blog_allowtrackbacks = get_bloginfo( 'allowtrackbacks' );
				$blog_allowpingbacks = get_bloginfo( 'allowpingbacks' );
				$blog_pingb2evonet = get_bloginfo( 'pingb2evonet' );
				$blog_pingtechnorati = get_bloginfo( 'pingtechnorati' );
				$blog_pingweblogs = get_bloginfo( 'pingweblogs' );
				$blog_pingblodotgs = get_bloginfo( 'pingblodotgs' );

And add


$blog_pingpingomatic = get_bloginfo( 'pingpingomatic' ); 

Also try this for the database addition:


alter table evo_blogs add blog_pingpingomatic tinyint(1) DEFAULT '0' NOT NULL;

And last but not least

in file b2evocore/_class_blog.php


 var pingpingomatic = 1;

Should be


 var $pingpingomatic = 1;

Thanks,
Jon

6 Aug 28, 2005 15:34

Well crap. I just used a new version of my trusty astrogrep. It didn't pick up that file for some reason. I'm sorry. Most of those changes listed are in mine as well. Dang, that's what I get for trying to retroactively document it. Doh!

Thanks man.

7 Aug 28, 2005 15:53

Take a gander at it now jon to see if they match up.

8 Aug 28, 2005 16:05

mattbta wrote:

Take a gander at it now jon to see if they match up.

The line 275 and 397 code should be in file admin/b2blogs.php

And the $ to the var

Later,
Jon

10 Aug 28, 2005 17:54

¥åßßå wrote:

If you want to make an asp.net + ms sql blog then you might want to take a look at [url=http://communityserver.org/]community server[/url], it comes complete with the source code.

¥

Yes I've looked at it and installed it. The code is rather bloated and I'm just preferring to use some custom business objects, web controls and data access I've developed on my own. I'll be able to do everything I want with it from the get go.

Thanks for mentioning it though.

11 Aug 28, 2005 18:00

The code is rather bloated

Lol, well it's a micrdoft funded project what do you expect? :p

No problem ;)

¥

12 Sep 08, 2005 03:56

Edit: I just found this in b2logs.php instead of edit_actions, however
in edit_actions.php

I get no notification that i have pinged pingomatic?
----------------
hey matt, I just tried to add this hack
on 0.9.0.12 "Amsterdam" 2005-05-06

but in
File admin/edit_actions.php
i see neither of these anywhere in the file


//Line 275, find this code:
param( 'blog_pingtechnorati', 'integer', 0 );
$edited_Blog->set( 'pingtechnorati', $blog_pingtechnorati );


//Insert immediately folling that code this:
param( 'blog_pingweblogs', 'integer', 0 );
$edited_Blog->set( 'pingweblogs', $blog_pingweblogs );

or


//Line 397, find this code:
$blog_pingweblogs = get_bloginfo( 'pingweblogs' );

//Insert immediately following that code this:
$blog_pingpingomatic = get_bloginfo( 'pingpingomatic' );

im using these instructions
http://www.brotherson.com/index.php/2005/08/27/b2evolution_hack_ping_pingomatic

13 Oct 03, 2005 15:32

Same problem for me. I'm trying to apply the hack to 0.9.1 and I found everything except for those two bits of _edit_actions.php. One on line 275 and one on 397. I searched the whole file and couldn't even find a string that resembled them. SpasmFace, did you ever get this to work?

14 Oct 03, 2005 15:51

Ok, I found it. Those lines are in b2blogs.php, not _edit_actions.php. And it should be

param( 'blog_pingpingomatic', 'integer', 0 );
$edited_Blog->set( 'pingpingomatic', $blog_pingpingomatic );


rather than

param( 'blog_pingweblogs', 'integer', 0 );
$edited_Blog->set( 'pingweblogs', $blog_pingweblogs );

15 Oct 03, 2005 16:07

Check xmlsrv/xmlrpc.php, that appears to be where the pings are done (more than one place)

¥

16 Oct 06, 2005 02:45

I was trying to install this hack before I found this topic in search. I just recently downloaded b2evolution and I’m new to all of this. I would appreciate your help if you could tell me if anyone is using 9.1 and if you got this hack for pingomatic to work. I went through all the steps and found the same errors you all post here. If you got this to work can you please post what you did?

Thank you
Monica

18 Oct 06, 2005 03:11

Thank you Mitch I will give this a try first thing in the morning and include your changes.

Thanks again
Monica

19 Oct 06, 2005 03:15

Haha. I was like "Who's Mitch?" Then I looked at my post and saw the Mitch Hedberg quote. My name is Danny. Sorry about the confusion there. I just put a quote in my signature because I thought it was funny. Good luck with the changes. Let us know if it works in .9.1.

20 Oct 06, 2005 03:19

I'm running 0.9.1 now and it does work.

I'll have to modify the instructions as I just used a file compare tool to merge the differences from my 0.9.11 install.

Give me a day or so and I should have you all running.

-Matt

21 Oct 06, 2005 16:20

Sorry about that Danny I’m new to this :oops: . Matt its good news that you got this to work in 9.1 I will wait for your modified instructions.

Thank you
Monica

22 Oct 13, 2005 02:19

Update posted on my site - follow the url in post 1.

23 Nov 24, 2005 01:14

never mind. :oops:

jj.

24 Sep 24, 2006 08:38

MySQL error!

Unknown column 'blog_pingpingomatic' in 'field list'(Errno=1054)

Your query:

UPDATE evo_blogs SET blog_staticfilename = 'all.html' , blog_allowtrackbacks = 1 , blog_allowpingbacks = 1 , blog_pingb2evonet = 1 , blog_pingtechnorati = 1 , blog_pingweblogs = 1 , blog_pingpingomatic = 1 , blog_pingblodotgs = 1 WHERE blog_ID = 1

Does anyone know why I get this error

25 Sep 24, 2006 23:41

arcadegamestore, read the error again..

I think you'll have to alter your database for this hack to work (haven't read the instructions) and apparently you seem to have not done so.


Form is loading...