I would like customize little bit the entry display of guestbook. I have edit the file default.php located on /public_html/components/com_phocaguestbook/views/phocaguestbook/tmpl .
I found at line 112 and line 165 the follow code who seem manage entry display:
Code: Select all
Line 112
$msgpg .= '<div style="border:1px solid '.$this->css['bordercolor'].';color:'.$this->css['fontcolor'].';margin:10px 0px;">';
$msgpg .= '<h4 style="background:'.$this->css['backgroundcolor'].';color:'.$this->css['fontcolor'].';padding:8px;margin:2px;">';
Line 165
$msgpg .= '</h4>';
$msgpg .= '<div style="overflow:auto; border-left:5px solid '.$this->css['backgroundcolor'].'; padding-left:5px;margin:10px;">' . $values->content . $end_quote .$end_a. '</div>';
$msgpg .= '<p align="right" style="padding-right:10px;"><small style="color:'.$this->css['secondfontcolor'].'">' . JHTML::_('date', $values->date, JText::_( $this->tmpl['date_format'] ) ) . '</small>';
My goal is simply add a line between each entry for make a clear separation and nothing more. I have also remove the code making different color of some element. Now what I would like is to put in BOLD the writer name and subject of entry (instead using h4 header) but I don't see how to do...
Here my modified code with I am happy with it...is just missing the bold effect:
Code: Select all
Line 112
$msgpg .= '<div style="border-bottom:1px solid '.$this->css['bordercolor'].';color:'.$this->css['fontcolor'].';margin:10px 0px;">';
Line 165
$msgpg .= '</h4>';
$msgpg .= '<div style="overflow:auto; border-left:0px solid '.$this->css['backgroundcolor'].'; padding-left:5px;margin:10px;">' . $values->content . $end_quote .$end_a. '</div>';
$msgpg .= '<p align="right" style="padding-right:10px;">' . JHTML::_('date', $values->date, JText::_( $this->tmpl['date_format'] ) ) . '</p>';
Many thank