=== Smart Social Pro ===
Contributors: AppsTRDesign
Tags: members, profiles, community, frontend, smart-fields-pro
Requires at least: 6.0
Requires PHP: 7.4
Stable tag: 1.2.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Member profiles and community publishing with a five-theme front-end authentication form. Integrates with Smart Fields Pro field groups.

== Installation ==
1. Upload the smart-social-pro folder to /wp-content/plugins/.
2. Activate Smart Social Pro.
3. Open Smart Social and choose roles allowed to submit posts; configure ranks and field templates there.
4. Create pages and add the shortcodes below.
5. If Smart Fields Pro is active, select the post and profile field groups in Smart Social > Templates & profile.

== Shortcodes ==
[ssp_auth] renders the sign-in and registration form. Select one of five styles with theme="modern", "minimal", "glass", "midnight", or "classic".
[ssp_dashboard] renders the logged-in member dashboard and profile editor.
[ssp_members] renders the searchable, AJAX-paginated member directory. Optional: per_page="12".
[ssp_submit_content] renders the community submission form for roles granted permission in plugin settings.
[ssp_account_box] member card with rank, stats and account links (sign-in box for visitors).
[ssp_login_box] compact sign-in form.
[ssp_new_members number="8" title=""] newest members.
The same components are available as widgets, Gutenberg blocks (Smart Social: account, login, new members, directory) and an Elementor widget.

Community submissions are regular WordPress posts saved as pending for administrator review. Smart Fields Pro fields are stored with the same _sfp_* metadata keys and appear with its single-post output. Profile field groups use those field definitions and are stored in user meta. Member ranks can be assigned manually per member or calculated automatically from the published post thresholds configured in Smart Social > Ranks. Choosing Automatic for a member restores threshold-based ranking.

Features are registered as separate modules (authentication, profiles, member directory, publishing and admin). Additional social modules can be added through the ssp_modules filter.

== Translations ==
Text domain: smart-social-pro. Translation template and Turkish PO/MO files are included in languages/.

== Uninstall ==
Deleting the plugin removes Smart Social Pro settings, generated pages and menu items, member-profile metadata, role permissions, widget placements, and community submissions. Existing WordPress user accounts are kept and users with the Smart Social member role are reassigned to the site default role. Shared Media Library files are kept. If Smart Social Pro added the Posts post type to a Smart Fields Pro group, that change is reverted.

== Changelog ==
= 1.2.1 =
* New: Role permissions → "Open the WordPress dashboard (wp-admin)" per role. Other members are sent to their profile; AJAX, uploads and admin-post keep working. The "Admin panel" link follows the same permission.
* New: the front-end admin bar is hidden while Smart Social runs.
* Improved: post and profile forms use the Smart Fields Pro editor layout and design (tabs, accordions, field order); the media gallery shows only when the template has a Media Gallery field.
* Improved: account menu marks only the open dashboard tab as current; links of switched-off Smart Fields Pro modules are removed, also from saved block menus.
* Fixed: the button of the message window was invisible on some themes.
* Fixed: "Please wait before requesting another verification image" kept appearing – the image limit now uses a fixed 10-minute window (60 images per IP) that never extends itself, images load only when the form is on screen, and a limited image retries on its own.

= 1.2.0 =
* Connected to the Smart Fields Pro API (1.4+): template picker with several post templates, profile editor and public profile cards, orders / address / appointment tabs in the member dashboard, account menu links for orders and appointments.
* New: ready-made Member Profile template (headline, company, location, website, skills, languages, social links) created automatically.
* New: account card, sign-in box and new members as shortcodes, widgets, blocks and an Elementor widget; block-theme navigation support.
* Redesigned sign-in, registration and password reset (field icons, show password, strength meter) and the security image; full-width layouts; buttons sized to their text on desktop.
* Fixed: admin bar hidden for editors and admins, media link check blocking Smart Fields Pro in the post editor, member search by email, member pages listed in automatic page menus.
