vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Quick Reply Box (https://vborg.vbsupport.ru/showthread.php?t=34597)

otacon 09-07-2002 02:14 AM

hay u guys prob went trought this all redy but in my forums the post reply box is at the top to is there a way i can just get it on the bottom exe
http://www.thepunkit.com/forum/showt...php?threadid=5

2 X Viverridae 09-07-2002 02:43 AM

@ otacon - the code snippet in the 'showthread' template...

<!-- first unread and next/prev -->

...shows up a total of 4 times - $replybox should be after the fourth instance of it - you have it placed after the second instance of it.

Easy mistake to make...:D

otacon 09-07-2002 03:04 AM

o er er thanks

Illuvatar 09-07-2002 05:10 PM

Hey Firefly!

/me moves his whole site to new server, installs VB 2.2.7, and installs this most excellent hack!

Many thanks!

Illu

Joe Page 09-08-2002 01:43 PM

I'm using it on vB 2.2.7 with Quick Thread and the Store hack already installed. I get errors with this hack, it comes up with a Permissions error. I'm guessing that this hack won't work because I've got the Store hack and the Quick Thread hack installed?

Exo 09-08-2002 03:33 PM

How can i make it so that only admins can see the quick box when the thread is closed? Now can moderators see and post in the box too! :(

badham 09-08-2002 03:39 PM

Ok, here is a problem for you guys/gals. I have preformed hack as detailed in the readme untill the last step. I don't have a showthread template to modify by adding $replybox to (at least not that I can find) I have no box no nothing as far as my fourm nothing has changed. I inherited this fourm from another person, and I am assuming there is something acting like a showthread template as the fourm works, but I can't find the script that I need to add to....................HELP

PS the showthread_replybox template is there and will preview
I am running version 2.2.1 if that matters

badham 09-08-2002 07:16 PM

Firefly......somebody.........I am sure this is an easy fix for you (not for me). Do I need to make a showthread template since I dont have one, and what code needs to be in there.................

Pro 09-13-2002 01:17 AM

Quote:

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;
}
I'm on 2.2.7 and those two:
Quote:

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;
}
aren't together...

so where do i add:
Quote:

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')."\";");
}
please help, i had the same problem in 2.2.6

Dan Flynn 09-15-2002 01:40 AM

Is there a way were it says post reply to change the wording to for quick replys or something like that?


All times are GMT. The time now is 10:56 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02198 seconds
  • Memory Usage 1,745KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete