Cell xfields contains several references in this way. audio|vip.mp3||image|vip.jpg||wave|19.jpg
If I output this way ".$row['xfields']." the entire cell is displayed.
How to display only the image vip.jpg
Full code
$sql = $db->query("SELECT * FROM ".PREFIX."_post ORDER BY id DESC"); while ($row = $db->get_row($sql)) { $row['date'] = strtotime($row['date']); if ($config['allow_alt_url'] == "yes") $rat .= "<div class=\"rate\"><a {$go_page}href=\"".$config['http_home_url'].date('Y/m/d/', $row['date']).$row['alt_name'].".html\">".$row['tags']." - ".$row['title']."</a></div>"; else $rat .= "<div class=\"rate\"><a {$go_page}href=\"".$config['http_home_url'].date('Y/m/d/', $row['date']).$row['alt_name'].".html\">".$row['tags']." - ".$row['title']."</a></div>"; After $rat .= " Need to output
echo explode('|', $row['xfields'])[4];....... but it is better not to keep it that way, IMHO - Alexey Shimansky$rat .= "- steep