Skip to Content Skip to Menu

Add Kunena forum button

10 years 7 months ago #240781 by fridayshoes
Add Kunena forum button was created by fridayshoes
Is it possible to (easily) either

a. Keep the Kunena tabbed menu above uddeIM?

or

b. Add a 'Back to forum' button on the uddeIM navigation bar (next to inbox,outbox, compose etc) ?


At the moment it feels like Kunena and uddeIM are two different things, I'd like to make them feel like they are part of the same system.

Thanks

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

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
10 years 7 months ago #240784 by slabbi
Replied by slabbi on topic Add Kunena forum button
a) is not possible
b) is possible when patching the code

In includes.php line ~481 uddeIMprintMenu() displays the menu. You can add a link to Kunena if you like. When you have found a suitable solution please post it here, maybe others will find it useful.

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer
The following user(s) said Thank You: fridayshoes

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

10 years 7 months ago #240786 by fridayshoes
Replied by fridayshoes on topic Add Kunena forum button

slabbi wrote: a) is not possible
b) is possible when patching the code

In includes.php line ~481 uddeIMprintMenu() displays the menu. You can add a link to Kunena if you like. When you have found a suitable solution please post it here, maybe others will find it useful.


Okay I found the code:
Code:
function uddeIMprintMenu($myself, $uddeaction, $item_id, $config) { $pathtosite = uddeIMgetPath('live_site'); $my_gid = $config->usergid;


Not sure what I need to change, can you possibly provide and example? It would be a big help.

Best regards

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

  • peronik
  • peronik
  • OFFLINE
  • Posts: 2
  • Thanks: 0
  • Karma: 0
9 years 8 months ago - 9 years 8 months ago #255617 by peronik
Replied by peronik on topic Add Kunena forum button
Hi
Create and add icon name example menu_kunena-link.gif to directory /components/com_uddeim/templates/your templates.

In the file includes.php after
Code:
echo "<li>"; echo "<a href='".uddeIMsefRelToAbs("index.php?option=com_uddeim&task=new&Itemid=".$item_id)."'>"; if ($ config-> == 1 || showmenuicons $ config-> showmenuicons == 2) echo "<img src = '". $ pathtosite. "/ components / com_uddeim / templates /".$ config> templatedir." / images / menu_new.gif' border = '0' alt = '' ._ UDDEIM_COMPOSE. '' /> "; if ($ config-> == 0 || showmenuicons $ config-> showmenuicons == 1) _UDDEIM_COMPOSE echo; echo "</a>"; echo "</ li> \ n"; }

add code
Code:
// Add menu forum Kunena $ cnt = ""; { echo "<li>"; echo "<a href='/forum/recent' />"; if ($ config-> == 1 || showmenuicons $ config-> showmenuicons == 2) echo "<imgsrc='".$pathtosite."/components/com_uddeim/templates/".$config->templatedir."/images/menu_kunena_link.gif' border = '0' alt = '' ._ UDDEIM_KUNENA_LINK. '' /> "; if ($ config-> == 0 || showmenuicons $ config-> showmenuicons == 1) _UDDEIM_KUNENA_LINK echo; echo $ cnt; echo "</a>"; echo "</ li> \ n"; } // End of add menu forum kunena

in your language file, add the formula
DEFINE ('_UDDEIM_KUNENA_LINK', 'Exit this forum');

it works



sorry for my english
Attachments:
Last edit: 9 years 8 months ago by peronik.

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

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
9 years 8 months ago #255768 by slabbi
Replied by slabbi on topic Add Kunena forum button
I have added the code (slightly modified) to uddeIM.

Can you pull the current version of includes.php from the trunk and check it please?
Web access to the trunk is possible (see sticky in this forum).

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

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

9 years 8 months ago #255775 by fridayshoes
Replied by fridayshoes on topic Add Kunena forum button

slabbi wrote: I have added the code (slightly modified) to uddeIM.

Can you pull the current version of includes.php from the trunk and check it please?
Web access to the trunk is possible (see sticky in this forum).

Can only see version 2.7, or am I using the wrong link?

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

Moderators: beatnantslabbikrileon
Powered by Kunena Forum