tareqbd
01-22-2013, 05:49 PM
May I request help for below plugin codes. These were written for vb 4.1.x. Seems doesn't work at all with 4.2.x.
For search_results_prebits/postbits:
if ($search['showposts']){
foreach ($itemids AS $postid => $post){
$itemids["$postid"]['pagetext'] = preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', $vbphrase[sid_hide_has_hidden], $post['pagetext']);
}
}
For archive_thread_post:
$post['pagetext_simp'] = strip_bbcode(preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', $vbphrase[sid_hide_has_hidden], $post['pagetext']));
if ($vbulletin->options['wordwrap'] != 0){
$post['pagetext_simp'] = fetch_word_wrapped_string($post['pagetext_simp']);
}
$post['pagetext_simp'] = fetch_censored_text($post['pagetext_simp']);
I appreciate if someone can help on it.
For search_results_prebits/postbits:
if ($search['showposts']){
foreach ($itemids AS $postid => $post){
$itemids["$postid"]['pagetext'] = preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', $vbphrase[sid_hide_has_hidden], $post['pagetext']);
}
}
For archive_thread_post:
$post['pagetext_simp'] = strip_bbcode(preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', $vbphrase[sid_hide_has_hidden], $post['pagetext']));
if ($vbulletin->options['wordwrap'] != 0){
$post['pagetext_simp'] = fetch_word_wrapped_string($post['pagetext_simp']);
}
$post['pagetext_simp'] = fetch_censored_text($post['pagetext_simp']);
I appreciate if someone can help on it.