• 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
    • Feature
    • Group Wiki Pages by Default

    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: Group Wiki Pages by Default

    • Issue Tools
      • View Changes
    1. issueid=4012 September 24, 2014 12:55 PM
      Morrus Morrus is offline
      Regular Member
      Group Wiki Pages by Default
      (Apologies if this is in the wrong place!)

      This isn't a bug or issue, so if it's in the wrong place I apologise! I just need a little advice. Two questions, in fact.

      1) On my group pages I have a little dropdown menu pointing to various integrated features (discussions, albums, and the like).

      I'd like to add the group's wiki pages to that dropdown menu linking to this page:

      http://www.enworld.org/forum/showwik...mpaign&do=list

      I can't work out how to use some kind of (variable?) to make sure the link goes to the correct group's pages. I tried various combinations of {vb raw: blah blah} I could think of, but none worked.

      2) Is there a way to have group wiki pages activated by default? For whatever reason, a large proportion of my users fail to figure out how to active 'em!
    Issue Details
    Issue Number 4012
    Issue Type Feature
    Project VaultWiki 4.x Series
    Category Wiki Groups
    Status Implemented
    Priority 7 - Minor Features / Enhancements
    Suggested Version 4.0.0 RC 3
    Implemented Version 4.1.0 RC 3
    Milestone VaultWiki 4.2
    Software DependencyvBulletin 4.x
    License TypePaid
    Votes for this feature 0
    Votes against this feature 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. September 24, 2014 1:17 PM
      pegasus pegasus is online now
      VaultWiki Team
      1) If {vb:raw group.url_s}do=list is not available for your template, e.g. the url_s field is empty, then I have to think about it some more, if it is even possible to get without using a plugin.

      You can also try this, which may or may not redirect to the right place:
      Code:
      wiki_index.php?title={vb:urlencode {vb:raw group.name}}-gid:{vb:raw group.groupid}&do=list
      2) There is not currently a way to do that. We can surely add a setting for that, and possibly a user preference.
      Reply Reply  
    2. September 24, 2014 1:39 PM
      Morrus Morrus is offline
      Regular Member
      That sort of works, but not quite.

      This is what the correct link is:

      http://www.enworld.org/forum/showwik...mpaign&do=list

      What it's doing is:

      http://www.enworld.org/forum/wiki_in...id:220&do=list

      So it's keeping the apostrophe, and using + instead of -
      Reply Reply  
    3. September 24, 2014 1:55 PM
      pegasus pegasus is online now
      VaultWiki Team
      Yeah, unfortunately there is not a good way to get the URL from inside the template directly, since it is not available in that context. In vB4, all variables must be manually provided to a template. You would have to use a plugin to do this. I don't know how your template works, or if it's just an edit, so I don't know what the best hook location would be. But basically, you would add the wiki URL to $group like so:
      Code:
      if (class_exists('vw_Hard_Core', false))
      {
      $stack = vw_Hard_Core::controller('UI/Stack')->get_stack();
      $wiki_group = end($stack);
      vw_Hard_Core::model('URL')->get($wiki_group);
      vw_Hard_Core::model('URL')->array_map($group, $wiki_group, 'wiki');
      }
      If the plugin is used in the right place, then you should have access to the wiki URL like this:
      Code:
      {vb:raw group.wiki_url_s}do=list
      Reply Reply  
    4. September 24, 2014 1:57 PM
      Morrus Morrus is offline
      Regular Member
      Hmm. Probably a bit beyond me. It's the main group overview page, and a few individual pages I managed to cobble together by copy/pasting bits of templates and stuff without really understanding what I was doing.

      Not to worry. It's not vitally important!
      Reply Reply  
    5. March 21, 2020 5:03 PM
      pegasus pegasus is online now
      VaultWiki Team
      1) Implemented in the next release. A new $vw_context variable, which contains the current wiki page info, is exposed to all templates. This should make it viable for basic-type navigation links and conditions in XenForo 2.x. $vw_context is also exposed to the navigation manager in vBulletin.

      2) In the next release, added a new setting to automatically check the box to activate wiki-functionality for new social groups in vBulletin, if the user has permission to use that box. The default value is now checked.
      Reply Reply  
    6. March 23, 2020 7:54 AM
      expanserpb expanserpb is offline
      Junior Member
      Hah, the requester has moved to Xenforo
      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 8:00 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.