The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
![]() |
|||||||||||||||||||||||||
Here's an easy one, it barely took 4 minutes to do. :china:
This hack will add a quick replying box at the bottom of all threads, only if the user has permission to reply, so when you need to reply to something real quickly you don't need to click the Post Reply button and wait for the page to load. Instructions are in the attached .txt file, and if you want a demo... just look below. ![]() NOTE: For the vB 2.3.2 version please see this post. Extras:
Show Your Support
|
Comments |
#257
|
||||
|
||||
![]()
If you look at the showthread page, there is a < Last Thread Next Thread > section at both the top of the thread table and the bottom of the thread table. I believe you put $replybox below the first when you should have put $replybox under the second next/prev section - you just need to move "$replybox" in your showthread template until you get it where you want it to display.
|
#258
|
||||
|
||||
![]()
P.S. Anyone figure out how to only show the quick reply box for users who are logged in? (And not for unregistered users who are also allowed to post as guests... only for people who are logged in?)
(Forgive me because I am still very weak at PHP)... Looking at the other posts in this forum I see this code: Code:
if (!in_array($bbuserinfo['usergroupid'], array(5,6,7))) { $replybox=''; } else { $textareacols = gettextareawidth(); eval("\$replybox = \"".gettemplate('showthread_replybox')."\";"); } Or shoud I use this which I also see up in the thread: Code:
if (($bbuserinfo['usergroupid']=="5") or ($bbuserinfo['usergroupid']=="6")) { /*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; } $textareacols = gettextareawidth(); eval("\$replybox = \"".gettemplate('showthread_replybox')."\";"); } else { $replybox='' }; |
#259
|
||||
|
||||
![]()
Previously in the thread I see that putting the quick reply box only on the last page was discussed, and many didn't see a point. I guess my reasons are that:
1.) Even though you can hit the normal "Post Reply" on any page, at least you see the recap on the newreply page so you won't accidentally miss the second page and post something redundant. 2.) Placing the reply box on the last page makes it clearer that the first page isn't all there is. I'm afraid if the reply box is on every page that I'll have to make all the page numbers bigger so newbies don't miss multiple page threads. 3.) Putting the quick reply on all pages rather than just the last page encourages people to post without reading what is already there (as I myself was guilt of earlier in this thread ![]() Or is it really difficult to only show it on the last page? |
#260
|
||||
|
||||
![]()
OK - it was easier than I thought.
Just add Code:
} elseif ($bbuserinfo['usergroupid']=="1") { $replybox=''; Now the only thing I can't figure out is how to only show the reply box if: 1.) it is the last page of a multipage thread, or 2.) it is a single page thread. I can use } elseif ($pagenumber!="1") { $replybox=''; for example to not show it on page 1 but to show it on page 2. I see above there is this conditional statement: if ((!isset($pagenumber) or $pagenumber==0) and $pagenumber!="lastpage") { Which I thought I would be able to easily adapt, but I can't seem to make it work. Can anyone give me a hand? |
#261
|
||||
|
||||
![]()
when i add the smilies box and press one smilie it doesnt add one in the box...
|
#262
|
|||
|
|||
![]()
hey firefly
i installed this hack, but the box is above the thread and i want it below the thread, just like it is here, how would i do that? please be specifi. thanks btw it is very cool. |
#263
|
||||
|
||||
![]()
Firefly: great hack.. it's working pefectly on my board..
just a cosmetic question.. how would i go about putting the reply buttons right next to the form rather than another table below it? |
#264
|
||||
|
||||
![]() Quote:
|
#265
|
||||
|
||||
![]() Quote:
|
#266
|
||||
|
||||
![]() Quote:
|
#267
|
||||
|
||||
![]()
am i the only one having trouble installing this?!
|
#268
|
||||
|
||||
![]() Quote:
cuz the text above sounds like "type $replybox" after the code block above i couldn't find such thing in the original showthread.php |
#269
|
||||
|
||||
![]()
Can anyone tell me why I get parse error on line 480 on 2.2.5, the last line?
|
#270
|
||||
|
||||
![]()
fixed it, I missed a '}'
|
#271
|
||||
|
||||
![]() Quote:
![]() Hope that helps ![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|