• 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
    • Advanced Image Editor Missing in Wiki Articles

    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: Advanced Image Editor Missing in Wiki Articles

    • Issue Tools
      • View Changes
    1. issueid=2172 December 22, 2010 3:09 PM
      pegasus pegasus is offline
      VaultWiki Team
      Advanced Image Editor Missing in Wiki Articles

      The Advanced Image Editor which appears in WYSIWYG mode by clicking the IMG icon allows users to upload IMGs from their computer and position them. However, this is not working on VaultWiki pages.

      The problem was that vBulletin never announced the change and it is not documented anywhere that the feature even exists, but it appears the code was added in 4.0.3.

      To fix articles, edit vault/tab/edit.php. Find:
      Code:
      		require_once(DIR . '/includes/functions_file.php');
      		$attachinfo = array(
      			'auth_type'     => (empty($_SERVER['AUTH_USER']) AND empty($_SERVER['REMOTE_USER'])) ? 0 : 1,
      			'posthash'      => $posthash,
      			'poststarttime' => $poststarttime,
      			'userid'        => $vbulletin->userinfo['userid'],
      			'contenttypeid' => $contenttypeid,
      			'max_file_size' => fetch_max_upload_size(),
      		);
      Replace with:
      Code:
      		require_once(DIR . '/includes/functions_file.php');
      		$contenttypeid = vB_Types::instance()->getContentTypeId("VaultWiki_VaultArticle");
      
      		if (VAULT_403_COMPAT)
      		{
      			$attachinfo = fetch_attachmentinfo($posthash, $poststarttime, $contenttypeid);
      		}
      		else
      		{
      			$attachinfo = array(
      				'auth_type'     => (empty($_SERVER['AUTH_USER']) AND empty($_SERVER['REMOTE_USER'])) ? 0 : 1,
      				'posthash'      => $posthash,
      				'poststarttime' => $poststarttime,
      				'userid'        => $vbulletin->userinfo['userid'],
      				'contenttypeid' => $contenttypeid,
      				'max_file_size' => fetch_max_upload_size(),
      			);
      		}
      To fix comments, edit vault/tab/discussion.php. Find:
      Code:
      		require_once(DIR . '/includes/functions_file.php');
      		$attachinfo = array(
      			'auth_type'     => (empty($_SERVER['AUTH_USER']) AND empty($_SERVER['REMOTE_USER'])) ? 0 : 1,
      			'posthash'      => $posthash,
      			'poststarttime' => $poststarttime,
      			'userid'        => $vbulletin->userinfo['userid'],
      			'contenttypeid' => $contenttypeid,
      			'max_file_size' => fetch_max_upload_size()
      			'values' => array(
      				't' => $threadinfo['threadid']
      			)
      		);
      Replace with:
      Code:
      		require_once(DIR . '/includes/functions_file.php');
      
      		if (VAULT_403_COMPAT)
      		{
      			$attachinfo = fetch_attachmentinfo($posthash, $poststarttime, $contenttypeid);
      		}
      		else
      		{
      			$attachinfo = array(
      				'auth_type'     => (empty($_SERVER['AUTH_USER']) AND empty($_SERVER['REMOTE_USER'])) ? 0 : 1,
      				'posthash'      => $posthash,
      				'poststarttime' => $poststarttime,
      				'userid'        => $vbulletin->userinfo['userid'],
      				'contenttypeid' => $contenttypeid,
      				'max_file_size' => fetch_max_upload_size()
      			);
      		}
      
      		$attachinfo['values'] = array(
      			't' => $threadinfo['threadid']
      		);
    Issue Details
    Issue Number 2172
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category Text Editor (WYSIWYG, etc)
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 3.0.8
    Fixed Version 3.0.9
    Milestone (none)
    Software DependencyAny
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. December 22, 2010 7:44 PM
      pegasus pegasus is offline
      VaultWiki Team
      An image inserted in this way won't appear in the editor until the next release, but it should be saved and available for config on subsequent edits. Having the image visible requires hacking some of vBulletin's Javascript, so won't be possible until the next release. If the images being invisible is confusing, you can still add images in the standard non-WYSIWYG way, or by inserting attachments inline with the Paperclip icon.
      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 11:41 PM.
    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.