Author |
Topic |
Endless Passages
Starting Member
21 Posts |
Posted - 15 January 2002 : 22:52:52
|
W00T! Oustanding news Huw!
|
|
|
GauravBhabu
Advanced Member
4288 Posts |
Posted - 16 January 2002 : 05:13:51
|
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. |
|
|
GauravBhabu
Advanced Member
4288 Posts |
Posted - 16 January 2002 : 05:25:00
|
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. |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 16 January 2002 : 06:21:23
|
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.
|
|
|
GauravBhabu
Advanced Member
4288 Posts |
Posted - 16 January 2002 : 06:26:01
|
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. |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
|
GauravBhabu
Advanced Member
4288 Posts |
Posted - 16 January 2002 : 07:39:23
|
Updated in the Zip file.
www.forumSquare.com - GauravBhabu - It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying. |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 18 January 2002 : 05:00:23
|
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.
|
|
|
GauravBhabu
Advanced Member
4288 Posts |
Posted - 18 January 2002 : 12:26:27
|
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 |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 18 January 2002 : 14:07:09
|
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
|
|
|
GauravBhabu
Advanced Member
4288 Posts |
Posted - 18 January 2002 : 14:51:59
|
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. |
|
|
Raichelle
Junior Member
370 Posts |
Posted - 19 January 2002 : 09:52:02
|
dead link can you fix that please?
|
|
|
GauravBhabu
Advanced Member
4288 Posts |
Posted - 19 January 2002 : 10:03:16
|
Fixed.
www.forumSquare.com - GauravBhabu - It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying. |
|
|
Raichelle
Junior Member
370 Posts |
Posted - 19 January 2002 : 10:07:39
|
thanks
|
|
|
Endless Passages
Starting Member
21 Posts |
Posted - 19 January 2002 : 15:09:53
|
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.
|
|
|
Topic |
|