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)
 Mod WhoIsInside
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 8

Endless Passages
Starting Member

21 Posts

Posted - 15 January 2002 :  22:52:52  Show Profile  Send Endless Passages an ICQ Message
W00T! Oustanding news Huw!

Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 16 January 2002 :  05:13:51  Show Profile
quote:

<% end if
%>

Now should the Call ProcessInside(Topic_ID ,"T") go inside there or inside it's own <% %>?




You can do it like this



<% end if
Call ProcessInside(Topic_ID ,"T")
%>


www.forumSquare.com - GauravBhabu - It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying.
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 16 January 2002 :  05:25:00  Show Profile
quote:

The inc_active_users.asp files are totally different the one in the zip doesn't come close to the one in Huw's code. This was the issue.
....
I'd like to see this mod work, but using Huw's inc_active_user.asp file.





Let me explain the difference


HUWR has it named
inc_active_users.asp
Uses if and else if instead of Select Case
Counts the visits
One field name is slightly changed
One new Field
Deletes the records from the table next day


But that does not mean this Mod won't work with HUWR version. The concept and logic is still the same.


quote:

endless,
this will be included with my next update. - HUWR



That is good.



www.forumSquare.com - GauravBhabu - It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying.
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 16 January 2002 :  06:21:23  Show Profile  Visit HuwR's Homepage
I will second what Gauruv said, I followed the instructions in the readme, and had no trouble installing the code, the instructions are very precise for both my release and a standard Snitz.

Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 16 January 2002 :  06:26:01  Show Profile
Thanks HUWR. Since you have modified the inc_active_users.asp, I can include that file in the zip for those who want to install this Mod. This Mod is otherwise complete.

www.forumSquare.com - GauravBhabu - It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying.
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 16 January 2002 :  06:53:42  Show Profile  Visit HuwR's Homepage
here ya go, one major difference is mine does not use Guest as the dummy account, it uses #guest as I have a member called guest

here is my inc_active_users.asp

http://www.magicmushroom.org.uk/uploads/inc_active_users.zip

Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 16 January 2002 :  07:39:23  Show Profile
Updated in the Zip file.

www.forumSquare.com - GauravBhabu - It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying.
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 18 January 2002 :  05:00:23  Show Profile  Visit HuwR's Homepage
GauravBhabu,

could you redownload the zip, I was having some quirky problems, but they are fixed now.

I also added a whosInside for active.asp if you want toknow what I did,let me know.

Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 18 January 2002 :  12:26:27  Show Profile
Thanks HUWR. Zip Updated.



quote:

I also added a whosInside for active.asp if you want toknow what I did,let me know.




Thanks HUWR, basically this can be included in any forum page. if you look at my site, I have it showing on several pages.

I just added another case statement in

 
sub ProcessInside(intLookUPID,insType)

Select case insType
Case "FT","T" 'For dispaly on forum.asp Topic List and under topic.asp Folder navigation
subSql = "SELECT O.UserID, O.M_Browse, O.insTOPICID FROM " & strTablePrefix & "ONLINE AS O WHERE O.insTOPICID = '" & intLookUpID & "' ORDER BY O.UserID ASC"
Case "F", "D" 'for display under forum.asp Folder navigation and default.asp forum list
subSql = "SELECT O.UserID, O.M_Browse, O.insFORUMID FROM " & strTablePrefix & "ONLINE AS O WHERE O.insFORUMID = '" & intLookUpID & "' ORDER BY O.UserID ASC"
Case "X","Y","Z" 'X and Y For display on any other page under Folder navigation and Z for anyother place
subSql = "SELECT O.UserID, O.M_Browse FROM " & strTablePrefix & "ONLINE AS O WHERE O.M_Browse LIKE '%" & intLookUpID & "%' ORDER BY O.UserID ASC"
end select



and then modified the following sub for display style


 
sub InsidePrefix(insFile)
select case insFile
Case "D"
Response.write "<br>(" & fLang(strLangfsqr_functions00090) & " : "
case "F"
Response.write "<br><img src=""" & strImageURL & "icon_blank.gif"" height=15 width=15 border=""0""><img src=""" & strImageURL & "icon_bar.gif"" height=15 width=15 border=""0""> (Also here: "
Case "FT"
Response.write " ("
Case "T"
Response.write "<br><img src=""" & strImageURL & "icon_blank.gif"" height=15 width=15 border=""0""><img src=""" & strImageURL & "icon_blank.gif"" height=15 width=15 border=""0""><img src=""" & strImageURL & "icon_bar.gif"" height=15 width=15 border=""0""> (Also here: "
Case "X"
Response.write "<br><img src=""" & strImageURL & "icon_blank.gif"" height=15 width=15 border=""0""><img src=""" & strImageURL & "icon_bar.gif"" height=15 width=15 border=""0""> (Also here: "
Case "Y"
Response.write "<br><img src=""" & strImageURL & "icon_blank.gif"" height=15 width=15 border=""0""><img src=""" & strImageURL & "icon_blank.gif"" height=15 width=15 border=""0""> (Also here: "
Case "Z"
Response.write "(Inside: "
end select
end sub


Then just use any of the one depending on where to display


Call ProcessInside("FILENAME.asp","X")
or
Call ProcessInside("FILENAME.asp","Y")
or
Call ProcessInside("FILENAME.asp","Z")


However I would like to know how you did it.

www.forumSquare.com - GauravBhabu - It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying.

Edited by - GauravBhabu on 18 January 2002 12:36:20
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 18 January 2002 :  14:07:09  Show Profile  Visit HuwR's Homepage
i did a similar thing, I added a new type "A" to the process info, and in inc_active set insforumID to -1 if it found you in active.sp

Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 18 January 2002 :  14:51:59  Show Profile
I passed on the filename via the call statement to the Sub processInside and used the sql under additional case statement (Case "X","Y","Z") to make it useable with any page. I think that is more flexible

www.forumSquare.com - GauravBhabu - It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying.
Go to Top of Page

Raichelle
Junior Member

370 Posts

Posted - 19 January 2002 :  09:52:02  Show Profile
dead link
can you fix that please?

Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 19 January 2002 :  10:03:16  Show Profile
Fixed.

www.forumSquare.com - GauravBhabu - It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying.
Go to Top of Page

Raichelle
Junior Member

370 Posts

Posted - 19 January 2002 :  10:07:39  Show Profile
thanks

Go to Top of Page

Endless Passages
Starting Member

21 Posts

Posted - 19 January 2002 :  15:09:53  Show Profile  Send Endless Passages an ICQ Message
Hey GB, just a quick question in the subs and functions you have going into inc_functions.asp I was just wondering what the lines that are commented out are for. At least two of them seem pretty important being that it looks like they actually display the info on the screen, but I could be wrong. Just trying to get a grasp on the code.

'Response.write subSql
'response.write "<br>(Inside: "

Are those for a specific db type or there for a different reason.

Just wondering.

Thanks for your time.

Go to Top of Page
Page: of 8 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.27 seconds. Powered By: Snitz Forums 2000 Version 3.4.07