Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

  New Posts New Posts RSS Feed - Guests read headlines but not posts
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Guests read headlines but not posts

 Post Reply Post Reply
Author
yataylimit View Drop Down
Groupie
Groupie
Avatar

Joined: 23 April 2002
Location: United States
Status: Offline
Points: 82
Post Options Post Options   Thanks (0) Thanks(0)   Quote yataylimit Quote  Post ReplyReply Direct Link To This Post Topic: Guests read headlines but not posts
    Posted: 14 January 2006 at 9:59am
Hi.
I have a question which is simple but whose answer is crucial to me.
 
I want Guests to enter forum_topics.asp page (the page where headlines of posts are shown) but I just don't want them to enter forum_post.asp page (the page where we read posts).
 
In other words, I want Guests to read headlines of posts but I don't want them to read before subscribing. This is NOT done in the Group Permission section.
 
Please someone help with it, because it will also enable spiders to scan headlines.
 
Theanks.
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 14 January 2006 at 12:29pm
The only way to do this is to modify the code.

What you need to do is set the permissions for Guests to not enter any forum.

Then in the forum_topics.asp page you will need to hard code that the Guest acoc**t has 'read' access so that they can view that page.
Back to Top
yataylimit View Drop Down
Groupie
Groupie
Avatar

Joined: 23 April 2002
Location: United States
Status: Offline
Points: 82
Post Options Post Options   Thanks (0) Thanks(0)   Quote yataylimit Quote  Post ReplyReply Direct Link To This Post Posted: 14 January 2006 at 2:14pm
Thanks Borg, I did exactly what you said and it worked.
 
I strongly advise doing that since it helps content based spiders of search engines (like that of Google) to scan your headlines and attract more visitors to your site. As Borg said, just disable Guests from entering the forum in the admin page and then omit the following lines in your forum_topics.asp page:
 
'Check the user is welcome in this forum
 Call forumPermisisons(intForumID, intGroupID, CInt(rsForum("Read")), CInt(rsForum("Post")), CInt(rsForum("Reply_posts")), CInt(rsForum("Edit_posts")), CInt(rsForum("Delete_posts")), 0, CInt(rsForum("Poll_create")), CInt(rsForum("Vote")), 0, 0)
 'If the user has no read writes then kick them
 If blnRead = False Then
  'Reset Server Objects
  rsForum.Close
  Set rsForum = Nothing
  Set rsCommon = Nothing
  adoCon.Close
  Set adoCon = Nothing

  'Redirect to a page asking for the user to enter the forum password
  Response.Redirect "insufficient_permission.asp"
 End If

 'If the forum requires a password and a logged in forum code is not found on the users machine then send them to a login page
 If rsForum("Password") <> "" and Request.Cookies(strCookieName)("Forum" & intForumID) <> rsForum("Forum_code") Then
  'Reset Server Objects
  rsForum.Close
  Set rsForum = Nothing
  Set rsCommon = Nothing
  adoCon.Close
  Set adoCon = Nothing

  'Redirect to a page asking for the user to enter the forum password
  Response.Redirect "forum_password_form.asp?FID=" & intForumID
 End If
End If
 
 You will shortly see that you site will attract many users ;)
Back to Top
Epperson View Drop Down
Newbie
Newbie


Joined: 08 November 2003
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote Epperson Quote  Post ReplyReply Direct Link To This Post Posted: 20 April 2006 at 5:28am
Will this work with the new version of the forum?
Back to Top
venki View Drop Down
Groupie
Groupie


Joined: 20 April 2003
Status: Offline
Points: 40
Post Options Post Options   Thanks (0) Thanks(0)   Quote venki Quote  Post ReplyReply Direct Link To This Post Posted: 22 April 2006 at 8:36pm
Here you can find this mode for v8.
 
 
Download MOD here
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.