Форумы для ваших сайтов > vBulletin

быстрый ответ

(1/2) > >>

Enemy:
В vBulletin Version 2.2.* в низу на странице где сообщения есть форма ответа. А в vBulletin Version 2.3.0 ответ на тему можна добавить только на новой странице. Можна ли добавить эту опцию и в 2.3.0?

AZone:
Можно

Enemy:
AZone
как? редактировать темплейт?

Enemy:
очевидно это зависит от базы данных, а не от темплейтов и кода версии форума. потому что когда я подключил к абгрейднутой базе данных форум 2.2.6 - там также небыло формы быстрого ответа....

Кто-то знает как его включить? пожалуйста скажите.

AZone:
// ##################################################
// ################ Quick Reply Box #################
// ########### Hack version 1.0 (01.29.02) ##########
// ############## for vBulletin v2.2.2 ##############
// ##################################################
// ########### by Chen \'FireFly\' Avinadav ###########
// ########## (chen.avinadav@vbulletin.com) #########
// ##################################################

1. In showthread.php find this bit of code:
// ##################################################
if (!$getperms[\'canviewothers\'] and ($thread[\'postuserid\']!=$bbuserinfo[\'userid\'] or $bbuserinfo[\'userid\']==0)) {
  show_nopermission();
}

if ((!isset($pagenumber) or $pagenumber==0) and $pagenumber!="lastpage") {
  $pagenumber=1;
}
// ##################################################
And replace it with the following:
// ##################################################
if (!$getperms[\'canviewothers\'] and $thread[\'postuserid\']!=$bbuserinfo[\'userid\']) {
  show_nopermission();
}

if (($bbuserinfo[\'userid\']!=$thread[\'postuserid\']) and (!$getperms[\'canviewothers\'] or !$getperms[\'canreplyothers\'])) {
   $replybox=\'\';
} elseif (!$getperms[\'canview\'] or (!$getperms[\'canreplyown\'] and $bbuserinfo[\'userid\']==$thread[\'postuserid\'])) {
   $replybox=\'\';
} elseif (!$thread[\'open\'] and !ismoderator($thread[\'forumid\'],\'canopenclose\')) {
   $replybox=\'\';
} else {
   $textareacols = gettextareawidth();
   eval("\\$replybox = \\"".gettemplate(\'showthread_replybox\')."\\";");
}

if ((!isset($pagenumber) or $pagenumber==0) and $pagenumber!="lastpage") {
  $pagenumber=1;
}
// ##################################################

2. Create a new template, with the name "showthread_replybox":
// ##################################################





















   Post Reply


   Your Reply:
   
      
      
         

         [check message length]
      
      
   









   
   
   
   




// ##################################################

3. In the "showthread" template add $replybox right after the following:
// ##################################################



   $pagenav 
   
   
   Last Thread
    
   Next Thread
   
   



// ##################################################

You\'re all done, now upload showthread.php back to your server and enjoy this hack. :-)

Chen

Навигация

[0] Главная страница сообщений

[#] Следующая страница

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 
Перейти к полной версии