Announcement

Collapse
No announcement yet.

menu code

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

  • menu code

    Would this
    PHP Code:
    usercp.php?s
    do the same job as this?
    PHP Code:
    usercp.php?s=$session[sessionhash
    or is it their for a reason?

    I ask because I just setup a different menu system and it doesn't like the $session[sessionhash] code.

  • #2
    Turn off "browse with cookies" in your options or logout and then compare the two links and you'll see the difference.

    Comment


    • #3
      What system did you use? If it's JavaScript, I got a solution for ya.

      Put the following in headinclude:
      Code:
      <script language="java[b][/b]script">session = "$session[sessionhash]";</script>
      Then put the following in your system:

      "URL?s="+session+""
      or if need be
      "URL?s="+session+"moreURL"

      So for example
      myvar1 = "usercp.php?s="+session+"";
      myvar2 = "calendar.php?s="+session+"";
      myvar3 = "misc.php?s="+session+"&action=faq";

      or, for the ever-popular HierMenus, like this:
      Code:
      HM_Array2 = [
      // Register
      [175,,75,,,,,,,0,0,0,0,0,0,,,,,1,1],
      ["Register!","register.php?s="+session+"",1,0,1]
      ]

      Comment


      • #4
        Thanks, I think I will leave it as no one has reported any problems YET!

        The "browse with cookies" is set to ON, I removed the OFF feature.

        Thanks guys

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...
        X