Free one month ads space, if help me to setup coop ads.

Discussion in 'Co-op Advertising Network' started by 2003m2003, Apr 27, 2005.

  1. #1
    I am not going to sell the weight, I think this is legal (if not let me know, if this a wrong forum please move)

    I have directory site (use dmoz data) with PR4 index page and 11,000 Google index pages. I was trying to place coop ads but it seems something (really I can’t understand) making a problem. Ads won’t appear in the site. I try several and read here and post here, didn't work.

    If somebody can solve this, I will offer one month to run his ads in the site, I hope it will make about 50k or more weight.
     
    2003m2003, Apr 27, 2005 IP
  2. SEbasic

    SEbasic Peon

    Messages:
    6,317
    Likes Received:
    318
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I think it should be 54 (Not sure though)

    Post the issues and maybe we can help :)
     
    SEbasic, Apr 27, 2005 IP
  3. 2003m2003

    2003m2003 Well-Known Member

    Messages:
    863
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    138
    #3
    Thank you SEbasic for kind words, here is my site http://dir.thelanka.com/index.php
    I place two files, php and txt and gave permission. and added .htaccess. But still ads won't apper. What can be the problem?
     
    2003m2003, Apr 28, 2005 IP
  4. SEbasic

    SEbasic Peon

    Messages:
    6,317
    Likes Received:
    318
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Are you getting nothing at all?
    No errors or anything?
     
    SEbasic, Apr 28, 2005 IP
  5. T0PS3O

    T0PS3O Feel Good PLC

    Messages:
    13,219
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Also check your error logs to see if anything shows up there.
     
    T0PS3O, Apr 28, 2005 IP
  6. 2003m2003

    2003m2003 Well-Known Member

    Messages:
    863
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    138
    #6
    No, I am not getting anything, no error message or anything. I am tring to find error long in my H-sphere control panel, seems it doesn't provide that.
     
    2003m2003, Apr 28, 2005 IP
  7. SEbasic

    SEbasic Peon

    Messages:
    6,317
    Likes Received:
    318
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Where abouts in the template are you trying to place the links?

    In the Footer?

    Edit...

    I'm seeing this being output on the page...

    <?php
    ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    include ('ad_network_225.php');
    echo $ad_network;
    ?>

    It's like it's not getting parsed as php...

    Did you use an include to place that code on the page.
     
    SEbasic, Apr 28, 2005 IP
  8. 2003m2003

    2003m2003 Well-Known Member

    Messages:
    863
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    138
    #8
    Yes, good point, my code is

    <?php
    ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    include ('ad_network_225.php');
    echo $ad_network;
    ?>

    what was the wrong, that is waht I got from my control panel.
     
    2003m2003, Apr 28, 2005 IP
  9. SEbasic

    SEbasic Peon

    Messages:
    6,317
    Likes Received:
    318
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Yeah, but have you used an include on your main template to include the

    <?php
    ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    include ('ad_network_225.php');
    echo $ad_network;
    ?>

    Bit of code.
     
    SEbasic, Apr 28, 2005 IP
  10. 2003m2003

    2003m2003 Well-Known Member

    Messages:
    863
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    138
    #10
    there is file called footer.tpl where I include footer codes including this coop code. do you think that is the problem?
     
    2003m2003, Apr 28, 2005 IP
  11. 2003m2003

    2003m2003 Well-Known Member

    Messages:
    863
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    138
    #11
    This is the all code in footer.tpl file

    
    <p>
     
     
    </TD>
                </TR>
              </TABLE>
    
    </TR>
          <TR>   
    <TD align="center" colspan="2"> <IMG src="http://www.thelanka.com/files/green_px.gif" height="5" width="750">
         </TR>
          <TR>        
            </TD>
          </TR>
          <TR>
      <TD align="center" colspan="2" background="http://www.thelanka.com/files/blue_light.gif" class="txt"><I>
    <font size="1">
    <p><b>
    
    
    </I></TD>
     </TD>
    
    </TR>
          <TR>   
    <TD align="center" colspan="2"> <IMG src="http://www.thelanka.com/files/green_px.gif" height="5" width="750">
         </TR>
          <TR>        
    <TD align="center" colspan="2" background="http://www.thelanka.com/files/blue_light.gif" class="txt"><I>&copy; Copyright Thelanka.com</I></TD>
          </TR>
        </TABLE>
    
     </BODY>
    
    </HTML>
    
    
    [odp_attribution]
    [copyright]
    
    <?php
    	ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    	include ('ad_network_225.php');
    	echo $ad_network;
    ?>
    
    
    </body>
    </html>
    
    
    Code (markup):
     
    2003m2003, Apr 28, 2005 IP
  12. SEbasic

    SEbasic Peon

    Messages:
    6,317
    Likes Received:
    318
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Yeah, I'm having the same issue at the moment on one of my sites...

    Because I am storing the Co-op include code within one of the template includes (footer.html for me), it's not being parsed by php...

    If you include this in your .HTaccess file...

    AddType application/x-httpd-php .php .htm .html .tpl

    It May help (I doubt it but it's worth a try)...
     
    SEbasic, Apr 28, 2005 IP
  13. T0PS3O

    T0PS3O Feel Good PLC

    Messages:
    13,219
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    0
    #13
    That won't work. You'll have to find out how your script outputs code. Than gel the Co-op code in there.

    The footer.tpl will end up looking like
    </HTML>


    [odp_attribution]
    [copyright]
    [co-op]

    It's a pain with those templated systems and all seem to be different.
     
    T0PS3O, Apr 28, 2005 IP
  14. SEbasic

    SEbasic Peon

    Messages:
    6,317
    Likes Received:
    318
    Best Answers:
    0
    Trophy Points:
    0
    #14
    Hmmmmm... I'm stuck on this one then...

    Just can't get it to do it's thing...
     
    SEbasic, Apr 28, 2005 IP
  15. 2003m2003

    2003m2003 Well-Known Member

    Messages:
    863
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    138
    #15
    Me too...I just try to ad co_op.tpl file and place code there, not working. it seems complicated.
     
    2003m2003, Apr 28, 2005 IP
  16. T0PS3O

    T0PS3O Feel Good PLC

    Messages:
    13,219
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    0
    #16
    It looks similar to what IPB boards do.

    You will find code somewhere with a regexp rewrite of [copyright] etc. That's where [copyright] is replaced with the actual text. You'll have to find where that originates and create a [co-op] 'variable' that equates to the output of ad_network_xxx.php . It's bloody annoying.

    Most of those scripts have a forum though where you can ask about external php includes.

    Actually, the way I did it with IPB was to just find the copyright code and added the co-op code. See

    http://co-op-faq.blogspot.com/2005/04/invision-power-board-setup.html

    for inspiration. That way you don't have to define a new 'variable' called [co-op] and saves you on the regexp deal. Just extend the copyright with .= $ad_network;
     
    T0PS3O, Apr 28, 2005 IP
  17. 2003m2003

    2003m2003 Well-Known Member

    Messages:
    863
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    138
    #17
    Ok, now it seems working, I added

    include ('ad_network_225.php');
    $MainCopyright = "$ad_network";

    some where in the codes. thanks guys.

    But got 0 weight, that is another problem.
     
    2003m2003, Apr 28, 2005 IP
  18. T0PS3O

    T0PS3O Feel Good PLC

    Messages:
    13,219
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    0
    #18
    T0PS3O, Apr 28, 2005 IP
  19. 2003m2003

    2003m2003 Well-Known Member

    Messages:
    863
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    138
    #19
    2003m2003, Apr 28, 2005 IP
  20. T0PS3O

    T0PS3O Feel Good PLC

    Messages:
    13,219
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    0
    #20
    T0PS3O, Apr 28, 2005 IP