Announcement

Collapse
No announcement yet.

Images & Url in Meta Description (SEO)

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • [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

  • #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 customization and demonstration site.
    vBulletin 5 Documentation - Updated every Friday. Report issues here.
    vBulletin 5 API - Full / Mobile
    I am not currently available for vB Messenger Chats.

    Comment


    • #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


      • #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 customization and demonstration site.
        vBulletin 5 Documentation - Updated every Friday. Report issues here.
        vBulletin 5 API - Full / Mobile
        I am not currently available for vB Messenger Chats.

        Comment


        • #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


          • #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 Joe D.; Sat 17th Nov '18, 8:40am. Reason: Edit- No such file, ignore.

            Comment


            • #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


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

                Comment


                • #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 21st Nov '18, 1:57pm.

                  Comment


                  • #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...
                    X