Announcement

Collapse
No announcement yet.

[bug] Dead links in "Moderate Posts" section (AdminCP/ModCP)

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

  • [bug] Dead links in "Moderate Posts" section (AdminCP/ModCP)

    Hiho =)

    If your forum is not located in the root directory of your domain all links to forums in the "Moderate Posts" section will not work.
    One more problem (but maybe a design issue) is that these links are opened inside the admincp/modcp frameset (same with the user profile links).

    I fixed it like this:

    Open mod/moderate.php and find
    Code:
    makelabelcode("<b>Located in:</b>","<a href=\\"/forumdisplay.php?s=$session[sessionhash]&amp;forumid=$thread[forumid]\\">$thread[forumtitle]</a>");
    Replace it with
    Code:
    makelabelcode("<b>Located in:</b>","<a href=\\"../forumdisplay.php?s=$session[sessionhash]&amp;forumid=$thread[forumid]\\" target=\\"_blank\\">$thread[forumtitle]</a>");
    Find
    Code:
    makelabelcode("<b>Located in:</b>","<a href=\\"/forumdisplay.php?s=$session[sessionhash]&amp;forumid=$post[forumid]\\">$post[forumtitle]</a>");
    and replace it with
    Code:
    makelabelcode("<b>Located in:</b>","<a href=\\"../forumdisplay.php?s=$session[sessionhash]&amp;forumid=$post[forumid]\\" target=\\"_blank\\">$post[forumtitle]</a>");
    To make the user profile links also open in a new window find this two times:
    Code:
    makelabelcode("<b>Posted by:</b>","<a href=\\"user.php?s=$session[sessionhash]&amp;action=viewuser&amp;userid=$user[userid]\\">$user[username]</a>");
    and replace it with:
    Code:
    makelabelcode("<b>Posted by:</b>","<a href=\\"user.php?s=$session[sessionhash]&amp;action=viewuser&amp;userid=$user[userid]\\" target=\\"_blank\\">$user[username]</a>");
    Last edited by Matze0007; Sat 23 Nov '02, 5:46am. Reason: added some backslashes for code to be displayed correctly
    Matze0007
    FilbBoard

  • #2
    Hiho =)

    Maybe anyone can confirm this, move it to the bugs forum or something?
    Matze0007
    FilbBoard

    Comment


    • #3
      Originally posted by Matze0007
      Hiho =)

      Maybe anyone can confirm this, move it to the bugs forum or something?
      I've fixed the forumdisplay issue but the user.php is intended.
      Scott MacVicar

      My Blog | Twitter

      Comment

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