Author |
Topic  |
|
Alkampfer
Starting Member
Italy
22 Posts |
Posted - 19 November 2002 : 07:16:48
|
How can automatically subscribe to posts : - Where I reply to a message - That I create ?
Is there any mod?
THX |
Alkampfer |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
|
headmaster
Starting Member
16 Posts |
Posted - 06 December 2002 : 11:36:52
|
I use Snitz for a ads styld forum and want the users to be subscribed to anything they reply to.
Can I have the checkbox for "Check Here to Subscribe" checked by default?
How would I do this?
Thanks, headmaster
|
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
Posted - 06 December 2002 : 12:02:01
|
Add the red part in line# 287, inc_subscription.asp:
ShowSubLink = "<input type=""checkbox"" name=""Tnotify"" value=""1"" CHECKED/>Check here to subscribe to this topic."
|
Snitz 3.4 Readme | Like the support? Support Snitz too |
 |
|
samyot
Junior Member
 
Canada
242 Posts |
|
samyot
Junior Member
 
Canada
242 Posts |
Posted - 06 December 2002 : 12:31:35
|
I figured it out!
I replaced:
if SubOption = "S" then ShowSubLink = "<input type=""checkbox"" name=""Tnotify"" value=""1"" />Check here to subscribe to this topic." else ShowSubLink = "<input type=""checkbox"" name=""Tnotify"" value=""0"" />Check here to unsubscribe from this topic." end if
with this:
if SubOption = "S" then if strRqMethod = "Topic" Then ShowSubLink = "<input type=""checkbox"" name=""Tnotify"" value=""1"" CHECKED/>Check here to subscribe to this topic." else ShowSubLink = "<input type=""checkbox"" name=""Tnotify"" value=""1"" />Check here to subscribe to this topic." end if else ShowSubLink = "<input type=""checkbox"" name=""Tnotify"" value=""0"" />Check here to unsubscribe from this topic." end if
|
Sylvain Amyot Forum | Home
MY OTHER SITES: http://www.mypcsecurity.ca http://www.mynature.ca http://www.myworkshop.ca http://www.toptechsites.com http://www.topsportsites.com http://www.mysportsforums.net
|
Edited by - samyot on 06 December 2002 12:32:34 |
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
Posted - 06 December 2002 : 12:33:31
|
Try replacing the whole line 287 by this:
ShowSubLink = "<input type=""checkbox"" name=""Tnotify"" value=""1"""
if strRqMethod = "Topic" then
ShowSubLink = ShowSubLink & " CHECKED/>Check here to subscribe to this topic."
else
ShowSubLink = ShowSubLink & "/>Check here to subscribe to this topic."
end if
I haven't tested this, so I do not know whether this will work in all situations where the subprocedure, where this code is located, is called. |
Snitz 3.4 Readme | Like the support? Support Snitz too |
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
|
headmaster
Starting Member
16 Posts |
Posted - 06 December 2002 : 12:35:37
|
Perfect!
You guys are great!!
Thanks...
headmaster |
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
|
David K
Junior Member
 
494 Posts |
Posted - 07 December 2002 : 16:06:47
|
you should modify this line: if strRqMethod = "Topic" then
to this if (strRqMethod = "Topic")or(strRqMethod = "TopicQoute") then |
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
Posted - 07 December 2002 : 19:30:45
|
David K, I don't think you're right on this one. TopicQuote is the method use for posting replies while quoting the existing topic, while samyot wanted the box to be checked by default only for new topics, not for replies. Quoting a topic is just another way to post a reply. |
Snitz 3.4 Readme | Like the support? Support Snitz too |
 |
|
David K
Junior Member
 
494 Posts |
Posted - 08 December 2002 : 06:03:30
|
TopicQoute isn't a reply, it's a new topic with a qoute, a reply with a qoute is ReplyQoute |
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
Posted - 08 December 2002 : 06:53:31
|
No it's not. TopicQuote is a reply quoting a topic. ReplyQuote is a reply quoting another reply. The difference is certainly due to the fact that a topic quote needs the quoted topic from the TOPICS table, while a quoted reply needs the quoted contents to be retrieved from thr replies table. The concept of a topic quoting another topic is a bit absurd, which is probably the reason that it doesn't exist here. Maybe you should have actually tried the functionality before posting about it... |
Snitz 3.4 Readme | Like the support? Support Snitz too |
 |
|
|
Topic  |
|