Author |
Topic |
golfmann
Junior Member
United States
450 Posts |
Posted - 09 December 2003 : 08:25:18
|
Ok thank you.. Is that code to block Private Forums correct? ie: strSql = strSql & " WHERE mo.FORUM_ID = " & fForum_ID & " " |
|
|
xx ENIGMA xx
Junior Member
166 Posts |
Posted - 09 December 2003 : 12:29:09
|
I tried your mod rebeltech and I couldnt get it to display outside of forums main directory.
maybe its a server problem or error on my part due to trying it at 2:30am
I will try it again |
my little forum playground
|
|
|
RebelTech
Average Member
USA
613 Posts |
Posted - 09 December 2003 : 19:03:00
|
Enigma,
I added these includes to the top of simple_slash.asp and it worked outside the forum directory. Make sure config.asp is at the top since others depend on it.
<!--#include file="./forum/config.asp"--> <!--#include file="./forum/inc_func_common.asp" -->
<!--#INCLUDE FILE="./forum/inc_func_secure.asp" --> <!--#INCLUDE FILE="./forum/inc_sha256.asp"--> <!--#INCLUDE FILE="./forum/inc_header.asp" --> <!--#INCLUDE FILE="./forum/inc_func_member.asp" --> <!--#INCLUDE FILE="./forum/inc_moderation.asp" --> <!--#INCLUDE FILE="./forum/inc_subscription.asp" --> |
|
|
xx ENIGMA xx
Junior Member
166 Posts |
Posted - 09 December 2003 : 19:57:44
|
thanks RT, I may have had them out of order or not even in there
I will try again after I finish with some other current mods in progress.
thanks for the tip! |
my little forum playground
|
|
|
RebelTech
Average Member
USA
613 Posts |
Posted - 09 December 2003 : 22:25:31
|
Right out of the .zip it only has config and common functions included. As you found out that was not enough. Honestly, after your post was the first time I tried it outside the forum directory. I would get an error unless config was at the top. Now, I would think that you won't need sha256 or secure unless like me your login is available site wide... Hope this helps some. |
|
|
Gremlin
General Help Moderator
New Zealand
7528 Posts |
Posted - 10 December 2003 : 04:55:37
|
Actually setting the forum cookie setting to website instead of forum should get it to work (and changing the reference to the include files of course) |
Kiwihosting.Net - The Forum Hosting Specialists
|
|
|
golfmann
Junior Member
United States
450 Posts |
Posted - 10 December 2003 : 22:22:49
|
I added this, seems to work ok in blocking the privates: strSQL = strSql & "WHERE (" & strTablePrefix & "FORUM.F_PRIVATEFORUMS = 0 OR " & strTablePrefix & "FORUM.F_PRIVATEFORUMS = 119)"
I combined yours with my old code and added some new stuff. Took awhile, but works fine.
Thanks for your work! |
Edited by - golfmann on 10 December 2003 22:23:51 |
|
|
RebelTech
Average Member
USA
613 Posts |
Posted - 11 December 2003 : 00:21:28
|
Thanks golfman, I will add your code for blocking private forums with the next update! Checked it out and worked great! Now, explain how it worked |
|
|
Gremlin
General Help Moderator
New Zealand
7528 Posts |
Posted - 11 December 2003 : 01:08:04
|
Actually I think just
strSQL = strSql & "WHERE (" & strTablePrefix & "FORUM.F_PRIVATEFORUMS = 0)"
Should be sufficient to do it. |
Kiwihosting.Net - The Forum Hosting Specialists
|
|
|
RebelTech
Average Member
USA
613 Posts |
Posted - 11 December 2003 : 02:00:27
|
What does " & strTablePrefix & "FORUM.F_PRIVATEFORUMS = 119) do? |
|
|
Gremlin
General Help Moderator
New Zealand
7528 Posts |
Posted - 11 December 2003 : 02:21:20
|
Not sure off the top of my head, I'll check the code shortly to see exactly what that field usually relates too.
Fairly sure the only acceptable values for that field is 0-9 .. can't really see how or why 119 would be in it. |
Kiwihosting.Net - The Forum Hosting Specialists
|
Edited by - Gremlin on 11 December 2003 02:28:34 |
|
|
Gremlin
General Help Moderator
New Zealand
7528 Posts |
Posted - 11 December 2003 : 02:29:34
|
Possible Values: 0 - All Visitors 1 - Allowed Member List 2 - Password Protected 3 - Allowed Member List & Password Protected 4 - Members Only 5 - Members Only (Hidden) 6 - Allowed Member List (Hidden) 7 - Members Only & Password Protected 8 - NT Global Group (Hidden) 9 - NT Global Group |
Kiwihosting.Net - The Forum Hosting Specialists
|
|
|
RebelTech
Average Member
USA
613 Posts |
Posted - 11 December 2003 : 03:20:49
|
Thanks to Gremlin, Golfman and Onewaymule the zip file has been updated to version 1.1 . This latest update prevents the display of private forum topics. I am waiting to get the last reply link function working correctly before adding that. |
|
|
golfmann
Junior Member
United States
450 Posts |
Posted - 11 December 2003 : 08:58:00
|
& strTablePrefix & "FORUM.F_PRIVATEFORUMS = 119) has to do with the EZANONYMOUS mod I installed, if I remember right...
There's SOO many in our forum now it's a little muddy.. I also have the jump to last post lil arrow working if you want it. |
|
|
Gremlin
General Help Moderator
New Zealand
7528 Posts |
Posted - 11 December 2003 : 09:09:29
|
quote: has to do with the EZANONYMOUS mod I installed, if I remember right...
That would explain it then I guess, 119 definately isn't valid for an out of the box Snitz :) |
Kiwihosting.Net - The Forum Hosting Specialists
|
|
|
Topic |
|