- Posts: 1663
- Thank you received: 201
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
Question Add adbrite ads inside kunena forum
Insert RED code above to message.php from default_ex template.(should be line 99)<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))
{
?>
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
Please Log in or Create an account to join the conversation.
- cinemagrounds
-
Topic Author
- New Member
-
- Thank you received: 0
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.
After saving you module you can enable editor in joomla config.
Regards
Please Log in or Create an account to join the conversation.
- cinemagrounds
-
Topic Author
- New Member
-
- Thank you received: 0
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.
Please Log in or Create an account to join the conversation.