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] Forum integration plugin AUTO REDIRECT?

11 years 2 months ago - 11 years 2 months ago #231628 by herzenssache
Hi,
I do use the forum integration plugin (CB Forums 3.0) with simple sidebar substitutions. It works perfectly fine, I do have e.g. the CBSubs Image in the sidebar as well.
One strange behviour though: if a user has NO avatar image AND posts a new topic, users who do view the topic are auto redirected to the CB profile page of the person instead of being able to read the topic.
Needless to say these causes issues.

My substitutions are:

<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>[cb:userfield field="cb_mitgliedschaft" /]</li>
</ul>

Second problem is that using substitutions the avatar size seems to be very wide. The kunena.forum.css states
#Kunena span.kavatar img {
border: 1px solid;
padding: 1px;
margin: 5px;
max-width: 100px;
max-height: 150px;

but the max width does not seem to work anymore, if substitions are used?

Would you mind showing me my error in the syntax?

Thank you,
Matthias
Last edit: 11 years 2 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 2 months ago #231655 by krileon
Replied by krileon on topic Forum integration plugin AUTO REDIRECT?
Can't think of any reason why it'd redirect. There's no code in place to do such a thing. As for the sizing problem you're substituting in the full size profile avatar. You want the thumbnail size, which is reason="list". Example as follows for thumbnail sized avatar substitution.

[cb:userfield field="avatar" reason="list" /]

Note for the above you do not need to include an "a" element around it as it already adds 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.
The following user(s) said Thank You: herzenssache

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

11 years 2 months ago #231658 by herzenssache
Replied by herzenssache on topic Forum integration plugin AUTO REDIRECT?

krileon wrote: Can't think of any reason why it'd redirect. There's no code in place to do such a thing. As for the sizing problem you're substituting in the full size profile avatar. You want the thumbnail size, which is reason="list". Example as follows for thumbnail sized avatar substitution.

[cb:userfield field="avatar" reason="list" /]

Note for the above you do not need to include an "a" element around it as it already adds it.


Dear Kyle,

thank you for your help. The avatar size change worked!
Now with regards to the autoforward:
changing the line [cb:userfield field="avatar" reason="list" /]

<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" reason="list" /]</span></a></li>
<li>[cb:userfield field="onlinestatus"/]</li>

also solved the autoredirect issue.

I have no idea why,
thank you,
Matt
The following user(s) said Thank You: krileon

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

Moderators: beatnantkrileon
Powered by Kunena Forum