Author |
Topic |
|
nickw
Junior Member
Ireland
193 Posts |
Posted - 20 September 2005 : 16:27:57
|
Hi All, I did search, but came up blank...
Two questions if you have a moment... First, can the subscription be set to only send one reply per topic reply... (for the first reply after you post only)
Second, can the hyperlink in the notification email be set to always go to the last page (or the page where that last post was)? |
Nick |
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
Posted - 20 September 2005 : 17:47:56
|
Hmmm... the first seems to be the hardest to achieve, since in order to get that, you'd need to delete the subscription, something that would be possible only if the forum was configured to allow Topic subscriptions. Other than that, you'd need to maintain a lotta info about post times and reply times, besides the subscription itself. Not impossible, but certainly hard.
The second would probably be easier. You'd need to find the reply id for the last reply and change the link so that topic.asp would be open for the last reply. Not difficult to do.
Anyway, both situations require code changes. |
Snitz 3.4 Readme | Like the support? Support Snitz too |
|
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 21 September 2005 : 05:03:29
|
Actually, your second question reminds me that I was going to look into modifying the jump to last post feature so it wouldn't require the REPLY_ID, I'll try to free up some time later in the week to do so.
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
|
|
nickw
Junior Member
Ireland
193 Posts |
Posted - 21 September 2005 : 08:00:05
|
Thank you both :)
Our forum is getting busier and busier... the second one is the most important to me, and if you could do it (I am no coder) I would be in your debt
In regard to the first issue, maybe a DEV request for the next version of Snitz could be made? |
Nick |
|
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 21 September 2005 : 08:41:33
|
If, Rui, if!
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
|
|
net83it
Starting Member
18 Posts |
Posted - 23 September 2005 : 11:24:40
|
hello people any news on the second question? thank you very much |
|
|
net83it
Starting Member
18 Posts |
Posted - 25 September 2005 : 06:27:21
|
it seems it is possible to link each reply individually
http://www.ioguadagno.biz/forum/topic.asp?TOPIC_ID=7946&whichpage=3#66720
in this way i linked the reply #66720 of the topic #7946 in the 3rd page. so the script should retrieve: - the id of the reply - the page which the reply is in and then send the email of notification.
any idea about how to achieve it? |
|
|
natcolley
Starting Member
USA
2 Posts |
Posted - 27 September 2005 : 20:09:54
|
Ok, Newby here. I'm not clear on the basic question of subscriptions. Are they set for all posters by default? I ask because I don't see any 'subscribe to this topic' option here on this board. I suppose I'll get an answer in my email sooner or later, but in case I don't, I thought I'd ask... |
|
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
Posted - 28 September 2005 : 03:38:01
|
Subscriptions aren't even enabled by default. They need to be enabled by you, and then each category and forum must have their properties changed to have a subscription level compatible with the level defined for the board. Only after that will users be able to subscribe, but they will need to do it explicitly.
This board only allows subscriptions to the Announcements: Security Related Bug Fixes |
Snitz 3.4 Readme | Like the support? Support Snitz too |
|
|
lucapan
Starting Member
9 Posts |
Posted - 22 February 2006 : 09:33:39
|
I solved the second question
First of all make a backup copy of inc_subscription.asp and post_info.asp. Then edit the following files:
-------------------- inc_subscription.asp --------------------
Line 36. Find the code:
sub ProcessSubscriptions (pMemberId, CatID, ForumId, TopicId, Moderation)
and REPLACE it with:
sub ProcessSubscriptions (pMemberId, CatID, ForumId, TopicId, Moderation) ProcessSubscriptionsEx pMemberId, CatID, ForumId, TopicId, Moderation, 0 end sub sub ProcessSubscriptionsEx (pMemberId, CatID, ForumId, TopicId, Moderation, NewReplyId)
Line 210. Find the code:
strMessage = strMessage & "You can view the posting at " & strForumURL & "topic.asp?TOPIC_ID=" & TopicId & vbNewline
and REPLACE it with:
strMessage = strMessage & "You can view the posting at " & strForumURL & "topic.asp?TOPIC_ID=" & TopicId if NewReplyId > 0 then strMessage = strMessage & "&whichpage=-1&REPLY_ID=" & NewReplyId strMessage = strMessage & vbNewline
------------- post_info.asp -------------
Line 1087. Find the code:
ProcessSubscriptions rs("MEMBER_ID"), Cat_ID, Forum_ID, Topic_ID, Moderation
and REPLACE it with:
ProcessSubscriptionsEx rs("MEMBER_ID"), Cat_ID, Forum_ID, Topic_ID, Moderation, NewReplyID
---------------- THAT's ALL FOLKS |
http://www.gpfun.net GP Races with Grand Prix Legends |
Edited by - lucapan on 22 February 2006 09:37:45 |
|
|
volition
Starting Member
USA
49 Posts |
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 11 January 2007 : 03:46:44
|
This has already been implemented in v3.4.06 using a different method than the one posted by Lucapan.
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
|
|
gpspassion
Junior Member
260 Posts |
Posted - 24 November 2007 : 20:09:01
|
Do you know if the 3.4.06 method can be used with 3.4.05, maybe by a replacing a few files ? If not I'll look into Lucapan's mod.
UPDATE - never mind, used Lucapan's mod and I'm all set. Didn't realize you could "short" the page number by using -1 ! |
Edited by - gpspassion on 24 November 2007 20:34:08 |
|
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 26 November 2007 : 05:20:14
|
This is the one that was added to the base code. Be sure to read the entire topic.
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
|
|
|
Topic |
|