|
|
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
|
|
|
|
|
|
|
|
|
|