Announcement

Collapse
No announcement yet.

Send PM result in code listing top of page

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

  • Nicke71
    replied
    SOLVED!

    I did optimize functions_newpost.php (based on an article at digitalpoint.com) and guess something went wrong. Installed the original file and problem solved. His other optimization tips works tho.

    Leave a comment:


  • Nicke71
    started a topic [Forum] Send PM result in code listing top of page

    Send PM result in code listing top of page

    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 $ || #################################################################### \*======================================================================*/ ?>
    Last edited by Nicke71; Mon 12 Jul '10, 9:45pm.

Related Topics

Collapse

Working...
X