• 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
    • Using [HELP] from other modules

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

    Thread: Using [HELP] from other modules

    • Thread Tools
      • Show Printable Version
    1. June 16, 2009 #1
      gary.brain
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      gary.brain is offline
      Junior Member
      Join Date
      June 15, 2009
      Posts
      13
      Rep Power
      0

      Thumbs up Using [HELP] from other modules

      Hi guys, most likely a simple "no" but was just wondering if it was possible to code in the [help] feature used by a self created module.

      What I am looking for is having the ablility to tags words in a self coded cmps style module but use the window popup for the key word from the [help] wiki.

      Any way great tool, lots of work to get the content filled

      Best Regards

      G
      Reply With Quote Reply With Quote

    2. June 16, 2009 #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
      If you want to modify the autolink output, you can take a look at vault/special_plugins_autolink.php. For a quick alternative output, you can create a plugin that runs on hook bbcode_fetch_tags with the following condition:
      Code:
      if (THIS_SCRIPT == 'ajax' AND $_POST['do'] == 'autolink')
      You will need to print the XML output before the end of your plugin. Since you only want to do this for HELP tags, you probably also want to check that the
      Code:
      $threadinfo['namespaceid'] == HELP_SPACE
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    3. June 17, 2009 #3
      gary.brain
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      gary.brain is offline
      Junior Member
      Join Date
      June 15, 2009
      Posts
      13
      Rep Power
      0

      Thumbs up

      thanks for the reply and I will have a look.

      The goal is to have little ? icons next to database search results or table/graph output that has nothing todo with forum threads.

      Time to read some more.



      G.
      Reply With Quote Reply With Quote

    4. June 22, 2009 #4
      gary.brain
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      gary.brain is offline
      Junior Member
      Join Date
      June 15, 2009
      Posts
      13
      Rep Power
      0
      Hi again, been trying to get this to work but not sure how it all fits together.

      I dont want to change the look and feel of the help autolink, what I need to find out is the commands to hook into the code. Here is an example.

      I have written a CMPS module that greps data from a file, I then use this data to produce the output. If a certain value / condition is true I then want to link this to a Help Wiki entry.

      I can manual do the following where I know the autolink span value but was wondering if/how to use a function line bbcode_fetch_tags('error code 1') where "error code 1" is a wiki:help page.

      Code:
      <? foreach ($cf_name as $k => $v)
      				{?>
      				<tr>
      					<td class='bcheader' width='200'><? echo $v; ?> : </td>
      					<td class='bctext'><? echo trim($cf_status[$k]) != 'Ready' ? '<span id=\"autolink_12_15_1\" ><a href=\'\' class=\'\' style=\'color:red\'>Warning : </a></span>' . $cf_status[$k] : '<span style=\'color:darkgreen\'>'.$cf_status[$k].'</span>'; ?></td>
      				</tr>
      				<?} }?>
      I am not a developer at heart and just dabling so forgive me if I am not using the correct wording.

      Best Regards

      G.
      Reply With Quote Reply With Quote

    5. June 24, 2009 #5
      gary.brain
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      gary.brain is offline
      Junior Member
      Join Date
      June 15, 2009
      Posts
      13
      Rep Power
      0
      Hi, I have been playing around and now completly lost.

      My goal is to create an icon on a page that pulls the wiki:help entry like you would if you were on a post.

      I cheated by taking the source code for the span as I can't seem to figure out if its possible to use the hook. (im not a developer (I prefer reading packet captures)) so forgive me if I seem to be talking nonsunse.

      What I would like todo if possible is to take an icon, create a href around it and then use a function/hook to call the specific help page .e.g. gethelp("help page name").

      I dont want to change any of the look and feel and it is perfect, but just tying to find an easier way to code it into the php pages.

      Best Regards

      Gary
      Reply With Quote Reply With Quote

    6. June 25, 2009 #6
      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
      Okay, what I originally thought you wanted was to make the hover popup for links to Help articles show something other than the Help content. It sounds more like you want to link to a Help page from another static page that doesn't use the BB-Code parser.

      For using the popup, it seems like you are already halfway there with the span. You also need to add the following near the footer of the page:
      HTML Code:
      &lt;script type="text/javascript" src="clientscript/special_autolink.js">&lt;/script>
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    7. June 27, 2009 #7
      gary.brain
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      gary.brain is offline
      Junior Member
      Join Date
      June 15, 2009
      Posts
      13
      Rep Power
      0

      Thumbs up

      Spot on, that seems to have got it, just need to work out why its 100% across the page but I think I am missing the CSS that controls it.

      thanks.

      G
      Reply With Quote Reply With Quote

    8. June 27, 2009 #8
      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
      In your module's plugin code, add the following line:
      PHP Code:
      $show['special_css'] = true; 
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    Tags for this Thread

    able, all, also, another, any, are, been, before, but, can, certain, check, class, coded, correct, developer, does, don, example, for, from, get, has, have, having, help, here, hook, how, icon, into, its, javascript, key, know, like, line, look, looking, modules, more, most, name, need, next, now, only, other, out, php, possible, print, quick, reply, some, something, source, specific, sure, that, the, there, this, threads, try, trying, type, use, using, value, was, way, were, what, where, why, will, with, words, would, xml, you, your

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