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/Code)
 Topic View and Reply Voyeur MOD for 3.3
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 4

extrafree
New Member

54 Posts

Posted - 19 November 2001 :  10:48:14  Show Profile  Visit extrafree's Homepage
thank you very much for your help,but It not work!
I was thinking that i had change dbs file
IN RED
See who has viewed & replied to topics
[ALTER]
TOPICS
ADD#T_WHOVIEWED#VARCHAR (255)#NULL#
[END]

[ALTER]WITH THIS:
[CREATE]
A_TOPICS
ADD#T_WHOVIEWED#VARCHAR (255)#NULL#
[END]

becouse it gave me : table not exist,
so i had created it


the italian golden forum
Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 19 November 2001 :  10:51:47  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
yes remove that entire part:

[ALTER]
[CREATE]
A_TOPICS
ADD#T_WHOVIEWED#VARCHAR (255)#NULL#
[END]

----
-Eric | Mod Resource | Test Area
"A program is a device used to convert data into error messages."
http://phpscriptcenter.com -Quality PHP Scripts
Go to Top of Page

extrafree
New Member

54 Posts

Posted - 19 November 2001 :  10:59:35  Show Profile  Visit extrafree's Homepage
sorry but I'm italian so I don't undestand english very well,
I was telling you that I remove [alter] and I add [create]
but I deleted [alter]
than i made mod _dbsetup
with this:

See who has viewed & replied to topics
[ALTER]
TOPICS
ADD#T_WHOVIEWED#VARCHAR (255)#NULL#
[END]
[CREATE]
A_TOPICS
ADD#T_WHOVIEWED#VARCHAR (255)#NULL#
[END]






the italian golden forum
Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 19 November 2001 :  11:09:02  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
You need to remove the CREATE - Since your forum does not have archives, that entire section is not needed - and I updated your topic.asp to reflect that.

----
-Eric | Mod Resource | Test Area
"A program is a device used to convert data into error messages."
http://phpscriptcenter.com -Quality PHP Scripts
Go to Top of Page

extrafree
New Member

54 Posts

Posted - 19 November 2001 :  11:30:51  Show Profile  Visit extrafree's Homepage
I have removed tables, but dosn't work! :(

the italian golden forum


Edited by - extrafree on 19 November 2001 11:32:21
Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 19 November 2001 :  11:41:17  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
I wrote this specifically for 3.3, I cant think of anything else that might be causing the view count not to work :( I'm not as familiar with 3.1 code as I used to be.

----
-Eric | Mod Resource | Test Area
"A program is a device used to convert data into error messages."
http://phpscriptcenter.com -Quality PHP Scripts
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 19 November 2001 :  13:18:36  Show Profile  Visit dayve's Homepage
I am slowly but surely getting this to work on 3.1!!! things to consider for those of you trying to convert 3.3 mods to 3.1:


  • strActivePrefix change to strTablePrefix

  • "TOPICS.TOPIC_ID = " & Topic_ID change to "TOPICS.TOPIC_ID = " & Request.QueryString("TOPIC_ID")

  • omit Archive portions



so far I can get the Who Viewed field populated so I am quite sure we can get this running on 3.1, if I get it done soon I will share with all.

Great mod by the way. I was getting complaints awhile back because some members wanted to know if admin or moderators have read the topic. I had considered making a mod that showed if the topic was read by admin or moderator but this one is better.

Oh and nice use of taking advantage of one field and making it comma delimited. I haven't completed checked all the code yet, but do you remove redundant entries?

____________
dayve
http://www.nineinchnailz.com/forum

Edited by - dayve on 19 November 2001 13:21:37
Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 19 November 2001 :  13:22:02  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
When the member ID is inserted into the view field (yes comma delimited) it is first checked to see if it is already in there. If it is no update is done.

As for the replies, no extra database stuff is done there, so I did a SELECT DISTINCT on that one, so it only shows people who replied more than once, one time in the list.

As soon as this proves stable enough I'll see if I cant add the number of times each user has replied.

----
-Eric | Mod Resource | Test Area
"A program is a device used to convert data into error messages."
http://phpscriptcenter.com -Quality PHP Scripts
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 19 November 2001 :  13:31:05  Show Profile  Visit dayve's Homepage
SUCCESS!!! Got it working and will package it up for 3.1

Demo coming soon... great job STIM...

____________
dayve
http://www.nineinchnailz.com/forum
Go to Top of Page

extrafree
New Member

54 Posts

Posted - 19 November 2001 :  14:04:24  Show Profile  Visit extrafree's Homepage
It's a great mod..

I'm waiting for 3.1 package!

thank everybody

the italian golden forum
Go to Top of Page

suhern
Junior Member

186 Posts

Posted - 19 November 2001 :  22:28:49  Show Profile
Hi Stim,
Just want to say again that it's great mod. But I do have an interesting issue - I cannot see my own username on the topic view pop up despite the fact that I read it. When I login with other usernames (including one that has admin right), these usernames are captured. Only one particular admin account is not captured and the strangest part of it is that it was captured yesterday.... but today it is not....

Your help would be most appreciated. thanks and cheers

Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 19 November 2001 :  23:03:42  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
Yeah I think I know what's causing that...

Your admin ID is probably 1 or something in the low numbers, so if someone with the member ID of 10 reads it, when you read it, it wont update the database because it sees the '1' in there.

I'm working on a fix for this right now - shouldnt be too hard.

----
-Eric | Mod Resource | Test Area
"A program is a device used to convert data into error messages."
http://phpscriptcenter.com -Quality PHP Scripts
Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 19 November 2001 :  23:54:14  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
Fix - included in zip

----
-Eric | Mod Resource | Test Area
"A program is a device used to convert data into error messages."
http://phpscriptcenter.com -Quality PHP Scripts

Edited by - da_stimulator on 20 November 2001 06:39:25
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 20 November 2001 :  00:24:52  Show Profile

If Instr(Topic_WhoViewed, "," & MemberID) > 0 or _


Stim, if MemberID 11 is already stored or any MemberID begining with 1 is already stored, the above condition will be true for MemberID 1 and that will not be stored.

Applies to all numbers
when 2nn is already stored - MemberID 2 won't be stored
when 3nn is already stored - MemberID 3 won't be stored
when 4nn is already stored - MemberID 4 won't be stored

GauravBhabu
There is only one miracle...That is LIFE! | It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying.
Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 20 November 2001 :  00:31:38  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
ok so how should I go about fixing this then?

----
-Eric | Mod Resource | Test Area
"A program is a device used to convert data into error messages."
http://phpscriptcenter.com -Quality PHP Scripts
Go to Top of Page
Page: of 4 Previous Topic Topic Next Topic  
Previous Page | Next Page
 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.21 seconds. Powered By: Snitz Forums 2000 Version 3.4.07