TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,972
  • Latest: Lineo
Stats
  • Total Posts: 196,106
  • Total Topics: 21,345
  • Online today: 1,072
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 136
  • Total: 136

Articles premission problem

Started by Axel, December 16, 2005, 02:45:28 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

IchBin

Yes, I see that the same happens on mine. This is beyone my skills, it's something Bloc needs to look into. Hopefully he will see this and be able to give us more information.

Axel

Ok, thanks! :)

I hope that the boss Bloc ;) it sees this topic... but it is not that you can show it to him?

bloc

I see it..and yes, its a bug. The submit routine check wrongly...

If you want to get rid of it, open TModules.template.php and find this code:
                     if(isset($context['TPortal']['can_submit_article'])){

and replace with:
                     if($context['TPortal']['can_submit_article']==1){

..then the permissions will work correctly.

Axel

#13
 ;D Wow... thnaks Bloc. Now work fine!!

But, I've added also, on TPortalAdmin.php $f=implode(',',$tpgroups_approved); after $e=implode(',',$tpuserbox); to write correctly on db table: tportal_settings field: approved_membergroups

Is correct?

Tnx a lot!
Axel

bloc

"approved" is pre-approved groups( they bypass the submission routine, articles go "live" right away), but this feature is not working yet.

"allowed" is the actual groups able to submit. So it should be fine i think.

This area needs more work, "approved" needs to be working, and "allowed" needs options of using wysiwyg or not..since its a powerful feature you might not want all grups to use it..but still submit html code/article.

Axel

Well, now is ok.
I'm going to start to understand how work more thing.

I will try to give my small contribution, for how much I can. :)

Bye,
Axel

bloc

:) Any feedback is welcome, it helps getting TP better.

This website is proudly hosted on Crocweb Cloud Website Hosting.