Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Read Display Content news with no login to forum
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

SagaService
Junior Member

108 Posts

Posted - 03 March 2003 :  11:58:44  Show Profile
Hi.

I finally got my Content Display MOD version 3.4 to work on my website... Thanx for all support you Snitz folks..

Question: I want everybody to be able to read the news articles, but only the Webmaster to write news (that's why I locked the forum). The locked news forum, which everybody can read, do not show the news articles on another page when the reader is not logged into the forum... What can I do with the code to let everybody read the news articles?

My sub string in the file that configures the news setup:

DisplayContent 1, 28, 2, 11, 6, 10, 400, 0, 0, 1, 1, 0, "Nyhende frå VTI Fotball", "95%", "news.asp"

Any ideas folks? Maybe @tomic (who made the MOD) has an answer?

Per Lund - Norway

Edited by - SagaService on 09 March 2003 05:11:56

Chuck McB
Junior Member

WooYay
196 Posts

Posted - 05 March 2003 :  11:59:54  Show Profile  Visit Chuck McB's Homepage  Send Chuck McB an ICQ Message
open inc_header.asp, look for:


if strRequireReg = "1" and strDBNTUserName = "" then
	if not Instr(strScriptName,"policy.asp") > 0 and _
	not Instr(strScriptName,"register.asp") > 0 and _
	not Instr(strScriptName,"password.asp") > 0 and _
	not Instr(strScriptName,"webring_default.asp") > 0 and _
	not Instr(strScriptName,"faq.asp") > 0 and _
	not Instr(strScriptName,"enablecookies.asp") > 0 and _
	not Instr(strScriptName,"login.asp") > 0 then
		scriptname = split(request.servervariables("SCRIPT_NAME"),"/")
		if Request.QueryString <> "" then
			Response.Redirect("login.asp?target=" & lcase(scriptname(ubound(scriptname))) & "?" & Request.QueryString)
		else
			Response.Redirect("login.asp?target=" & lcase(scriptname(ubound(scriptname))))
		end if
	end if
end if

and add the pages you want to be visable without being logged in like I have done with the ones in red.
Go to Top of Page

SagaService
Junior Member

108 Posts

Posted - 05 March 2003 :  15:56:31  Show Profile

Hi.

Thanx for a great tip..! I am using the inc_header_short.asp and can not find the lines you are mentioning. What should I do with the file I am using..?

Per Lund
Go to Top of Page

homeacademy
Junior Member

USA
163 Posts

Posted - 06 March 2003 :  11:20:35  Show Profile
quote:
Originally posted by SagaService


Hi.

Thanx for a great tip..! I am using the inc_header_short.asp and can not find the lines you are mentioning. What should I do with the file I am using..?

Per Lund



I am assuming from this discussion that you have 'Restrict Registration' turned on, such that non-logged-in users are presented with a login screen, and are forced to login before continuing. If this is the case, try editing your inc_header as Chuck McB suggested. Add this:

	not Instr(strScriptName,"news.asp") > 0 and _
	not Instr(strScriptName,"**page you call content display from**") > 0 and _

I know that you are using inc_header_short.asp, but I am guessing the portal page or which ever page you are calling content display from, includes inc_header. In that case it may still make a difference. Let me know if this helps.
Go to Top of Page

SagaService
Junior Member

108 Posts

Posted - 06 March 2003 :  13:42:50  Show Profile
Hi.

UPDATE USE OF CONTENT DISPLAY 3.4 MOD: When un-locking the forum everything works..! When locking the forum again and logging out (either from Webmaster or a regular member) there is "no available news".

So my problem now is: how can I assure that ONLY Webmaster can make posts in the "news publishing forum"?

I tried to add the recommended lines as follows (in header.asp):

if strRequireReg = "1" and strDBNTUserName = "" then
if not Instr(strScriptName,"policy.asp") > 0 and _
not Instr(strScriptName,"register.asp") > 0 and _
not Instr(strScriptName,"password.asp") > 0 and _
not Instr(strScriptName,"faq.asp") > 0 and _
not Instr(strScriptName,"news.asp") > 0 and _
not Instr(strScriptName,"frontpage_news.asp") > 0 and _
not Instr(strScriptName,"content.asp") > 0 and _
not Instr(strScriptName,"inc_contentdisplay.asp") > 0 and _
not Instr(strScriptName,"index.htm") > 0 and _
not Instr(strScriptName,"login.asp") > 0 then
scriptname = split(request.servervariables("SCRIPT_NAME"),"/")
if Request.QueryString <> "" then
Response.Redirect("login.asp?target=" & lcase(scriptname(ubound(scriptname))) & "?" & Request.QueryString)
else
Response.Redirect("login.asp?target=" & lcase(scriptname(ubound(scriptname))))
end if
end if
end if

Any ideas?

Copy earlier part of message:

Restrict Registration is NOT turned on. My forum is a standard forum which everyone can read, but you have to be member to post (the news forum is a locked forum and only Webmaster can post in the forum). The main web (one level up from Forum) starts with index.htm (framepage) and makes a call to the forum file frontpage_news.asp (which goes into a frame). When I am logged in to the forum (as Webmaster) I can read the news in the framepage (when logged in as a regular member I can NOT read the news). Strange..!

Per Lund

PS: And my popup windows doesn't show up...

Edited by - SagaService on 09 March 2003 05:09:54
Go to Top of Page

DJBBIZ
Junior Member

214 Posts

Posted - 14 March 2003 :  04:05:27  Show Profile  Visit DJBBIZ's Homepage
The above will not fix your problem, the abaove solution is for protected files, the issue is with the Content Display Mod and the ForumStatus variable that is not working. I am having the same problem and have not figured out the solution, but it does not appear to recognize to "0" Display any Topic in my Articles Mod.


"The difference between good ideas and good results is performance"
the management institute | tmiFinance | tmiCreative | ProfileOnDemand
Go to Top of Page

Chris Yew
Junior Member

134 Posts

Posted - 19 May 2003 :  01:19:52  Show Profile
So DJBBIZ, have you any updates on this problem. Seems like when it's login, the content display mod will have a problem.
Go to Top of Page
  Previous Topic Topic Next Topic  
 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.47 seconds. Powered By: Snitz Forums 2000 Version 3.4.07