Images & Url in Meta Description (SEO)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alano
    New Member
    • Oct 2018
    • 18
    • 4.2.x

    [Forum] Images & Url in Meta Description (SEO)

    Hi,

    I'm facing a small issue that Google and other search engines don't appreciate at all.

    In my forum, most of my threads start with a picture, then the text.

    The problem is that when we look on search engines results, it looks like that :




    Is there a way I can edit the meta description process so that no links or img src get taken into account when the description is generated?

    Thanks
  • Wayne Luke
    vBulletin Technical Support Lead
    • Aug 2000
    • 73981

    #2
    There is no interface to manually edit the meta description in vBulletin 4. You would need to modify the code to do what you want.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment

    • alano
      New Member
      • Oct 2018
      • 18
      • 4.2.x

      #3
      Yes that's what I ask, i can not manually edit all my +100k threads description, so if you know how can I add those conditions to not take into account <img> or urls in those descriptions?

      Comment

      • Wayne Luke
        vBulletin Technical Support Lead
        • Aug 2000
        • 73981

        #4
        Custom coding such as this is outside the scope of the support we provide. All I can suggest is to add text before your images and/or URLs.
        Translations provided by Google.

        Wayne Luke
        The Rabid Badger - a vBulletin Cloud demonstration site.
        vBulletin 5 API

        Comment

        • alano
          New Member
          • Oct 2018
          • 18
          • 4.2.x

          #5
          Ok may i know which file is responsible of the meta description parameters, so that i edit myself the php code and try to add my conditions?

          Comment

          • BirdOPrey5
            Senior Member
            • Jul 2008
            • 9613
            • 5.6.3

            #6
            Look for the code
            Code:
            $thread['meta_description']
            in showthread.php and /includes/get_thread.php. Though it may be better to do as a plugin, editing files is an absolute last case scenario.
            Last edited by BirdOPrey5; Sat 17 Nov '18, 7:40am. Reason: Edit- No such file, ignore.

            Comment

            • alano
              New Member
              • Oct 2018
              • 18
              • 4.2.x

              #7
              Hi,

              Sorry for late reply, but I can't seem to find the /includes/get_thread.php , are you sure it's available for vbulletin 4.2.0 ?

              Thanks

              Comment

              • BirdOPrey5
                Senior Member
                • Jul 2008
                • 9613
                • 5.6.3

                #8
                It would appear get_thread.php is in the /forumrunner/ directory, not includes, you can safely ignore it. Sorry.

                Comment

                • alano
                  New Member
                  • Oct 2018
                  • 18
                  • 4.2.x

                  #9
                  Hi,

                  I've finally managed to get a function that seems to work. Do you know how can I use it through a plugin instead of editing the showthread.php file?
                  Last edited by alano; Wed 21 Nov '18, 12:57pm.

                  Comment

                  • BirdOPrey5
                    Senior Member
                    • Jul 2008
                    • 9613
                    • 5.6.3

                    #10
                    You would need to check the showthread.php file and see if there is any hook in the code where you would want this function to run. If there is you can put the code in the plugin, you probably would just make it code that edits $description rather than a function, but that is just details. Anywhere there is a plugin hook, any code you place on that hook will execute as if it was located in the file at the location of the hook.

                    Comment

                    Related Topics

                    Collapse

                    Working...