Results 1 to 1 of 1

Thread: Custom meta tags per entry

  1. #1

    Default Custom meta tags per entry

    Have looked all through the forum and I couldn't find a real solution to show your own meta tags per entry. But thanks to a few posts I succeeded in doing so. The generate-your-meta-tags-on-showentry-automaticaly feature is nice, but my experience is that it will show words which you won't want to see displayed on your meta tag.

    Make sure you enabled the tag/keywords feature. Next, create a new plugin with the hook vba_dyna_showentry_start. And use the following php code:

    $headinclude = str_replace(
        '<meta name="keywords" content="' . $vbulletin->options['description'] . '" />', 
        '<meta name="keywords" content="' . $vba_dyna->_entry['keywords'] . '" />',
    Check any entry with filled tags/keywords and you'll notice the custom meta tags.

    Alternatively you could use a similar plugin for your meta description, but you'll need a custom field for it. Replace the keywords variable for fieldX, with X being the number of your custom field. Fill the field and you'll change the meta description. Also change the keywords sentence in description and in the vbulletin variable ('description').

    You can also use your entry title to change it, by replacing keywords with title. And there are more more variables to choose out, although only tags and custom fields will give you the freedom to control every single word.
    Last edited by Moonz0r; 10-27-2008 at 06:57 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Generate Meta Tags From Entry Content / HTML issue
    By tfw2005 in forum Troubleshooting & Problems
    Replies: 2
    Last Post: 09-02-2008, 10:28 AM
  2. How can i set meta tags?
    By vnairp11 in forum "How Do I..." Questions
    Replies: 7
    Last Post: 09-09-2007, 11:32 AM
  3. Meta tags
    By attroll in forum Feedback & Suggestions
    Replies: 5
    Last Post: 03-16-2007, 01:06 PM
  4. meta tags?
    By halpern in forum "How Do I..." Questions
    Replies: 1
    Last Post: 05-27-2006, 12:47 PM
  5. Customize meta tags
    By bangthebook in forum "How Do I..." Questions
    Replies: 3
    Last Post: 06-21-2005, 10:03 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts