• 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
    • How to know we are inside showwiki.php?

    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 3 of 3

    Thread: How to know we are inside showwiki.php?

    • Thread Tools
      • Show Printable Version
    1. August 31, 2008 #1
      ILTK
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      ILTK is offline
      Junior Member
      Join Date
      August 31, 2008
      Posts
      10
      Rep Power
      0

      Question How to know we are inside showwiki.php?

      I have a heavily modded headinclude that checks at various points where it's called from via THIS_SCRIPT='bla' so I can write out things like headers for showthread using the title/tags in some copy for better SEO, but the conditionals breaks because it looks like showwiki.php reports itself as "showthread" when viewing a wiki article.

      Is there anything I could check against that is in the scope of headinclude so I know when I'm inside it? Perhaps some way I could set a global variable I could check so I know when I'm inside showwiki.php ? I know just some basic php so I can't figure out how to solve this.

      Thanks.
      Last edited by ILTK; August 31, 2008 at 1:04 PM. Reason: spelling
      Reply With Quote Reply With Quote

    2. August 31, 2008 #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,934
      Blog Entries
      18
      Rep Power
      659
      VAULT == 'true'
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    3. September 1, 2008 #3
      ILTK
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      ILTK is offline
      Junior Member
      Join Date
      August 31, 2008
      Posts
      10
      Rep Power
      0
      Thanks, I figured out that I could use $_SERVER[PHP_SELF] also but that was a bit clunky since it also returns the path.
      Reply With Quote Reply With Quote

    Similar Threads

    1. Help with custom rewrites on faq.php like showwiki.php
      By Kaelon in forum General Discussion
      Replies: 4
      Last Post: December 29, 2012, 1:27 AM
    2. could we create many pages inside a subforum in a namespace?
      By levimatt in forum VaultWiki Questions
      Replies: 3
      Last Post: February 16, 2011, 6:26 AM
    3. showwiki.php?title=Special:Categories lists no categories
      By Alfa1 in forum VaultWiki Questions
      Replies: 8
      Last Post: December 8, 2010, 9:26 AM
    4. Notice in showwiki.php ?!
      By sKippah in forum VaultWiki Questions
      Replies: 1
      Last Post: November 20, 2010, 4:32 PM
    5. SEO description for the showwiki.php page
      By bigtree in forum General Discussion
      Replies: 2
      Last Post: April 7, 2010, 7:02 PM

    Tags for this Thread

    also, any, are, because, better, but, called, can, could, for, from, have, how, inside, know, like, looks, out, php, reports, seo, showwiki, showwikiphp, some, that, the, there, things, this, use, using, various, via, was, way, when, where, write

    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 4:59 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.