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)
 Simple Slash Mod v.1.0
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 11

golfmann
Junior Member

United States
450 Posts

Posted - 09 December 2003 :  08:25:18  Show Profile  Visit golfmann's Homepage
Ok thank you..
Is that code to block Private Forums correct?
ie: strSql = strSql & " WHERE mo.FORUM_ID = " & fForum_ID & " "
Go to Top of Page

xx ENIGMA xx
Junior Member

166 Posts

Posted - 09 December 2003 :  12:29:09  Show Profile  Send xx ENIGMA xx an AOL message
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

Go to Top of Page

RebelTech
Average Member

USA
613 Posts

Posted - 09 December 2003 :  19:03:00  Show Profile  Visit RebelTech's Homepage  Send RebelTech an ICQ Message
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" -->
Go to Top of Page

xx ENIGMA xx
Junior Member

166 Posts

Posted - 09 December 2003 :  19:57:44  Show Profile  Send xx ENIGMA xx an AOL message
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

Go to Top of Page

RebelTech
Average Member

USA
613 Posts

Posted - 09 December 2003 :  22:25:31  Show Profile  Visit RebelTech's Homepage  Send RebelTech an ICQ Message
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.
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 10 December 2003 :  04:55:37  Show Profile  Visit Gremlin's Homepage
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
Go to Top of Page

golfmann
Junior Member

United States
450 Posts

Posted - 10 December 2003 :  22:22:49  Show Profile  Visit golfmann's Homepage
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
Go to Top of Page

RebelTech
Average Member

USA
613 Posts

Posted - 11 December 2003 :  00:21:28  Show Profile  Visit RebelTech's Homepage  Send RebelTech an ICQ Message
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
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 11 December 2003 :  01:08:04  Show Profile  Visit Gremlin's Homepage
Actually I think just

strSQL = strSql & "WHERE (" & strTablePrefix & "FORUM.F_PRIVATEFORUMS = 0)"

Should be sufficient to do it.

Kiwihosting.Net - The Forum Hosting Specialists
Go to Top of Page

RebelTech
Average Member

USA
613 Posts

Posted - 11 December 2003 :  02:00:27  Show Profile  Visit RebelTech's Homepage  Send RebelTech an ICQ Message
What does " & strTablePrefix & "FORUM.F_PRIVATEFORUMS = 119) do?
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 11 December 2003 :  02:21:20  Show Profile  Visit Gremlin's Homepage
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
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 11 December 2003 :  02:29:34  Show Profile  Visit Gremlin's Homepage
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
Go to Top of Page

RebelTech
Average Member

USA
613 Posts

Posted - 11 December 2003 :  03:20:49  Show Profile  Visit RebelTech's Homepage  Send RebelTech an ICQ Message
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.
Go to Top of Page

golfmann
Junior Member

United States
450 Posts

Posted - 11 December 2003 :  08:58:00  Show Profile  Visit golfmann's Homepage
& 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.
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 11 December 2003 :  09:09:29  Show Profile  Visit Gremlin's Homepage
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
Go to Top of Page
Page: of 11 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.19 seconds. Powered By: Snitz Forums 2000 Version 3.4.07