Please Log in or Create an account to join the conversation.
Bummer... somehow that hack doesn't work for me.. no images show up in articles... did somebody say before this didn't work in mamblog?
This probably won't work in Mamblog because Mamblog does not display Mambots. It should work with regular content items.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Question - how hard would it be to have the avatar image display in line with the content title instead of below it?
Please Log in or Create an account to join the conversation.
Question - how hard would it be to have the avatar image display in line with the content title instead of below it?
q./
Please Log in or Create an account to join the conversation.
designguru wrote:
Question - how hard would it be to have the avatar image display in line with the content title instead of below it?
q./
Yes, very simple. Instead of adding the image to $row->text, add it to $row->title.
[code:1]function CBAuthorBot (&$row, &$params, $page) {[/code:1]
$row is passed by reference (we are working with the actual variable, not a copy) to CBAuthorBot so that it can be modified before printed on the page.
In CBAuthorBot we are modifiying $row->text to place the image at the beginning of the text (Content Item body).
To place the image in the title would be just to modify $row->title instead.
Please Log in or Create an account to join the conversation.