Paul:
Thanks for reminding.
When you mouse over the page number link, or just click it - do you see "?iframe=1&" statement inside of its URL?
So far I can't understand why it works so. Search script uses $indexphp setting in the same manner as all other scripts.
Just to summarise, I have the following within setup_options.php:
if (!isset($_REQUEST['iframe']
)) $indexphp='index.php?';
else
$indexphp='index.php?iframe=1&';
if ( (!isset($_REQUEST['iframe']
)) or ($_REQUEST['iframe'] != "1") ) $startIndex='index.php';
else
$startIndex='index.php?iframe=1';
The URL to the main site is:
index.php
Clicking the search button gives:
index.php?action=search
Following a search the URL is:
index.php?phrase=[searchter
m]&action=search&searchGo=1&iframe=
Hovering over the page number on the search results screen gives:
index.php?iframe=1&action=search&phrase=[searchterm]&searchGo=1&page=[page num]
Hovering over a result on one of the search pages gives:
index.php?iframe=1&action=vthread&forum=[forum num]&topic=[topic num]
I have replaced the actual numerical data in the URLs above with a description within square brackets.
Not sure if the above info helps to point out where I've gone wrong.