Is it possible to make different row.html templates for different categories?
Just a general question.
Is it possible to make different row.html templates for different categories?
Just a general question.
Hi Hart_House, you can do it by hacking the code.
It's very simple. Just edit browse.php3 line 168
Something like this:
PHP Code:if($cat=10) $rows_template = "rows_10.html";
ifelse($cat=14) $rows_template = "rows_14.html";
ifelse($cat=42) $rows_template = "rows_42.html";
else $rows_template = "rows.html";
$rows .= EvalTemplate($template_path.$rows_template,
"\$number,\$link_id,\$title,\$date,\$unique_name,\$category_path,".
"\$description,\$hits,\$votes,\$rating,\$url,\$bid,".
"\$new,\$hot,\$top_rated,\$pick,\$contact_name,\$email".$templ_fields);
$rows .= "\n";
do you also have to edit the browse.html file by any chance?
no need to edit browse.php3 and browse.html
Hey Dody,
I changed the "ifelse" statement into "elseif" and it worked.
I'm not sure why, the "ifelse" statement wasn't working.
For everyone that's interested in this hack, you also have to edit your search.php3 file if you want the different rows.html templates to show up in a search.
Last edited by Hart_House; 09-04-2001 at 06:29 AM.