1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[ASK]Need some PHP Help

Discussion in 'Web Design' started by makingfastcash22, Feb 2, 2011.

  1. makingfastcash22

    makingfastcash22 Senior Member

    Joined:
    Feb 15, 2009
    Messages:
    1,152
    Likes Received:
    178
    Home Page:
    I have a php script that calls an rss feed with a tag named %description% now where ever I place this it posts the content. The problem that I am having is I want to have the content that it pulls via this %description% wrap around an adsense block.

    so that the adsense ads appear to the left.



    I hope that I am describing this correctly.

    Is this possible?

    Thanks
     
  2. gimme4free

    gimme4free Executive VIP Jr. VIP Premium Member

    Joined:
    Oct 22, 2008
    Messages:
    1,884
    Likes Received:
    1,932
    Something like this will insert your adsense after a <br /> has appeared:
    PHP:
    $adsense "<br /><br />ADSENSE CODE GOES HERE<br />";
    $description explode("<br />",$description,2);
    $description $description[0].$adsense.$description[1];
     
  3. syamster

    syamster Newbie

    Joined:
    Nov 20, 2008
    Messages:
    35
    Likes Received:
    3
    also try CSS that will help you.
     
  4. makingfastcash22

    makingfastcash22 Senior Member

    Joined:
    Feb 15, 2009
    Messages:
    1,152
    Likes Received:
    178
    Home Page:
    The probem is this is all the code that I have to work with

    %%DESCRIPTION%%



    Read the rest of this Article Here...

    %%KEYWORD%% Related Articles:-

    %%LINKS%%


    so where it says description above the will post a full article.

    So getting that article to wrap around adsense seems impossible. :(

     
  5. gimme4free

    gimme4free Executive VIP Jr. VIP Premium Member

    Joined:
    Oct 22, 2008
    Messages:
    1,884
    Likes Received:
    1,932
    You must edit the PHP code that inserts %%DESCRIPTION%%. That would be the only way unless the developer changes his code to allow you to input adsense into the description.
     
    • Thanks Thanks x 1
  6. makingfastcash22

    makingfastcash22 Senior Member

    Joined:
    Feb 15, 2009
    Messages:
    1,152
    Likes Received:
    178
    Home Page:
    okay thanks will see if I can hack through the code. ;)