Skip to Content Skip to Menu

[SOLVED] Adding graphic to a user profile

  • GUEST
13 years 1 month ago #159160 by
OK updated to Kunena 1.6.3

Made some progress as the test text did show up but the HTML graphic did not. The field I am attempting to show is a delimited field, again, it works in CB profile view, not on the Kunena forum.

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

  • GUEST
13 years 1 month ago - 13 years 1 month ago #159167 by
OK progress and no progress.
This is the code I'm working on in the Forum Integration plugin
Code:
<ul class="kpost-profile"> <li class="kpost-username"><a rel="nofollow" title="" href="index.php?option=com_comprofiler&task=userProfile&user=[user_id]&Itemid=47" class="kwho-admin">[cb:userfield field="formatname"/]</a></li> <li class="kpost-avatar"><a rel="nofollow" title="" href="index.php?option=com_comprofiler&task=userProfile&user=[user_id]&Itemid=47" class="kwho-admin"><span class="kavatar">[cb:userfield field="avatar"/]</span></a></li> <li>[cb:userfield field="onlinestatus"/]</li> <li class="kpost-userrank">[cb:userfield field="forumrank"/]</li> <li class="kpost-userposts">Posts: [cb:userfield field="forumposts"/]</li> <li class="kpost-karma">Karma: [cb:userfield field="cb_showmaea"/] </li> </ul>

I have tested the substitution and it will work with just text. when I have this line in the delimited field named "cb_showmaea"
Code:
[cb:if user="#displayed" cb_excellenceawardcheck="1"] <img src="images/badges/excellence_small_2011.png" alt="alt" /> [/cb:if]<p>This is a test</p>
"This is a test" shows up on all user profiles.


If I change the delimited field "cb_showmaea" to this (which includes the test string in side the conditional if statement,
Code:
[cb:if user="#displayed" cb_excellenceawardcheck="1"] <img src="images/badges/excellence_small_2011.png" alt="alt" /> <p>This is a test</p>[/cb:if]
I get nothing.

Again, this cb_showmaea works in CB profile but will not display in Kunena.
Last edit: 13 years 1 month ago by .

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 68625
  • Thanks: 9109
  • Karma: 1434
13 years 1 month ago #159214 by krileon
Replied by krileon on topic Re: Adding graphic to a user profile
You have an IF statement surrounding your image. The #displayed won't do anything on Kunena as it's for CB, it means for the displayed user (you can use #me or myid, but neither are necessary). The substitutions automatically apply to the user being displayed in Kunena.

From:
Code:
[cb:if user="#displayed" cb_excellenceawardcheck="1"]
To:
Code:
[cb:if cb_excellenceawardcheck="1"]

More on substitution usage can be found in tutorials within my signature.


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:

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

  • GUEST
13 years 1 month ago - 13 years 1 month ago #159218 by
I had just told one of my admins that I bet it has something to do with the way the two systems read the user name. Thanks Kyle, this opens the window for a lot of different options!

Made the change and it is all working now. Thank you!
Last edit: 13 years 1 month ago by .

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

Moderators: beatnantkrileon
Powered by Kunena Forum

Facebook Twitter LinkedIn