=== Modal Links ===
Contributors: grglaz
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=43B53PFVBN9HA
Tags: modal, modal window, modal link, link, jquery modal, jquery dialog
Requires at least: 3.0.1
Tested up to: 3.9
Stable tag: 1.0.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
With this plugin you can create a "modal" link to open post/page and even login/logout and register form in modal window.
== Description ==
Plugin is in HOT development.
We appreciate any bugs reports.
Thank you
With this plugin you can create a "modal" link to open post/page and even login/logout and register form in modal window.
Install it and activate it to see it in action.
Go to Settings->Modal Links and check the options.
Basic Features:
* Create modal link of post/page using shortcode or plain html link.
* Use id or permalink to target the post/page.
* Add posts into category "Modals" to hide the post's title in modal window.
* Hide or Show post's/page's title in modal window using the shortcode attribute "title".
* Open wp's Login/Logout and Register form (in beta).
* Setup width and height.
* Choose if draggable and resizable.
* Global option for to hide or show modal title.
* It is multisite ready.
* Translation ready.
* It IS flexible.
* Add extensions to expand functionality.
* Check the FAQ.
Shortcode Attributes:
* id : The post's/page's id.
* permalink : The post's/page's permalink.
* title : To force the post's/page's title hide or show in modal window.
* login : Use it without id or permalink attributes to show wp's login/logout form.
* action : Use action="register" with 'login' attribute provided to show wp's register form.
Notes:
* id or permalink are required to open a post/page.
* login is required to open login/logout form.
* action="register" is required to open registration form.
* title is optional in any case.
* if both id and permalink provided, id will be used.
Extensions:
Free
* Read More V0.0.4
(uses the post's/page's read more link to open the complete post/page in modal window)
download
* Meta Widget Login Register V0.0.1
(uses the meta widget and opens Login/Logout and Register links in modal window)
download
Paid
* Shortcode GUI V0.0.4
(adds a GUI way to insert the shortcode into the wp editor. No need to know or remember anything)
download | donate
* Auto Open V0.0.2
(opens a post/page in modal window automatically. Selectable option for every post/page and front page)
download | donate
In order to access the download page, you have to make a small donation first. Then we will get the donation transaction details and email you your credentials.
Check some screenshots for these extensions in Screenshots.
TODO:
- Show or Hide buttons.
- Add your own buttons.
- much more...
Learn by example:
Playing with the link name
* Normal usage of link name.
Shortcode: [modalLinks id=“1”]link[/modalLinks]
HTML: link
* If you leave empty the link name in the shortcode dont worry, id/permalink or login/register form name will get in place.
Shortcode: [modalLinks id=“1”][/modalLinks]
Result: 1
* You can use unclosed shortcode, again we take care the link name.
Shortcode: [modalLinks id=“1” /]
HTML: 1
Referring to the post/page by id or permalink
* Open post/page with id ‘1’.
Shortcode: [modalLinks id=“1”]...
HTML: ...
* Open post/page with permalink ‘?p=1’.
Shortcode: [modalLinks permalink=“?p=1”]...
HTML: ...
* If you provide both id and permalink in the shortcode, id will be used.
Shortcode: [modalLinks id=“1” permalink=“?p=2”]...
RESULT: ...
Showing or hiding the title of post/page
* Title is NOT showing for post/page with id ‘1’.
Shortcode: [modalLinks id=“1” title=“false”]...
HTML: ...
* Title is showing for post with id ‘2’ which is in ‘Modal’ category.
Shortcode: [modalLinks id=“2” title=“true”]...
HMTL: ...
Open wordpress’s Login/Logout or Register form.
* Opens login or logout according of user’s state.
Shortcode: [modalLinks login=“true”]...
HTML: ...
* Opens registration form no matter of user’s state.
Shortcode: [modalLinks login=“true” action=“register”]...
HTML: ...
== Installation ==
1. Upload the folder "modal-links" to the "/wp-content/plugins/" directory or install it through WordPress directly.
2. Activate the "Modal Links" plugin through the 'Plugins' menu in WordPress.
3. Go to Settings->Modal Links and check the options.
== Frequently Asked Questions ==
= How do i create a modal link? =
Use the shortcode
[modalLinks]LINK_NAME[/modalLinks]
in a post or page.
Shortcode Attributes:
* id : The post's/page's id.
* permalink : The post's/page's permalink.
* title : To force the post's/page's title hide or show in modal window.
* login : Use it without id or permalink attributes to show wp's login/logout form.
* action : Use action="register" with 'login' attribute provided to show wp's register form.
Notes:
* id or permalink are required to open a post/page.
* login is required to open login/logout form.
* action="register" is required to open registration form.
* title is optional in any case.
* if both id and permalink provided, id will be used.
= What if i have shortcodes in my post or page? =
Shortcodes should render fine in the modal.
Alhough some seems that not responding.
= Does this plugin works for both posts and pages? =
Yes.
= Does this plugin works for any permalink setting? =
Yes, except of custom permalinks if you refer to a post/page by permalink.
= Which library do you use for the modal? =
Wordpress's built in jQuery Dialog.
= Where can i find extensions? =
In Description.
== Screenshots ==
1. screenshot-1.png The menu in settings
2. screenshot-2.png The plugin's settings
3. screenshot-3.png The shorthand
4. screenshot-4.png The link
5. screenshot-5.png The modal in action
6. screenshot-6.png Shortcode GUI extension
7. screenshot-7.png Read More extension
8. screenshot-8.png Auto Open extension
== Changelog ==
= 1.0.0 =
First stable version
= 0.0.9 =
bugs fix, faster code...
= 0.0.8 =
login/logout and register form improved css...
= 0.0.7 =
bugs fix, lots of new things
= 0.0.6 =
modal window width can now be setup
= 0.0.5 =
many fixes
= 0.0.4 =
now you can hide post's or page's title
= 0.0.3 =
now you can use permalink instead id in shortcode
= 0.0.2 =
Bugs fix
= 0.0.1 =
First version
== Upgrade Notice ==
= 1.0.0 =
First stable version
= 0.0.9 =
bugs fix, faster code...
= 0.0.8 =
login/logout and register form improved css...
= 0.0.7 =
bugs fix, lots of new things
= 0.0.6 =
modal window width can now be setup
= 0.0.5 =
many fixes
= 0.0.4 =
now you can hide post's or page's title
= 0.0.3 =
now you can use permalink instead id in shortcode
= 0.0.2 =
Bugs fix
= 0.0.1 =
This is the first version