I just found out I get errors on top of Send New PM page, I dont think I had it before. I havent done any work at all with those kind of templates or php-files.
What do you think is wrong? The Forum seems to work fine except for that.
UPDATE: Also when you read a PM. But not when just viewing your inbox.
This is what at top of page before the normal page with logo, navbar etc.
]glist'], $errors, false); if (!empty($threadinfo['prefixid'])) { $prefix = $vbphrase["prefix_$threadinfo[prefixid]_title_plain"]; $keywords[] = trim($prefix); } if (!empty($pagetext)) { // title has already been htmlspecialchar'd, pagetext has not $words = fetch_postindex_text(unhtmlspecialchars($threadinfo['title']) . ' ' . $pagetext); $wordarray = split_string($words); [php]$sorted_counts = array_count_values($wordarray); arsort($sorted_counts); require(DIR . '/includes/searchwords.php'); // get the stop word list; allow multiple requires $badwords = array_merge($badwords, preg_split('/\s+/s', $vbulletin->options['badwords'], -1, PREG_SPLIT_NO_EMPTY)); foreach ($sorted_counts AS $word => $count) { $word = trim($word); if (in_array(strtolower($word), $badwords) OR strlen($word) <= 3) { continue; } $word = htmlspecialchars_uni($word); if (!in_array($word, $keywords)) { $keywords[] = $word; } if (sizeof($keywords) >= 50) { break; } } } return implode(', ', $keywords); } /*======================================================================*\ || #################################################################### || # Downloaded: 07:21, Thu Jun 24th 2010 || # CVS: $RCSfile$ - $Revision: 36195 $ || #################################################################### \*======================================================================*/ ?>
What do you think is wrong? The Forum seems to work fine except for that.
UPDATE: Also when you read a PM. But not when just viewing your inbox.
This is what at top of page before the normal page with logo, navbar etc.
]glist'], $errors, false); if (!empty($threadinfo['prefixid'])) { $prefix = $vbphrase["prefix_$threadinfo[prefixid]_title_plain"]; $keywords[] = trim($prefix); } if (!empty($pagetext)) { // title has already been htmlspecialchar'd, pagetext has not $words = fetch_postindex_text(unhtmlspecialchars($threadinfo['title']) . ' ' . $pagetext); $wordarray = split_string($words); [php]$sorted_counts = array_count_values($wordarray); arsort($sorted_counts); require(DIR . '/includes/searchwords.php'); // get the stop word list; allow multiple requires $badwords = array_merge($badwords, preg_split('/\s+/s', $vbulletin->options['badwords'], -1, PREG_SPLIT_NO_EMPTY)); foreach ($sorted_counts AS $word => $count) { $word = trim($word); if (in_array(strtolower($word), $badwords) OR strlen($word) <= 3) { continue; } $word = htmlspecialchars_uni($word); if (!in_array($word, $keywords)) { $keywords[] = $word; } if (sizeof($keywords) >= 50) { break; } } } return implode(', ', $keywords); } /*======================================================================*\ || #################################################################### || # Downloaded: 07:21, Thu Jun 24th 2010 || # CVS: $RCSfile$ - $Revision: 36195 $ || #################################################################### \*======================================================================*/ ?>
Comment