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] Avatar position

  • nijan
  • nijan
  • OFFLINE
  • Posts: 108
  • Thanks: 1
  • Karma: 0
11 years 7 months ago #222732 by nijan
Replied by nijan on topic Avatar position
Ok I've understand. I get the Joomla 2.5 CB Content plugin version 2.2.0.
I installed it but as you know ... I've a question :whistle:

As you know I would like to display the avatar of the current viewed profile page in a specific Joomla position.

So I create a personnal content module and there I put

[cb:usertab tab="20" avatar="#displayed" /]

Obviously it is missing something. I don't really understand where I've to place the delimiter field.

Can you help ?

Thanks !

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

  • nijan
  • nijan
  • OFFLINE
  • Posts: 108
  • Thanks: 1
  • Karma: 0
11 years 7 months ago #222758 by nijan
Replied by nijan on topic Avatar position
Hello,

I think I've the correct syntax.

<p id="test"><img src="[avatar]" border="0" alt="" /></p>

I works fine if I display it in CB Tabs. But now I would like to display it in a Joomla personnal module. How can I do it ? What is the syntax in my non-CB module ?

Thanks !

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48459
  • Thanks: 8280
  • Karma: 1443
11 years 7 months ago - 11 years 7 months ago #222784 by krileon
Replied by krileon on topic Avatar position

[cb:usertab tab="20" avatar="#displayed" /]

I'm not sure why you changed "user" to "avatar", but this isn't valid. Please review my tutorials carefully; they are not suggestive and are completely exact as to what you can and can not do.

www.allmysocials.com/directory/tutorials/item/236-substituting-tabs-into-fields

<p id="test"><img src="[avatar]" border="0" alt="" /></p>

Just call the below and it'll give you all the HTML for the avatar field included. You're using a raw substitution so it'll always return the raw value.

[cb:userfield field="avatar" /]

Please see the below tutorial for further usage information.

www.allmysocials.com/directory/tutorials/item/233-substitution-usage

You can not use substitutions anywhere you want. They only work in locations that run through CBs API and specifically say they're supported. You must use a CB Content Module if you want them displayed as a module. A custom HTML Joomla module will not work.


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.
Last edit: 11 years 7 months ago by krileon.

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

  • nijan
  • nijan
  • OFFLINE
  • Posts: 108
  • Thanks: 1
  • Karma: 0
11 years 7 months ago #222796 by nijan
Replied by nijan on topic Avatar position
Ok right, I read your tutorial but the only thing I have to do now is to create a CB Content Module.

How can I do that ? Can I allocate a joomla template position to it ?

I downloaded bot_cbcontent_j25-220 and installed it.
The only thing I have in joomla is the following panel :



Did I something wrong or am I missing something ?

Thanks in advance !
Attachments:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48459
  • Thanks: 8280
  • Karma: 1443
11 years 7 months ago #222803 by krileon
Replied by krileon on topic Avatar position
That's the CB Content Bot, not the CB Content Module. The CB Content Bot allows substitutions in Joomla articles and the usage is {cb:SUBSTITUTIONS HERE}. You can download the CB Content Module from the Advanced downloads section.


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.

  • nijan
  • nijan
  • OFFLINE
  • Posts: 108
  • Thanks: 1
  • Karma: 0
11 years 7 months ago #222856 by nijan
Replied by nijan on topic Avatar position
Krileon,

It works ! I donwloaded CB Content Module and I is exactly what I needed.
BUT, because you know I always have a BUT :huh: ...

... I have a question :

<p id="avatars"><img src="[avatar]" border="0" alt="" /></p> will display the avatar of the current logged user. Is it possible to display the avatar of the current viewed page's member ?

As my english is bad I give you an example.

User 1 is connected and consults the profile page of User 2. Is it possible to display the avatar of User 2 even if connected user is User 1 ?

Kind regards !

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

Moderators: beatnantkrileon
Powered by Kunena Forum