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

This category contains miscellaneous, uncategorised third-party extensions (e.g. JomSocial, Community Builder, etc.) relating to older versions of Kunena that are no longer supported.

This category may also contain a few topics relating to K 1.6 that may have been moved here possibly by mistake.

The topics in this category are for historical interest only. Owing to the structural differences between K 1.6 and K 1.7, the ideas in these topics may not work with later versions and, for that reason, the topics are locked.

Question profile box pms

More
16 years 11 months ago #19314 by softz
Replied by softz on topic Re:profile box pms
I have also done this, but i believe i have done it completely wrong lol.
As i do most stuff BUT it works very well and how i need it to work so im happy with how i did it.

This is i believe an easier way to do this but as i said my not be right

In the 'com_kunena\template\default\plugin\profilebox.php' i added this code at the bottom of the // AFTER LOGIN AREA section in that php File.
Code:
<!-- Message/Update Center section --> <?php // get how many unread message $inboxModel = & CFactory::getModel ( 'inbox' ); $filter['user_id'] = $my->id; $unread = $inboxModel->countUnRead( $filter ); // get how many pending connection $friendModel = & CFactory::getModel ( 'friends' ); $pending = count( $friendModel->getPending( $my->id ) ); ?> <div align="center" class="messagecentre" id="messagecentre"> <a href="<?php echo CRoute::_('index.php?option=com_community&view=inbox'); ?>" class="inbox"><?php echo JText::sprintf('<strong>%d</strong> new messages', $unread); ?></a>&nbsp;&nbsp;&nbsp; <a href="<?php echo CRoute::_('index.php?option=com_community&view=friends&task=pending'); ?>" class="friend"><?php echo JText::sprintf('<strong>%d</strong> new friend requests', $pending); ?></a> </div> <!-- End Of Message/Update Center section -->

This is what it looks like when the user logs in


And what its like when you have mail, you could easily add a lil bit more code to make it more noticeable when you have mail, but im lazy


Well i hope that helped in some way or another

Softz

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

More
16 years 11 months ago #19366 by Spock
Replied by Spock on topic Re:profile box pms
Your way of placing the code you need is fine, it is functional and looks good. The other method gives more flexibility to add whatever module type you want to that particular position (using the joomla! module manager) whether it be a login module, ads module or whatever. This method covers all scenarios.

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

  • don gilbert
  • don gilbert's Avatar
  • New Member
  • New Member
More
16 years 9 months ago #26263 by don gilbert
Replied by don gilbert on topic Re:profile box pms
This is awesome. I love the customization! How can we make this into a plugin?

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

Time to create page: 0.219 seconds