The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Hide Post Buttons Details »» | |||||||||||||||||||||||||
Another small hack, this one requested by cessna140.
It will remove the New Thread and/or Post Reply buttons from showthread and forumdisplay if the user does not have permission to post a New Thread and/or Post a Reply. Again, it's really quite simple. Download the attached file and follow the instructions. Please no PMs, email, ICQ, or AIM about this hack. It will be ignored. Show Your Support
|
Comments |
#2
|
|||
|
|||
not bad... wont install it tho - no need
|
#3
|
|||
|
|||
Awesome! Thanks for the quick response. I have installed it but have a problem. I have vB 2.2.5.
Your instructions state: Quote:
I placed the code after the first one I came across, saved/uploaded the file and checked the result. The buttons were gone from the top of the thread but not the bottom. So I inserted the code after the second occurance, saved/uploaded and tried again. Same result, the buttons are still at the bottom of the thread. Any ideas? Thanks again. |
#4
|
||||
|
||||
You wanted the second occurance, correct.
I missed one bit of the instructions, you need to do some additional stuff in the showthread template. Download the new file and do the second find/replace under showthread template. That will fix it. |
#5
|
|||
|
|||
Hey tubedogg,
Quote:
Quote:
This hack works at the Main Forum level but not at the Thread level. Here are some screen shots that might better explain what I'm referring to. The top part of the image shows unhacked normal operation at Forum level. The middle part of the image shows a Forum, after installing your hack, where the visitor does not have permission to post. Notice there is no New Thread button! Perfect. The bottom part of the image shows an individual thread with the buttons still showing even though the visitor does not have permission to post there. What needs to be done to make those disappear? This also ties in to another hack somewhere on vb.org that hides the New Thread button on a Closed thread. Can all of these situations be covered in one hack? |
#6
|
||||
|
||||
augh! the color! it burns my eyes!
|
#7
|
||||
|
||||
Following the instructions for the second find&replace under "showthread template" in the file from will fix your problem.
|
#8
|
||||
|
||||
nice hack
but correct me if i'm wrong but i think you missed some bits from the instructions add two new templates: showthread_threadbutton PHP Code:
showthread_replybutton PHP Code:
PHP Code:
PHP Code:
|
#9
|
|||
|
|||
tubedogg,
Thanks for taking the time. I've got half of it working... Quote:
The problem is, the new thread and reply buttons are still showing at the thread level as depicted in the bottom of the previously attached image. :disappointed: Not to be a pain but, I have followed your instructions to the letter, several times, and can't get it to work. Obviously, I am missing something! Could I impose on you to write new instructions specifically to what I am not getting? Exactly what needs to be replaced and where in order to hide the new thread and reply buttons in threads that I do not have permission to post/reply? Perhaps as inphinity suggests, there are more steps to this? Again, thanks! |
#10
|
||||
|
||||
This is taken verbatim from the instructions file and is what you need to do to make the thread buttons disappear.
__Find__ Code:
<!-- Thread nav and post images --> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="100%"><smallfont color="#EEEEFF" class="thtcolor"><b>Thread</b></smallfont></td> <td><a href="newthread.php?s=$session[sessionhash]&action=newthread&forumid=$forum[forumid]"><img src="https://vborg.vbsupport.ru/images/newthread.gif" border="0" alt="Post New Thread"></a></td> <td><normalfont> </normalfont></td> <td><a href="newreply.php?s=$session[sessionhash]&action=newreply&threadid=$threadid"><img src="$replyclose" border="0" alt="Post A Reply"></a></td> </tr> </table> <!-- /Thread nav and post images --> Code:
<!-- Thread nav and post images --> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="100%"><smallfont color="#EEEEFF" class="thtcolor"><b>Thread</b></smallfont></td> <td>$threadbutton</td> <td><normalfont> </normalfont></td> <td>$replybutton</td> </tr> </table> <!-- /Thread nav and post images --> Code:
<td><a href="newthread.php?s=$session[sessionhash]&action=newthread&forumid=$forum[forumid]"><img src="https://vborg.vbsupport.ru/images/newthread.gif" border="0" alt="Post New Thread"></a></td> <td><normalfont> </normalfont></td> <td><a href="newreply.php?s=$session[sessionhash]&action=newreply&threadid=$threadid"><img src="$replyclose" border="0" alt="Post A Reply"></a></td> Code:
<td>$threadbutton</td> <td><normalfont> </normalfont></td> <td>$replybutton</td> |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|