Solved

Help files

Posted on 2006-06-20
12
212 Views
Last Modified: 2010-04-09
hi,

i have a web application which i have created a help file for (so far just a .doc). i was wondering if there is a product/system out there which i can use for the help file i.e like the one you get with word etc.
0
Comment
Question by:pigmentarts
  • 5
  • 5
  • 2
12 Comments
 
LVL 5

Accepted Solution

by:
NAORC earned 500 total points
ID: 16940975
http://www.softany.com/winchm/


WinCHM

Its what i use....
0
 
LVL 10

Expert Comment

by:Khanh Doan
ID: 16940981
Oh, this is like my code.
I will post it for you. Or you can come to http://landautien.com/forum/music.php
I use it at Categories
My code :

/*********** PHP ************/
<?php
//########################### Cat List ###########################//
function catlist()
{
      $cat = array();
      $totalcats = '1';
      $maxid = '1';

      $cat_query = mysql_query("SELECT * FROM songcat ORDER BY displayorder, cat_name ASC");

      while ($cattemp = mysql_fetch_array($cat_query))
      {
            $id = $cattemp['catid'];
            if ($maxid < $id) $maxid = $id;

            $cat[$totalcats]['id'] = $totalcats;
            $cat[$totalcats]['cat_id'] = $cattemp['catid'];
            $cat[$totalcats]['parent_id'] = $cattemp['parent_catid'];
            $cat[$totalcats]['name'] = $cattemp['cat_name'];

            $totalcats++;
      }

      if ($totalcats == '1')
      {
            $cat_list_bit = $vbphrase['music_nocat'];
      }
      else
      {
            for ($cid = '1'; $cid <= $maxid; $cid++)
            {
                  if ($cat[$cid]['parent_id'] == '0')
                  {
                        $cat_id = $cat[$cid]['cat_id'];
                        $cat_name = $cat[$cid]['name'];
                        $par_num = '0';
                        $cat_list_sub = subcat($cat_id, $cat, $maxid);

                        $cat_list_bit .= "      <img src='images/misc/navbits_start.gif' border='0' class='inlineimg' style="cursor:hand;" onClick=\"hide_sub_cat(c$cat_id)\">
      <a href=' '><b>$cat_name</b></a><br>
      <span id=\"c$cat_id\" style=\"display : 'none'\"><div style=\"margin-left: 15px\">
                  $cat_list_sub
      </div></span>";
                  }
            }
      }

      $cat_list = $cat_list_bit;

      return $cat_list;
}

//########################### Sub Categories ###########################//
function subcat($parent_id, $cat, $maxid)
{
      global $vbulletin, $vbphrase;

      for ($sub_id = 0; $sub_id <= $maxid; $sub_id++)
      {
            if ($cat[$sub_id]['parent_id'] == $parent_id)
            {
                  $cat_id = $cat[$sub_id]['cat_id'];
                  $cat_name = $cat[$sub_id]['name'];

                  for ($n = '1'; $n <= $par_num; $n++) $sub_cats_ .= '<img src="clear.gif" width="15" border="0" class="inlineimg">';

                  $sub_cats_sub = subcat($cat_id, $cat, $maxid);

                  $sub_cats .= "      $sub_cats_ <img src='images/misc/navbits_start.gif' border='0' class='inlineimg' style=\"cursor:hand\" onClick=\"hide_sub_cat(c$cat_id)\"> <a href=' '>$cat_name</a><br>
      <span id=\"c$cat_id\" style=\"display : 'none'\"><div style=\"margin-left: 15px\">
            $sub_cats_sub
      </div></span>";
            }
      }

      return $sub_cats;
}
?>

So, just call catlist() function to get categories list.

/*********** Database ************/
CREATE TABLE IF NOT EXISTS songcat (
  catid int(11) NOT NULL auto_increment,
  parent_catid int(11) NOT NULL default '0',
  cat_name varchar(250) NOT NULL default '',
  displayorder INT NOT NULL DEFAULT '0';
  PRIMARY KEY  (catid)
) TYPE=MyISAM COMMENT='Music Category';

Goodluck.
Bonmat86
0
 
LVL 10

Expert Comment

by:Khanh Doan
ID: 16940988
Opps, sorry, I post wrong code. Admin Or Mod delete my post please, thanks.
Bonmat86
0
 
LVL 12

Author Comment

by:pigmentarts
ID: 16941131
can not use php my server bonmat86

NAORC : that look perfect!!! what server side language is it in as i does not say!

could i also have it in one location (on my site) and my application pull in the file, like in a include, ie so i only update once and all customers view the same copy?

again thanks guys big help!

0
 
LVL 12

Author Comment

by:pigmentarts
ID: 16941137
ps this is a online version right so its webbased? sorry about all the questions, my boss has give me this task of finding something
0
 
LVL 5

Expert Comment

by:NAORC
ID: 16941156
When its created the CHM File, i kind of cheat.  I use the :

<a href="help.chm" target="_blank">

tag.  it opens the help file in a new window.  if you need anything more than this, email support@softany.com  and they will answer everything (quite quickly too)
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 12

Author Comment

by:pigmentarts
ID: 16941174
yep seems good but you have to donwload it, some of my clients can not dowload things on there system (at work) so it need to be online. i have hopping there is something just like that but web based!
0
 
LVL 5

Expert Comment

by:NAORC
ID: 16941207
Thats irrelivant..

you download the software and create the files.. the client only views them and doesnt need the software installed as far as i know because the CHM files created are an extension of the windows help program
0
 
LVL 12

Author Comment

by:pigmentarts
ID: 16941238
no sorry what i ment is they have to download the .chm file (ie help.chm)  before they can open it i.e. they must download it to there computer, desktop etc.

some of my clients can not do this, i would like a help system to be online (web based) like viewing a webpage, but just like this system. at the moment i have it up as a webpage or a pdf, but i really like the look of the winchm.
0
 
LVL 5

Expert Comment

by:NAORC
ID: 16941286
CHM is a compiled html file (series of html files packed into one super html file)

it can download into the temp file automatically regardless of permissions.  it should be no different to opening any other html file or web page
0
 
LVL 12

Author Comment

by:pigmentarts
ID: 16941501
cool thank you very much, you have been a big help!
0
 
LVL 5

Expert Comment

by:NAORC
ID: 16941635
Your welcome.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now