Announcement

Collapse
No announcement yet.

Help "links.vbs"

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

    Help "links.vbs"

    I can get the links.htm to work

    but i want Need to Make the links.vbs

    if rename the links.htm to Olinks.htm

    and i have a links.vbs in the HTM Folder
    it does not work.
    just show deflaut menu shows

    what part of the manual do I read

    StePhan McKillen

    My Pages

    #2
    I am not sure that this will help you, but I will give you my findings about links.htm....

    If the file does not exist, then by default it shows the standard links. If you build a custom links.htm file, then it uses yours instead.

    Maybe since you are renaming the existing one to .vbs it detects that the htm file isn't there, and uses the defaults.

    Comment


      #3
      Work that bit out

      Some User are using links.vbs and write code
      to change the menu

      I want to do the same

      StePhan McKillen

      My Pages

      Comment


        #4
        You put a link in the links.htm file to redirect to links.vbs or links.asp.

        -Rupp
        Isn't Disney World a people trap operated by a mouse?
        💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

        Comment


          #5
          How ??

          StePhan McKillen

          My Pages

          Comment


            #6
            Good idea Rupp!

            How about something like this:

            <a href="links.vbs">Links VBS</a>

            Comment


              #7
              Stephan,

              Here what I do to have the link menu from a vbs file.
              In your “links.htm” add:
              <pre class="ip-ubbcode-code-pre">&lt;SCRIPT language="Javascript" src="/links.vbs"&gt;&lt;/SCRIPT&gt;</pre>

              Create a file in your HomeSeer/html directory called “links.vbs” and add this code in:
              <pre class="ip-ubbcode-code-pre">sub main()
              dim links
              dim email

              if hs.MailMsgCount &gt; 0 then
              email = "&lt;img src=""/new_messages.gif"" align=""absmiddle"" border=""0""&gt;"
              end if
              links = links & "&lt;a href=""/""&gt;Home&lt;/a&gt;"
              links = links & " | &lt;a href=""/stat""&gt;Status&lt;/a&gt;"
              links = links & " | &lt;a href=""/tope""&gt;Events&lt;/a&gt;"
              links = links & " | &lt;a href=""/elog#bt""&gt;Log&lt;/a&gt;"
              links = links & " | &lt;a href=""/mail""&gt;E-Mail" & " " & email & "&lt;/a&gt; "
              links = links & " | &lt;a href=""/CNNAlert/CNNAlert.asp""&gt;CNNAlert&lt;/a&gt;"

              Response.Send "document.write('" & links & "');"
              Response.Send "document.write('&lt;br&gt;&lt;b&gt;&lt;a&gt;Systeme UpTime "& hs.SystemUptime &"&lt;/a&gt;|');"
              Response.Send "document.write(' &lt;a&gt;UserLogin : "& hs.webloggedinuser &"&lt;/b&gt;&lt;/a&gt;');"
              end sub</pre>

              By doing this you will disable all HomeSeer links so you may need to rename the file “links.htm” to “links1.htm” after installing new plug-in or script to see if you have new links in HomeSeer.

              I hope this will help you
              Regards,

              Christian

              Comment


                #8
                As far as the link/redirection I use the same line but redirect to an asp page rather than a vbs page.

                -Rupp
                Isn't Disney World a people trap operated by a mouse?
                💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

                Comment


                  #9
                  Thanks

                  StePhan McKillen

                  My Pages

                  Comment

                  Working...
                  X