[SOLVED] cb language edit / manage connections issue

12 years 4 months ago - 12 years 4 months ago #185790 by onlinesince79
Hi guys,

I am using the CB Content module to display CB profile operations, for example view profile, update profile, send a message (via uddeim) etc.

I have edited default_language.php to add styling and a .gif next to send a message, to add emphasis to the link, when a logged in user is viewing another users profile and wants to send them a message.

This is the edit i carried out:

//DEFINE('_UE_PM_USER','Send a message');

DEFINE('_UE_PM_USER','</br><center><strong><font color="#cc3333"><img src="images/compose.gif"/> Send a message</strong></font></center></br>');

This works fine in when displayed in the cb content module (see attached image), however, when a user views their connections, the html code added in default_language.php is revealed and the result is messy (attached).

I need to be able to keep the image and styling for send a message, but keep manage connections the same.

Many thanks




Attachments:

Please Log in to join the conversation.

12 years 4 months ago #185819 by krileon
You shouldn't add HTML directly to the menu links as it's not supported in most cases. You should style them with CSS. Example CSS as follows.
.module ul.cbMenuULlist li a {
    display: block;
    padding: 3px 0 5px 25px;
    text-decoration: none;
}

.module ul.cbMenuULlist li.cbMenu_UE_PM_USER a {
    background: url( "../../../images/compose.gif" ) repeat-y scroll 0 0 transparent;
    display: block;
}

The above still displays text, but with an icon to the left of it. It could of course be adjusted to display just an image for example by cutting it into a specific height/width and hiding any overflow.


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.

12 years 4 months ago #185896 by onlinesince79
Replied by onlinesince79 on topic Re: cb language edit / manage connections issue
Hi Krileon,

Could you please tell me exactly where to put this code, and also how to make sure the send a message link is in red (cc3333).

Many thanks

Please Log in to join the conversation.

12 years 4 months ago #185934 by krileon
The above is just an example. You'll need to tweak it to meet your needs. It's designed to restyle the CB Menu when displayed in the CB Content module and you'll need to edit CB Menu from Plugin Management and set "Menu display type:" to li spans. The CSS should be placed at the bottom of your Joomla or CB template CSS file. CB templates can be found below.

components/com_comprofiler/plugin/templates/


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.

12 years 4 months ago #185990 by onlinesince79
Replied by onlinesince79 on topic Re: cb language edit / manage connections issue
Hi Krileon,

Many thanks for this info, I have settled on simply reenabling menu icons via CB Menu settings in Plugin Management and setting "Menu display type:" to li span.

One problem i have now is that the icons next to the links disappear if a user clicks any component/module links, e.g. compose in UddeIM.

Any ideas?

Many thanks

Please Log in to join the conversation.

12 years 4 months ago #186029 by krileon
It's because their styling is in CBs template and when you navigate away from CBs pages then its template is no longer rendered. You'll need to review CBs template CSS files then copy the menu icon CSS to your Joomla template. I think also having your login module on the same pages as CB Content may also do the trick if plugins integrations is set to yes in the modules parameters.


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.413 seconds

Facebook Twitter LinkedIn