• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
    • Wiki
    • Support
      • Manage Subscriptions
      • FAQ
      • Support For
        • VaultWiki 4.x Series
        • VaultWiki.org Site
    • What's New?
    • Buy Now
    • Manual
    • 
    • Support
    • VaultWiki 4.x Series
    • Bug
    • VW link embedding does not parse usernames, display views, rating, number of comments.

    1. Welcome to VaultWiki.org, home of the wiki add-on for vBulletin and XenForo!

      VaultWiki allows your existing forum users to collaborate on creating and managing a site's content pages. VaultWiki is a fully-featured and fully-supported wiki solution for vBulletin and XenForo.

      The VaultWiki Team encourages you to join our community of forum administrators and check out VaultWiki for yourself.

    Issue: VW link embedding does not parse usernames, display views, rating, number of comments.

    • Issue Tools
      • View Changes
    1. issueid=6484 4 Weeks Ago 1:31 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      VW link embedding does not parse usernames, display views, rating, number of comments.

      If I post the URL to a vaultwiki page in xenforo then the link will be embedded. But the list of contributors does not display. Instead it displays the user ID's. i.e. numbers instead of names.
      It also does not display the correct number of comments. Instead it always displays there are 0 comments.
      it displays reactions, but no rating.
      No views are displayed.

      See thread 359719 on my site.
    Issue Details
    Issue Number 6484
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category BB-Code Parsing
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 4.1.9
    Fixed Version 4.1.10
    Milestone (none)
    Software DependencyXenForo 2.x
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. 4 Weeks Ago 1:24 AM
      pegasus pegasus is offline
      VaultWiki Team
      The list of contributors does not display in the area list for that page either, so at least the behavior is consistent. Considering the last person who was not you to edit that page and not make a minor edit was in 2016, the same year VW started listing contributors in the area list, I'm not surprised. If another user edits that page nowadays, it should add their name.

      Those numbers you are seeing are not contributors, they are tags. The tags are incorrectly showing the tag ID instead of the tag text. To fix this, in src/addons/vw/vw/Handler/EmbedResolver/Base.php, find:
      Code:
      			$vwcontent['tags'] = [];
      
      			if (!empty($vwcontent['tag_array']))
      			{
      				foreach ($vwcontent['tag_array'] AS $tag => $tagurl)
      				{
      					$vwcontent['tags'][] = [
      						'tag' => $tag,
      						'tag_url' => $tagurl
      					];
      				}
      			}
      Replace with:
      Code:
      $vwcontent['tags'] = $vwcontent['tag_array'];
      The embed is intended to only show counters for: comments directly on the page (not sub-discussions), and total pages below the page (e.g. number of chapters if it's a book). From what I can tell, thread embeds don't show views either. We tried to stay consistent in that regard.

      I don't have permission to view comments on the page embedded on that thread, but that shouldn't affect the counter. The comments counter is a number maintained by the page's discussion. It isn't counted separately in the embed. If it's reporting 0 comments, then the page's discussion hasn't been keeping track correctly. To rule out an incorrect stored value vs not counting new comments, please make a comment and see if the number goes up.

      I will have to do some research to see how XenForo shows ratings, if at all, in embedded links. If so, that would be an oversight.

      EDIT: Compared with other XenForo embeds on the XenForo main site, I do not see any ratings, even for embedded resources with generally have ratings. So in general, the style of VaultWiki's embeds appear to be consistent with stock XenForo embeds. If you have modified your XenForo embed templates, you might consider doing the same for VaultWiki embed templates.

      Marking this as fixed, since the issue involving showing the wrong text for tags has been resolved and is the only apparent bug/inconsistency described here.
      Reply Reply  
    + Reply

    Assigned Users
    Loading Please Wait
    Tags
    Loading Please Wait
    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 1:41 AM.
    This site uses cookies to help personalize content, to tailor your experience, and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Learn more… Accept Remind me later
  • striker
    Powered by vBulletin® Version 4.2.5 Beta 2
    Copyright © 2025 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
    Copyright © 2008 - 2024 VaultWiki Team, Cracked Egg Studios, LLC.