|
Re: disable new topic [message #15581 is a reply to message #15580] |
Sat, 20 December 2003 17:07 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Use the group permissions to do so (read the manual).
Basically you need to click on the "group manager" link on the forum's front page and then edit the permission for the group controlling resources for the forum who's permissions you want to alter.
FUDforum Core Developer
|
|
|
Re: disable new topic [message #15584 is a reply to message #15581] |
Sat, 20 December 2003 21:13 |
|
hello-world
Messages: 47 Registered: December 2003
Karma: 0
|
Member |
|
|
Thanks, I did something like this in the .tmpl files and it worked.
{SECTION: new_thread new thread link}
<?php if ($frm->forum_id != 1) { ?>
<a class="GenLink" href="{TEMPLATE: new_thread_lnk}"><img alt="{MSG: new_thread}" src="{THEME_IMAGE_ROOT}/new_thread.gif" /></a>
<?php } ?>
{SECTION: END}
This is weird though. I mean, if I do something like this in C, I
would be lucky if the computer doesn't fucking explode on my face.
But here, not only was my CPU intact, the display even came out as I
wanted it to.. Must have some fuckign mind reading mechanism or
something.
php is some weird shit, to say the least..
Anyway, I got my content system working, using the forum id = 1
for serving the articles and posting comments. The articles are read,
and the new_thread-button hidden if frm->id == 1.
Thanks for the good piece of software. But add the old fuckign style
if you want it to be fucking popular... .
[Updated on: Sat, 20 December 2003 21:18] Report message to a moderator
|
|
|
Re: disable new topic [message #15585 is a reply to message #15584] |
Sat, 20 December 2003 22:43 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
This is a bad solution because someone could still access the post form, all you did was remove a link to it.
The proper way of doing it via group manager.
FUDforum Core Developer
|
|
|
|
|
|
|
|
Re: disable new topic [message #15602 is a reply to message #15601] |
Mon, 22 December 2003 17:47 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Running mailist 150 times is probably easier especially if you write a quick script to run it for you .
FUDforum Core Developer
|
|
|