porting hostblock plugin

porting hostblock plugin

Postby Nomad on Sat May 12, 2007 10:57 am

Just been porting the hostblock template - not sure if I have everything correct but I do have it loading without errors.

I had previously used this plgin with LT 1.0 and as such there is info in the db under table "host_blocking_rules" - When I look in the hostblock settings (Which is enabled btw) I don't seem to be picking up the old rules stored in the DB..

I'm just testing that it adds to the db:

inserting value to the db - OK
deletes value from DB - OK

Now if I can get it to call the old info from the DB under 'Blocked Hosts'

other than that it seems to be working adds to db, deletes from db no other apparent issues other than that mentioned..

Anyone care to test?

Copy is here http://www.blogireland.ie/hostblock-1-2.zip
Blog Ireland - now with video posting
Normally most write something meaningful here so many to choose from yet most oft ignored.
Nomad
Lifetype Expert
 
Posts: 645
Joined: Sat Feb 05, 2005 8:40 pm
Location: Eire

Postby Nomad on Wed May 16, 2007 4:43 pm

BTW May have this in the wrong area - might have been better in the other general plugin development..

Anyone tested it yet? I still can't get it to pull up my old banned I.P.'s from the db....
Blog Ireland - now with video posting
Normally most write something meaningful here so many to choose from yet most oft ignored.
Nomad
Lifetype Expert
 
Posts: 645
Joined: Sat Feb 05, 2005 8:40 pm
Location: Eire

Postby phunkphorce on Fri May 18, 2007 4:28 am

There is an upgraded version of the hostblock plugin for 1.2 available in SF.net, would you mind giving it a try?

http://sourceforge.net/project/showfile ... _id=495035
phunkphorce
Lifetype Expert
 
Posts: 9028
Joined: Mon Aug 25, 2003 6:34 am
Location: Suomessa

Postby Nomad on Fri May 18, 2007 10:25 am

oh right - i never saw that which is why I went ahead and tried to upgrade that one.. my error log though give me a warning on class/dao/blockedhost.class.php last night and was just going to post on it undefined object (i think it was) on line 27 which is this..

Code: Select all
  class BlockedHost extends DbObject


Other than that I got no other errors.. I'll try your updated version and see what I get.. I can't do it just now as I'm trying to get some of those permissions issues sorted etc and the new server fully configured...will be over the weekend

nb: probably better to move this to the general development area?
Blog Ireland - now with video posting
Normally most write something meaningful here so many to choose from yet most oft ignored.
Nomad
Lifetype Expert
 
Posts: 645
Joined: Sat Feb 05, 2005 8:40 pm
Location: Eire

Postby phunkphorce on Fri May 18, 2007 11:57 am

You didn't notice the updated version for 1.2 because I just posted it today :) I tested it in lifetype.net and it seemed to work just fine.
phunkphorce
Lifetype Expert
 
Posts: 9028
Joined: Mon Aug 25, 2003 6:34 am
Location: Suomessa

Postby Nomad on Fri May 18, 2007 3:32 pm

phunkphorce wrote:You didn't notice the updated version for 1.2 because I just posted it today :) I tested it in lifetype.net and it seemed to work just fine.


Ah well that would make it difficult to notice then lol ;)
Blog Ireland - now with video posting
Normally most write something meaningful here so many to choose from yet most oft ignored.
Nomad
Lifetype Expert
 
Posts: 645
Joined: Sat Feb 05, 2005 8:40 pm
Location: Eire

Postby fwhamm on Thu Jun 28, 2007 2:12 am

I just downloaded and installed the host block plugin from Sourceforge. I get the following message:

Code: Select all
Fatal error: Class blockedhost: Cannot inherit from undefined class dbobject in /mnt/.../plugins/hostblock/class/dao/blockedhost.class.php on line 27


pages/articles seem to load okay but I get this error message when opening the RSS feed:

Code: Select all
rss.php?blogId=1&profile=rss20


BTW: Is there a RSS parameter for retrieving only those articles of a single user?

Edit: Forgot to mention - I'm using LT 1.2.3
fwhamm
 
Posts: 43
Joined: Wed Jul 13, 2005 11:47 am
Location: Schwabenheim an der Selz (Germany)

Postby phunkphorce on Thu Jun 28, 2007 3:52 am

fwhamm wrote:I just downloaded and installed the host block plugin from Sourceforge. I get the following message:

Code: Select all
Fatal error: Class blockedhost: Cannot inherit from undefined class dbobject in /mnt/.../plugins/hostblock/class/dao/blockedhost.class.php on line 27



Can you report this via http://bugs.lifetype.net?

pages/articles seem to load okay but I get this error message when opening the RSS feed:

Code: Select all
rss.php?blogId=1&profile=rss20



I don't understand. Is that all what you're getting in the page? What if you disable the broken plugin, does it work again?

BTW: Is there a RSS parameter for retrieving only those articles of a single user?


Unfortunately, no.
phunkphorce
Lifetype Expert
 
Posts: 9028
Joined: Mon Aug 25, 2003 6:34 am
Location: Suomessa

Postby fwhamm on Thu Jun 28, 2007 6:36 am

Just reported it in Mantis: http://bugs.lifetype.net/view.php?id=1348

- Enabling/Disabling plugin doesn't matter
- Only this fatal error is returned by server
fwhamm
 
Posts: 43
Joined: Wed Jul 13, 2005 11:47 am
Location: Schwabenheim an der Selz (Germany)

Postby jondaley on Thu Jun 28, 2007 12:45 pm

fixed. The plugin was still extending DbObject.
jondaley
Lifetype Expert
 
Posts: 6169
Joined: Thu May 20, 2004 6:19 pm
Location: Pittsburgh, PA, USA
LifeType Version: 1.2.11 devel branch

Postby fwhamm on Fri Jun 29, 2007 3:51 am

Thx! That was really fast :-)
fwhamm
 
Posts: 43
Joined: Wed Jul 13, 2005 11:47 am
Location: Schwabenheim an der Selz (Germany)

Postby jondaley on Tue Jul 03, 2007 10:35 am

What's that quote about hard problems having simple, easy and wrong answers...?

I fixed it incorrectly, so I reverted my change. I cannot reproduce the failure you are seeing on my blog.
jondaley
Lifetype Expert
 
Posts: 6169
Joined: Thu May 20, 2004 6:19 pm
Location: Pittsburgh, PA, USA
LifeType Version: 1.2.11 devel branch

Postby fwhamm on Wed Jul 04, 2007 9:55 am

I added
Code: Select all
lt_include( PLOG_CLASS_PATH."class/database/dbobject.class.php" );


now it works :-)
fwhamm
 
Posts: 43
Joined: Wed Jul 13, 2005 11:47 am
Location: Schwabenheim an der Selz (Germany)

Postby jondaley on Thu Jul 05, 2007 10:47 am

If someone else needs this fix let me know, because I don't understand why this line is needed - obviously that file is needed, but my core code is including it for me (apparently).
jondaley
Lifetype Expert
 
Posts: 6169
Joined: Thu May 20, 2004 6:19 pm
Location: Pittsburgh, PA, USA
LifeType Version: 1.2.11 devel branch


Return to Plugin Development Team

cron