Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-11-04 08:03:14

The-Exit
Member
From: Berlin
Registered: 2005-07-16
Posts: 175
Website

ping blogg.de with 4.0.2

I wanted to add blogg.de ping to 4.0.2 in txp_article.php

I used following code:

if ($prefs[‘ping_weblogsdotcom’]==1) { $wl_client = new IXR_Client(‘http://rpc.pingomatic.com/’); $wl_client->query(‘weblogUpdates.ping’, $prefs[‘sitename’], hu); $wl_client = new IXR_Client(‘http://xmlrpc.blogg.de’); $wl_client->query(‘weblogUpdates.ping’, $sitename, ‘http://’.$siteurl); }

which resulted in an error:

Notice: Undefined variable: sitename in /home/httpd/vhosts/hauptstadtblog.de/httpdocs/textpattern/include/txp_article.php on line 836
Notice: Undefined variable: siteurl in /home/httpd/vhosts/hauptstadtblog.de/httpdocs/textpattern/include/txp_article.php on line 836

I think this are the tags: $sitename, ‘http://’.$siteurl which cause the problem.

Any idea for workaround?

Offline

Board footer

Powered by FluxBB