Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

Adapt subscription tab in user profile to UIKit (com_cbpaidsubscription)

  • beat
  • beat
  • ONLINE
  • Posts: 2169
  • Thanks: 463
  • Karma: 352
8 years 5 months ago #281242 by beat

c_schmitz wrote: Never mind, we will add the necessary classes using JavaScript instead. But you should really use a proper template system instead of rendering HTML in your classes...


Joomla-template overrides are already supported already by CBSubs's Layouts:

If you add this layout file:

templates/YOURJOOMLATEMPLATE/html/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/VIEWNAME/LAYOUTNAME.php

to your Joomla template, it will override the layout of the CBSubs template:

VIEWNAME/LAYOUTNAME.php

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 5 months ago #281244 by krileon

Never mind, we will add the necessary classes using JavaScript instead. But you should really use a proper template system instead of rendering HTML in your classes...

We are for the majority of our plugins. However for several legacy aspects of CB we aren't. The contents of CBSubs subscription tab is for the most part template driven. Some aspects are hardcoded as they need to be for a consistent output, but in the future all elements should become template files (see various plugins where I've implemented a template system for them).

I've added a feature ticket regarding a planned template class that our plugins will be able to utilize where we'll be posting our ideas. This won't be until at least 2.1 though as it's a pretty major change.

forge.joomlapolis.com/issues/5947

The idea is to also remove CSS framework dependency by pulling CSS classes from an API library so we can change to a different framework at a moments notice as needed, etc..


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum