The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
hide post reply button in certain forums
How can i hide the post reply button (the one above left of my username) in certain forums that I specify? can i either A. specify the forum ID's that i DO want it in or B. specify the forum ID's that I DON'T want it in? Like an If forumd ID =1,2,3,4,5,6 etc etc. then show button type of thing. can someone help me with this? what would the code look like?
|
#2
|
||||
|
||||
i dont quit understand what you are trying to say, do you want to hide both the post reply buttons or do you just want to get rid the one above your username or just hide it?
if you just want to hide it in then in SHOWTHREAD template. look for: PHP Code:
PHP Code:
|
#3
|
||||
|
||||
exactly! that was just what I was wanting to do. Thanks "johnny" for the help!
|
#4
|
||||
|
||||
yep, you welcome
|
#5
|
|||
|
|||
there is much more easyer way to make it :
ill sujest you my way : Code:
ALTER TABLE `forum` ADD `showreply` SMALLINT( 6 ) NOT NULL DEAFULT 1; Code:
Find : 'allowratings' => 1, 'countposts' => 1, Below Add : 'showreply' => 1, Find : print_yes_no_row($vbphrase['show_forum_on_forum_jump'], 'options[showonforumjump]', $forum['showonforumjump']); Below Add : print_table_header('Reply Options'); print_yes_no_row('Show Reply button on this forum?', 'forum[showreply]', $forum['showreply']); Code:
Find : <if condition="$show['largereplybutton']"> <td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&noquote=1&p=$LASTPOSTID"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if></a></td> <else /> <td class="smallfont"> </td> </if> Before Add : <if condition="$forum['showreply']"> After Add : </if> hope its helps MiZ. |
#6
|
|||
|
|||
Cool, a template mod and a code hack version, you gonna release that miz? I'm sure a lot of people would like to see it but won't because it's in the request forum and some people don't even bother looking here unless they want something themselves.
Cheers, Robert |
#7
|
||||
|
||||
the one i showed with conditions you can use it for basicly anything in the templates, but the one u showed miz i like what you put together, im gonna use that. especially for the enhacned design im putting together for my site that needs certain things on in certain forums and certain things off on another.
|
#8
|
|||
|
|||
Quote:
here we go mate https://vborg.vbsupport.ru/showthread.php?t=70139 |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|