Kunena 7.0.6 & Kunena 6.4.12 – Security Updates Released

The Kunena team has announce the arrival of Kunena 7.0.6 [K 7.0.6] 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.

The Kunena team is also pleased to announce the twelfth version of Kunena 6.4, a native Joomla extension for Joomla! 5.0, 5.1, 5.2, 5.3, 5.4 and 6.0.

If you are having problems then, for your own benefit, it would save us all a lot of time if you would kindly post your configuration report when you ask for help from this forum. If you do not post your configuration report we will not ask you for it but you will probably not get your problem solved, either.

Question Need hack to place ad inside 1st post, 5th, and/or last

More
11 years 4 months ago #161753 by horseguards
Hello,

I am moving from phpBB to Kunena, and in my previous forum I had a hack to show a 300x250 banner inside the first post, the 5th and/or the last post of a thread.

Like this awesomescreenshot.com/0f24atwm54

I don't want the ad under the post, I want it inside, like in the image.

Could anyone be so kind as to show me how to do it in Kunena?

Thanks!

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

More
11 years 4 months ago #161759 by 810
components\com_kunena\template\yourtemplate\html\topic\default_message.php line 16
replace this to:
Code:
<?php if ($this->message->replynum == 1 || $this->message->replynum == 5 || $this->message->id == $this->topic->last_post_id) : echo KunenaHtmlParser::parseBBCode ($this->message->message, $this).'<p>test</p>'; else : echo KunenaHtmlParser::parseBBCode ($this->message->message, $this); endif; ?>

and <p>test</p> to your wanted code
The following user(s) said Thank You: horseguards

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

More
11 years 4 months ago #161857 by horseguards
Great!!!!!!

thanks a lot!!

I am sorry but I will abuse of your generosity: That is for one same ad. How can I do if I want to put a different add in each post?

Thank a lot, great help!!

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

More
11 years 4 months ago #161858 by 810
you can change <p>test</p> to $this->displayModulePosition ( 'kunena_ads' )

And then create a banner module on the kunena_ads position. And set the banner to random.

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

More
11 years 4 months ago #161913 by horseguards
I use the latest version of Revive-Adserver (used to be named OpenX), and tried both iFrames and JavaScript and none of them worked.

This is what I get with either awesomescreenshot.com/0724cm9qf7

Any ideas?

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

More
11 years 4 months ago #161914 by rich
Enable the debug mode and the error message should be more specific.

Important! Always create a backup before you make any changes to your website!

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

Time to create page: 0.243 seconds