Author |
Topic  |
|
SagaService
Junior Member
 
108 Posts |
Posted - 03 March 2003 : 11:58:44
|
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
|
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. |
 |
|
SagaService
Junior Member
 
108 Posts |
Posted - 05 March 2003 : 15:56:31
|
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 |
 |
|
homeacademy
Junior Member
 
USA
163 Posts |
Posted - 06 March 2003 : 11:20:35
|
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. |
 |
|
SagaService
Junior Member
 
108 Posts |
Posted - 06 March 2003 : 13:42:50
|
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 |
 |
|
DJBBIZ
Junior Member
 
214 Posts |
Posted - 14 March 2003 : 04:05:27
|
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 |
 |
|
Chris Yew
Junior Member
 
134 Posts |
Posted - 19 May 2003 : 01:19:52
|
So DJBBIZ, have you any updates on this problem. Seems like when it's login, the content display mod will have a problem. |
 |
|
|
Topic  |
|
|
|