Title: Force User Login
Author: smatric
Published: <strong>9. новембар 2011.</strong>
Last modified: 28. август 2015.

---

Претражи додатке

Овај додатак **није испробан са последња 3 главна издања Вордпреса**.Можда се више
не одржава или подржава и можда има грешке са усклађеношћу са новијим издањима Вордреса.

![](https://s.w.org/plugins/geopattern-icon/force-user-login-modified.svg)

# Force User Login

 [smatric](https://profiles.wordpress.org/smatric/)

[Преузимање](https://downloads.wordpress.org/plugin/force-user-login-modified.1.0.2.zip)

 * [Детаљи](https://sr.wordpress.org/plugins/force-user-login-modified/#description)
 * [Прегледи](https://sr.wordpress.org/plugins/force-user-login-modified/#reviews)
 *  [Постављање](https://sr.wordpress.org/plugins/force-user-login-modified/#installation)
 * [Изградња](https://sr.wordpress.org/plugins/force-user-login-modified/#developers)

 [Подршка](https://wordpress.org/support/plugin/force-user-login-modified/)

## Опис

This is a very small plugin that forces users to login before viewing any content.
This is done by checking if the user is logged in, and if not, redirecting them 
to the login page. Users attempting to view blog content via RSS are also authenticated
via HTTP Auth.

Modification: use get_site_url() to redirect to the login page properly when WordPress
is located in a subdirectory.

## Постављање

 1. Upload `force-login.php` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## ЧПП

  Can I change where the user is redirected after logging in?

Yes! A variable called $redirect_to (line 33) is currently set to redirect the user
to the page they were trying to access. If you changed that line from

    ```
    $redirect_to = $_SERVER['REQUEST_URI'];
    ```

to

    ```
    $redirect_to = '/';
    ```

it would redirect the user to the home page.

## Прегледи

Нема рецензија за овај додатак.

## Сарадници и градитељи

„Force User Login“ је софтвер отвореног кода. Следећи људи су допринели овом додатку.

Сарадници

 *   [ smatric ](https://profiles.wordpress.org/smatric/)

[Преведите „Force User Login“ на свој језик.](https://translate.wordpress.org/projects/wp-plugins/force-user-login-modified)

### Заинтересовани сте за градњу?

[Прегледајте код](https://plugins.trac.wordpress.org/browser/force-user-login-modified/),
проверите [SVN складиште](https://plugins.svn.wordpress.org/force-user-login-modified/)
или се пријавите на [белешку градње](https://plugins.trac.wordpress.org/log/force-user-login-modified/)
преко [RSS-а](https://plugins.trac.wordpress.org/log/force-user-login-modified/?limit=100&mode=stop_on_copy&format=rss).

## Белешка о изменама

#### 1.0.2

 * Tested with WordPress 4.3
 * Updated meta description
 * A screenshot added

## Мета

 *  Version **1.0**
 *  Last updated **11 година раније**
 *  Active installations **40+**
 *  WordPress version ** 2.0.2 или новије **
 *  Tested up to **4.3.34**
 *  Language
 * [English (US)](https://wordpress.org/plugins/force-user-login-modified/)
 * Tags
 * [force user login](https://sr.wordpress.org/plugins/tags/force-user-login/)[login](https://sr.wordpress.org/plugins/tags/login/)
   [password](https://sr.wordpress.org/plugins/tags/password/)[privacy](https://sr.wordpress.org/plugins/tags/privacy/)
 *  [Напредни преглед](https://sr.wordpress.org/plugins/force-user-login-modified/advanced/)

## Оцене

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/force-user-login-modified/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/force-user-login-modified/reviews/)

## Сарадници

 *   [ smatric ](https://profiles.wordpress.org/smatric/)

## Подршка

Имате нешто да кажете? Потребна вам је помоћ?

 [Види форум подршке](https://wordpress.org/support/plugin/force-user-login-modified/)

## Донирај

Желите ли да подржите напредак овог додатка?

 [ Донирај овом додатку ](http://Don't%20worry%20about%20it)