PDA

View Full Version : hide post reply button in certain forums Hack


miz
10-02-2004, 10:00 PM
well with this hack you can hide reply button in forums you want to.

btw

very easy hack
1 query
1 file mod
1 templte mod

Enjoy, MiZ.

Polo
10-03-2004, 07:11 PM
Thanks for sharing... i'm sure domeone will find your mod useful ;)

Bryan Ex
10-03-2004, 07:35 PM
Perfect for my forums using RSS news feeds! Thanks.

Zachery
10-03-2004, 08:25 PM
Hmm couldnt you

<if condition="!in_array($foruminfo[forumid], array(X,Y,Z)"> Show button here </if> ?

miz
10-04-2004, 12:53 PM
Hmm couldnt you

<if condition="!in_array($foruminfo[forumid], array(X,Y,Z)"> Show button here </if> ?


read coments in this thread (https://vborg.vbsupport.ru/showthread.php?t=69878)

hmm and i think its better then every time you want to add/remove edit all styles over and over again

Dyntheos
10-07-2004, 02:23 AM
miz I really need this for the reply with quote button in the postbit. Can this be modified to remove that button from select forums? I edited it out of the postbit but it also takes away the button from the Send PM section.

Zachery
10-07-2004, 03:50 AM
miz I really need this for the reply with quote button in the postbit. Can this be modified to remove that button from select forums? I edited it out of the postbit but it also takes away the button from the Send PM section.Unless your using some old vB2 style setup, you should edit a global unchanged set of templates and have all styles underneath it they then inheirt the changes.

zzzxxzzz
11-19-2004, 01:22 AM
SQL-query:

ALTER TABLE `forum` ADD `showreply` SMALLINT( 6 ) NOT NULL DEAFULT1

MySQL said:

#1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEAFULT 1' at line 1

miz
11-21-2004, 08:52 AM
ALTER TABLE `forum` ADD `showreply` SMALLINT( 6 ) NOT NULL DEAFULT 1 ;

Bison
12-27-2004, 01:20 AM
Unless your using some old vB2 style setup, you should edit a global unchanged set of templates and have all styles underneath it they then inheirt the changes.

Some of your replies to posts makes me feel like puking ... you come off like an arrougant runt. Everyone doesn't run their forums like you do, and that remark about style inheriting changes really showed your age young man.

Now what sense is there for someone to goe out and buy two totally different styes for their forums, and put one above the other to inherit the templates of the above style? Don't you know that some styles have their own images paths, and that some themes hardcode the path to their images?

You response above to this gentleman was not carefully thougt out at all. You just don't want to be wrong and sometimes you need not reply to some threads.

yoyoyoyo
01-15-2005, 01:09 PM
SQL-query:

ALTER TABLE `forum` ADD `showreply` SMALLINT( 6 ) NOT NULL DEAFULT1

MySQL said:

#1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEAFULT 1' at line 1
I got the 1064 error as well

Marco van Herwaarden
01-15-2005, 01:46 PM
change 'DEAFULT1' to 'DEFAULT 1'