description for meta and bookmarksite on showthread
by
18 Mar 2009
Rating: (1 vote
- 5.00 average)
Hello, I took on a task to make bookmarksite operate with a few more features and ended up also creating data for meta description. The code needs some optimization, but you will get the idea. The point was to get "pagetext" data from the 1st post in the thread to display on showthread.php. In file includes\function.php, find function: " fetch_threadinfo" FIND: PHP Code:
SELECT IF(visible = 2, 1, 0) AS isdeleted,
PHP Code:
SELECT IF(thread.visible = 2, 1, 0) AS isdeleted,
PHP Code:
thread.*
PHP Code:
" . iif($vbulletin->options['threadpreview'] > 0 AND THIS_SCRIPT == 'showthread', 'post.pagetext AS preview, ') . "
PHP Code:
$tachyjoin
PHP Code:
" . iif($vbulletin->options['threadpreview'] > 0 AND THIS_SCRIPT == 'showthread', "LEFT JOIN " . TABLE_PREFIX . "post AS post ON(post.postid = thread.firstpostid)") . "
PHP Code:
WHERE thread.threadid = $threadid
PHP Code:
if($vbulletin->options['threadpreview'] > 0 AND THIS_SCRIPT == 'showthread')
- This value can be added to the meta tag description in the $headerinclude to give each thread something other than $thread['title']. We can also edit showthread.php Find: PHP Code:
$bookmarksite['link'] = str_replace(
PHP Code:
$bookmarksite['link'] = str_replace(
EX: Digg Code:
http://digg.com/submit?phase=2&url={URL}&title={TITLE}&bodytext={DESCRIPTION} |