Posts: 166
Threads: 7
Joined: Jan 2013
I'm having trouble getting my head around the logic of define('GSDONOTPING', 1); in gsconfig.php. I'm probably not the first with this problem, but I can't find anything definitive guidance on the forum.
Which way 'round does it work please and how should it be set to ping search engines.
Incidentally where can I see which search engines are pinged?
Posts: 2,928
Threads: 195
Joined: Feb 2011
(2013-08-02, 13:22:50)davetest Wrote: I'm having trouble getting my head around the logic of define('GSDONOTPING', 1); in gsconfig.php. I'm probably not the first with this problem, but I can't find anything definitive guidance on the forum.
Which way 'round does it work please and how should it be set to ping search engines.
Incidentally where can I see which search engines are pinged?
here in the WIKI is the answer:
Quote:GSDONOTPING enabling this disables the auto-ping of search engines when generating a sitemap
# Ping search engines upon sitemap generation?
#define('GSDONOTPING', 1);
Affected search engines are google.com, search.yahooapis.com, bing.com and submissions.ask.com
http://get-simple.info/wiki/config:gsconfig
Normally, "1" means
active or True or enabled, "0" means
inactive or False or disabled
My strategy to understand the settings:
I say the word loudly:
GS DO NOT PING , so when the argument is "1" , it means YES I DO NOT PING ;=)
Posts: 3,491
Threads: 106
Joined: Mar 2010
(2013-08-02, 13:22:50)davetest Wrote: I'm having trouble getting my head around the logic of define('GSDONOTPING', 1); in gsconfig.php. I'm probably not the first with this problem, but I can't find anything definitive guidance on the forum.
Which way 'round does it work please and how should it be set to ping search engines.
Disable GSDONOTPING to set it to ping search engines. Change this:
Code:
define('GSDONOTPING', 1);
by this:
Code:
#define('GSDONOTPING', 1);
(See: http://get-simple.info/wiki/config:gsconfig )
(2013-08-02, 13:22:50)davetest Wrote: Incidentally where can I see which search engines are pinged?
Google, Yahoo, Bing and Ask - function
pingGoogleSitemaps in
admin/inc/template_functions.php
[edit] Connie and I were replying at the same time :-) Well, both ways of disabling GSDONOTPING are valid.
Posts: 166
Threads: 7
Joined: Jan 2013
Thanks guys, that helps, I was getting my knickers in a twist with double negatives :-)
Is there any way to know that it actually works when activated?
Posts: 2,928
Threads: 195
Joined: Feb 2011
2013-08-02, 23:01:20
(This post was last modified: 2013-08-02, 23:01:54 by Connie.)
(2013-08-02, 19:52:20)davetest Wrote: Is there any way to know that it actually works when activated?
If you want it to not ping, set it to "notping"
The likelihood that it will not ping after you changed the option in gsconfig.php is higher than not changing the option at all ;=)
if you do not trust it, you can
- study the sourcecode, I am sure there is an "if -else-condition" on that
- or ask your Homeland Security or PRISM, for sure they will know as they control all digital communication
Cheers, Connie
Posts: 6,267
Threads: 182
Joined: Sep 2011
I guess we should add something to notice ping success, and also display the ping is enabled.
Posts: 2,928
Threads: 195
Joined: Feb 2011
Shawn,
I support this 100%!
It should be part of a general overwhaul of the options, it would be better to have the gsoptions.php with very very basic options and after installing a big message that the options should be controlled and accepted to guarantee that every installer took note of that necessary feature.
There is enough space in admin for an option panel