1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Joomla

Discussion in 'Co-op Advertising Network' started by lordmenace, Jul 26, 2006.

  1. #1
    How can I get the Co-Op to work with my Joomla site? Is it not supported, it runs pooff of PHP and MYSQL
     
    lordmenace, Jul 26, 2006 IP
  2. pixads

    pixads Well-Known Member

    Messages:
    2,015
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    145
    #2
    I run the coop with joomla
    You can put the code either in your footer file or at the end of the template's index
     
    pixads, Jul 27, 2006 IP
  3. MattUK

    MattUK Notable Member

    Messages:
    6,950
    Likes Received:
    377
    Best Answers:
    0
    Trophy Points:
    275
    #3
    Yes, just put the code in the HTML of your template. I've run it with Joomla sites before without any problems.
     
    MattUK, Jul 27, 2006 IP
  4. lordmenace

    lordmenace Well-Known Member

    Messages:
    541
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    140
    #4
    Ah ok. Too late I ended up getting a mambo module that does it for me.:)
     
    lordmenace, Aug 2, 2006 IP
  5. Ballz

    Ballz Well-Known Member

    Messages:
    649
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    125
    #5
    could u tell me the name of the module? I tried co op on mine.. but had the problems...
     
    Ballz, Aug 2, 2006 IP
  6. lordmenace

    lordmenace Well-Known Member

    Messages:
    541
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    140
  7. cahyoaja

    cahyoaja Peon

    Messages:
    70
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    well, i still have trouble putting the ads.

    this is my template index.php:
    <?php
    /**
     * @copyright	Copyright (C) 2005 - 2009 RocketTheme, LLC - All Rights Reserved.
     * @license		GNU/GPL, see LICENSE.php
    **/
    defined( '_JEXEC' ) or die( 'Restricted access' );
    define( 'YOURBASEPATH', dirname(__FILE__) );
    
    $color_style			= $this->params->get("colorStyle", "dark");
    $template_width 		= $this->params->get("templateWidth", "962");
    $leftcolumn_width		= $this->params->get("leftcolumnWidth", "210");
    $rightcolumn_width		= $this->params->get("rightcolumnWidth", "210");
    $leftcolumn_color		= $this->params->get("leftcolumnColor", "color2");
    $rightcolumn_color		= $this->params->get("rightcolumnColor", "color1");
    $mootools_enabled       = ($this->params->get("mootools_enabled", 1)  == 0)?"false":"true";
    $caption_enabled        = ($this->params->get("caption_enabled", 1)  == 0)?"false":"true";
    $rockettheme_logo       = ($this->params->get("rocketthemeLogo", 1)  == 0)?"false":"true";
    
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
    <head>
    <meta name="google-site-verification" content="a15l8w3t40K1TvBGZsQOudYZ2sZXPXALhnenozgx2hw" />
    <jdoc:include type="head" />
    <?php
    require(YOURBASEPATH . DS . "rt_utils.php");
    ?>
    <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/rt_afterburner_j15/css/<?php echo $color_style ?>.css" type="text/css" />
    <!--[if lte IE 6]>
    <script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/rt_afterburner_j15/js/ie_suckerfish.js"></script>
    <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/rt_afterburner_j15/css/styles.ie.css" type="text/css" />
    <![endif]-->
    <!--[if lte IE 7]>
    <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/rt_afterburner_j15/css/styles.ie7.css" type="text/css" />
    <![endif]-->
    </head>
    <body>
    <script type="text/javascript">
    
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-16612616-1']);
      _gaq.push(['_trackPageview']);
    
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
      })();
    
    </script>
    <div class="background"></div>
    <div id="main">
    	<div id="wrapper" class="foreground">
    	    <div id="header">
        		<jdoc:include type="modules" name="top" style="afterburner" />		
        	    <a href="<?php echo $this->baseurl ?>" id="logo"></a>
    		</div>
    		<div id="nav">
    		    <jdoc:include type="modules" name="nav" style="none" />
    		</div>
    		<div id="message">
    		    <jdoc:include type="message" />
    		</div>
    		<?php if ($this->countModules('showcase')) : ?>
    		<div id="showcase" class="dp100">
    			<div class="background"></div>
    			<div class="foreground">
    		    	<jdoc:include type="modules" name="showcase" style="none" />
    		    </div>
    		</div>
    		<?php endif; ?>
    		<jdoc:include type="modules" name="advertisement" style="afterburner" />
            <div id="main-content" class="<?php echo $col_mode; ?>">
                <div id="colmask" class="ckl-<?php echo $leftcolumn_color; ?>">
                    <div id="colmid" class="cdr-<?php echo $rightcolumn_color; ?>">
                        <div id="colright" class="ctr-<?php echo $rightcolumn_color; ?>">
                            <div id="col1wrap">
    							<div id="col1pad">
                                	<div id="col1">
    									<?php if ($this->countModules('breadcrumb')) : ?>
                                        <div class="breadcrumbs-pad">
                                            <jdoc:include type="modules" name="breadcrumb" />
                                        </div>
    									<?php endif; ?>
    									<?php if ($this->countModules('user1 or user2 or user3')) : ?>
    									<div id="mainmods" class="spacer<?php echo $mainmod_width; ?>">
    										<jdoc:include type="modules" name="user1" style="afterburner" />
    										<jdoc:include type="modules" name="user2" style="afterburner" />
    										<jdoc:include type="modules" name="user3" style="afterburner" />
    									</div>
    									<?php endif; ?>
                                        <div class="component-pad">
                                            <jdoc:include type="component" />
                                        </div>
    									<?php if ($this->countModules('user4 or user5 or user6')) : ?>
    									<div id="mainmods2" class="spacer<?php echo $mainmod2_width; ?>">
    										<jdoc:include type="modules" name="user4" style="afterburner" />
    										<jdoc:include type="modules" name="user5" style="afterburner" />
    										<jdoc:include type="modules" name="user6" style="afterburner" />
    									</div>
    									<?php endif; ?>
    	                            </div>
    							</div>
                            </div>
    						<?php if ($leftcolumn_width != 0) : ?>
                            <div id="col2" class="<?php echo $leftcolumn_color; ?>">
                            	<jdoc:include type="modules" name="left" style="afterburner" />
                            </div>
    						<?php endif; ?>
    						<?php if ($rightcolumn_width != 0) : ?>
                            <div id="col3" class="<?php echo $rightcolumn_color; ?>">
                            	<jdoc:include type="modules" name="right" style="afterburner" />
                            </div>
    						<?php endif; ?>
                        </div>
                    </div>
                </div>
            </div>
    		<?php if ($this->countModules('user7 or user8 or user9')) : ?>
    		<div id="mainmods3" class="spacer<?php echo $mainmod3_width; ?>">
    			<jdoc:include type="modules" name="user7" style="afterburner" />
    			<jdoc:include type="modules" name="user8" style="afterburner" />
    			<jdoc:include type="modules" name="user9" style="afterburner" />
    		</div>
    		<?php endif; ?>
    		<?php if ($this->countModules('bottom')) : ?>
    		<div id="footer">
    			<div class="footer-pad">
                    <jdoc:include type="modules" name="bottom" style="none" />
                </div>
    		</div>
    		<?php endif; ?>
    		<?php if ($rockettheme_logo=="true") : ?>
    		<a href="http://www.rockettheme.com"><span id="logo2"></span></a>
    		<?php endif; ?>
    		<jdoc:include type="modules" name="footer" style="afterburner" />
    		<jdoc:include type="modules" name="debug" style="none" />
    	</div>
    </div>
    </body>
    </html>
    Code (markup):
    and this is my footer.php:
    <?php
    /**
    * @version		$Id: footer.php 14401 2010-01-26 14:10:00Z louis $
    * @package		Joomla
    * @copyright	Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
    * @license		GNU/GPL, see LICENSE.php
    * Joomla! is free software. This version may have been modified pursuant
    * to the GNU General Public License, and as distributed it includes or
    * is derivative of works licensed under the GNU General Public License or
    * other free or open source software licenses.
    * See COPYRIGHT.php for copyright notices and details.
    */
    
    // no direct access
    defined( '_JEXEC' ) or die( 'Restricted access' );
    
    $version = new JVersion();
    
    // NOTE - You may change this file to suit your site needs
    ?>
    <div align="center">
    	&copy; <?php echo JHTML::_('date',  'now', '%Y' ) . ' ' . $mainframe->getCfg('sitename'); ?>
    </div>
    
    <div align="center">
    </div>
    
    Code (markup):
    where EXACTLY should i put the code?

    i use joomla 1.5.17
     
    Last edited: Jun 23, 2010
    cahyoaja, Jun 23, 2010 IP