Hi Digital Point Users I want to set two article inline ads. The Theme has only one article inline ad so the Support sent me code to duplicate it but I don't know how to do that. I want to set the article inline ads after 4rth paragraph take a look here http://content.screencast.com/users/tyuiokj/folders/Jing/media/72cd5cb7-80a4-45d2-b682-5d786bcac1cc/2015-06-16_1518.png
First up this seems more of a PHP than a HTML/CSS/design issue, so you might be better off asking over there. Second it would REALLY help if you said WHAT PHP based system you are using -- I SUSPECT that's turdpress, but It's been a few months since I've bothered looking at the train wreck of ineptitude they have the giant pair of brass to call software. Ah, is this that "tagDiv" train wreck? That said, that function looks grossly inefficient with the splitting up paragraphs into a massive array; looks more like a job for substr_count, strpos and str_replace. Count how many occurences of <p> there are, divide it by the number of averts to show rounding down, repeat strpos <p> with an incrementing offset, then replace '<p>' with td_global_blocks:blahblahblah.'<p>' IF I'm reading said function's methodology properly, it should already be able to set however many ads you want to show from the control panel of the CMS... you shouldn't be having to change anything in the codebase.