Kunena 7.0.4 Released

The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0

Question [Solved] How to edit kunena profile groups

More
16 years 11 months ago - 16 years 11 months ago #16331 by heliolopes
Hi xillibit,


I changed temporarily for default_ex for trying your solution, but I replaced the file and nothing happened.

Im attaching the template that template view.php that im currently using.

I know Im a new sailor on this waves but I honestly thought that placing a bookmark and share, more or less as Kunena forum has, would be less difficult.

Hope more people see this post to give a help.

Regards,

Helio

Im not allowed to upload so:
Warning: Spoiler!
Last edit: 16 years 11 months ago by @quila. Reason: Post too long

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

More
16 years 11 months ago - 16 years 11 months ago #16350 by @quila
Hi heliolopes,

you have two way to do this.

1. Insert AddThis code as a module (Joomla 1.5.x)

  1. Go to Global Configuration of your Joomla and for Default WYSIWYG Editor, select Editor-No editor and Save
  2. Go to Extension -> Module Manager -> New -> Custom HTML
    • Title - AddThis (or what you like)
    • Show Title - No
    • Enabled - Yes
    • Position - type kunena_profilebox
    • Menu Assignment - Menues - All
    • In the Custom Output - textarea, insert your Code
    • Click Save
  3. Go to Global Configuration of your Joomla and for Default WYSIWYG Editor, select Your prefer Editor and Save

Now if you go to your forum you can see AddThis Bookmark and Share button.

2. Insert AddThis code in the profilebox file (HACK)

find and open file profilebox.php
/components/com_kunena/template/default/plugin/profilebox/profilebox.php
line 144
instead of this
Code:
<?php if (mosCountModules('kunena_profilebox') || mosCountModules('kna_pbox')) { ?> <td> <div class = "fb_profilebox_modul"> <?php if (CKunenaTools::isJoomla15()) { $document = &JFactory::getDocument(); $renderer = $document->loadRenderer('modules'); $options = array('style' => 'xhtml'); $position = 'kunena_profilebox'; echo $renderer->render($position, $options, null); } else { mosLoadModules('kna_pbox', -2); } ?> </div> </td> <?php } ?>
insert this
Code:
<td> <div class = "fb_profilebox_modul"> <!-- AddThis Button BEGIN --> <script type="text/javascript">var addthis_pub="4a10988c679efb10";</script> <a href="www.addthis.com/bookmark.php?v=20" onmouseover="return addthis_open(this, '', '[URL]', '[TITLE]')" onmouseout="addthis_close()" onclick="return addthis_sendto()"><img src="http://s7.addthis.com/static/btn/sm-plus.gif" width="16" height="16" alt="Bookmark and Share" style="border:0"/></a><script type="text/javascript" src="http://s7.addthis.com/js/200/addthis_widget.js"></script><!-- AddThis Button END --> </div> </td>

and line 198
instead of this
Code:
<?php if (mosCountModules('kunena_profilebox') || mosCountModules('kna_pbox')) { ?> <td> <div class = "fb_profilebox_modul"> <?php if (CKunenaTools::isJoomla15()) { $document = &JFactory::getDocument(); $renderer = $document->loadRenderer('modules'); $options = array('style' => 'xhtml'); $position = 'kunena_profilebox'; echo $renderer->render($position, $options, null); } else { mosLoadModules('kna_pbox', -2); } ?> </div> </td> <?php } ?>
insert this
Code:
<td> <div class = "fb_profilebox_modul"> <!-- AddThis Button BEGIN --> <script type="text/javascript">var addthis_pub="4a10988c679efb10";</script> <a href="www.addthis.com/bookmark.php?v=20" onmouseover="return addthis_open(this, '', '[URL]', '[TITLE]')" onmouseout="addthis_close()" onclick="return addthis_sendto()"><img src="http://s7.addthis.com/static/btn/sm-plus.gif" width="16" height="16" alt="Bookmark and Share" style="border:0"/></a><script type="text/javascript" src="http://s7.addthis.com/js/200/addthis_widget.js"></script><!-- AddThis Button END --> </div> </td>

2. way is a HACK, and you must repeat every time you upgrade Kunena Software.

Regards
Last edit: 16 years 11 months ago by @quila.

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

More
16 years 11 months ago #16357 by heliolopes
Hello @quila,

I went for your first solution and It worked pretty well.

Problem solved.

Thanks a Lot!!! Really, you helped a LOT!

Greetings,

Helio

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

Time to create page: 0.227 seconds