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)
 Universal Login for Snitz 3.4.03
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 13

shaft
Starting Member

United Kingdom
42 Posts

Posted - 13 December 2002 :  18:31:00  Show Profile  Send shaft an ICQ Message  Send shaft a Yahoo! Message
Ok I am new to ASP and Snitz I have some problems and I must be doing something wrong. first my home page is an htm page with some shockwave content on it I have made a table on my page and I want to insert the login there can u please tell me how I do this. I have tried putting:

<!--#INCLUDE VIRTUAL="forum/inc_login.asp"-->
<!--#INCLUDE VIRTUAL="forum/config.asp"-->
<!--#INCLUDE VIRTUAL="forum/inc_sha256.asp"-->
<!--#INCLUDE VIRTUAL="forum/inc_func_common.asp"-->
<!--#INCLUDE VIRTUAL="forum/inc_header.asp"-->

At the top of page and right in the table where I want the login to be but none of these worked.
By now u can all tell that I don't have a clue what I am doing. I followed the rest of the installation to the t and I did it right.

Can it be that my page has to be a *.asp file or is there a way to make it work with html.

I am desperate need for help.
Go to Top of Page

@tomic
Senior Member

USA
1790 Posts

Posted - 16 December 2002 :  03:43:36  Show Profile  Visit @tomic's Homepage  Send @tomic an ICQ Message
Correct. Your homepage absolutely must be ASP. Check out the enclosed contentcontent_tester.asp
It has everything you need to put stuff from snitz on your homepage with a few exceptions. It's a good, basic starting point though.

@tomic

SportsBettingAcumen.com
Go to Top of Page

betheball
Starting Member

USA
41 Posts

Posted - 18 December 2002 :  13:38:54  Show Profile
I think I followed the readme instructions correctly but am getting the following error when I open my default.asp page:

Active Server Pages error 'ASP 0126'

Include file not found

/oamforum/default.asp, line 1

The include file 'Forum/config.asp' was not found.

I pasted the includes at the very top of the page except for inc_login.asp which I pasted in a table cell where I want it to display. I use FrontPage so I don't know if that is causing my problem.

- Duane

"So I got that going for me, which is nice." - Carl Spackler
Go to Top of Page

@tomic
Senior Member

USA
1790 Posts

Posted - 18 December 2002 :  13:42:35  Show Profile  Visit @tomic's Homepage  Send @tomic an ICQ Message
Look at the difference here. I can almost guarantee you that you will have trouble if your forum directory is called /oamforum instead of /forum:

Forum/config.asp
oamforum/default.asp

@tomic

SportsBettingAcumen.com
Go to Top of Page

betheball
Starting Member

USA
41 Posts

Posted - 18 December 2002 :  13:46:40  Show Profile
It isn't. My web is called OAMForum and in it is a folder called Forum in which reside all of my snitz forum files. My default.asp page is in the OAMForum web, but not it the Forum folder. I am trying to add the universal login to the default.asp page. Does that make sense?

- Duane

"So I got that going for me, which is nice." - Carl Spackler
Go to Top of Page

betheball
Starting Member

USA
41 Posts

Posted - 18 December 2002 :  13:54:11  Show Profile
OK. You made me think. My web is NOT the root web on the server, so by changing the path for the virtual includes to OAMForum/Forum/file.asp, I was able to eliminate the error message. Now my only problem is the page cannot find the graphics. Any idea on what changes I would need to make so the graphics (login button, logout button, etc) appear? The images are in a folder titled "images" inside the "forum" folder. On my default page, the browser is looking for the files in OAMForum/images instead of OAMForum/forum/images.

- Duane

"So I got that going for me, which is nice." - Carl Spackler

Edited by - betheball on 18 December 2002 13:59:54
Go to Top of Page

betheball
Starting Member

USA
41 Posts

Posted - 18 December 2002 :  17:03:43  Show Profile
@tomic, you made the following post on 9/29. Was that post before or after you posted the latest revision of the Mod? I ask that because I am now getting the dreaded 404 error. Is there something else I need to change? Is so, do I change all a href= references in inc_header.asp or just some?

quote:
Bah! I already found something I left out which I am going to have to add later but for this to work correctly outside the forum all links in inc_header.asp need strForumURL in them.

For example:

" <a href=""members.asp""" & dWStatus("Current members of these forums...") & " tabindex=""-1""><acronym title=""Current members of these forums..."">Members</acronym></a>" & vbNewline & _

becomes...

" <a href=""" & strForumURL & "members.asp""" & dWStatus("Current members of these forums...") & " tabindex=""-1""><acronym title=""Current members of these forums..."">Members</acronym></a>" & vbNewline & _

Without this addition you will see your 404 page become one of your most accessed pages.

@tomic

- Duane

"So I got that going for me, which is nice." - Carl Spackler
Go to Top of Page

@tomic
Senior Member

USA
1790 Posts

Posted - 19 December 2002 :  00:14:02  Show Profile  Visit @tomic's Homepage  Send @tomic an ICQ Message
After the latest revision. I have updated the zip.

You need to add strForumURL to any link you want to work outside the forum. So if you added MODs to the menu you shall want to make sure they are codded like the default ones taken care of in the readme.

@tomic

SportsBettingAcumen.com
Go to Top of Page

betheball
Starting Member

USA
41 Posts

Posted - 19 December 2002 :  13:14:36  Show Profile
I am still having problems with this mod. If I am logged on to the forum then the page with the univeral login shows fine. If I am logged out, I get the 404 error. Also, when I am logged in, the links in inc_header.asp are incorrect. For example, my forum URL in strForumUrl is http://web.osc.irs.gov/oamForum/Forum/, but when I click a link such as pop_profile.asp, it goes to http://web.osc.irs.gov/oamforum/pop_profile.asp. It is failing to read the final folder where my forum files reside. Here is the piece of code used for the "Profile" link:
Response.Write	"          <a href=""" & strForumURL & "pop_profile.asp?mode=Edit""" & dWStatus("Edit your personal profile...") & " tabindex=""-1""><acronym title=""Edit your personal profile..."">Profile</acronym></a>" & vbNewline
	else
		Response.Write	"          <a href=""javascript:openWindow3('" & strForumURL & "pop_profile.asp?mode=Edit')""" & dWStatus("Edit your personal profile...") & " tabindex=""-1""><acronym title=""Edit your personal profile..."">Profile</acronym></a>" & vbNewline
	end if

Can anyone see what I am doing wrong?

- Duane

"So I got that going for me, which is nice." - Carl Spackler
Go to Top of Page

@tomic
Senior Member

USA
1790 Posts

Posted - 19 December 2002 :  14:14:35  Show Profile  Visit @tomic's Homepage  Send @tomic an ICQ Message
That is because this MOD and all the readme info is centered around a forum and all it's files being in a folder called /forum.

1. If your forum is in a folder called something other than /forum this MOD won't work so you might as well give up.

2. All the link changes I gave are forum a forum in a folder called forum.

3. If you desire to name your forum folder something other than forum refer to 1 and ask yourself "Is there any special reason not to call my forum directory forum?" There might be a compelling reason but if there isn't...

@tomic

SportsBettingAcumen.com
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 19 December 2002 :  15:24:58  Show Profile
quote:
Originally posted by @tomic


1. If your forum is in a folder called something other than /forum this MOD won't work so you might as well give up.



I know you say this, but I've been through the code a few times, and I can't see any reason behind this but I want to understand why it needs this.
Go to Top of Page

betheball
Starting Member

USA
41 Posts

Posted - 19 December 2002 :  15:36:32  Show Profile
I tried to explain this in an earlier post but maybe didn't do a good job. All of my files are in a directory called Forum. However, I thought that the whole purpose of the Universal Login was to be able to put a login on pages outside the Forum directory, right? That is what I am having trouble with. I know the fact that my website is called OAMForum is confusing, I will change it later, but can't do that on my own because of a lack of rights on the server. Anyway, as I said all my forum files are in a directory called Forum and I want to put a login on a page called default.asp that resides outside the Forum directory in the root directory of the web. Unfortunately, I keep running into the problems mentioned in my previous post.

- Duane

"So I got that going for me, which is nice." - Carl Spackler
Go to Top of Page

@tomic
Senior Member

USA
1790 Posts

Posted - 19 December 2002 :  16:30:03  Show Profile  Visit @tomic's Homepage  Send @tomic an ICQ Message
The inc_login.asp itself resides inside the forum directory but is included using the virtual method outside the forum.

If you added strForumURL and it shows http://web.osc.irs.gov/oamforum AND that is not working then perhaps you have set your strForumURL incorrectly. What you want is for everything that comes before members.asp to result in a full URL so if something is missing you can either change the setting for your forumURL in the admin panel or you could just hard code the URL.

For more about this check out this topic:
http://forum.snitz.com/forum/topic.asp?ARCHIVE=true&TOPIC_ID=36723

@tomic

SportsBettingAcumen.com
Go to Top of Page

betheball
Starting Member

USA
41 Posts

Posted - 20 December 2002 :  14:01:06  Show Profile
@tomic, I visited your website (Very nice). Are you using the Universal Login mod on you homepage? In looking at the code, it doesn't look like you are. What you have done is exactly what I would like to do. It appears your homepage resides outside of the Forum folder, right? How did you do it?

- Duane

"So I got that going for me, which is nice." - Carl Spackler
Go to Top of Page

@tomic
Senior Member

USA
1790 Posts

Posted - 20 December 2002 :  14:19:12  Show Profile  Visit @tomic's Homepage  Send @tomic an ICQ Message
Yes, I am using the exact same inc_login.asp that you find in the zip.

1. My forum directory is /forum. I had /forum2 for testing and guess what? The login didn't work right until I renamed the directory to /forum after testing.

2. Everything else is in the readme. Everything.

@tomic

SportsBettingAcumen.com
Go to Top of Page
Page: of 13 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.25 seconds. Powered By: Snitz Forums 2000 Version 3.4.07