Scoop -- the swiss army chainsaw of content management
Front Page Everything News Code Help! Wishlist Project Scoop Sites Dev Notes Latest CVS changes Development Activities
Censorship feature for autors Feature Requests
By Sinsemihl , Section Code []
Posted on Sun Sep 19, 2004 at 12:00:00 PM PST
We are currently setting up a new Scoop site (looove that piece of software!) that acts as a 'shadow site' to an existing one, a place where (trusted) users can vent steam, rant and have fun without really hurting anyone. Still, I don't want anything offensive to leak into the realm of those that are not logged in, if only for legal reasons, and I pretty much know how I want it be done. Here, I am asking experienced folks for a hint on the best implementation of a way to hide arbitrary parts of posts at the author's discretion.

The idea is relatively simple: Authors can use a tag (<censor>) or simply straight brackets ('[]') to mark those portions of text that should only be visible to those users that are logged in and trusted members. The rest, including anonymous guests, just sees a number of blackbackgrounded nbsps instead. (BTW: The normal voting mechanism will be still in place to weed out the _truly_ offensive stuff.) So, what I want is to introduce a line of perl code into Scoop, which parses for our 'black-bar' tag, checks for the status of the user requesting the page and either wiping the enclosed text (for anonymous and non-trusted users) or coloring it (for trusted users). This should apply to stories, comments and if possible headlines and even user-names. What would be the right, the cleanest and most elegant place to add this alteration? Thank you very much for your help and comments!
< Time to clean up the HTML code? | Humbled Solaris Guru begs for guidance from the Scoop gods >

Menu
create account
faq
search
report bugs
Scoop Administrators Guide
Scoop Box Exchange

Login
Make a new account
Username:
Password:

Related Links
Scoop
More on Feature Requests
Also by Sinsemihl

Story Views
  85 Scoop users have viewed this story.

Display: Sort:
Censorship feature for autors | 12 comments (12 topical, 0 hidden)
I don't know... (none / 0) (#1)
by janra on Tue Sep 21, 2004 at 07:13:14 AM PST

Scoop has never really been one of those programs that introduces its own custom tags, and I'm not a fan of that idea in the first place.

If you want a place to vent, you could make a hidden section - using section permissions, set an entire section aside and have Scoop either pretend it doesn't exist (Hide) or admit that it exists but refuse to allow access (Deny) to anonymous and/or non-trusted user groups.

HuSi does this with a section it calls "The Hole" and it seems to work quite well.

--
Discuss the art and craft of writing




Why not do it the easy way? (none / 0) (#8)
by ccm84 on Tue Oct 12, 2004 at 01:03:30 AM PST

If it is going to be on the same server, you could to it easily and dynamicly. Basicly you just put up another scoop host. All you have to do is edit their template output function so that it screens all text and does a simple search and replace. If you are wanting to use perl, I am going to beg you not to use =~ s/swear/length(swear)/gi :-) The biggest benefit of doing that is that it will automatically do it, without having to rely on someone to use your special tags, also it would allow you choose what words are bad. Some people would say it would be slower, but it would actually be quite a bit quicker than doing something with tags in it. Feel free and email me about it, also check out the CMS I have been working on for a while. It started with Mambo, but it is no where near it anymore. http://www.lrsehosting.com/arcasia



Term Paper Services (none / 0) (#9)
by julianamartin on Wed Nov 09, 2016 at 05:30:09 AM PST

Thanks a lot Sinsemihl for sharing term paper service at scoop. Glad you shared about censorship feature for authors. I am looking forward to your introduction to a line of perl code into Scoop. Thank you.



Essay Writer (none / 0) (#10)
by julianamartin on Thu Nov 10, 2016 at 05:46:32 AM PST

I tried out this new website way back when it was initially released. Now I will go and get an essay writer to start working on my research papers as quickly as possible.



cash advance (none / 0) (#11)
by Pervez on Mon Apr 02, 2018 at 12:30:27 AM PST

Splendid website online. A better half and even As I wanted to examine this subject matter. This is the old classic splendid search through for me. We applied the objective and Efficient looking to visit brand-new subject matter. Previously follow-up cash advance Remain the excellent do the job!



best bathroom renovation near me (none / 0) (#12)
by Pervez on Sun Mar 17, 2019 at 07:14:07 AM PST

It's a tremendous posting. Seriously helpful and in depth. Thanks a lot, to get shelling out considerably deliver the results in just going over this valuable information and facts. Now follow-up best bathroom renovation near me The best to get fine posting.



Censorship feature for autors | 12 comments (12 topical, 0 hidden)
Display: Sort:

Hosted by ScoopHost.com Powered by Scoop
All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest 1999 The Management

create account | faq | search