Announcement

Collapse
No announcement yet.

how to modify h_main on compiled system?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    how to modify h_main on compiled system?



    Hi folks --

    A client has asked me to add a link to the main page of their admin, as a
    shortcut to a particular screen that they use a lot. I've done this on
    uncompiled sites before. I just realized that there is no source code for
    h_main.mv in the LSK. (At least, I don't have a copy.) Is there a way to
    add custom code to these "site" scripts in a compiled store?

    Thanks --

    Kent Multer | /| P.O.Box 701895, Dallas TX 75370
    Magic Metal Productions | / | (214) 570 8264 voice/fax
    | | [email protected]
    * Web developer/designer http://TheMagicM.com
    * E-commerce and Miva
    * Author, The Official Miva Web Scripting Book -- available on-line:
    <A HREF ="http://www.amazon.com/exec/obidos/ISBN=0966103211/magicmetalproducA">http://www.amazon.com/exec/obidos/ISBN=0966103211/magicmetalproducA</A>




    #2
    how to modify h_main on compiled system?



    Look at the h_xxxx.mvc files under a hex editor. Looks like they're just null
    files, just like they were when they were in uncompiled Merchant.

    HTH
    Tom

    > -----Original Message-----
    > From: [email protected]
    > [mailto:[email protected]]On Behalf Of Kent Multer
    > Sent: Wednesday, January 26, 2005 1:03 AM
    > To: Miva Merchant coders list
    > Subject: [mrc] how to modify h_main on compiled system?
    >
    >
    > Hi folks --
    >
    > A client has asked me to add a link to the main page of their admin, as a
    > shortcut to a particular screen that they use a lot. I've done this on
    > uncompiled sites before. I just realized that there is no source code for
    > h_main.mv in the LSK. (At least, I don't have a copy.) Is there a way to
    > add custom code to these "site" scripts in a compiled store?
    >
    > Thanks --
    >
    > Kent Multer | /| P.O.Box 701895, Dallas TX 75370
    > Magic Metal Productions | / | (214) 570 8264 voice/fax
    > | | [email protected]
    > * Web developer/designer http://TheMagicM.com
    > * E-commerce and Miva
    > * Author, The Official Miva Web Scripting Book -- available on-line:
    > <A HREF ="http://www.amazon.com/exec/obidos/ISBN=0966103211/magicmetalproducA">http://www.amazon.com/exec/obidos/ISBN=0966103211/magicmetalproducA</A>
    >
    >
    >

    Comment


      #3
      how to modify h_main on compiled system?



      -----Original Message-----
      From: [email protected] [mailto:[email protected]]
      On Behalf Of Kent Multer
      Sent: Tuesday, January 25, 2005 11:03 PM
      To: Miva Merchant coders list
      Subject: [mrc] how to modify h_main on compiled system?

      Hi folks --

      A client has asked me to add a link to the main page of their admin, as a
      shortcut to a particular screen that they use a lot. I've done this on
      uncompiled sites before. I just realized that there is no source code for
      h_main.mv in the LSK. (At least, I don't have a copy.) Is there a way to
      add custom code to these "site" scripts in a compiled store?

      Don't need source. Just name the file h_main.mv and compile it...do it all
      the time to provide things like custom documentation, shortcuts, etc. One
      client uses it to send a notification that the admin is being accessed so he
      can monitor off-site employees.

      --
      No virus found in this outgoing message.
      Checked by AVG Anti-Virus.
      Version: 7.0.300 / Virus Database: 265.7.2 - Release Date: 1/21/2005



      Comment


        #4
        how to modify h_main on compiled system?



        Hi folks --

        Thanks for the suggestions. So I can just replace the existing h_main.mvc
        with my own. That'll work; the existing file is so small, I figured it was
        probably null.

        But this does cause a problem if a store has two different modules or apps
        that want to customize this file. In uncompiled Merchant, I think that
        some of you had written modules that could insert/remove code in the "site"
        files as part of their Module_Install and Module_Uninstall functions. In
        compiled Merchant, I guess, that can't be done any more?

        Thanks --


        >Don't need source. Just name the file h_main.mv and compile it...do it all
        >the time to provide things like custom documentation, shortcuts, etc. One
        >client uses it to send a notification that the admin is being accessed so he
        >can monitor off-site employees.




        Kent Multer | /| P.O.Box 701895, Dallas TX 75370
        Magic Metal Productions | / | (214) 570 8264 voice/fax
        | | [email protected]
        * Web developer/designer http://TheMagicM.com
        * E-commerce and Miva
        * Author, The Official Miva Web Scripting Book -- available on-line:
        <A HREF ="http://www.amazon.com/exec/obidos/ISBN=0966103211/magicmetalproducA">http://www.amazon.com/exec/obidos/ISBN=0966103211/magicmetalproducA</A>



        Comment


          #5
          how to modify h_main on compiled system?



          Basically, you name the existing file h_main.mvc h_main1.mvc and at the end
          of your h_main.mvc use <MvDO FILE="h_main1.mvc">. You could write an
          installer script as a utility module to do this, or just do it manually.

          -Bruce

          > -----Original Message-----
          > From: Kent Multer [mailto:[email protected]]
          > Sent: Wednesday, January 26, 2005 10:42 AM
          > To: Bruce Golub - Phosphor Media; 'Miva Merchant coders list'
          > Subject: RE: [mrc] how to modify h_main on compiled system?
          >
          > Hi folks --
          >
          > Thanks for the suggestions. So I can just replace the
          > existing h_main.mvc with my own. That'll work; the existing
          > file is so small, I figured it was probably null.
          >
          > But this does cause a problem if a store has two different
          > modules or apps that want to customize this file. In
          > uncompiled Merchant, I think that some of you had written
          > modules that could insert/remove code in the "site"
          > files as part of their Module_Install and Module_Uninstall
          > functions. In compiled Merchant, I guess, that can't be done
          > any more?
          >
          > Thanks --
          >
          >
          > >Don't need source. Just name the file h_main.mv and compile
          > it...do it
          > >all the time to provide things like custom documentation, shortcuts,
          > >etc. One client uses it to send a notification that the
          > admin is being
          > >accessed so he can monitor off-site employees.
          >
          >
          >
          >
          > Kent Multer | /| P.O.Box 701895,
          > Dallas TX 75370
          > Magic Metal Productions | / | (214) 570 8264 voice/fax
          > | | [email protected]
          > * Web developer/designer http://TheMagicM.com
          > * E-commerce and Miva
          > * Author, The Official Miva Web Scripting Book -- available on-line:
          >
          > <A HREF ="http://www.amazon.com/exec/obidos/ISBN=0966103211/magicmetalproducA">http://www.amazon.com/exec/obidos/ISBN=0966103211/magicmetalproducA</A>
          >
          >
          > --
          > No virus found in this incoming message.
          > Checked by AVG Anti-Virus.
          > Version: 7.0.300 / Virus Database: 265.7.2 - Release Date: 1/21/2005
          >
          >

          --
          No virus found in this outgoing message.
          Checked by AVG Anti-Virus.
          Version: 7.0.300 / Virus Database: 265.7.2 - Release Date: 1/21/2005



          Comment


            #6
            how to modify h_main on compiled system?



            Just an fyi...
            If it has openui, I don't think this will work - but could be very wrong...

            Seems I tested this some time ago.
            Bill


            -----Original Message-----
            From: [email protected]
            [mailto:[email protected]]On Behalf Of Kent Multer
            Sent: Wednesday, January 26, 2005 12:42 PM
            To: Bruce Golub - Phosphor Media; 'Miva Merchant coders list'
            Subject: RE: [mrc] how to modify h_main on compiled system?


            Hi folks --

            Thanks for the suggestions. So I can just replace the existing h_main.mvc
            with my own. That'll work; the existing file is so small, I figured it was
            probably null.

            But this does cause a problem if a store has two different modules or apps
            that want to customize this file. In uncompiled Merchant, I think that
            some of you had written modules that could insert/remove code in the "site"
            files as part of their Module_Install and Module_Uninstall functions. In
            compiled Merchant, I guess, that can't be done any more?

            Thanks --


            >Don't need source. Just name the file h_main.mv and compile it...do it all
            >the time to provide things like custom documentation, shortcuts, etc. One
            >client uses it to send a notification that the admin is being accessed so
            he
            >can monitor off-site employees.




            Kent Multer | /| P.O.Box 701895, Dallas TX 75370
            Magic Metal Productions | / | (214) 570 8264 voice/fax
            | | [email protected]
            * Web developer/designer http://TheMagicM.com
            * E-commerce and Miva
            * Author, The Official Miva Web Scripting Book -- available on-line:
            <A HREF ="http://www.amazon.com/exec/obidos/ISBN=0966103211/magicmetalproducA">http://www.amazon.com/exec/obidos/ISBN=0966103211/magicmetalproducA</A>



            Comment


              #7
              how to modify h_main on compiled system?



              OpenUI renames the h_lnav to h_lnav.oui.mvc and then creates it's own
              h_lnav which calls the h_lnav.oui.mvc, so if you want to create custom links
              you would need to create/modify the h_lnav.oui.mvc.

              I don't know if this applies to h_main.

              ==================
              David Perkowski
              Duvys Web Development
              (732) 905-0166


              ----- Original Message -----
              From: "Bill Gilligan" <[email protected]>
              To: "Kent Multer" <[email protected]>; "Bruce Golub - Phosphor Media"
              <[email protected]>; "'Miva Merchant coders list'"
              <[email protected]>
              Sent: Wednesday, January 26, 2005 1:52 PM
              Subject: RE: [mrc] how to modify h_main on compiled system?


              > Just an fyi...
              > If it has openui, I don't think this will work - but could be very
              wrong...
              >
              > Seems I tested this some time ago.
              > Bill
              >
              >
              > -----Original Message-----
              > From: [email protected]
              > [mailto:[email protected]]On Behalf Of Kent Multer
              > Sent: Wednesday, January 26, 2005 12:42 PM
              > To: Bruce Golub - Phosphor Media; 'Miva Merchant coders list'
              > Subject: RE: [mrc] how to modify h_main on compiled system?
              >
              >
              > Hi folks --
              >
              > Thanks for the suggestions. So I can just replace the existing h_main.mvc
              > with my own. That'll work; the existing file is so small, I figured it
              was
              > probably null.
              >
              > But this does cause a problem if a store has two different modules or apps
              > that want to customize this file. In uncompiled Merchant, I think that
              > some of you had written modules that could insert/remove code in the
              "site"
              > files as part of their Module_Install and Module_Uninstall functions. In
              > compiled Merchant, I guess, that can't be done any more?
              >
              > Thanks --
              >
              >
              > >Don't need source. Just name the file h_main.mv and compile it...do it
              all
              > >the time to provide things like custom documentation, shortcuts, etc. One
              > >client uses it to send a notification that the admin is being accessed so
              > he
              > >can monitor off-site employees.
              >
              >
              >
              >
              > Kent Multer | /| P.O.Box 701895, Dallas TX 75370
              > Magic Metal Productions | / | (214) 570 8264 voice/fax
              > | | [email protected]
              > * Web developer/designer http://TheMagicM.com
              > * E-commerce and Miva
              > * Author, The Official Miva Web Scripting Book -- available on-line:
              > <A HREF ="http://www.amazon.com/exec/obidos/ISBN=0966103211/magicmetalproducA">http://www.amazon.com/exec/obidos/ISBN=0966103211/magicmetalproducA</A>
              >
              >
              >

              Comment


                #8
                how to modify h_main on compiled system?



                Kent,

                The following is copied straight out of the Miva Merchant v4.00 release notes
                (you shoulda known they were there! LOL)...

                3. Co-branding
                Allows the provisioner to change the appearance of the administration
                interface to
                display branding information. The provisioner places HTML and/or Miva Script
                content in header and footer files for the left Administration Interface menu,
                the
                Administration Interface data area, the About Miva Merchant screen, and the
                new
                Simple Administration screen. Additionally, provisioners can modify the
                default
                frameset, allowing them to have their own navigation bars or otherwise
                incorporate the Miva Merchant administrative interface into the look & feel
                and
                functionality of their existing systems.
                . Headers and footers are stored in a subdirectory of the distribution
                directory,
                called "site/"
                . The following files are used:
                - h_lnav.mv: Left Administration Interface menu Header
                - f_lnav.mv: Left Administration Interface menu Footer
                - h_main.mv: Administration Interface Data Area Header
                - f_main.mv: Administration Interface Data Area Footer
                - h_about.mv: About Screen Header
                - f_about.mv: About Screen Footer
                - h_simple.mv: Simple Administration Header
                - f_simple.mv: Simple Administration Footer

                The MM v4.00 release notes are here:
                <A HREF ="http://www.miva.com/docs/merchant/RelNote400.pdf">http://www.miva.com/docs/merchant/RelNote400.pdf</A>

                HTH
                Tom


                > -----Original Message-----
                > From: [email protected]
                > [mailto:[email protected]]On Behalf Of Kent Multer
                > Sent: Wednesday, January 26, 2005 12:42 PM
                > To: Bruce Golub - Phosphor Media; 'Miva Merchant coders list'
                > Subject: RE: [mrc] how to modify h_main on compiled system?
                >
                >
                > Hi folks --
                >
                > Thanks for the suggestions. So I can just replace the existing h_main.mvc
                > with my own. That'll work; the existing file is so small, I figured it was
                > probably null.
                >
                > But this does cause a problem if a store has two different modules or apps
                > that want to customize this file. In uncompiled Merchant, I think that
                > some of you had written modules that could insert/remove code in the "site"
                > files as part of their Module_Install and Module_Uninstall functions. In
                > compiled Merchant, I guess, that can't be done any more?
                >
                > Thanks --
                >
                >
                > >Don't need source. Just name the file h_main.mv and compile it...do it all
                > >the time to provide things like custom documentation, shortcuts, etc. One
                > >client uses it to send a notification that the admin is being
                > accessed so he
                > >can monitor off-site employees.
                >
                >
                >
                >
                > Kent Multer | /| P.O.Box 701895, Dallas TX 75370
                > Magic Metal Productions | / | (214) 570 8264 voice/fax
                > | | [email protected]
                > * Web developer/designer http://TheMagicM.com
                > * E-commerce and Miva
                > * Author, The Official Miva Web Scripting Book -- available on-line:
                > <A HREF ="http://www.amazon.com/exec/obidos/ISBN=0966103211/magicmetalproducA">http://www.amazon.com/exec/obidos/ISBN=0966103211/magicmetalproducA</A>
                >
                >
                >

                Comment


                  #9
                  DesignExtend.com is THE place for the OpenUI



                  The OpenUIT is moving!!!

                  The OpenUI Consortium is pleased to announce that it will now be =
                  utilizing
                  DesignExtend.com as THE primary outlet for the OpenUI Look & Feel =
                  software
                  package and all supporting and ancillary products. DesignExtend.com has =
                  been
                  a long-time, reliable reseller of the OpenUI and has shown a commitment =
                  to
                  service and customer support for its line of products.

                  <A HREF ="http://www.designextend.com/store/merchant.mv?AFFIL=3DOUI&screen=3DCTGY&c=">http://www.designextend.com/store/merchant.mv?AFFIL=3DOUI&screen=3DCTGY&c=</A>
                  ategory
                  _code=3DOpenUI-Consortium

                  While some hosts and developers will continue to offer OpenUI products =
                  to
                  thousands of Miva Merchant users, through DesignExtend.com, users will =
                  be
                  offered more personalized purchasing assistance (online chat and phone =
                  is
                  offered to help users make the right purchase), 3-day maximum =
                  installations,
                  and more.

                  As a special offer (and to celebrate), from now thru February 6, 2005, =
                  we
                  have a number of exciting specials, exclusively in the DesignExtend.com
                  store:

                  - Get our OpenStatisticsT add-on for only $5.00 (with any purchase,
                  offered during checkout)
                  <A HREF ="http://www.openui.org/redirect/?pc=3DOPENUI-STATS =20">http://www.openui.org/redirect/?pc=3DOPENUI-STATS =20</A>

                  - Give your shoppers an extra language; buy any of our language packs =
                  for
                  1/2-price...only $34.95!
                  + Spanish-Mexico (es-MX)
                  [<A HREF ="http://www.openui.org/redirect/?pc=3DOPENUI-OLESMX]">http://www.openui.org/redirect/?pc=3DOPENUI-OLESMX]</A>
                  + French-Canada (fr-CA)
                  [<A HREF ="http://www.openui.org/redirect/?pc=3DOPENUI-OLFRCA]">http://www.openui.org/redirect/?pc=3DOPENUI-OLFRCA]</A>
                  + French (fr-FR) =
                  [<A HREF ="http://www.openui.org/redirect/?pc=3DOPENUI-OLFRFR]">http://www.openui.org/redirect/?pc=3DOPENUI-OLFRFR]</A>

                  - Want to have your cake and eat it too?? You can get the OpenAllT
                  package for only $99.95 (reg $149.95)
                  <A HREF ="http://www.openui.org/redirect/?pc=3DOPENUI-ALL">http://www.openui.org/redirect/?pc=3DOPENUI-ALL</A>

                  Now is the time to update your store...don't wait for this limited time
                  offer to pass you by!

                  Darren Ehlers
                  OpenUI Developer Consortium
                  <A HREF ="http://www.openui.org/=20">http://www.openui.org/=20</A>



                  Comment

                  Working...
                  X