description for meta and bookmarksite on showthread
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:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
- 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:
PHP Code:
EX: Digg Code:
http://digg.com/submit?phase=2&url={URL}&title={TITLE}&bodytext={DESCRIPTION} |
Will this work on 3.6.12?
|
Possibly since its just PHP edits. You would just need to make a backup of your files in case one of these lines doesn't coincide with the 3.6.12 files
|
WOW !!
this is what I am search ing about I will try if it work you should have the Nobel prize in coding --------------- Added [DATE]1252121513[/DATE] at [TIME]1252121513[/TIME] --------------- sorry it did not work plz revise it plz I need it so much |
Did you then add something to your meta tags in headinclude? Exactly what did you add there?
|
ofcourse i did
I put the $thread['preview'] in meta description may code is : <if condition="$show['threadinfo']"> <meta name="keywords" content="<if condition="$threadinfo['taglist']">$threadinfo[taglist], </if>$foruminfo[forumkeywords], $threadinfo[prefix_plain_html] $threadinfo[title]"/> <meta name="description" content="<if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>$thread[preview],$threadinfo[prefix_plain_html] $threadinfo[title] من $foruminfo[title_clean]" /> IT DID NOT WORK :( |
You need to use the variable $threadinfo, not $thread.
|
Fixed :)
- Thanks Lynne for the heads up on the typeo |
it worked like a charm using $threadinfo[preview] :up::up:
THANKS Lynne THANKS Zachariah THANKS A LOT , you do not know how desprate I was to make this happen you may know lynn Because of my "duplicates" :D:D |
Was having a little trouble until I noticed this post on another thread :up:
https://vborg.vbsupport.ru/showpost....1&postcount=10 |
All times are GMT. The time now is 06:29 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|