• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
      • Try XenForo Demo
      • New Posts
      • FAQ
      • Calendar
      • Community
        • Groups
        • Albums
        • Member List
      • Forum Actions
        • Mark Forums Read
      • Quick Links
        • Today's Posts
        • Who's Online
      • Sponsor
        • Sponsor a Feature
        • List of Donors
    • Wiki
    • Support
    • What's New?
    • Buy Now
    • Manual
    • 
    • Forum
    • VaultWiki How-Tos
    • VaultWiki Questions
    • Use lower-case urls for 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.

    Results 1 to 4 of 4

    Thread: Use lower-case urls for articles

    • Thread Tools
      • Show Printable Version
    1. March 16, 2010 #1
      Sebi
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Sebi is offline
      Junior Member
      Join Date
      August 18, 2009
      Posts
      5
      Rep Power
      0

      Use lower-case urls for articles

      Hi,

      it is possible to use strictly lowercase urls for all articles instead of the automatic generated case-sensitive ones? We use lowercase urls on the whole site and so it would be nice, when the wiki also uses lowercase urls.
      Reply With Quote Reply With Quote

    2. March 16, 2010 #2
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,959
      Blog Entries
      18
      Rep Power
      687
      If you are running VaultWiki 3, you can do this via a plugin. If it works for you, you might want to release it to the community here in our modifications section.

      Create a new plugin (AdminCP > Plugins & Products > Add New Plugin).
      Product: vBulletin (or your own product)
      Hook Location: vault_url_generate
      Title: Use Lower-case URLs for Articles
      Execute Order: 5
      Plugin Code:
      PHP Code:
      $urlinfo['url'] = $this->strtolower($urlinfo['url']); 
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    3. March 17, 2010 #3
      Sebi
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Sebi is offline
      Junior Member
      Join Date
      August 18, 2009
      Posts
      5
      Rep Power
      0
      Thanks for your quick response, but we're using actually VaultWiki 2.5.

      I searched a bit in the code and found the function urlgenerate() in special_class_wiki.php. I added

      Code:
      $urlinfo['url'] = strtolower ($urlinfo['url']);
      at the end of the function urlgenerate() and it seems to work now with lowercase urls. Is this a possible solution for v2.5 or can this produce an error somewhere else, for example because of non-matching urls somewhere else?
      Reply With Quote Reply With Quote

    4. March 17, 2010 #4
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,959
      Blog Entries
      18
      Rep Power
      687
      If your 2.5 is before UTF-8 URLs were added, you should not have a problem with this. Otherwise, you should use $this->strtolower over strtolower.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    Similar Threads

    1. vbSEO + VaultWiki + Simple URLs + subdomains = Headache
      By ebadgley in forum VaultWiki Questions
      Replies: 7
      Last Post: September 28, 2011, 7:16 AM
    2. Possible to Turn Blog Posts or Articles into Wiki articles?
      By theflatline in forum VaultWiki Questions
      Replies: 1
      Last Post: August 9, 2010, 11:59 AM

    Tags for this Thread

    added, admincp, all, also, are, article, articles, automatic, because, before, but, case, class, code, community, example, for, generated, here, ice, lower, modifications, nice, now, order, own, php, plugin, possible, products, quick, release, run, running, section, should, site, solution, the, url, urls, use, vaultwiki, vbulletin, via, were, when, wiki, with, works, would, you

    View Tag Cloud

    Bookmarks

    Bookmarks
    • Submit to Digg Digg
    • Submit to del.icio.us del.icio.us
    • Submit to StumbleUpon StumbleUpon
    • Submit to Google Google

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •  
    • BB code is On
    • Smilies are On
    • [IMG] code is Off
    • [VIDEO] code is
    • HTML code is Off

    Forum Rules

    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 1:51 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 © 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.