Skip to Content Skip to Menu

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

[SOLVED] Installing custom CB template

10 years 11 months ago - 10 years 11 months ago #237614 by hectoritobh
[SOLVED] Installing custom CB template was created by hectoritobh
Hi,

So that I can have my own custom CB template, I...
  1. Made a copy of the Bootstrap folder (called it my-template)
  2. Renamed bootstrap.php and bootstrap.xml to my-template.php and my-template.xml respectively
  3. Replaced the name and plugin attributes in my-template.xml
I then tried to install the template in CB Plugin manager, directly from the directory. (I used... /my-server-path/public_html/templates/components/com_comprofiler/plugin/templates/my-template

Hoever, I keep getting an error that the installation file could not be found.

I had a look at the API and it doesn't mention how to create an installation file.

Please can you let me know what I am missing here in order to install my template?

Thanks,
hector
Last edit: 10 years 11 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48473
  • Thanks: 8281
  • Karma: 1443
10 years 11 months ago #237640 by krileon
Replied by krileon on topic Installing custom CB template
Remove your dash as names should be alphanumeric only and if you want a separator use an underscore. Then retry and see if issue persists. If it does please provide the full error. Also note you need to edit the PHP file and change the class names to match your template name.


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.

10 years 11 months ago #237643 by hectoritobh
Replied by hectoritobh on topic Installing custom CB template
Many thanks Kyle.

I did what you suggested and renamed the template as "odylic" (the name of the website I am developing). I also edited the PHP file, and replaced all the mentions of "bootstrap" with "odylic"

The issue persists though. This is the error message I got:

Install new plugin from directory /home2/blongtv/public_html/components/com_comprofiler/plugin/templates/odylic - Failed
Installation file not found:
/home2/blongtv/public_html/components/com_comprofiler/plugin/templates

I triple-checked and the directory path is the correct one.

What do you suggest I do?

Hector

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48473
  • Thanks: 8281
  • Karma: 1443
10 years 11 months ago #237651 by krileon
Replied by krileon on topic Installing custom CB template
Zip the template and try installing that way instead of install from directory. Ensure your XML file is present, named correctly, and valid.


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.
The following user(s) said Thank You: hectoritobh

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

10 years 11 months ago #237652 by hectoritobh
Replied by hectoritobh on topic Installing custom CB template
That did the trick, thank you!!! B)

Kind regards,
Hector

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

10 years 11 months ago #237653 by hectoritobh
Replied by hectoritobh on topic Installing custom CB template
For anyone else that wants to add their own CB template, also change any mentions of the template name in the template.css file.

(For example, the class .cb_template_bootstrap needs to be renamed .cb_template_yourtemplatename )

Hope this helps! B)
The following user(s) said Thank You: danbo1972

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

Moderators: beatnantkrileon
Powered by Kunena Forum