Posted on: 10/21/02 10:28am
By: Anonymous (MASTER)
Hi. Dirk.
U've replied to my original message:
http://www.geeklog.net/article.php?story=20021018093113947
I've replaced the variable "data" with "my own names, i have variables as "date" "introtext" etc...i've inserted them into the the "resultcolumn.thtml" template..results show the way i wanted them to show..but now when i enter a keyword..i get 4 same results instead of 1 that i was getting before..can u please help me with this? i've looked over search.php several times but i cant find where i gets 4 same results..u can go here: pcgamers.ru/search.php and try searching "pages" for example..thanks
Search Results Display...#2
Posted on: 10/21/02 10:42am
By: Dirk
Well, it's hard to tell without seeing your changes ...
bye, Dirk
Search Results Display...#2
Posted on: 10/21/02 11:14am
By: Anonymous (MASTER)
Here is the part i've changed:
$searchresults->set_var('start_block_results',
COM_startBlock($LANG09[29]));
if ($nrows_stories + $nrows_comments > 0) {
for ($i=1; $i <= $nrows; $i++) {
if ($A['day'] > $C['day']) {
// print row
$searchresults->set_var('title', '<a href="article.php?story=' . $A['sid'] . '">' . stripslashes($A['title']) . '</a>');
$searchresults->parse('data_cols','resultcolumn',true);
$thetime = COM_getUserDateTimeFormat($A['day']);
$searchresults->set_var('date', $thetime[0]);
$searchresults->parse('data_cols','resultcolumn',true);
$searchresults->set_var('intro', $A['introtext']);
$searchresults->parse('data_cols','resultcolumn',true);
$searchresults->set_var('sid', $A['sid']);
$searchresults->parse('data_cols','resultcolumn',true);
$searchresults->parse('results','resultrow',true);
$searchresults->set_var('data_cols','');
$A = DB_fetchArray($result_stories);