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 |
$threadinfo[preview] gives empty result. Have tried modding functions.php 3 times to make sure no typos. Still dosent work. I presume $tachyjoin (is found several places) is the place where it standss alone on the line. 3.7.4 PL
--------------- Added [DATE]1255300169[/DATE] at [TIME]1255300169[/TIME] --------------- For this mod to work "Length of Thread Preview Text" must be greater than zero in Forum DIsplay Options in vboptions. INSTALLED AND THANKS!!!! |
Quote:
|
Something that would be very nice would be a "bloginfo[preview]" - a meta desription for blogs :)
|
.......
|
should I make changes in vb 4.1.1 version or made it default ?
|
Thanks
|
Will this edit work on V4?
|
Can it be done through the hooks?
So we make a product that do so, instead of manual modification! I know how to program the hook amendment automatic template. But I do not know how to modify the code files.! |
thanks alot
|
Going through the edits, I noticed several instances of $tachyjoin in my file. Which one is the right one?
(uninstalled as I cant properly complete the edits yet) |
All times are GMT. The time now is 01:56 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:
|