Article Forum Turn a Forum into a Article Depository 1.6 Checkboxes admin_options_processing Change Attachment Thumnail settings to default bbcode_parse_complete options['af_fsiattach']) { if ($counter == 1 && $articleforum && $vbulletin->options[af_fpcp] && ($vbulletin->GPC['pagenumber'] == 1 || $vbulletin->options[af_firstpost])) { $this->registry->options['attachthumbs'] = $this->registry->options['attachthumbs_backup']; $vbulletin->options['attachthumbs'] = $vbulletin->options['attachthumbs_backup']; } }]]> Force Full Size inline attachment bbcode_parse_start options['af_fsiattach'] && $articleforum) { $vbulletin->options['attachthumbs_backup'] = $vbulletin->options['attachthumbs']; $this->registry->options['attachthumbs_backup'] = $this->registry->options['attachthumbs']; if ($counter == 1 && $articleforum && $vbulletin->options[af_fpcp] && ($vbulletin->GPC['pagenumber'] == 1 || $vbulletin->options[af_firstpost]) && $vbulletin->options['attachthumbs']) { $vbulletin->options['attachthumbs'] = 0; } }]]> cache template cache_templates Edit Forum forumadmin_edit_form Process field forumdata_start validfields['articleforum'] = array(TYPE_INT, REQ_NO);]]> Article Forum forumdisplay_complete options['af_forumids'], $fparentforums)) { $articleforum = 1; } } if ($articleforum && strpos(",{$vbulletin->userinfo['styleid']},", ",{$vbulletin->options[af_bannedstyleids]},") === false) { header("Location: articles.php?c=$forumid"); /*eval('$FORUMDISPLAY = "' . fetch_template('FORUMDISPLAY') . '";'); $FORUMDISPLAY = str_replace($vbphrase[thread], $vbphrase[article], $FORUMDISPLAY); $FORUMDISPLAY = str_replace($vbphrase[forums], $vbphrase[categories], $FORUMDISPLAY); $FORUMDISPLAY = str_replace($vbphrase[forum], $vbphrase[category], $FORUMDISPLAY); $FORUMDISPLAY = str_replace("newthread.gif","newarticle.gif", $FORUMDISPLAY); print_output($FORUMDISPLAY);*/ }]]> Start Forum Display forumdisplay_start templatecache['threadbit'] = $vbulletin->templatecache['af_threadbit']; }*/]]> Links global_start options[af_navbar]) { $af_navbar_link = "options['bburl']."/articles.php$session[sessionurl_q]\">$vbphrase[articles]"; eval('$template_hook[navbar_buttons_left] .= $af_navbar_link;'); }]]> New Reply newreply_form_complete options['af_forumids'], $fparentforums)) { $articleforum = 1; } } if ($articleforum) { eval('$newreply = "' . fetch_template('newreply') . '";'); $newreply = str_replace($vbphrase[thread], $vbphrase[article], $newreply); $newreply = str_replace("newthread.gif","newarticle.gif", $newreply); print_output($newreply); }]]> New Thread newthread_form_complete session->vars['sessionurl']] = $vbphrase[articles]; $parentlist = array_reverse(explode(',', substr($foruminfo['parentlist'], 0, -3))); foreach ($parentlist AS $forumID) { if ($vbulletin->options['af_forumids'] == $forumID) { continue; } $forumTitle = $vbulletin->forumcache["$forumID"]['title']; $navbits['articles.php?' . $vbulletin->session->vars['sessionurl'] . "c=$forumID"] = $forumTitle; } $navbits[''] = $vbphrase['post_new_thread']; $navbits = construct_navbits($navbits); eval('$navbar = "' . fetch_template('navbar') . '";'); /*eval('$newthread = "' . fetch_template('newthread') . '";'); $newthread = str_replace($vbphrase[thread], $vbphrase[article], $newthread); $newthread = str_replace($vbphrase[forum], $vbphrase[category], $newthread); print_output($newthread);*/ }]]> Alter Postbit postbit_display_complete options[af_chide]); } if (!is_array($af_fphide)) { $af_fphide = explode(',', $vbulletin->options[af_fphide]); } if ($counter == 1 && $articleforum && $vbulletin->options[af_fpcp] && ($vbulletin->GPC['pagenumber'] == 1 || $vbulletin->options[af_firstpost])) { if ($af_fphide && in_array('signature', $af_fphide)) { $post['signature'] = ''; } if ($af_fphide && in_array('messageicon', $af_fphide)) { $show['messageicon'] = false; } if ($af_fphide && in_array('detailedtime', $af_fphide)) { $show['af_detailedtime'] = true; } $this->templatename = 'af_firstpost'; $show['subscribed'] = iif($threadinfo['issubscribed'], true, false); $show['closethread'] = iif($threadinfo['open'], true, false); } elseif ($counter > 1 && $articleforum && $vbulletin->options[af_cpcp]) { if ($af_chide && in_array('signature', $af_chide)) { $post['signature'] = ''; } if ($af_chide && in_array('avatar', $af_chide)) { $show['avatar'] = false; } if ($af_chide && in_array('usertitle', $af_chide)) { $post['usertitle'] = ''; } if ($af_chide && in_array('rank', $af_chide)) { $post['rank'] = ''; } if ($af_chide && in_array('joindate', $af_chide)) { $post['joindate'] = ''; } if ($af_chide && in_array('imicons', $af_chide)) { $post[icqicon] = ''; $post[msnicon] = ''; $post[aimicon] = ''; $post[yahooicon] = ''; $post[skypeicon] = ''; $post[steamicon] = ''; $post[xfireicon] = ''; } if ($af_chide && in_array('field2', $af_chide)) { $post['field2'] = ''; } if ($af_chide && in_array('age', $af_chide)) { $post['age'] = ''; } if ($af_chide && in_array('postcount', $af_chide)) { $show['postcount'] = '0'; } if ($af_chide && in_array('messageicon', $af_chide)) { $show['messageicon'] = '0'; } if ($af_chide && in_array('postbit_userinfo_right', $af_chide)) { $template_hook['postbit_userinfo_right'] = ''; } if ($af_chide && in_array('postbit_userinfo_right_after_posts', $af_chide)) { $template_hook['postbit_userinfo_right_after_posts'] = ''; } /*$this->templatename = 'af_comment';*/ }]]> Show Thread showthread_complete options['af_forumids'] == $forumID) { $navbits['articles.php' . $vbulletin->session->vars['sessionurl']] = $vbphrase[articles]; $af_subs = true; } elseif ($af_subs) { $forumTitle = $vbulletin->forumcache["$forumID"]['title']; $navbits['articles.php?' . $vbulletin->session->vars['sessionurl'] . "c=$forumID"] = $forumTitle; } else { $forumTitle = $vbulletin->forumcache["$forumID"]['title']; $navbits['forumdisplay.php?' . $vbulletin->session->vars['sessionurl'] . "f=$forumID"] = $forumTitle; } } $navbits[''] = $thread['prefix_rich'] . ' ' . $thread['title']; $navbits = construct_navbits($navbits); eval('$navbar = "' . fetch_template('navbar') . '";'); }]]> show thread postbit showthread_postbit_create options['attachthumbs'] = 1; if ($articleforum && $vbulletin->options[af_firstpost]) { if ($post['visible'] == 1 AND !$tachyuser AND $counter == 1 AND $vbulletin->GPC['pagenumber'] > 1) { if ($postorder) { $post['postcount'] = 1; ++$postcount; } else { $post['postcount'] = 1; --$postcount; } } }]]> first post always show showthread_query_postids options[af_firstpost]) { $ids .= ',' . $thread[firstpostid]; /*$postids = "post.postid IN (0" . $ids . ")";*/ }]]> show thread start showthread_start options[af_forumids],") !== false) { $articleforum = 1; } foreach ($vbphrase as $key => $phrase) { if (strpos($key, "thread")!==false) { $key2 = str_replace("thread", "article", $key); if ($vbphrase["$key2"] != '') { print_r('$vbphrase['."$key] = ".'$vbphrase['."$key2];
"); } } } exit;*/ $articleforum = 0; if ($foruminfo[parentlist] && strpos(",{$vbulletin->userinfo['styleid']},", ",{$vbulletin->options[af_bannedstyleids]},") === false) { $fparentforums = str_replace(',-1', '', $foruminfo[parentlist]); $fparentforums = explode (',', $fparentforums); if (in_array($vbulletin->options['af_forumids'], $fparentforums)) { $articleforum = 1; $vbphrase[closed_thread] = $vbphrase[closed_article]; $vbphrase[delete_thread] = $vbphrase[delete_article]; $vbphrase[discussion_thread_created_x_y] = $vbphrase[discussion_article_created_x_y]; $vbphrase[edit_thread] = $vbphrase[edit_article]; $vbphrase[forumid_where_thread_posted] = $vbphrase[forumid_where_article_posted]; $vbphrase[go_first_unread_in_thread_x] = $vbphrase[go_first_unread_in_article_x]; $vbphrase[have_x_posts_in_thread_last_y] = $vbphrase[have_x_posts_in_article_last_y]; $vbphrase[multipage_thread] = $vbphrase[multipage_article]; $vbphrase[poll_thread_prefix] = $vbphrase[poll_article_prefix]; $vbphrase[post_in_thread] = $vbphrase[post_in_article]; $vbphrase[post_new_thread] = $vbphrase[post_new_article]; $vbphrase[rate_thread] = $vbphrase[rate_article]; $vbphrase[sticky_thread] = $vbphrase[sticky_article]; $vbphrase[subscribe_to_thread] = $vbphrase[subscribe_to_article]; $vbphrase[thread] = $vbphrase[article]; $vbphrase[thread_deleted_by_x] = $vbphrase[article_deleted_by_x]; $vbphrase[thread_pm_title] = $vbphrase[article_pm_title]; $vbphrase[thread_starter] = $vbphrase[article_starter]; $vbphrase[threads] = $vbphrase[articles]; $vbphrase[you_are_subscribed_to_this_thread] = $vbphrase[you_are_subscribed_to_this_article]; $vbphrase[close_this_thread] = $vbphrase[close_this_article]; $vbphrase[reopen_this_thread] = $vbphrase[reopen_this_article]; $vbphrase[reply_to_thread] = $vbphrase[reply_to_article]; $vbphrase[submit_new_thread] = $vbphrase[submit_new_article]; $vbphrase[thread_management] = $vbphrase[article_management]; $vbphrase[thread_subscription] = $vbphrase[article_subscription]; $vbphrase[unstick_this_thread] = $vbphrase[unstick_this_article]; $vbphrase[you_may_add_x_tags_to_thread] = $vbphrase[you_may_add_x_tags_to_article]; $vbphrase[add_a_poll_to_this_thread] = $vbphrase[add_a_poll_to_this_article]; $vbphrase[already_rated_this_thread] = $vbphrase[already_rated_this_article]; $vbphrase[approve_thread] = $vbphrase[approve_article]; $vbphrase[close_thread] = $vbphrase[close_article]; $vbphrase[copy_thread] = $vbphrase[copy_article]; $vbphrase[merge_threads] = $vbphrase[merge_articles]; $vbphrase[move_thread] = $vbphrase[move_article]; $vbphrase[next_thread] = $vbphrase[next_article]; $vbphrase[open_thread] = $vbphrase[open_article]; $vbphrase[prev_thread] = $vbphrase[prev_article]; $vbphrase[rate_this_thread] = $vbphrase[rate_this_article]; $vbphrase[search_this_thread] = $vbphrase[search_this_article]; $vbphrase[similar_threads] = $vbphrase[similar_articles]; $vbphrase[stick_thread] = $vbphrase[stick_article]; $vbphrase[subscribe_to_this_thread] = $vbphrase[subscribe_to_this_article]; $vbphrase[thread_tools] = $vbphrase[article_tools]; $vbphrase[unapprove_thread] = $vbphrase[unapprove_article]; $vbphrase[unstick_thread] = $vbphrase[unstick_article]; $vbphrase[unsubscribe_from_this_thread] = $vbphrase[unsubscribe_from_this_article]; $vbphrase[users_viewing_this_thread_x_y_z] = $vbphrase[users_viewing_this_article_x_y_z]; $vbphrase[you_rated_this_thread] = $vbphrase[you_rated_this_article]; } }]]>
Template Group template_groups
{2}]]> ({2} members and {3} guests)]]> (Use a comma separated list of styleids)]]>
Requires Comment Postbit to be enabled]]>
Sub-forums to the forum selected will be article categories.]]>
posint "; foreach($vbulletin->forumcache AS $forumid => $forum) { $forum[depth] = count(explode(",", $forum[parentlist])) - 2; $forum[i] = 0; while ($forum[i] < $forum[depth]) { $forum[spacing] .= " - "; $forum[i]++; } $options .= "\\t\\t\\n"; } $options .= ""; return "\\n$options\\t"; ') . "]]> 1 boolean yesno 1 boolean yesno 1 posint 25 number -1 boolean yesno 1 posint 8 boolean yesno 1 posint 6 posint 6 posint 6 free "Signature", "messageicon" => "Message Icon", "detailedtime" => "Detailed Time", ); foreach($checkbox_options AS $key => $phrase) { $options .= "\\t\\t
\\n"; } return "\\n$options\\t";') . "]]>
free "Signature", "postcount" => "Post Count", "usertitle" => "User Title", "age" => "Age", "field2" => "Location", "joindate" => "Join Date", "rank" => "Rank", "avatar" => "Avatar", "imicons" => "IM Icons", "messageicon" => "Message Icon", "postbit_userinfo_right" => "\$template_hook[postbit_userinfo_right]", "postbit_userinfo_right_after_posts" => "\$template_hook[postbit_userinfo_right_after_posts]", ); foreach($checkbox_options AS $key => $phrase) { $options .= "\\t\\t
\\n"; } return "\\n$options\\t";') . "]]>
boolean yesno boolean yesno boolean yesno 1 boolean yesno 1 free boolean yesno 0 boolean yesno 0 boolean yesno 0