Author |
Topic |
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 16 April 2016 : 03:28:03
|
Sorry about that. Change lines 72 and 123 to say: |
Edited by - Carefree on 30 April 2016 18:43:14 |
|
|
Lon2
Junior Member
USA
151 Posts |
Posted - 17 April 2016 : 22:21:00
|
Thanks for that!
New task: On top of the output htm file, I tried to write Category Name and Forum Name before Topic Subject, code as follows:
strWrite = strWrite & " & rsWrite("FORUM_ID") & " > " & rsWrite("CAT_ID") & " > " & rsWrite("T_SUBJECT") & " Although it worked, it only displayed ID numbers and the Topic Name: 107 > 20 > Topic Subject
How can I write the actual names? e.g. Category Name > Forum Name > Topic Subject |
|
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 20 April 2016 : 04:26:23
|
You'll want something like this. Again, change the sections colored red to the cat id.
|
|
|
Lon2
Junior Member
USA
151 Posts |
Posted - 25 April 2016 : 15:03:48
|
Produces the following error:
quote: Microsoft SQL Server Native Client 10.0 error '80040e14'
Incorrect syntax near '='.
/forums/admin_topic_maker.asp, line 89
Are you sure? Elsewhere in the forum code it shows Response.Write:
- chkString(ForumSubject,"display") to write the Forum Name - chkString(CatName,"display") to write out the Category Name
UPDATE: I'm looking to write a line with just the Forum Name and Topic Name. For example, using this Topic on Snitz:
"Help: General / Current Version (v3.4.xx) >> Need script to output Snitz topics"
I'm currently using this code:strWrite = strWrite & "<p><b>" & rsWrite("FORUM_ID") & " >> " & rsWrite("T_SUBJECT") & "</b></p>" But it writes the the Forum ID Number and then Topic Name:
"111 >> Need script to output Snitz topics" |
Edited by - Lon2 on 25 April 2016 20:16:35 |
|
|
Lon2
Junior Member
USA
151 Posts |
Posted - 25 April 2016 : 22:04:51
|
Never mind, I got it! It was much simplier than I thought.
" & forum_name & " |
|
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 27 April 2016 : 10:29:22
|
quote: Originally posted by Lon2
Never mind, I got it! It was much simplier than I thought.
" & forum_name & "
Isn't that what I wrote?
|
|
|
Lon2
Junior Member
USA
151 Posts |
Posted - 29 April 2016 : 18:02:49
|
Sorry I must've missed it because I couldn't get your last script to work so I was working with a previous.
I just noticed Topic Replies are not writing for Archived Topics. It could be something I did. All works great except no Archived Topic Replies. Can you see what I missed?
|
Edited by - Lon2 on 29 April 2016 21:07:14 |
|
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 30 April 2016 : 18:23:57
|
Here's all you should need, starting with the archived topics. I eliminated redundant (using FSO to delete a file which is later told to overwrite anyway) and useless code (e.g., AdminAllowed comparison which has no further purpose and is already satisfied by the mLev check above it, duplicated routine checking for folder existence that we already know is there from topic check, and lines setting Constant variables which can both be replaced with a single word).
|
Edited by - Carefree on 30 April 2016 18:39:49 |
|
|
Lon2
Junior Member
USA
151 Posts |
Posted - 01 May 2016 : 18:56:57
|
Thanks again for that, Carefree!
The script is still not writing Replies to Archived Topics.
My original had both both current and Archived Topics. Would I just remove the 2 instances of "A_" to write the current Topics? I going to try that too and see if Replies show up there...
Update:
Removing the "A_" made the script work 100% for current Topics WITH Replies but with the "A_" the script does NOT write Replies with the Archived Topics. Any ideas?
|
Edited by - Lon2 on 01 May 2016 19:31:09 |
|
|
Lon2
Junior Member
USA
151 Posts |
Posted - 01 May 2016 : 19:57:16
|
Think I just got it!
Changed: "REPLY" to "A_REPLY"
Thanks a lot for all your help on this! It's very much appreciated! |
|
|
Topic |
|
|
|