форум vBSupport.ru > Камчатка > Спец-раздел
  • »
VBsupport перешел с домена .ORG на родной .RU Ура! Пожалуйста, обновите свои закладки - VBsupport.ru
 
 
 
 
fragov
Специалист
 
fragov's Avatar
Default Хак смены META-тегов для разделов форума
0

Не могу найти такого хака. Никто не встречал ничего похожего?
Хотелось бы иметь возможность указывать META-теги keywords и description отдельно для каждого форума.

На vbulletin.org нашел такой, но он для версии 3.0.7, хотя возможно и подойдет, если кто-то может скачать: http://www.vbulletin.org/forum/showthread.php?t=81349
Bot
Yandex Bot Yandex Bot is online now
 
Join Date: 05.05.2005
Реклама на форуме А что у нас тут интересного? =)
 
 
kerk
k0t
 
kerk's Avatar
Default
2

лови...
Attached Files
File Type: txt vBulletin-Keywords-MOD.txt (8.4 KB, 20 views)
 
 
fragov
Специалист
 
fragov's Avatar
Default
0

К сожаленью не подходит для 3.6.х

Добавлено через 18 часов 27 минут
Нашел кажись то, что надо: http://www.vbulletin.org/forum/showthread.php?t=128920

Last edited by fragov : 02-25-2008 at 11:09 PM. Reason: Добавлено сообщение
 
 
kerk
k0t
 
kerk's Avatar
Default
4

Recommended Usage:
Only Text based information should be added in keywords and description for maximum results.


Code:
*** Installation Instructions: (Also attached here)
*** -------------------------

1.     Installing the Plugin:

      Admincp > Plugin System > Manage Products
     Click: Import Product
      Browse: Your computer for downloaded file "product-forum_seo.xml" 
     After selecting the file, click Import button. 

**********************************************************************
2.     Only Template Edit: headinclude


     i)    Edit - headinclude Template:
        **********************************************************************

        Find:
        <meta name="keywords" content="$threadinfo[title], $vboptions[keywords]" />
        <meta name="description" content="<if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>$threadinfo[title] $foruminfo[title_clean]" />

        Replace With:
        <meta name="keywords" content="$foruminfo[forumkeywords],$threadinfo[title],$vboptions[keywords]" />
        <meta name="description" content="$foruminfo[forumdescription]. <if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>$threadinfo[title] $foruminfo[title_clean]" />
        
        **********************************************************************

        Find:
            <meta name="keywords" content="$foruminfo[title_clean], $vboptions[keywords]" />
        <meta name="description" content="<if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>$foruminfo[description_clean]" />

         Replace With:
        <meta name="keywords" content="$foruminfo[forumkeywords],$threadinfo[title],$vboptions[keywords]" />
        <meta name="description" content="$foruminfo[forumdescription]. <if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>$foruminfo[description_clean]" />
And you are done with modification !!
Now, simply Go to > Forum Manager > Edit a forum > Towards the bottom you will find the fields to enter your relevant keywords and description. You can play with the template modification to suit your needs.
Attached Files
File Type: xml product-forum_seo.xml (2.1 KB, 18 views)
File Type: txt readme-first.txt (2.3 KB, 29 views)
 
 
fragov
Специалист
 
fragov's Avatar
Default
0

хитрожопый индеец, а я ипался, искал как переменную $vboptions[keywords] перебить, а он просто добавил свои.
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off




All times are GMT +4. The time now is 03:23 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Loading...