@

Subscribe Link for RSMembership!

Two shortcodes that keep your subscribe buttons and prices in sync

Write a pricing page once and stop maintaining it. Drop a shortcode where the button goes and another where the price goes; both read straight from RSMembership!, so renaming a plan or changing its price updates every article that mentions it. No hardcoded URLs, no template overrides, and nothing added to the page you didn't ask for.

An article showing a pricing block with a subscribe button and a price, both generated from shortcodes
The button and the price in this article are two shortcodes. Change the plan's price in RSMembership! and this page follows.
Free Requires RSMembership!

The two shortcodes

A link to that membership's subscription page, using the link text and CSS class you set in the plugin options. The URL is built from the database, so it survives a rename.
Get Pro
The same link with the defaults overridden for this one instance.
18 EUR
The membership's current price, formatted the way you configured it.
18 Ft
The price with a printf format string just for this instance — useful when one page shows a different currency from the rest of the site.

Every attribute has a global default in the plugin options, and every default can be overridden per shortcode: link text, CSS class, link target, the Joomla menu item ID for the subscription page, and the price format string.

Built for

  • Pricing pages One shortcode pair per tier, all of them following the real plan data.
  • Feature articles An article introducing a paid feature that links straight to the right plan.
  • Sidebar calls to action A subscribe button in a custom HTML module, styled by your own CSS class.

Everything it does

Output

  • Subscribe links built from the database, valid after a rename
  • Inline prices with a printf format string
  • Any CSS class, so styling stays yours
  • Same window or new tab
  • Itemid for the subscription menu item

Behaviour

  • Global defaults, overridable per shortcode
  • Works anywhere Joomla runs content plugins: articles, custom HTML modules and more
  • No JavaScript or CSS added to the page
  • English and Hungarian admin interface

Requirements

Current version
v1.2.2 (2026-10-29)
Joomla
v5.x and 6.x
Requires
RSMembership!
PHP
v8.1+
Languages
English, Hungarian
Licence
GNU GPL v2 or later

Questions

What happens if I rename a membership?
Nothing breaks. The URL is generated from the database each time the content is rendered, so it picks up the new name automatically — which is the whole reason not to paste subscription URLs into articles by hand.
Does it add anything to the front end?
No JavaScript, no stylesheet. The shortcode is replaced with a plain anchor tag or a price string, and how it looks is entirely down to the CSS class you give it.
Where can I use the shortcodes?
Anywhere Joomla runs its content plugins — articles and custom HTML modules being the common cases. If a template position renders content through that event, the shortcodes work there too.
Can one page show prices in a different currency?
Yes. The format attribute is a standard printf string and can be set per shortcode, so %.0f Ft on one page and $%.2f on another both work without touching the global setting.
Free GNU GPL v2+ · requires RSMembership!

Changelog

1.2.2
  • {rsm_price format="…"} shortcode attribute is now validated before being passed to sprintf(). An invalid format string (e.g. %s %s) previously caused a PHP 8 fatal error and brought down the whole page; it now silently falls back to the plugin's configured default (%.2f) and logs a warning to the Joomla log.
  • CSS class and HTML id attribute values that come from plugin parameters (default_class, default_link_id) are now escaped with htmlspecialchars(), consistent with shortcode-supplied values.
1.2.1
  • The Default Itemid setting only accepts a number.
  • New strings for the price format, the HTML id and the period texts (en-GB, hu-HU).
  • {rsm_price id=X} shows a membership's price. type="renewal" gives the renewal price (or the base price if the membership has none), type="trial" the trial price. The format is printf-style, e.g. format="%.0f Ft" or format="%.2f EUR", with a default in the new Price Format setting.
  • {rsm_name id=X} shows a membership's name.
  • {rsm_period id=X} shows a membership's period as text, e.g. "1 year", "6 months" or "30 days"; type="trial" gives the trial period.
  • New Default HTML id setting for the subscribe link, which a shortcode can override with id_attr="…".
  • Membership data is read once per page and membership, whichever shortcodes use it.
  • Updates are offered through the Joomla update manager (https://extensions.blaho.hu/updates/rsmsubscribe.xml).
  • Licensed under the GNU GPL version 2 or later; the plugin is listed as "Content - Subscribe Link for RSMembership!".
  • Includes the changes of versions 1.1.x and 1.2.0.
1.0.0
  • First release. {rsm_subscribe id=X} turns into a link to the RSMembership! subscribe page of membership X, with a search-engine-friendly URL that contains the membership's name.
  • Optional per shortcode: text="…" (link text, default "Subscribe"), class="…" (CSS class) and itemid=… (menu item for the URL).
  • Plugin settings: default Itemid, default CSS class (rsm-subscribe-btn) and whether the link opens in the same or a new window.

László Blahó
My name is László BLAHÓ.
I have been working as a freelancer on films and web works for over 20 years. I have many websites and photography projects to my name. The Studio is based Budapest, Hungary.