Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 New topic Icon
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Jac
Starting Member

4 Posts

Posted - 16 August 2003 :  01:28:40  Show Profile  Visit Jac's Homepage
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  Show Profile  Visit Webbo's Homepage
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
Go to Top of Page

Jac
Starting Member

4 Posts

Posted - 16 August 2003 :  06:03:03  Show Profile  Visit Jac's Homepage
Thanks for your suggestion. I tried it however both icons are still there. hmmm, any other ideas?

Thanks! Jac.
Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 16 August 2003 :  11:48:58  Show Profile
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.
Go to Top of Page

Jac
Starting Member

4 Posts

Posted - 16 August 2003 :  22:46:21  Show Profile  Visit Jac's Homepage
Thanks for your help Roland - your suggestion worked.

Cheers,

Jac.
Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 17 August 2003 :  07:05:36  Show Profile
Glad I could help
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.34 seconds. Powered By: Snitz Forums 2000 Version 3.4.07