Quote:
Originally Posted by charlesr
Can something be done to the meta description at the same time? I couldn't figure out if the description is generated from a field in the database (couldn't find one) or on the fly from the contents of the first post. How would I figure that out?
Ideally in my simple world it would be as easy as:
Code:
if ($foruminfo['forumid'] == 24 and $type == 'thread')
{
$post['title'] = $post['title'] . ' review';
$thread['description'] = 'A review of ' . $post['title'] . ' - ' . $thread['description'];
}
But obviously not that because there's no description field in thread or post that I can see.
|
Create new plugin
Hook: showthread_complete
Title: ur wish
Php Code:
PHP Code:
if ($foruminfo['forumid'] == 24)
{
$thread['meta_description'] = 'A review of ' . $thread['title'] . ' - ' . $thread['meta_description'];
}