This topic is locked

insert code / content within search results?

5/7/2008 1:36:13 PM
PHPRunner General questions
W
willjob author

Just started exploring PHPRunner and I am very impressed!
Question -- Is it possible to add code/content within the search results? What I would like to do is return 20 results per page and after the 10th result would like to add Google ads and then pick right up with the remaining 10 results.
I know just enough php to be dangerous. <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=8404&image=1&table=forumtopics' class='bbc_emoticon' alt=':lol:' /> Thanks in advance for your help!
Tripp

J
Jane 5/8/2008

Tripp,
edit your pages on the Visual Editor tab for this purpose:

  • turn on HTML mode,
  • find this code:
    <!--{/if} - column show--></TR><!--{/foreach}-->


  • and add new row for ads just before.

    Here is a sample:
    {if $row.1recno==10}

    <TR>

    ...

    <TD colspan=10>{doevent name="TableName_Event1"}</TD>

    ...

    {/if}


  • then add your code (ads) to the Event1 event.

W
willjob author 5/8/2008

This worked perfectly! Thanks!
Tripp