• Register
    • Help
    • Home
    • News
    • Forum
      • Today's Posts
      • FAQ
      • Calendar
      • Community
        • Groups
        • My Albums
        • Member List
        • Blogs
      • Forum Actions
        • Mark Forums Read
      • Quick Links
        • View Site Leaders
        • Who's Online
    • Wiki
    • Buy Now
    • Support
    • Documentation
    • Advanced Search
    • Home
    • Forum
    • VaultWiki Usage
    • VaultWiki Questions
    • Use lower-case urls for articles

    + Reply to Thread
    Results 1 to 4 of 4

    Thread: Use lower-case urls for articles

    • LinkBack
      • LinkBack URL LinkBack URL
      • About LinkBacks About LinkBacks
      •  
      • Bookmark & Share
      • Digg this Thread!
      • Add Thread to del.icio.us
      • Bookmark in Technorati
      • Stumble this Thread
      • Share on Facebook
      • Share on Myspace
      • Twit this!
    • Thread Tools
      • Show Printable Version
      • Email this Page…
      • Subscribe to this Thread…
    1. March 16, 2010 11:05 AM #1
      Sebi
      Sebi is offline Junior Member
      Join Date
      August 18, 2009
      Posts
      14
      Poster Rank: #65

      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 12:03 PM #2
      pegasus's Avatar
      pegasus
      pegasus is offline VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      4,577
      Poster Rank: #2
      Blog Entries
      6
      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:
      VaultWiki code is only viewable by license holders. 
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote


    3. March 17, 2010 8:59 AM #3
      Sebi
      Sebi is offline Junior Member
      Join Date
      August 18, 2009
      Posts
      14
      Poster Rank: #65
      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:
      VaultWiki code is only viewable by license holders.
      
      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 11:12 AM #4
      pegasus's Avatar
      pegasus
      pegasus is offline VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      4,577
      Poster Rank: #2
      Blog Entries
      6
      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


    + Reply to Thread

    Tags for this Thread

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

    View Tag Cloud

    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
    • HTML code is Off
    • Trackbacks are On
    • Pingbacks are On
    • Refbacks are On
    • Trackbacks are On
    • Pingbacks are On
    • Refbacks are On

    Forum Rules

    • Contact Us
    • Privacy
    • Top
    All times are GMT -5. The time now is 8:35 PM.

  • Powered by vBulletin™ Version 4.0.5
    Copyright © 2010 vBulletin Solutions, Inc. All rights reserved.
    Copyright © 2008 - 2010 VaultWiki Team, Cracked Egg Studios, LLC.
    Search Engine Optimization by vBSEO 3.5.1

    {{{Inactive}}}