Author |
Topic |
|
Jac
Starting Member
4 Posts |
Posted - 16 August 2003 : 01:28:40
|
Hi there, I'm a beginner - have just successfully loaded the forum onto my website and am wondering how to remove one of the "new topic" links. There is one below the forum and 1 above - I only require 1.
Thanks,
Jac. |
|
Webbo
Average Member
United Kingdom
982 Posts |
Posted - 16 August 2003 : 01:53:05
|
In topic.asp look for lines 900-908 (as below) and remove them
quote: if ((Cat_Status = 1) and (Forum_Status = 1)) then Response.Write " <a href=""post.asp?" & ArchiveLink & "method=Topic&FORUM_ID=" & Forum_ID & """>" & getCurrentIcon(strIconFolderNewTopic,"","align=""absmiddle""") & "</a> <a href=""post.asp?" & ArchiveLink & "method=Topic&FORUM_ID=" & Forum_ID & """>New Topic</a>" & vbNewLine else if (AdminAllowed = 1) then Response.Write " <a href=""post.asp?" & ArchiveLink & "method=Topic&FORUM_ID=" & Forum_ID & """>" & getCurrentIcon(strIconFolderLocked,"","align=""absmiddle""") & "</a> <a href=""post.asp?" & ArchiveLink & "method=Topic&FORUM_ID=" & Forum_ID & """>New Topic</a>" & vbNewLine else Response.Write " " & getCurrentIcon(strIconFolderLocked,"","align=""absmiddle""") & " Forum Locked" & vbNewLine end if end if
That should do it but back up your file first |
|
|
Jac
Starting Member
4 Posts |
Posted - 16 August 2003 : 06:03:03
|
Thanks for your suggestion. I tried it however both icons are still there. hmmm, any other ideas?
Thanks! Jac. |
|
|
Roland
Advanced Member
Netherlands
9335 Posts |
Posted - 16 August 2003 : 11:48:58
|
since you said that there's one above and one below the forum, I guess you meant on forum.asp and not topic.asp, which is what Webbo's change is for.
Open forum.asp and go to line 681. There you should see the following line:
call PostNewTopic() Add a ' to the front of that line to comment it out and remove the posting options from the bottom of the forum page. |
|
|
Jac
Starting Member
4 Posts |
Posted - 16 August 2003 : 22:46:21
|
Thanks for your help Roland - your suggestion worked.
Cheers,
Jac. |
|
|
Roland
Advanced Member
Netherlands
9335 Posts |
Posted - 17 August 2003 : 07:05:36
|
Glad I could help |
|
|
|
Topic |
|