Author |
Topic  |
|
samoth
Starting Member
5 Posts |
Posted - 01 April 2005 : 20:50:10
|
I currently have Snitz forums setup as a subsite on my website. I was wondering if it's possible to have some sort of new post indicator (such as the folder icon)displayed on my site main page that indicates a new post has been entered in the forum.
Due to issues with my webserver, I cannot do the email notification.
Thanks
|
Edited by - samoth on 01 April 2005 20:50:58 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
Posted - 01 April 2005 : 22:52:17
|
If you can identify the user, all you need is to retrieve the data of his last visit from the members table (M_LASTHEREDATE) and compare it with the date of the last post (which is retrieved in default.asp, so you can have a look to see how it is done now by the forum code.). You can then use an icon or a message to indicate whether there are new posts for the user (there are if the last post date (it's really date and time) is later than the last visit date (and time). |
Snitz 3.4 Readme | Like the support? Support Snitz too |
 |
|
samoth
Starting Member
5 Posts |
Posted - 03 April 2005 : 18:19:50
|
A question would be, how can the user be identified without actually entering the forum. That would seem a bit complicated to do. As far as the information you provided, I can make out some of the code but have no real experience with it. Would I have to copy the code from default.asp and place it into my main page? |
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
Posted - 03 April 2005 : 18:38:21
|
I don't see how you want to notify of new posts without identifying the users, since what's new or old really depends on who is visiting...
Regarding the code, yes, you would need to identify the code being used at Snitz and move it to your page, along with all the necessary variables used to determine the last post made in the forum. |
Snitz 3.4 Readme | Like the support? Support Snitz too |
 |
|
samoth
Starting Member
5 Posts |
Posted - 04 April 2005 : 08:48:53
|
Yes I do understand that new post indication is based on identifying users. I'm just wondering of the difficulty in doing this since a) i want the user to see the notification without being in the forum thus not being logged on and b) my inexperience in working with this code. I'm beginning to think it's not possible. I was considering using iframe showing this on my main page. This may be a dumb question but is it possible to remove the header from the top (such as the info above the dark blue line at the top of this page)??? |
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
Posted - 04 April 2005 : 13:43:55
|
a. Even if the user isn't logged in to the forum, you still need to identify him, otherwise you can't notify him of new posts, since you cannot know whether there are new posts or not.
Anyway, how do you plan to identify the user from your own site? And is there a connection between the user's identity in your site and in your forum? |
Snitz 3.4 Readme | Like the support? Support Snitz too |
 |
|
|
Topic  |
|