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?
Re:google adsense for fireboard 1.0.4 (1 viewing) (1) Guest
Go to bottom Favoured: 2
TOPIC: Re:google adsense for fireboard 1.0.4
#51110
google adsense for fireboard 1.0.4 3 Months, 2 Weeks ago  
any tips as for which core files I need to modify for google adsense.
sekuta (User)
Fresh Boarder
Posts: 10
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#51126
Re:google adsense for fireboard 1.0.4 3 Months, 2 Weeks ago  
You don't need to edit code. FireBoard has a several module position allready include.
Create a module position on your joomla admin

Joomla admin > Site > Template Manager >Module Positions

Create :
fb_1
fb_2
fb_bottom
fb_top
fb_msg_1 (After first post)
fb_msg_2 (After second post)

You can assign any module on those position.

for google adsense module check joomla extention directory or create new html module, put your google code in text area.

Thanks
greatpixels (Admin)
BoJ Team
Moderator
Posts: 456
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Best of Joomla! Location: USA Birthdate: 1978-10-31
Logged Logged
 
Project Manager : Lead Developer
 
The administrator has disabled public write access.  
#51155
Re:google adsense for fireboard 1.0.4 3 Months, 1 Week ago  
I have joomla 1.5, I got a reply here, saying I wont be able to use the method u had just mentioned. I was hoping to then modify some files.

cheers
sekuta (User)
Fresh Boarder
Posts: 10
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#52071
Re:google adsense for fireboard 1.0.4 2 Months, 2 Weeks ago  
Using Fireboard 1.0.4 and Joomla 1.5.3
I am trying to enable Adsense inside Fireboard.
Adsense clearly works when I publish it to Joomla position like user1 but it doesn't work when I publish it to fb_msg_1 position for use inside fireboard

In components/com_fireboard/template/default/message.php, there is the following lines
<?php
if ($mmm == 1)
{
?>
<div class = "fb_msg_1">
<?php
mosLoadModules('fb_msg_1', -2);
?>
</div>
<?php
}
?>
<?php
}
?>

This generates "<jdoc:include type="modules" name="fb_msg_1" style="xhtml"/> " in html output.
In Joomla 1.5.3, it should be using <jdoc:include type="modules" name="fb_msg_1" style="raw" /> instead of mosLoadModules('fb_msg_1', -2) so I modified the line "<?php mosLoadModules('fb_msg_1', -2);?>" to "<jdoc:include type="modules" name="fb_msg_1" style="xhtml"/>" but the line "<jdoc:include type="modules" name="fb_msg_1" style="xhtml"/>" fails to be parsed.

Why is fireboard producing the raw file instead of a parsed version? Is there somewhere further up in the code where it should be parsed?

Thanks
Darragh
darragh (User)
Fresh Boarder
Posts: 10
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2008/06/17 15:59 By darragh.
 
The administrator has disabled public write access.  
#52845
Re:google adsense for fireboard 1.0.4 2 Months ago  
I would also like to know that.
THE_AI (User)
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#52847
Re:google adsense for fireboard 1.0.4 2 Months ago  
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
darragh (User)
Fresh Boarder
Posts: 10
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2008/07/01 15:13 By darragh.
 
The administrator has disabled public write access.  
#52856
Re:google adsense for fireboard 1.0.4 2 Months ago  
Thanks, I finally made it!
THE_AI (User)
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#54368
Re:google adsense for fireboard 1.0.4 1 Month, 2 Weeks ago  
Any ideea how to make it work with J1.5.X ?

Thanks
kingBT (User)
Gold Boarder
Posts: 166
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.  
#54369
Re:google adsense for fireboard 1.0.4 1 Month, 2 Weeks ago  
Well, I'm using 1.5.4 and this code is working for me
THE_AI (User)
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#54370
Re:google adsense for fireboard 1.0.4 1 Month, 2 Weeks ago  
This hack works for me on Joomla 1.5.3 and Fireboard 1.0.4

Darragh
darragh (User)
Fresh Boarder
Posts: 10
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
Go to top
Powered by FireBoard - Creditsget the latest posts directly to your desktop