Best of joomla gives you news, joomla templates, tutorials and websites about Joomla , FireBoard and FireMessage official page.
| No account yet?   |
Welcome, Guest
Please Login or Register.    Lost Password?
FireBoard Manual Latest release discussions Download FireBoard Spread FireBoard!
google adsense for fireboard 1.0.4 (1 viewing) (1) Guest
Go to bottom Favoured: 2
TOPIC: google adsense for fireboard 1.0.4
#54374
Re:google adsense for fireboard 1.0.4 4 Months ago  
@THE_AI,darragh
Yey working for me too, thanks for the hack.
kingBT (User)
FB Quality & Testing Team
Senior Boarder
Posts: 181
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Romania
Logged Logged
 
The best things are the things for free
 
The administrator has disabled public write access.  
#58572
Re:google adsense for fireboard 1.0.4 2 Months ago  
darragh wrote:
The solution is to modify the template in com_fireboard/template/default/message.php
You need to change these lines:
Code:

<?php
if (mosCountModules('fb_msg_1'))
{
?>

    <div class = "fb_msg_1">
        <?php
        mosLoadModules('fb_msg_1', -2);
        ?>
    </div>

<?php
}
?>


To this
Code:


<?php
        if($mmm == 1) {
?>
            <div class = "fb_msg_1">
                <!--<?php
                //mosLoadModules('fb_msg_1', -2);
                //?>-->
            </div>

            //START GOOGLE ADSENSE CODE      
            <script type="text/javascript"><!--
                google_ad_client = "<google publisher id>";
                /* google_ads */
                google_ad_slot = "<adsense id>";
                google_ad_width = 468;
                google_ad_height = 60;
                //-->
            </script>
            <script type="text/javascript"
                src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
            </script>
            //END GOOGLE ADSENSE CODE    
<?php } ?>


You'll need to replace the Google Adsense code with whatever is produced by Google adsense.

Hope this helps
Darragh


Hi guys,

Im am struggeling with this problem for a few days now and i cant seem to manage to get this working.
My site runs adds just fine in several modules but i cant to get it working within the fireboard forum when using the above walktrough.

Could someone please be so kind to send me a working message.php file where i can add my adsense info?

By the way: when I use the above mentioned hack my forum is still working but my topics wil become complete white pages with some user options.

mail me at This e-mail address is being protected from spam bots, you need JavaScript enabled to view it

Thanks in advance , kind regards !
whahalla (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#61350
Re:google adsense for fireboard 1.0.4 2 Weeks ago  
Hello, i canīt use this

Joomla 1.5.7 qith FB 1.0.4

In my message.php I have this code:
Code:

<!-- Begin: Message Module Positions -->

<?php
if (mosCountModules('fb_msg_t'))
{
?>

    <div class = "fb_msg_t">
        <?php
        mosLoadModules('fb_msg_t', -2);
        ?>
    </div>

<?php
}
?>

<?php
if (mosCountModules('fb_msg_1'))
{
?>
<?php
    if ($mmm == 1)
    {
?>
            <div class = "fb_msg_1">
                <?php
                mosLoadModules('fb_msg_1', -2);
                ?>
            </div>
<?php
    }
?>

<?php
}
?>

<?php
if (mosCountModules('fb_msg_2'))
{
?>

<?php
    if ($mmm == 2)
    {
?>

            <div class = "fb_msg_2">
                <?php
                mosLoadModules('fb_msg_2', -2);
                ?>
            </div>

<?php
    }
?>

<?php
}
?>

<?php
if (mosCountModules('fb_msg_b'))
{
?>

    <div class = "fb_msg_b">
        <?php
        mosLoadModules('fb_msg_b', -2);
        ?>
    </div>

<?php
}
?>
<!-- Finish: Message Module Positions -->



Can say me how to modify this to put Adsense after first post?

Many thanks.
juanma (User)
Junior Boarder
Posts: 73
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2008/11/08 02:45 By juanma.
 
The administrator has disabled public write access.  
Go to top