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://ar.wordpress.org/plugins/force-user-login-modified/#description)
 * [المراجعات](https://ar.wordpress.org/plugins/force-user-login-modified/#reviews)
 *  [التنصيب](https://ar.wordpress.org/plugins/force-user-login-modified/#installation)
 * [التطوير](https://ar.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

## ميتا Meta

 *  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://ar.wordpress.org/plugins/tags/force-user-login/)[login](https://ar.wordpress.org/plugins/tags/login/)
   [password](https://ar.wordpress.org/plugins/tags/password/)[privacy](https://ar.wordpress.org/plugins/tags/privacy/)
 *  [عرض متقدم](https://ar.wordpress.org/plugins/force-user-login-modified/advanced/)

## التقييم

لم يتم تقديم أي مراجعات بعد.

[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)