Results 1 to 11 of 11

How do I replace default META info

This is a discussion on How do I replace default META info within the General Discussion forums, part of the vBulletin SEO Discussion category; hii.. When we create any custom vbulletin powered page, it adds the default META info for it as the headinclude ...

  1. #1
    Senior Member webwizzy's Avatar
    Real Name
    Vinayak
    Join Date
    Aug 2008
    Location
    India
    Posts
    257
    Liked
    0 times

    How do I replace default META info

    hii..

    When we create any custom vbulletin powered page, it adds the default META info for it as the headinclude template is added to it.

    How do I replace the default META info in the templates with different tags to suit the pages content.

    Thanks

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    168 times
    Hello,

    here you can find an example of how to setup custom metas: help.. google duplicate tags description

  3. #3
    Senior Member webwizzy's Avatar
    Real Name
    Vinayak
    Join Date
    Aug 2008
    Location
    India
    Posts
    257
    Liked
    0 times
    Thanks for the reply sir.

    But is there a way to define the metainfo in the page code itself, so that it works even if one does not have vbseo.

    thanks

  4. #4
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    168 times
    The modification described in that thread doesn't require vBSEO.

  5. #5
    Senior Member webwizzy's Avatar
    Real Name
    Vinayak
    Join Date
    Aug 2008
    Location
    India
    Posts
    257
    Liked
    0 times
    oh okay, that variable confused me.

    But sir, how will it work for custom pages. It nowhere mentions a page name.

    See, for example, I have a page "links.php" and I want its own metainfo (not default vb's), It also has its own sub-pages that would require their own metainfo.

    And editing headinclude template for such a small thing doesn't look good. Is there no way that we can do it by simply adding some code in links.php itself (and not by editing templates or creating plugins at global hook)

    thanks

  6. #6
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    168 times
    There is an example for calendar page below in that thread. If you don't want to modify the template, you should create additional plugin to modify the output content on-the-fly.

  7. #7
    Senior Member webwizzy's Avatar
    Real Name
    Vinayak
    Join Date
    Aug 2008
    Location
    India
    Posts
    257
    Liked
    0 times
    alright, i am trying this. But I have no idea why my plugin is not working AT ALL.

    I am trying to create the plugin at global_start.. i even tried to throw a error, but it didn't. I am sure the plugin is active. Any other hook is working fine except global_start. Tried on two boards.

    thanks

  8. #8
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    gobal_complete will probably be better, that why all the content is rendered at that point and you can replace it via the plugin

  9. #9
    Senior Member webwizzy's Avatar
    Real Name
    Vinayak
    Join Date
    Aug 2008
    Location
    India
    Posts
    257
    Liked
    0 times
    Quote Originally Posted by briansol View Post
    gobal_complete will probably be better, that why all the content is rendered at that point and you can replace it via the plugin
    doing so gives me an error:-

    Fatal error: Call to a member function query_first() on a non-object in /home/public_html/includes/functions.php(5586) : eval()'d code on line 3

    I also tried query_read

    thanks

  10. #10
    Senior Member
    Real Name
    Michael Biddle
    Join Date
    Jan 2007
    Location
    Southern California
    Posts
    7,097
    Liked
    5 times
    Try $db->query_read
    The Forum Hosting - Forum Hosting from the Forum Experts

  11. #11
    Senior Member webwizzy's Avatar
    Real Name
    Vinayak
    Join Date
    Aug 2008
    Location
    India
    Posts
    257
    Liked
    0 times
    Quote Originally Posted by Michael Biddle View Post
    Try $db->query_read
    ya i did and i mentioned that.

Similar Threads

  1. Custom Meta Info
    By woostar in forum vBSEO Features Archive
    Replies: 2
    Last Post: 04-14-2008, 07:19 AM
  2. Sitemap pages, meta info
    By Dave Hybrid in forum General Discussion
    Replies: 4
    Last Post: 01-29-2008, 10:09 AM
  3. Replace the 'META KEYWORDS' Content?
    By soletrader in forum General Discussion
    Replies: 1
    Last Post: 08-21-2006, 09:26 AM

Tags for this Thread

Posting Permissions

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