Skip to Content Skip to Menu

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

Profile content blank after trying to copy profile template

9 years 2 months ago #269192 by wdburgdorf
Hi,

in order not to have to edit the default profile template, I copied the default template, and changed filenames and content of default.php and default.xml. Then I zipped the copied profile and installed it. All seemed fine. Database check showed a duplicate ID which was easily fixed. But now profiles don't show up anymore, neither on the overvie page nor on a details page. Everything else on the page lookes ok and there is no error message (debug maximum). Even the pagination is there on the overview page. So I think profiles load more or less correctly, they are just not displayed.

Did I miss something when copying the profile template? Are there official instructions how to do it right? (I found some unofficial instructions somewhere, but those were obviously wrong ...)

J3.4.3, CB2.0.10 - Pages are private, cannot post a link. But I could send login if necessary.

Thanks,
Ralf.

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
9 years 2 months ago #269201 by nant

wdburgdorf wrote: Hi,

in order not to have to edit the default profile template, I copied the default template, and changed filenames and content of default.php and default.xml. Then I zipped the copied profile and installed it. All seemed fine. Database check showed a duplicate ID which was easily fixed. But now profiles don't show up anymore, neither on the overvie page nor on a details page. Everything else on the page lookes ok and there is no error message (debug maximum). Even the pagination is there on the overview page. So I think profiles load more or less correctly, they are just not displayed.

Did I miss something when copying the profile template? Are there official instructions how to do it right? (I found some unofficial instructions somewhere, but those were obviously wrong ...)

J3.4.3, CB2.0.10 - Pages are private, cannot post a link. But I could send login if necessary.

Thanks,
Ralf.


Guessing you did something wrong - as always with blank pages please turn on joomla debuging to see more info on error.

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

9 years 2 months ago #269230 by wdburgdorf
Thanks for your reply nant. The pages are not blank:
"Everything else on the page looks ok and there is no error message (debug maximum)."

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48473
  • Thanks: 8281
  • Karma: 1443
9 years 2 months ago #269241 by krileon
Edit the PHP file and ensure you've changed the class names to have the same name as your template. For example if your template is "example" then change CBProfileView_html_default to CBProfileView_html_example. Is there a particular reason you need the PHP file though? It's possible to override just the CSS. This can be done easily with the below override template usage.

www.joomlapolis.com/forum/6-news-and-publicity/227459-cb-203-template-css-overrides


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: wdburgdorf

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

9 years 2 months ago #269254 by wdburgdorf
Hi Kyle,

Thank you, it was the class names.
Problem with CSS is that I need to "catch" the elements. Many elements lack specific classes which makes them hard to catch. So I add classes. Another problem is, that I can switch off display of empty fields, but only for both overview and detail pages, not just one of them. I need empty fields in the overview, but not in details. And so on ...

Thanks again!

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48473
  • Thanks: 8281
  • Karma: 1443
9 years 2 months ago #269281 by krileon
Don't understand what you mean by catch the elements. Nearly every relevant element in CB has a semantic class in addition to their bootstrap classes. Hiding empty fields in profile edit doesn't make any sense as you won't be able to edit the fields if that's the case, but that is doable with CB Conditional if you really wanted (assuming that's what you meant by detail pages). Each tab and field can also have custom CSS classes add to them using the CSS Class parameter found in their backend edit views.


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