close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Nearly there now

Thread began 1/08/2013 4:50 am by mrs | Last modified 1/09/2013 12:44 pm by Jason Byrnes | 1062 views | 3 replies |

mrs

Nearly there now

I've built a forum in which I have used Data Bridge extensively throughout, and I have used the cookies toolkit to create sessions to which I have then used the show region utility to show and hide buttons based on a users logged in status, and all is working fine. What I need to do now is create the ability to do three things:

1. If a user's details exist in the database, but they have allowed their membership to the website to lapse, then I need to disable their ability to post in the forum. How?

2. If any user visits a particular thread that is meant to be locked to replies, how do I lock the thread?

3. Currently, all of the forums are open to public display, but only two of them need to be locked to logged in members. How do I achieve this?

I have got all the columns in the DB ready to be used in some manner... e.g.: if the thread is locked, then I have an INT column in the DB set to 1.

I guess I need to wrap the insert reply buttons in a show if statement driven by a session variable, but I already have a show if on them if the user is logged in. I assume I need to protect the insert and update pages, but again, I have show if user is logged in wrapped around the whole form. I'm struggling to figure out how I can secure the site without locking out those who shouldn't be.

Have you got any advice for me please?

Sign in to reply to this post

Jason ByrnesWebAssist

1) How are you determining if the registration has lapsed or not?

2) in the record for the thread, you should have a column that marks it as being locked or not. make sure that the recordset that returns the thread includes this status column, and write an if statement around the reply button to only show if the status is not locked.

3) Security assist will have an access rule for logged into <your users table>. apply that access rule to the 2 forum pages that should be locked.

Sign in to reply to this post

mrs

1. Registration is manually edited with a date column.

2. Am I able to wrap one show if statement around another? I just need to get the hierarchy correct if this is possible.

3. For the pages that should be locked to public display, I have used a single template for all open and locked pages... is that not the correct way? Should I create a second page that is an exact copy and then apply access rights to that?

Thanks.

Sign in to reply to this post

Jason ByrnesWebAssist

1) is the date being entered the expiration date? i need more specific details

2) yes, you can nest show if's.

3) how are you showing the content in the template then?

using Plugins? a recordset? I need more specifics.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...