Author |
Topic |
lcs78816
Junior Member
195 Posts |
Posted - 25 May 2001 : 22:46:32
|
quote:
Hmm...
I'm not sure what it could be right now. The only modification to the SQL string is the order by part of the SQL statement. From what you described about huwr's mod, it would be best to have that appear first in the order by, followed by the order by field from this mod. I'll have to look into huwr's mod, it sounds like something I'd be interested in anyways.
Something else to check - are all the field names (that are at the top within the variables section) available in your SQL string? Probably.
Select Case strtopicsortord Case "asc" strSortOrd = " ASC" Case Else strSortOrd = " DESC" End Select
Select Case strtopicsortfld Case "topic" strSortCol = "T_SUBJECT" & strSortOrd Case "author" strSortCol = "T_AUTHOR" & strSortOrd Case "replies" strSortCol = "T_REPLIES" & strSortOrd Case "views" strSortCol = "T_VIEW_COUNT" & strSortOrd Case "lastpost" strSortCol = "T_LAST_POST" & strSortOrd Case Else strSortCol = "T_LAST_POST" & strSortOrd End Select
What was the error message? Could you post a copy here?
"Do not go where the path may lead, go instead where there is no path and leave a trail." -Ralph Waldo Emerson
Yep, the code is exactly the same in forum.asp, there's no error message, but the sorting got messed up
|
|
|
work mule
Senior Member
USA
1358 Posts |
Posted - 25 May 2001 : 22:53:09
|
quote:
since the server end (ReadyHosting)
Hey, I'm just one virtual directory down from you.
(I'm hosted on readyhosting too.)
At some point and probably the fastest way for me to attempt to help, if you could zip up your forum.asp file and make it accessable, I could take probably take a look at it. Also, do you have a url for the addinplace mod?
Thanks, Dave
"Do not go where the path may lead, go instead where there is no path and leave a trail." -Ralph Waldo Emerson |
|
|
lcs78816
Junior Member
195 Posts |
Posted - 25 May 2001 : 23:08:48
|
quote:
quote:
since the server end (ReadyHosting)
Hey, I'm just one virtual directory down from you.
(I'm hosted on readyhosting too.)
At some point and probably the fastest way for me to attempt to help, if you could zip up your forum.asp file and make it accessable, I could take probably take a look at it. Also, do you have a url for the addinplace mod?
Thanks, Dave
"Do not go where the path may lead, go instead where there is no path and leave a trail." -Ralph Waldo Emerson
ccc... now you know how gay is Readyhosting.... Huwr's AddinPlace is here addinplace
It's not neccessary for me to zip it, cause I haved translate 90% to Chinese. But I think you can tell the difference from those two temp forums. But in case if you really want a copy, I don't mind zip it to you.
Edited by - lcs78816 on 25 May 2001 23:09:45 |
|
|
blackinwhite
Average Member
Turkey
657 Posts |
Posted - 26 May 2001 : 06:14:18
|
I have Huwr's addinplace mod insatalled and I have the same problem actually. I'll be happy if you write the result in the forum.
|
|
|
work mule
Senior Member
USA
1358 Posts |
Posted - 26 May 2001 : 11:31:32
|
lcs78816, I've looked at my demo and also your second demo, but I haven't seen anything messed up. Can you describe what the messed up part is? Is it an error message or do things not show up right when you make a certain selection?
Note for users who have HuwR's addinplace mod:
I've installed the addinplace mod in the demo.
The modification in forum.asp to coexist with the addinplace mod is to modify HuwR's SQL in the forum.asp page to look like this: strSql = strSql & " ORDER BY " & strTablePrefix & "TOPICS.T_INPLACE DESC " strSql = strSql & " , " & strTablePrefix & "TOPICS." & strSortCol & " "
"Do not go where the path may lead, go instead where there is no path and leave a trail." -Ralph Waldo Emerson
Edited by - work mule on 26 May 2001 23:52:37 |
|
|
blackinwhite
Average Member
Turkey
657 Posts |
Posted - 26 May 2001 : 12:57:02
|
it give me this in forum.asp.
ADODB.Recordset error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
/forum/forum.asp, line 241
set rs = Server.CreateObject("ADODB.Recordset") rs.cachesize=20
Line 241=> rs.open strSql, my_Conn, 3 if not (rs.EOF or rs.BOF) then rs.movefirst rs.pagesize = strPageSize maxpages = cint(rs.pagecount) rs.absolutepage = mypage inttotaltopics = rs.Recordcount end if end if
__________________ aQuarium > right-click intellectual device "I am a legal alien"
Edited by - blackinwhite on 26 May 2001 12:58:39 |
|
|
lcs78816
Junior Member
195 Posts |
Posted - 26 May 2001 : 13:22:06
|
hmm.....wierd...now its working....... hmm....
|
|
|
work mule
Senior Member
USA
1358 Posts |
Posted - 26 May 2001 : 18:54:09
|
quote:
ADODB.Recordset error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
/forum/forum.asp, line 241
blackinwhite, if it still doesn't work, you could zip up your forum.asp file and send it to me. I can't promise that I'll locate the problem, but I can try. It may have to do with the SQL string being constructed? BTW, what database are you using? (not that it matters...but there's some unique coding for mySQL in that file.)
"Do not go where the path may lead, go instead where there is no path and leave a trail." -Ralph Waldo Emerson |
|
|
work mule
Senior Member
USA
1358 Posts |
Posted - 27 May 2001 : 00:01:38
|
quote:
ADODB.Recordset error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
?
I received this error message when I was setting up a new test forum with both addinplace and topic paging, but the reason was because I didn't have the TOPICS.T_INPLACE field (for the addinplace mod) in the database. But you would have received this error prior to installing the paging mod if that was the case. So I guess I'm still clueless why anyone would get that error.
"Do not go where the path may lead, go instead where there is no path and leave a trail." -Ralph Waldo Emerson |
|
|
lcs78816
Junior Member
195 Posts |
Posted - 27 May 2001 : 01:51:55
|
quote:
quote:
ADODB.Recordset error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
?
I received this error message when I was setting up a new test forum with both addinplace and topic paging, but the reason was because I didn't have the TOPICS.T_INPLACE field (for the addinplace mod) in the database. But you would have received this error prior to installing the paging mod if that was the case. So I guess I'm still clueless why anyone would get that error.
"Do not go where the path may lead, go instead where there is no path and leave a trail." -Ralph Waldo Emerson
I think there's a setup file in the addinplace mod..... Which alter Topic table.....I think, cause I am not a programmer
|
|
|
work mule
Senior Member
USA
1358 Posts |
Posted - 27 May 2001 : 05:34:55
|
I just updated the zip file for this mod. The update was to the topic sort portion at the bottom of the main table at forum.asp. The individual cells were removed and the days select list was shortened to allow for a smaller table and for better wrapping.
When the browser window was narrow, the table didn't wrap cleanly. The select box has also been pared down so that the options no longer read "Show topics from...". It reads a bit better now.
You should be able to copy that entire section of code over the previous version. It starts at @Line 235 in the download text file.
"Do not go where the path may lead, go instead where there is no path and leave a trail." -Ralph Waldo Emerson |
|
|
Flaimo
New Member
Austria
72 Posts |
Posted - 27 May 2001 : 21:51:51
|
the instruction file is a little bit mixed ... what code do i need now, if i just want to have the topic sorting mod. i dont need the paging mod
flaimo,
http://flaimo.com/famousfonts |
|
|
blackinwhite
Average Member
Turkey
657 Posts |
Posted - 28 May 2001 : 05:43:30
|
I'll try in a few minute, and say the results
__________________ aQuarium > right-click intellectual device "I am a legal alien" |
|
|
blackinwhite
Average Member
Turkey
657 Posts |
|
work mule
Senior Member
USA
1358 Posts |
Posted - 28 May 2001 : 10:38:14
|
Flaimo,
The instructions for implementing only the topic sorting mod is included in the download file.
blackinwhite,
I'll have a look at this and I'll have to get back to you later today. Memorial Day activities to attend to.
"Do not go where the path may lead, go instead where there is no path and leave a trail." -Ralph Waldo Emerson |
|
|
Topic |
|