Making entire news article available for visitors

Basic Installation and Setup.

Moderator: davidyin

Post Reply
User avatar
tyman00
Members
Members
Posts: 42
Joined: Tue Dec 20, 2005 12:59 pm
Location: Mandan, ND
Contact:

Making entire news article available for visitors

Post by tyman00 »

My users wanted to make the entire news articles available for the visitors. Currently they can only see the small snippet at the bottom in the news section. I thought I could share my solution with the rest.

I created a new file for the news details that did not require the user to be logged in. This file (see attachment) should be saved in the same directory as defaultview.asp. Be sure the file is saved as: newsdetails_visit.asp

Next we need to make the links active from the snippets much like on the default.asp page. To do so open defaultview.asp and search for this comment line:

Code: Select all

' Get the news
About 22 Lines (version 5.12.0.0018) below this comment line you will see:

Code: Select all

<b><%=newstitle%></b>
Replace that with:

Code: Select all

<b><a href="newsdetails_visit.asp?newsid=<%=newsid%>" class="style12px"><%=newstitle%></a></b>


Finally, test and you should be ready to go!


I hope I put this in the right forum, if not feel free to move it.
Attachments
newsdetails_visit.zip
(3.22 KiB) Downloaded 542 times
User avatar
davidyin
Members
Members
Posts: 192
Joined: Wed Apr 27, 2005 10:50 pm
Location: Burnaby

Post by davidyin »

Good improvement.

Will consider to add it into the next version.

Thanks to tyman00.
Post Reply