[ASK]Need some PHP Help

makingfastcash22

Senior Member
Joined
Feb 15, 2009
Messages
1,159
Reaction score
180
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
 
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];
 
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. :(

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];
 
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.
 
okay thanks will see if I can hack through the code. ;)
 
Back
Top