Pages in search &print и &page=0

A place to report and discuss bugs - please mention CMSimple-version, server, platform and browser version
Holger
Site Admin
Posts: 3470
Joined: Mon May 19, 2008 7:10 pm
Location: Hessen, Germany

Re: Pages in search &print и &page=0

Post by Holger » Sat Jul 09, 2011 7:28 pm

Hi,

what about giving the search engines another template? Without printlink and register plugin?

KR
Holger

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Pages in search &print и &page=0

Post by cmb » Sat Jul 09, 2011 7:52 pm

Hello Holger,
Holger wrote: what about giving the search engines another template? Without printlink and register plugin?
How could this be done :?: Are you thinking of including a check of $_SERVER['HTTP_USER_AGENT'] from the template, or is there a better way?

Christoph
Christoph M. Becker – Plugins for CMSimple_XH

Termin
Posts: 101
Joined: Thu Jan 27, 2011 8:55 am
Contact:

Re: Pages in search &print и &page=0

Post by Termin » Sun Jul 10, 2011 9:22 pm

Hello Christoph

I gave up on the plugin Register_mod_XH and integrated login form phpbb

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Pages in search &print и &page=0

Post by cmb » Sun Jul 10, 2011 10:42 pm

Hello Victor,

I hope it was not too much work to integrate the login form phpbb.

Basically my idea was to check for the yandex bot with a guard like:

Code: Select all

if (preg_match('/yandex/i',$_SERVER['HTTP_USER_AGENT']))
 
This will check for any user agent, which identifies itself with a name thas has 'yandex' in it. This could be added to register plugin (but I'm not sure, if it's enough), or it might be integrated to your template.htm (perhaps that is the solution that Holger suggested).

But if your current solution works for you, I think it's fine. :)

BTW: I've seen you're somehow advertising CMSimple :D As you're using CMSimple_XH 1.4, perhaps you like to include a link to http://www.cmsimple-xh.com?

And I've just seen that you host a russian CMSimple forum :!: And than I've found your announcement in http://www.cmsimpleforum.com/viewtopic. ... 455#p17455. That's really great! :D

Perhaps it's possible to set a link to your forum from the section "CMSimple Support in other Languages"? I definitely would like it! Unfortunatly I neither speek Russian nor Ukrainian (just google-translate ;)), but perhaps other members of this forum do.

With best wishes,
Christoph
Christoph M. Becker – Plugins for CMSimple_XH

Termin
Posts: 101
Joined: Thu Jan 27, 2011 8:55 am
Contact:

Re: Pages in search &print и &page=0

Post by Termin » Mon Jul 11, 2011 2:13 pm

Hello Christoph
cmb wrote:I hope it was not too much work to integrate the login form phpbb.
Had to work.
cmb wrote:But if your current solution works for you, I think it's fine.
Yes, browsers allow you to print the page without using the printer.
cmb wrote: BTW: I've seen you're somehow advertising CMSimple :D As you're using CMSimple_XH 1.4, perhaps you like to include a link to http://www.cmsimple-xh.com?
It's my fault I will fix it today, sorry.
cmb wrote:And I've just seen that you host a russian CMSimple forum :!: And than I've found your announcement in http://www.cmsimpleforum.com/viewtopic. ... 455#p17455. That's really great!
Very few Russian-speaking users CMSimple, I think that my work of the forum will help to increase the number of users CMSimple.
cmb wrote:Perhaps it's possible to set a link to your forum from the section "CMSimple Support in other Languages"?
I'm not against.
cmb wrote: I definitely would like it! Unfortunatly I neither speek Russian nor Ukrainian (just google-translate ;)), but perhaps other members of this forum do.
From the help I shall not refuse.

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Pages in search &print и &page=0

Post by cmb » Mon Jul 11, 2011 2:25 pm

Hello Victor,
Termin wrote: It's my fault I will fix it today, sorry.
It's no fault IMHO. But it is nice to include the link. Thank you.
Termin wrote: Very few Russian-speaking users CMSimple, I think that my work of the forum will help to increase the number of users CMSimple.
I hope so :)

And I really do hope, that russian speaking users of this forum will at least sometimes have a look at the russian CMSimple forum.

Christoph
Christoph M. Becker – Plugins for CMSimple_XH

Termin
Posts: 101
Joined: Thu Jan 27, 2011 8:55 am
Contact:

Re: Pages in search &print и &page=0

Post by Termin » Tue Jul 12, 2011 1:51 pm

Hello Christoph,

For yandex in robot.txt you need to specify:

Code: Select all

 Disallow: /*&pic=0&page=0
 Disallow: /*&print
where the symbol "*" are obligatory. And that's all. Details on the Russian forum support CMSimple. ;)

Viktor

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Pages in search &print и &page=0

Post by cmb » Tue Jul 12, 2011 3:07 pm

Hello Victor,

oh, a really simple solution :!:

Nice that you've found it.
Termin wrote: Details on the Russian forum support CMSimple.
I'll take a look at it later.

Christoph
Christoph M. Becker – Plugins for CMSimple_XH

Post Reply