• 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 3.x Series
    • Bug
    • Sub-Forums have no Sub-Forum Icon

    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: Sub-Forums have no Sub-Forum Icon

    • Issue Tools
      • View Changes
    1. issueid=1504 April 30, 2010 11:28 AM
      Mokonzi Mokonzi is offline
      Senior Member
      Sub-Forums have no Sub-Forum Icon
      Sub-Forums have no Sub-Forum Icon

      Any forums that aren't wiki forums that are shown as 'sub-forums', i.e. the mini icons, aren't added correctly to the template: vault_general_subforumbit. This means the template doesn't output a legit Image file, for example: <img class="inlineimg" src="vault/images/icon/-48.png" alt="" border="0" id="forum_statusicon_188" />.

      I suspect that in the template the area highlighted in bold needs adjusting to allow for an <if else /> command setup to check whether the image should be from the Vault's images, or from the forumdisplay images installed in vB by default.

      HTML Code:
      <li class="subforum">
      	<img class="inlineimg" src="{vb:stylevar imgdir_vaulticon}/{vb:raw forum.vaulticon}-48.png" alt="" border="0" id="forum_statusicon_{vb:raw forum.forumid}" /> <a href="<vb:if condition="$forum['link']">{vb:raw forum.link}<vb:else />{vb:link forum, {vb:raw forum}}</vb:if>"><vb:if condition="$forum['displaytitle']">{vb:raw forum.displaytitle}<vb:else />{vb:raw forum.title}</vb:if></a><vb:if condition="$forum['wikilist']"> <a class="vw-list-link" href="{vb:link forum, {vb:raw forum}, {vb:raw urlinfo}}" rel="vB_ForumLink::{vb:raw forum.forumid}">({vb:rawphrase vault_list})</a></vb:if>
      </li>
      As you can see, it looks in the Vault image directory for a file, which doesn't exist.
    Issue Details
    Issue Number 1504
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category Forum Display
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 3.0.0 RC 2
    Fixed Version 3.0.0 RC 3
    Milestone VaultWiki 3.0.0
    Software DependencyAny
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. April 30, 2010 12:10 PM
      pegasus pegasus is offline
      VaultWiki Team
      This template should not be used for non-wiki forums. In vault/special_plugins_forumdisplay.php, find:
      Code:
      	else if ($vbulletin->products['crawlability_vbseo'] AND !$vbulletin->products['tms'] AND !VAULT_40X_COMPAT)
      	{
      		$vbulletin->templatecache["forumhome_{$between}{$fetch}{$tempext}"] = str_replace(
      			'f=$forum[forumid]\\">',
      			'f=$forum[forumid]\\" rel=\\"vB_ForumLink::$forum[forumid]\\">',
      			$vbulletin->templatecache["forumhome_{$between}{$fetch}{$tempext}"]
      		);
      	}
      Replace with:
      Code:
      	else
      	{
      		if ($between == 'subforumbit_')
      		{
      			$tempext = str_replace('_vault', '', $tempext);
      		}
      
      		if ($vbulletin->products['crawlability_vbseo'] AND !$vbulletin->products['tms'] AND !VAULT_40X_COMPAT)
      		{
      			$vbulletin->templatecache["forumhome_{$between}{$fetch}{$tempext}"] = str_replace(
      				'f=$forum[forumid]\\">',
      				'f=$forum[forumid]\\" rel=\\"vB_ForumLink::$forum[forumid]\\">',
      				$vbulletin->templatecache["forumhome_{$between}{$fetch}{$tempext}"]
      			);
      		}
      	}
      Reply Reply  
    2. May 1, 2010 8:12 AM
      Mokonzi Mokonzi is offline
      Senior Member
      Thanks pegasus, works great.
      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 4:39 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 © 2023 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2023 DragonByte Technologies Ltd.
    Copyright © 2008 - 2013 VaultWiki Team, Cracked Egg Studios, LLC.