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

  • cinemagrounds
  • cinemagrounds's Avatar Topic Author
  • New Member
  • New Member
More
15 years 9 months ago - 15 years 9 months ago #53280 by cinemagrounds
Add adbrite ads inside kunena forum was created by cinemagrounds
Hi,
I am trying to add adbrite ads in between the post and its replies. Earlier i was successful in getting the google ads displayed, however whenever google ad doesnt get displayed i want the adbrite ad to be displayed.
My website is:
www.cinemagrounds.com

How can i achieve this.
Earlier, i achieved this by adding the following code in view.php file of the template.
// Google AdSense ---> start
if ( $mmm == 1 ) {
echo '<div align="center">'."\n";
echo '<script type="text/javascript"><!--' . "\n";
echo 'google_ad_client = "pub-5023421363133063";' . "\n";
echo "/* my second ad link unit 120x90, created 4/22/10 */\n";
echo 'google_ad_slot = "0632638656";' . "\n";
echo "google_ad_width = 468;\n";
echo "google_ad_height = 60;\n";
echo "//-->\n";
echo "</script>\n";
echo '<script type="text/javascript"' . "\n";
echo 'src=" pagead2.googlesyndication.com/pagead/show_ads.js ">' . "\n";
echo "</script>\n";
echo "</div>\n";
}
// Google AdSense ---> end




Now i want to add adbrite code to the kunena forum, how can i do this:
Here is the ad code that i got from Adbrite:

<!-- Begin: AdBrite, Generated: 2010-07-20 20:20:24 -->
<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 -->
Last edit: 15 years 9 months ago by cinemagrounds.

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

More
15 years 9 months ago #53310 by @quila
Hi,
have you read our documentation about this docs.kunena.com/index.php/Module_Positions

you can do that without modifing core Kunena file. You need to create new modules in Joomla backend and publish them in the positions you see in our doc. kunena_msg_1, kunena_msg_2 ...

Regards
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 #53363 by cinemagrounds
Replied by cinemagrounds on topic Re: Add adbrite ads inside kunena forum
Thankyou for your reply.

Yes i Did see that document. If you see my website, i have used the same concept to place google ads to the left side of the template. (Goggle ads to left of the template). Also the template i have used is a free template that has positions only at the left.

however What i am trying now, is to get the adbrite ads inside Kunena forum article itself.
What I mean here , once I post of article, I want adbrite ad to appear within the article itself.
Is that possible.

for example: Look at this article in the following link, where they have done this:
www.dentalforum.com/forum/showthread.php?t=5565

here in this article, they have article and to the right side it also shows the google ads. Instad of google ads i want adbrite ads to appear. What would be the syntax for that and where would i place such a code.

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

More
15 years 9 months ago #53370 by @quila
now I understnd what you want to do, this is doable with little change in code but question is: You want to show these ads only in first post or in all posts(reply also)? You can add google ads only 3 per page (dont know for adbrite), if you have Topic with 10 replay per page there will be 10 ads??

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 #53388 by cinemagrounds
Replied by cinemagrounds on topic Re: Add adbrite ads inside kunena forum
For now i would like to have the ads,..coming only on the first post of the article...
would like to see them all over the page. this way my page will still look good and will be accroding to the standards of google adsense.

i thought google adsense allowas 3 ad units and 3 link units on each page...
adbrite allows 3 ad units per page..

Basically, i am fresher. I am just exploring on this things. This is what i have understood reading online about adsense and abrite ads...

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 #53568 by cinemagrounds
Replied by cinemagrounds on topic Re: Add adbrite ads inside kunena forum
WILL I HAVE TO DO BIG CODE CHANGE FOR THIS....

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

Time to create page: 0.279 seconds