Tab name

2 years 8 months ago - 2 years 8 months ago #325926 by matthewdavey
Tab name was created by matthewdavey
Is it possible to style a Community Builder: Edit Plugin [Default language (English)] Key ?

Is it possible to resize an image to display in the tab with css?

Is it possible to style the new override name with css and add the css in the override in the override text?
if so can you give an example?

Thanks

Please Log in to join the conversation.

2 years 8 months ago #325933 by krileon
Replied by krileon on topic Tab name

Is it possible to style a Community Builder: Edit Plugin [Default language (English)] Key ?

Style it how? Sorry, don't understand what you're asking here. You want to add custom CSS to style the edit plugin page?

Is it possible to resize an image to display in the tab with css?

Yes, you can output custom CSS using CBs built in CSS override functionality. See the below regarding how to use it.

www.joomlapolis.com/blog/kyle/18711-template-css-overrides-made-easy

Is it possible to style the new override name with css and add the css in the override in the override text?

I've no idea what you mean by this. You want to style some specific text?


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 to join the conversation.

2 years 8 months ago #325988 by matthewdavey
Replied by matthewdavey on topic Tab name
Is it possible to pull the image that I want to use for the tab from the media or Mywebsite/image/[cb_user] [cb_image1] folder of the website? and resize it to 10 pixels as an example
What would be the code?
Thanks

Please Log in to join the conversation.

2 years 8 months ago #326000 by krileon
Replied by krileon on topic Tab name
You can output substitution supported HTML using a Custom HTML field, but you'll get broken HTML if not every user has an image and will need to use something like CB Code Field and write PHP to make sure the image exists before trying to display it.


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 to join the conversation.

2 years 8 months ago - 2 years 8 months ago #326002 by matthewdavey
Replied by matthewdavey on topic Tab name
At the moment I have this code in the Default language (English) key's field's field GROUPS.

<img src="https://some_website.com/rsrc.php/v3/yD/r/mk4dH3FK0jT.png" alt="GROUPS" /> GROUPS.
It works.

Could this be the DEFAULT and if the user want to change it they can.

I want the user to be able to upload the image the user uploaded into the profile earlier and the Key's Text maybe looks something like <img src= [cb_user][cb_groupjive]"GROUPS"TAB if they upload one in their profile?
And if they didn't upload an image previously then do not display anything.

How would CB Code Field and write PHP do this?
What would be the code to achieve this?

Thanks

Please Log in to join the conversation.

2 years 8 months ago #326018 by krileon
Replied by krileon on topic Tab name
You don't need any PHP for that. Sorry, I misunderstood what you were trying to do. You should be able to do that by just using an image field and substitutions. Then change your language override to use the following.

<img src="[cb:if cb_groupstab!=""][cb_groupstab][cb:else]]https://some_website.com/rsrc.php/v3/yD/r/mk4dH3FK0jT.png[/cb:else][/cb:if]" alt="" /> GROUPS

The above will see if the image field cb_groupstab has an image. The raw substitution usage for image fields will always just return the image URL. If it does it will use that otherwise it'll fallback to the ELSE condition and use whatever you supply there. For more information on how to use IF substitutions check out our tutorial below.

www.joomlapolis.com/documentation/279-community-builder/tutorials/18353-using-substitutions-throughout-cb


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 to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.216 seconds