ElkArte Community

General => Chit Chat => Topic started by: Twissell on March 19, 2021, 02:12:37 pm

Title: Link or forum section visible only to certain group of users
Post by: Twissell on March 19, 2021, 02:12:37 pm
Hello Community!

Thanks for that interesting product first of all  :)

So, my question is in the Subject: how to make link in the user's post or entire section of forum accessible to certain user's (group of users) only?
In other words I need to hide some link under the spoiler or make some section of forum visible to specified members, might be via the authorization.
Title: Re: Link or forum section visible only to certain group of users
Post by: radu81 on March 20, 2021, 05:31:08 am
Hi and welcome to elkarte!

As far as I know, you can't set permissions for spoiler, and you can't choose which membergroups can view links.  It requires custom coding. There is an add-on that only hides links for guests.

With permission you can set an entire board to only some membergroups.
Title: Re: Link or forum section visible only to certain group of users
Post by: Twissell on March 20, 2021, 01:18:12 pm
QuoteThere is an add-on that only hides links for guests.
Would you like to give me a link to that addon, please?   O:-)

Did you mean this module https://addons.elkarte.net/bbc/Spoiler-Modern.html ?
Title: Re: Link or forum section visible only to certain group of users
Post by: radu81 on March 20, 2021, 04:56:54 pm
https://addons.elkarte.net/other/Registered-Links.html
I see now that is only for 1.0, you can ask the author if has any intention to update it.
Title: Re: Link or forum section visible only to certain group of users
Post by: Twissell on March 20, 2021, 05:08:05 pm
I see,  thanks!
Anyway I'll try to rewrite the plugin in such way to hide link for users having karma less or equal certain value not only the guest user themself.
Title: Re: Link or forum section visible only to certain group of users
Post by: Arantor on March 21, 2021, 08:23:41 am
My experience of foruming is that such things tend to be very divisive and counter-productive to forum communities.

Blocking off content to people with lower karma doesn't help them become better contributors - all it does is produce cliques within the community where they will inevitably just up-vote each other to keep their own ratings high, and newer contributors can't get in easily. Plus it becomes all too easy for someone to be hounded out of a community if content they previously had access to is hidden after a campaign of downvoting.
Title: Re: Link or forum section visible only to certain group of users
Post by: Twissell on March 22, 2021, 03:54:10 am
Quote from: Arantor – My experience of foruming is that such things tend to be very divisive and counter-productive to forum communities.

Blocking off content to people with lower karma doesn't help them become better contributors - all it does is produce cliques within the community where they will inevitably just up-vote each other to keep their own ratings high, and newer contributors can't get in easily. Plus it becomes all too easy for someone to be hounded out of a community if content they previously had access to is hidden after a campaign of downvoting.
One way or athother I need to resctict access to some content links to files until the user paid the price of someone's work.
In your opinion what is the best method to implement such feature?
Title: Re: Link or forum section visible only to certain group of users
Post by: ahrasis on March 22, 2021, 05:33:36 am
Simple approach is assigning board access to allowed group. This is a default feature.
Title: Re: Link or forum section visible only to certain group of users
Post by: Steeley on March 22, 2021, 05:40:05 am
Quote from: Twissell –
One way or athother I need to resctict access to some content links to files until the user paid the price of someone's work.
In your opinion what is the best method to implement such feature?

If it's just restricting access to the files, and the links are to a location on your server, another option is to move the file location to a restricted subfolder. Auth access per individual user-name/password.
Using ahrasis approach, create a new board (or sub-board), move the post(s) containing the links,to the new board and set permissions for that board to a unique group.
If the user has already downloaded the files, though, nothing you can do.
Title: Re: Link or forum section visible only to certain group of users
Post by: Twissell on March 22, 2021, 10:25:27 am
Thanks a lot to all topic's participants, I appreciate your help, really  :)
QuoteIf it's just restricting access to the files, and the links are to a location on your server, another option is to move the file location to a restricted subfolder. Auth access per individual user-name/password.

Did you mean something like a good old Basic HTTP Auth on the side of the webserver installed?
Title: Re: Link or forum section visible only to certain group of users
Post by: Twissell on March 22, 2021, 10:44:47 am
BTW is PosgreSQL recommended SQL engine for ElkArte?
Title: Re: Link or forum section visible only to certain group of users
Post by: tino on March 22, 2021, 12:10:48 pm
Quote from: Twissell – BTW is PosgreSQL recommended SQL engine for Elkarte?

MySQL is better supported with addons, but both work perfectly well. I use PostgreSQL on my sites.
Title: Re: Link or forum section visible only to certain group of users
Post by: Steeley on March 22, 2021, 12:56:01 pm
Quote from: Twissell – Thanks a lot to all topic's participants, I appreciate your help, really  :)
QuoteIf it's just restricting access to the files, and the links are to a location on your server, another option is to move the file location to a restricted subfolder. Auth access per individual user-name/password.

Did you mean something like a good old Basic HTTP Auth on the side of the webserver installed?

Yep -  htaccess and htpasswd  - if you have an admin UI for your server like CPanel, it's called "Directory Privacy".
My forum is actually running behind a "DP Wall". (The website is an educational archive on a unique military unit during the Vietnam war, and has several "restricted areas" only unit members can access, one of which is the discussion forum).

And then I have a few "private boards" set up in ElkArt as well, controlled by group permissions. Users not a member of those special groups don't even know those boards exist.



Title: Re: Link or forum section visible only to certain group of users
Post by: Spuds on March 22, 2021, 08:40:30 pm
I currently (as does this site) use MariaDB.  If I was not using that I'd go with Postgre and lastly Mysql .  That's just my path, others will be choose a different one,  which is why all those are supported :D
Title: Re: Link or forum section visible only to certain group of users
Post by: Twissell on March 23, 2021, 03:55:27 am
Hello all!

Yep, I got the points and opinions,
so another newbie's question come to scene: is ElkArte successor of SMF forum engine?
How much it codebase differs from SMF in that case?
Title: Re: Link or forum section visible only to certain group of users
Post by: tino on March 23, 2021, 11:03:03 am
Quote from: Twissell – so another newbie's question come to scene: is ElkArte successor of SMF forum engine?

It's an alternative, it was forked after the development team of SMF at the time disagreed with the direction of SMF so started their own alternative project from the SMF codebase.

Quote from: Twissell – How much it codebase differs from SMF in that case?

It contains similarities and the general layout of SMF, but in terms of actual code and its structure its vastly different. Each has it's own market and direction.

Try both and choose the one you prefer.
Title: Re: Link or forum section visible only to certain group of users
Post by: radu81 on March 24, 2021, 07:48:31 am
Quote from: tino – Try both and choose the one you prefer.
THIS!
Title: Re: Link or forum section visible only to certain group of users
Post by: Twissell on March 24, 2021, 11:29:36 am
Is it legal to hide "Powered by ElkArte" logo and how to do this wihout touching default CSS-styles for markup blocks?
Point me to FAQ if it exists, so I'll stop asking newbie's questions :-)
Title: Re: Link or forum section visible only to certain group of users
Post by: tino on March 24, 2021, 12:08:23 pm
You mean the one in the footer? It’s legal you have to edit the template.

The general accepted situation when you hide this is that you don’t get support.

If you mean the site logo, it’s in the theme section. Just upload your site banner.
Title: Re: Link or forum section visible only to certain group of users
Post by: Twissell on March 24, 2021, 01:50:40 pm
Thanks a lot tino
And what about FAQ page for newbies?
Title: Re: Link or forum section visible only to certain group of users
Post by: tino on March 24, 2021, 02:58:24 pm
Quote from: Twissell – Thanks a lot tino
And what about FAQ page for newbies?

What do you mean sorry?
Title: Re: Link or forum section visible only to certain group of users
Post by: Twissell on March 24, 2021, 04:07:18 pm
Where can I get a FAQ or Quick Start Guide Documentation about usual workflow in ElkArte and its specificities ?
Title: Re: Link or forum section visible only to certain group of users
Post by: Spuds on March 24, 2021, 06:41:16 pm
The wiki on github provides some answers ... https://github.com/elkarte/Elkarte/wiki 

Yes there are lots of missing areas, but that is one of those user generated/created zone, so things get added as anyone decides to invest the time, which is rare since finding folks who want to do that is rare.
Title: Re: Link or forum section visible only to certain group of users
Post by: Twissell on March 25, 2021, 01:57:59 am
Thank you, it's exactly what I'm looking for.