plugins Bugs

A place to report and discuss bugs - please mention CMSimple-version, server, platform and browser version
Termin
Posts: 101
Joined: Thu Jan 27, 2011 8:55 am
Contact:

plugins Bugs

Post by Termin » Mon Sep 08, 2014 6:59 am

The calendar plugin Ocal_XH:
http://3-magi.net/?CMSimple_XH/Ocal_XH
on the calendar to know what day it is, no backlighting today!

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

Re: plugins Bugs

Post by cmb » Mon Sep 08, 2014 11:04 am

Termin wrote:on the calendar to know what day it is, no backlighting today!
Indeed, that is missing. I will add a class for the present day, but I'm not sure how this can be styled so that it doesn't collide with the occupancy state -- maybe making the text bold is sufficient.

Anyway, Ocal_XH is not meant as a general calendar; it's probably better to use Calendar for such cases.
Christoph M. Becker – Plugins for CMSimple_XH

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

Re: plugins Bugs

Post by Termin » Thu Sep 11, 2014 6:10 am

HI cmd,
Indeed, that is missing. I will add a class for the present day, but I'm not sure how this can be styled so that it doesn't collide with the occupancy state -- maybe making the text bold is sufficient.
This will be enough <b>today</b>

------------------------------------------------
plugins Socialshareprivacy_XH

http://3-magi.net/?CMSimple_XH/Socialshareprivacy_XH

Facebook - after clicking the recommend button, error red.

Tweet - after clicking on the active button error (many characters, the plugin is not able to count the number of characters for Twitter )

Site: http://www.mapsky.ru

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

Re: plugins Bugs

Post by cmb » Thu Sep 11, 2014 9:12 pm

Hi Termin,
Termin wrote:This will be enough <b>today</b>
A new version is available: http://cmsimpleforum.com/viewtopic.php? ... 973#p43692.
Termin wrote:Facebook - after clicking the recommend button, error red.
You have to properly set general_country_code in the language settings. In your case: "RU" (currently it's "US", so the plugin asks for language "ru_US").
Termin wrote:Tweet - after clicking on the active button error (many characters, the plugin is not able to count the number of characters for Twitter )
I'm not sure if I understand you correctly. When I click the button the first time, the genuine Twitter button shows up; when I click this, I get the following, what seems to be okay:
[ external image ]

Christoph
Christoph M. Becker – Plugins for CMSimple_XH

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

Re: plugins Bugs

Post by Termin » Fri Sep 12, 2014 5:48 pm

HI Christoph,

Thanks everything works, except the tweeter:

[ external image ]

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

Re: plugins Bugs

Post by cmb » Fri Sep 12, 2014 6:52 pm

Hi Termin,
Termin wrote:Thanks everything works, except the tweeter:
Confirmed! It seems that Twitter is blocking the URL http://www.mapsky.ru/. I have tried to tweet this URL also via Twitter directly, and I get the following message:
Es sieht so aus, als sei diese Anfrage automatisiert. Um unsere Nutzer vor Spam und anderen böswilligen Aktivitäten zu schützen, können wir diese Aktion nicht vollenden. Bitte versuche es später erneut.
I found the following explanation: https://support.twitter.com/articles/20 ... nnzeichnet.

It seems you have to contact Twitter to resolve the issue. :(

Christoph
Christoph M. Becker – Plugins for CMSimple_XH

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

Re: plugins Bugs

Post by Termin » Sat Sep 13, 2014 5:00 pm

ok Christoph

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

Re: plugins Bugs

Post by Termin » Sun Sep 14, 2014 6:02 am

Plugin http://3-magi.net/?CMSimple_XH/Register_XH added to the search pages - it is not necessary.

Pages:

/?Регистрация
/?Ошибка_авторизации

How to disable indexing of these pages robots.txt Cyrillic doesn't understand)?

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

Re: plugins Bugs

Post by cmb » Sun Sep 14, 2014 12:06 pm

Termin wrote:How to disable indexing of these pages robots.txt Cyrillic doesn't understand)?
Well, robots regarding robots.txt may not even understand query strings (what comes after the question mark of the URL). Unfortunately, there is no standard for robots.txt, but http://www.robotstxt.org/ usually speaks of URL paths that can be allowed/disallowed.

It might be better to prevent the indexing of these pages by using the following meta element:

Code: Select all

<meta name="robots" content="noindex">
This can be accomplished with the following code (requires CMSimple_XH >= 1.6) in cmsimple/userfuncs.php:

Code: Select all

function setMetaRobots()
{
    global $su, $cf;

    $pages = array(
        'Регистрация',
        'Ошибка_авторизации'
    );
    if (in_array($su, $pages)) {
        $cf['meta']['robots'] = "noindex";
    }
}

if (!(XH_ADM && $edit)) {
    XH_afterPluginLoading('setMetaRobots');
} 
(You can add further pages to $pages as needed.)

I will integrate something like this in a future version of Register_XH, where I will heed urichar_org/new for the special pages as well (so that the URLs will become ?Registracija and ?Oshibka_avtorizacii, or whatever transliteration is specified in urichar_org/new).
Christoph M. Becker – Plugins for CMSimple_XH

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

Re: plugins Bugs

Post by Termin » Mon Sep 15, 2014 3:02 pm

HI cmb,

Code: Select all

function setMetaRobots()
{
    global $su, $cf;

    $pages = array(
        'Регистрация',
        'Ошибка_авторизации'
    );
    if (in_array($su, $pages)) {
        $cf['meta']['robots'] = "noindex";
    }
}
Your code does not solve the problem, the page is allowed to search

Post Reply