Announcement

Collapse
No announcement yet.

recognizing redirection

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

  • recognizing redirection

    Hi,

    When I move a thread and leave a direction behind, it still shows the redirection in the Newest Replies. When I click on the link, it says:

    No Thread specified. If you followed a valid link, please notify the webmaster

    The url link will be like this:

    www.domain.com/forums/showthread.php?p=#post

    How do I fix it?

  • #2
    Which "newest replies"?

    Comment


    • #3
      The Top 5 statistics

      Comment


      • #4
        Ah, I see that now. Is that a custom script you added? That isn't in the default software. You should contact the author of the script about that since it isn't properly handling redirection threads.

        Comment


        • #5
          Hi,

          Well the author suddenly disappeared and it was working fine when I installed. Now it doesn't anymore.

          Is it possible if you could look at the code:

          (index.php)
          // ### TOP 5 STATS BY ANIMEWEBBY ###########################################
          $displayrecords = "5"; // how many records should we show?
          $excludedforums = "13"; // forums to be excluded from latest threads. Format "0,5,7"
          $threadchars = "30"; // number of characters in thread title before '...' is added

          $getstats_posters = $DB_site->query("SELECT userid, username, posts FROM " . TABLE_PREFIX . "user ORDER BY posts DESC LIMIT 0, $displayrecords");
          while ($getstats_poster = $DB_site->fetch_array($getstats_posters))
          {
          eval('$stats_posters .= "' . fetch_template('forumhome_stats_poster') . '";');
          }

          $getstats_members = $DB_site->query("SELECT userid, username, posts, joindate FROM " . TABLE_PREFIX . "user ORDER BY joindate DESC LIMIT 0, $displayrecords");
          while ($getstats_member = $DB_site->fetch_array($getstats_members))
          {
          eval('$stats_members .= "' . fetch_template('forumhome_stats_member') . '";');
          }

          // filter out deletion notices if can't be seen
          $forumperms = fetch_permissions($forumid);
          if (!($permissions['forumpermissions'] & CANSEEDELNOTICE))
          {
          $delquery = ", NOT ISNULL(deletionlog.primaryid) AS isdeleted, deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason";
          $delthreadlimit = "AND deletionlog.primaryid IS NULL";
          $deljoin = "LEFT JOIN " . TABLE_PREFIX . "deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND type = 'thread')";
          }
          else
          {
          $delquery = ", NOT ISNULL(deletionlog.primaryid) AS isdeleted, deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason";
          $delthreadlimit = "";
          $deljoin = "LEFT JOIN " . TABLE_PREFIX . "deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND type = 'thread')";
          }

          $getstats_threads = $DB_site->query("
          SELECT thread.threadid, thread.title, thread.lastpost, thread.forumid, thread.replycount, thread.lastposter, thread.dateline, IF(views<=replycount, replycount+1, views) AS views, thread.visible, user.username, user.userid
          $delquery
          FROM " . TABLE_PREFIX . "thread AS thread
          LEFT JOIN " . TABLE_PREFIX . "user AS user ON (user.username = thread.lastposter)
          $deljoin
          WHERE thread.forumid NOT IN ($excludedforums)
          $delthreadlimit
          ORDER BY thread.lastpost DESC LIMIT 0, $displayrecords");

          while ($getstats_thread = $DB_site->fetch_array($getstats_threads))
          {
          $getstats_thread[title] = unhtmlspecialchars($getstats_thread[title]);
          if (strlen($getstats_thread[title]) > $threadchars)
          {
          $getstats_thread[titletrimmed] = substr($getstats_thread[title], 0, strrpos(substr($getstats_thread[title], 0, $threadchars), ' ')) . '...';
          }
          else
          {
          $getstats_thread[titletrimmed] = $getstats_thread[title];
          }
          if ($getstats_thread[lastpost] > $bbuserinfo[lastvisit])
          {
          $getstats_thread[newpost] = true;
          }
          if ($getstats_thread[isdeleted])
          {
          $getstats_thread[isdeleted] = true;
          }
          eval('$stats_threads .= "' . fetch_template('forumhome_stats_thread') . '";');
          }

          Comment


          • #6
            We cannot support custom scripts here. Try contacting the author or posting over at www.vbulletin.org for help.
            Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
            Change CKEditor Colors to Match Style (for 4.1.4 and above)

            Steve Machol Photography


            Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


            Comment

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