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 is for users to help other users, to discuss topics that are related to forum administration in general or problems in running Joomla. This is not the place to ask for Joomla support. If you want assistance with Joomla please ask at forum.joomla.org

Question Add adbrite ads inside kunena forum

More
15 years 9 months ago - 15 years 9 months ago #53635 by @quila
Hi,

<td colspan = "2" valign = "top">
<div class = "msgtext"><?php echo $msg_text; ?>
<div style="float:right; width:300px; margin-left:10px;">
<!-- Begin: Message Module Positions -->
<?php
if (JDocumentHTML::countModules('kunena_adbrite_'.$mmm))
{
?>
<div class = "kunena_adbrite_<?php echo $mmm; ?>">
<?php
$document = &JFactory::getDocument();
$renderer = $document->loadRenderer('modules');
$options = array('style' => 'xhtml');
$position = 'kunena_adbrite_'.$mmm;
echo $renderer->render($position, $options, null);
?>
</div>
<?php
}
?>
<!-- Finish: Message Module Positions -->
</div>
</div>


<?php
if (!isset($msg_closed))
{
?>

Insert RED code above to message.php from default_ex template.(should be line 99)

Then create new module in joomla backend, in text area insert your code from Adbrite and publish that module in position "kunena_adbrite_1" and adbrite ads will appear in all topics first messages.

Regards
Last edit: 15 years 9 months ago by @quila.
The following user(s) said Thank You: cinemagrounds

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

  • cinemagrounds
  • cinemagrounds's Avatar Topic Author
  • New Member
  • New Member
More
15 years 9 months ago #53704 by cinemagrounds
Replied by cinemagrounds on topic Re: Add adbrite ads inside kunena forum
Hi,
I added the code in red,to messgae.php file.

Created a new position in templatedetails.xml, with title kunena_adbrite1

so far so good.

I also created new module, of type Custom HTML, but seems like HTML editor is removing all the code of adbrite. only the code shown in red is visible.
I also tired to enter this text as plain text, but it didnt work.

<!-- Begin: AdBrite, Generated: 2010-07-23 23:27:02 --><div><a target="_top" href=" www.adbrite.com/mb/commerce/purchase_for...=1702810&afsid=1 " style="font-weight: bold; font-family: Arial; font-size: 13px;">Your Ad Here


this is original adbrite code:

<!-- Begin: AdBrite, Generated: 2010-07-23 23:27:02 -->
<script type="text/javascript">
var AdBrite_Title_Color = '0000FF';
var AdBrite_Text_Color = '000000';
var AdBrite_Background_Color = 'FFFFFF';
var AdBrite_Border_Color = 'CCCCCC';
var AdBrite_URL_Color = '008000';
try{var AdBrite_Iframe=window.top!=window.self?2:1;var AdBrite_Referrer=document.referrer==''?document.location:document.referrer;AdBrite_Referrer=encodeURIComponent(AdBrite_Referrer);}catch(e){var AdBrite_Iframe='';var AdBrite_Referrer='';}
</script>
<script type="text/javascript">document.write(String.fromCharCode(60,83,67,82,73,80,84));document.write(' src=" ads.adbrite.com/mb/text_group.php?sid=17...='+AdBrite_Referrer+ '" type="text/javascript">');document.write(String.fromCharCode(60,47,83,67,82,73,80,84,62));
<div><a target="_top" href=" www.adbrite.com/mb/commerce/purchase_for...opid=1702810&afsid=1 " style="font-weight:bold;font-family:Arial;font-size:13px;">Your Ad Here

<!-- End: AdBrite -->
the screen now appers like this:
cinemagrounds.com/index.php/forum/News/2...n-attacks-a-Man.html


Is there any specific type module that i need to create for this.

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

More
15 years 9 months ago - 15 years 9 months ago #53727 by @quila
Hi, before create a module go to Joomla Configuration and disable WYSIWYG editor, then create and publish module in kunena_adbrite_1 (you have writed kunena_adbrite1 <- check this) position.

After saving you module you can enable editor in joomla config.

Regards
Last edit: 15 years 9 months ago by @quila.
The following user(s) said Thank You: cinemagrounds

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

  • cinemagrounds
  • cinemagrounds's Avatar Topic Author
  • New Member
  • New Member
More
15 years 9 months ago #54156 by cinemagrounds
Replied by cinemagrounds on topic Re: Add adbrite ads inside kunena forum
sorry for replying late !!!!

Your solution worked like a charm !!!!
I now get ads on first post on of any thread..that serves the purpose....


Thankyou every much !!!!

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

More
15 years 3 months ago - 15 years 3 months ago #82491 by rain
use this method with choosing easy script, not html script
Last edit: 15 years 3 months ago by rain.

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

Time to create page: 0.228 seconds