Solved

Help files

Posted on 2006-06-20
12
222 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

910 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

25 Experts available now in Live!

Get 1:1 Help Now