Attendance index php newsid comments. An open letter to the President of the Russian Federation V.V.

An open letter to the President of the Russian Federation V.V. and to His Holiness Patriarch Kirill of Moscow and All Russia

July 22, 2012, Lyubov Merekina, expert of the RF Civil Society Commission on Social Issues and Quality of Life

Took place press conference Commissioner for the Rights of the Child under the President of the Russian Federation, P.A. Astakhov. Topic: "Protection of the rights of large families to housing." And it turned out: "Refusal to protect the rights of large families to housing" ?! It is enough to listen carefully to the Ombudsman to be horrified.It turns out, according to Astakhov, “The state cannot and should not be engaged in housing,” otherwise we will have it, like in Greece. For some reason, he does not compare Russia with the Arab Emirates or with Sweden, the oil-producing powers.Further: "The state has burdened itself with exorbitant social obligations.""The state will reduce its role in housing construction." Much less! All that the state does is take 10-30% of the area from businessmen in the form of tribute. The state itself does not build housing, except in Chechnya. The question is, why is this happening?


Astakhov he announced staggering figures: 245,200 orphans do not receive their legal housing, 2,800,000 families have no housing at all.And this despite the fact that no one has canceled Article 7 of the Constitution of the Russian Federation on the social state. How can our state expect to preserve itself, with such figures?


“No one will violate the law” - this only applies to disadvantaged citizens when it is necessary to “not give” something. “Let's keep the Law!” Astakhov exclaims. “Let's,” we agree, “observe, and start with Article 40 of the Constitution.”Astakhov repeats the mantra about “city residents legally”, forgetting that ALL CITIZENS of Russia live in the country legally, and by-laws are aimed at infringing on people's rights ...

But what kind of observance of the Law are we talking about when the Law is blatantly violated even in relation to orphans? It is not surprising that “his colleagues frightened and discouraged him from such a topic,” because during the conference, the Ombudsman acknowledged the complete irresponsibility of the state. In every phrase of Astakhov, the leitmotif is the idea that "the state and he personally cannot provide those in need with housing."

“If someone refuses a child because there is nowhere to live, this is not a moral problem, it is a problem of the state,” His Holiness said during a meeting of the Patriarchal Commission on Family and Motherhood Protection.


In this regard, we were forced to send a letter to the President of the Russian Federation V.V. and to His Holiness Patriarch Kirill of Moscow and All Russia:

To the President Russian Federation
V.V. To Putin
To His Holiness Patriarch of Moscow and All Russia
Kirill

Dear Vladimir Vladimirovich!


Your Holiness!

I beg you to agree on cooperation in rescuing homeless, unregistered large families in Russia. Today, now, the 7-child Astapenko-Chernyavskaya family, whose mother is pregnant with her eighth child in the last months, is again threatened with eviction from the Moscow rented apartment. Many other families are in a similar situation.

Your Holiness, we are grateful for the fact that on December 6, 2011 you raised the issue of the desperate housing situation of several families who do not have registration at their place of residence before the Commissioner for the Rights of the Child under the President of the Russian Federation. And although over the past almost 8 months Pavel Astakhov did not help anyone in any way, it is now impossible to silence this topic.


And I am infinitely grateful to you for the blessing of me and my three-year-old daughter Ekaterina (a native Muscovite who was illegally discharged into the street by the FMS, and her registration was miraculously restored only in court! ) in the Cathedral of Christ the Savior at a holiday dedicated to the day of the Orthodox book. This gave me the strength to endure a 17-day hunger strike (June 15 - July 2) - in defense of the right to housing for my large family and many, many others ( ). And Pavel Astakhov could not shut up this topic, to which he dedicated his press conference on July 18, and where he, addressing our entire country, devoted a lot of time to the “Merekina problem” ( ).

But the worst thing:

In his speech, Pavel Astakhov spoke a lot and rightly about the housing problems of families who “legally”, as he emphasized, live in this or that region, but he completely silenced the problem of families without registration that you raised; instills into the public consciousness hostility to our social group(inciting social hatred), speaking of such families - "you are strangers", although we and our children are the same citizens of Russia, no worse than having "legal" registration;

Speaking about my problem, Pavel Astakhov read a letter addressed to him by the Governor of the Ulyanovsk region, who, responding to Astakhov's request, expressed his readiness to provide my family with housing out of turn; and there are 1403 large families in the queue in the Ulyanovsk region, and I and the children have not been residents of the Ulyanovsk region for 5 years, from where in 2007 we were legally discharged to Moscow; and it was Moscow that deprived us of our registration in 2008, making us legal bums. We are Muscovites, the last place of registration is Moscow!

About all this P.A. Astakhov kept silent, but completely unfairly accused large families of allegedly wanting to get housing bypassing the queue in Moscow and St. Petersburg. And at the same time, he himself is trying to arrange the same (allocation of housing by way of exception) in the Ulyanovsk region, without offering any system solutions Problems.

Social guarantees of the Constitution of the Russian Federation and the International Convention on Human Rights should ensure the protection of all citizens equally. Why are the homeless not recognized as needing housing? Registration or lack thereof should not affect the exercise of rights. People on the waiting list for housing and homeless citizens are not placed in equal conditions for the exercise of rights. Housing queues are not queuing up for temporary housing, they are already living somewhere and waiting. In any case, not a single person on the waiting list has the same legitimate interests in housing as our homeless homeless families with many children. We do not have the right to receive alternative housing (only rented apartments at market prices with a huge number of dependents-children in our arms). And, for example, the Moscow Department of Housing did not show GOOD WILL to my Moscow homeless family (the last place of registration is Moscow, and one child is still registered) to provide us with even temporary housing, not to mention permanent. I was discharged from my property, pregnant with my sixth child, for more than ten years I have been living in the city of Moscow in rented apartments. I pay utility bills at two addresses: rental housing and the place of registration (registration) of my youngest daughter.

My family is ready to move to the Ulyanovsk region with the condition of improving the life and support of my children, including improving the quality of life, protection from violence and cruelty. According to information provided by Pavel Astakhov, there are 1403 large families in the Ulyanovsk region, waiting, as I once did, for their turn for housing for decades. I ask Pavel Astakhov to pay attention to the fact that the Ulyanovsk region presented him with an incomplete picture of the housing problem, according to land for large and about the inaction of local authorities -... Can someone prove otherwise?

Dear Vladimir Vladimirovich, Your program for the construction of social rental housing is the way to solve the housing problems of Russia. But families without registration, "not belonging" to any subject of the Russian Federation, without a "residency qualification" will still fall out of it, if the Russian Federation does not take responsibility for them.

Dear Vladimir Vladimirovich, Your Holiness, we do not need a home to own, we need a roof over our heads for our children. I beg you - help us with rental housing! Vladimir Vladimirovich, I ask you to allocate funds from the Fund of the President of the Russian Federation to the Synodal Department for Church Charity and Social Service, which, thanks to this, will be able to rent a lot of residential premises for further accommodation of urgently needy families - at the place of their actual stay. In order not to drive children born and raised, for example, in Moscow, somewhere in our Great Motherland - as Pavel Astakhov suggests doing.


Hello friends and blog guests! Today I'll tell you using PHP and MySQL. And also we will talk about commenting systems for the site and choose the best one for your site from those offered by me.

The first question: by using PHP and MySQL?

To do this, you and I need to first create a table in the database of your site, which will be called - comments... This created table will store comments in fields with the following designations:

id Is a unique identifier.
page_id- this field will store the identifier of the site page on which this comment is located.
name Is the name of the commentator who left the comment.
text_comment- respectively, this is the text of the current comment.

The next step, after creating a table for comments in the database, we need to inject special code for our future comments on the site. This code on the site will allow our commenters to add their comments to our articles. Here's the code:


it simple HTML form of comments for the site. You place it on your site in the place where it is convenient for leaving a comment on the post - of course, under the post itself.

query ("INSERT INTO` comments` (`name`,` page_id`, `text_comment`) VALUES (" $ name "," $ page_id "," $ text_comment ")"); // Add a comment to the table header (" Location: ". $ _ SERVER [" HTTP_REFERER "]); // Do we redirect back?>

The last step in creating a comment form for a PHP and MySQL site is to display our comments on the site page. Here's the code for that:

query ("SELECT * FROM` comments` WHERE `page_id` =" $ page_id ""); // Fetch all comments for this page while ($ row = $ result_set-> fetch_assoc ()) (print_r ($ row); // Output comments echo "
"; } ?>

That's all! Our simple form comments for the site is created and can work on the site.

But this is certainly not for a beginner who will not dig with all this HTML, PHP and MySQL codes. Nor will he learn how to create a database. He needs everything at once, quickly and without headaches. I'm right? Of course right!

Then let's move on to the next section of my material and find out all about already ready-made systems comments for the site and choose the most convenient, functional and acceptable for your site ...

Systems of comments for the site. Which one to choose?

How to make comments on the site- this is an important question because comments on the site play an important role not only for communication between the site owner and the visitor, but also comments are important for SEO promotion and promotion.

With the help of comments on the site, the position of the site in search results, improve behavioral factors, traffic to the site grows, and as a result, your earnings increase. You see how important comments are for the site!

So let's consider how to make comments on the site and what commenting system to choose as the best option?

In general, comments on sites are displayed in many ways. These are special plugins for wordpress engines and all kinds of comments from social networks, such as for example In contact with, Facebook, Disqus... There are also independent services that offer their own commenting systems for the site, for example.

Now I will give you one plate that will immediately put everything in its place and questions will no longer arise about the choice of a comment system for the site:

Here everything is clearly and clearly visible which comment system is the best and several presented, which are most often used by webmasters on their resources. I think that explanations here are superfluous and the choice is only yours!

I have already made a decision for myself and installed a comment system for my site from Cackle.

By the way, if you have already decided to choose a system for your site, then here is a link that gives 5% discount to purchase a comment system from Cackle!

And I have everything for today! Good luck and prosperity to everyone! Until next time!

Honestly, when I saw what they write about this and advise newbies on other sites, I was a little horrified and decided to write down my note on this topic without a fatal flaw. Mostly I've seen long pieces of code that implement adding comments to the site... Usually, for this, a form is created, its processing, saving, as well as selections for display are implemented. But the benefits of such an approach are less and less.

In this post, you will learn one of the easiest (but, subjectively, one of the most preferable) ways to add comments to the site - a simple example for beginners + options for more advanced webmasters.

Indeed, why reinvent the wheel and write a bunch of code that in the future will still have to be maintained, fixed, etc., if there are a bunch of ready-made solutions from third-party services (we are talking about social networks + disqus)?

But before moving on to the implementation itself, let's consider the advantages / disadvantages of using ready-made solutions. (If you forgot about anything - write in the comments - we will expand the list)

Benefits of third-party solutions:

  • Ease of implementation.
  • Protection against spam "out of the box" (in my solution I would have to implement this additionally, so, in theory, it is related to the previous point).
  • Less prone to errors, bugs, etc., since third party solutions checked by millions of users (again related to the first: you can also write everything without bugs, but it will take additional time to debug).
  • As a rule, services provide a ready-made admin panel, statistics, notifications for admins, sometimes moderation, several admins, pre-moderation, etc., which can take months, if not years, for a webmaster, especially a beginner, to implement.
  • The user does not need to register, enter his name, etc. - it is assumed that he already has an account on the popular social network.
  • Most likely, it will withstand a heavy load due to the fact that social. platforms were originally designed for heavy loads.

Disadvantages:

  • Little or no opportunity to change appearance block with comments.
  • Search engine indexing.

As you can see, there are many more advantages. The inability to change the appearance is most likely done in order to recognize the style of the comment service, thus creating an unobtrusive advertisement. (As one of the options). And as for indexing - is it really so important, because not all comments carry a semantic load.

But enough theory, let's move on to practice.

1. The simplest option is to add comments using some selected social network.

For example, vk. We look at the documentation. We copy the provided code and add it on the page (pieces of code are taken from the docks by the link, may change in the future, so always copy from the site with the documentation. Here is only a possible example):

1) Add to :

2) Add in the place where we want to see the comments widget (for example, after the note, if we are talking about a blog):

2. Add widgets from multiple services. For example, as on this resource. Switched by tabs:


Add to the markup (twitter bootstrap must be connected to work correctly!) In the place where you want to output comments widget:

But this option is not the best, albeit the simplest one. The problem is that with this approach, all widgets will be initialized on page load, regardless of whether the user needs them or not.

This can be avoided by implementing lazy initialization of comment widgets... First, the whole code, then an explanation:

(function (global, $) ("use strict"; $ (function () (var $ tabToggler, initComments, initialized; initialized = ("# vk-comments": false, "#disqus_thread": false); initComments = function (type) (var discussUserName, disqus_config, pageUrl; if (initialized) (return;) pageUrl = "page_url"; switch (type) (case "#disqus_thread": // You need to set this params using your platform "s appropriate way discussUserName = "discussUserName"; disqus_config = function () (this.page.url = pageUrl; return this.page.identifier = "page_identifier";); (function () (var d, s; ​​d = document; s = d.createElement ("script"); s.src = "//" + discussUserName + ".disqus.com / embed.js"; s.setAttribute ("data-timestamp", + new Date ()); return ( d.head || d.body) .appendChild (s);)) (); break; case "# vk-comments": VK.Widgets.Comments ("vk-comments", (limit: 5, attach: " * ", pageUrl: pageUrl)); break; default: return;) initialized = true;); $ tabToggler = $ (". comments-wrapper a " ); $ tabToggler.on ("shown.bs.tab", function (e) (initComments ($ (e.target) .attr ("href"));)); initComments ($ tabToggler.closest (". active"). find ("a"). attr ("href")); )); )) (window, jQuery);

Pay attention to the variables, the value of which you must prepare using the methods provided by your platform.

First, we create a type mapping comment widgets, variable initialized... Next, the function initComments (type) allows initialize comment widget and it does nothing if it has already been initialized.

And the final touch - we initialize the default comments widget so that it is displayed immediately after the page is loaded.

Ready script and coffeescript on gist. An example of work is below (code examples are taken from this site)