Welcome to Geeklog, Anonymous Wednesday, November 27 2024 @ 05:31 pm EST

Geeklog Forums

Search Results Display...#2


MASTER

Anonymous
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
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Well, it's hard to tell without seeing your changes ... bye, Dirk
 Quote

MASTER

Anonymous
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);
 Quote

All times are EST. The time is now 05:31 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content