Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Ping Widget


Go to End


11 Posts   4171 Views

Avatar
dio5

Community Member, 501 Posts

28 January 2008 at 10:45pm

Edited: 28/01/2008 10:46pm

Hi,

I've created a little widget that you can add on any 'holder' page that pings Technorati, Weblogs and Pingomatic when a child page is published.

If anyone wants to look at it, check it out and let me know if you find any problems.

grtz

edit: uploading archives here doesn't seem to work?

Here's the link: http://www.dio5.com/assets/Zips/widgetsping-0.1.tar.gz

Avatar
Wojtek

Community Member, 149 Posts

29 January 2008 at 1:03am

uploading should work, you should just hit "upload" after specifying the file location - it's a bit aintuitive

Avatar
dio5

Community Member, 501 Posts

31 January 2008 at 3:01am

I've found a bug in it which will stop it from publishing other subpages. I'll post a newer corrected version later.

It can easily be resolved by adding

if($this->owner->Parent()->WidgetAreaID)

in the augmentwrite method of the decorator though.

Avatar
dio5

Community Member, 501 Posts

31 January 2008 at 5:47am

Newer version; bug resolved + possibility to ping Pingoat as well.
Their server seems to be offline though and I have only been able to test it on localhost.

Avatar
lancer

57 Posts

3 February 2008 at 3:38am

Tried it, but now I get:

FATAL ERROR: None of these templates can be found: PingWidget.ss
At line 67 in /var/www/silverstripe/sapphire/core/SSViewer.php

user_error(None of these templates can be found: PingWidget.ss,512)
line 67 of SSViewer.php

etc.

Avatar
dio5

Community Member, 501 Posts

3 February 2008 at 3:45am

Right.

I can see why this is happening. This widget doesn't display anything on the frontend, so I didn't include a .ss file for it. (and I wasn't using any other widgets while testing this one :) ).

Probably this can be solved by just creating an empty PingWidget.ss file and include it in the widget folder.

Avatar
dio5

Community Member, 501 Posts

3 February 2008 at 3:52am

I've included an empty PingWidget.ss file in the tar now.
Let me know if that helps.

Avatar
lancer

57 Posts

3 February 2008 at 4:26am

Edited: 03/02/2008 4:28am

It does load OK now, but I get a header for ping in the widget area on the site.

Go to Top