- Posts: 4
- Thank you received: 1
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
Before posting in this category, please read sticky topics and, as general background,
My Joomla site template makes a mess of Kunena
.
If you have questions about third-party templates, please use the User-written Templates category or contact the author directly. This category should only be used for questions about templates developed and supported by the Kunena project.
If you have questions about third-party templates, please use the User-written Templates category or contact the author directly. This category should only be used for questions about templates developed and supported by the Kunena project.
Question Module under every Post
15 years 4 months ago #79110
by SyNuge
Module under every Post was created by SyNuge
I thought this would be easy but I'm scratching my head over it.
All I want to do is post two modules under every post (/message) on a page. If I only had one message per page the kunena_msg_1 position would work fine but I can't find a way to make this dynamically happen for every message.
On other posts I have seen mention of hacking the threadactions php file but this appears to add the modules to the top of the page as well as under each post and this messes up the layout.
Any ideas gratefully received.
Thanks,
Simon
All I want to do is post two modules under every post (/message) on a page. If I only had one message per page the kunena_msg_1 position would work fine but I can't find a way to make this dynamically happen for every message.
On other posts I have seen mention of hacking the threadactions php file but this appears to add the modules to the top of the page as well as under each post and this messes up the layout.
Any ideas gratefully received.
Thanks,
Simon
Please Log in or Create an account to join the conversation.
15 years 4 months ago #79125
by SyNuge
Replied by SyNuge on topic Re: Module under every Post
Please Log in or Create an account to join the conversation.
15 years 3 months ago - 15 years 3 months ago #79840
by yaksushi
Replied by yaksushi on topic Re: Module under every Post
I can't believe there isn't a plugin for this.... Could you explain how and where you did your hack? I've put a facebook like module into my K2 template by using
before, are you doing something similar?
Code:
<?php jimport('joomla.application.module.helper');
$mods = JModuleHelper::getModules('module_name');
echo JModuleHelper::renderModule($mods[0]); ?>
before, are you doing something similar?
Last edit: 15 years 3 months ago by yaksushi.
Please Log in or Create an account to join the conversation.
15 years 3 months ago #79864
by SyNuge
Replied by SyNuge on topic Re: Module under every Post
Hi,
In the end I modified both message.actions.php (to add the Twitter link) and message.thankyou.php (to add the Facebook link). My thinking was that the Facebook like should show in the same circumstances as the thank you (i.e. you shouldn't be able to "like" your own post).
So my modified code was as follows:
message.actions.php
message.thankyou.php
As you can see from the second file, I am not using "raw" facebook widget code but rather a module called JFBConnect from SourceCoast as this handles users logging into to my site (and Kunena) with their Facebook credentials.
Hope that helps,
Simon
In the end I modified both message.actions.php (to add the Twitter link) and message.thankyou.php (to add the Facebook link). My thinking was that the Facebook like should show in the same circumstances as the thank you (i.e. you shouldn't be able to "like" your own post).
So my modified code was as follows:
message.actions.php
Code:
<div class="kmessage-buttons-row">
<?php if (empty( $this->message_closed )) : ?>
<?php echo $this->message_quickreply; ?>
<?php echo $this->message_reply; ?>
<?php echo $this->message_quote; ?>
<?php echo $this->message_edit; ?>
<?php echo $this->message_moderate; ?>
<?php echo $this->message_move; ?>
<?php echo $this->message_merge; ?>
<?php echo $this->message_split; ?>
<?php echo $this->message_delete; ?>
<?php echo $this->message_permdelete; ?>
<?php echo $this->message_undelete; ?>
<?php echo $this->message_publish; ?>
<?php echo '<br><a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="pQ_dotcom">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>' ?>
<?php else : ?>
<?php echo $this->message_closed; ?>
<?php endif ?>
</div>
message.thankyou.php
Code:
<div class="kpost-thankyou">
<?php echo $this->message_thankyou; ?>
<?php echo '<fb:like href="http://www.psychicquesting.com/index.php?option=com_kunena&func=view&catid=1&id=562&limit=6&limitstart=6&Itemid=31" layout="standard" show_faces="true" width="450" action="like" font="arial" colorscheme="light"></fb:like>' ?>
</div>
As you can see from the second file, I am not using "raw" facebook widget code but rather a module called JFBConnect from SourceCoast as this handles users logging into to my site (and Kunena) with their Facebook credentials.
Hope that helps,
Simon
The following user(s) said Thank You: yaksushi
Please Log in or Create an account to join the conversation.
15 years 3 months ago #79944
by yaksushi
Replied by yaksushi on topic Re: Module under every Post
I use k2 and I like how they do their "Tweet it to your followers" I tried just pulling out of k2 what I thought was the right chunk of code but it doesn't work. It displays correctly but when I click on the tweet this link it takes me back to my home page... 
I tried adding this
It's not processing the link correctly....
I tried adding this
Code:
<span class="itemTwitterLink">
<a title="<?php echo JText::_('Like this? Tweet it to your followers!'); ?>" href="<?php echo $this->item->twitterURL; ?>" target="_blank">
<?php echo JText::_('Like this? Tweet it to your followers!'); ?>
</a>
</span
It's not processing the link correctly....
Please Log in or Create an account to join the conversation.
15 years 3 months ago #79971
by SyNuge
Replied by SyNuge on topic Re: Module under every Post
The standard Twitter widget is not bad. Is it worth testing with that (see my code above) and seeing if you can at least get that working?
Please Log in or Create an account to join the conversation.
Time to create page: 0.236 seconds