HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Restricting main forum page from adding topics

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#97539 (In Topic #19317)
Avatar

Well-settled

So I have done this for both my main forum pages.
I thought what would happen is it would remove the "add topic" image to the bottom of this forum but it doesn't.
I used my admin account to masquerade as another user in a usergroup who does not have access to post in there, and although it does not allow them to post, it brings them a strange message back stating "Unfortunately you are not in any usergroups that this member will accept Private Topics from."
Its not a big deal it just seems like the wrong error message as this is to add a topic in a forum your not allowed to add topics to.
Unless this has something to do with me masquerading as another user?


Below in the box is the stack trace error it gave

Code

Critical error - bailing out
This is an error that has been elevated to critical error status because it occurred during the primary error mechanism reporting system itself (possibly due to it occuring within the standard output framework). It may be masking a secondary error that occurred before this, but was never output - if so, it is likely strongly related to this one, thus fixing this will fix the other.
Unfortunately you are not in any usergroups that this member will accept Private Topics from. (version: 9.0.7, PHP version: 5.2.17, URL: /forum/index.php?page=topics&type=_add_reply&keep_fatalistic=1&keep_forum_root=48&keep_su=bb)
Stack trace...

File -> '/home/bulldogs/public_html/sources/failure.php'
Line -> 792
Function -> 'die_html_trace'
Args -> array ( 0 => 'Unfortunately you are not in any usergroups that this member will accept Private Topics from. (version: 9.0.7, PHP version: 5.2.17, URL: /forum/index.php?page=topics&type=_add_reply&keep_fatalistic=1&keep_forum_root=48&keep_su=bb)', )

File -> '/home/bulldogs/public_html/sources/global2.php'
Line -> 1012
Function -> '_fatal_exit'
Args -> array

File -> '/home/bulldogs/public_html/sources/failure.php'
Line -> 244
Function -> 'fatal_exit'
Args -> array

File -> '/home/bulldogs/public_html/sources/global2.php'
Line -> 972
Function -> '_generic_exit'
Args -> array

File -> '/home/bulldogs/public_html/forum/pages/modules/topics.php'
Line -> 1929
Function -> 'warn_exit'
Args -> array

Function -> '_add_reply'
Class -> 'Module_topics'
Type -> '->'
Object -> Module_topics::__set_state(array( ))
Args -> array ( )

File -> '/home/bulldogs/public_html/forum/pages/modules/topics.php'
Line -> 160
Function -> 'call_user_func'
Args -> array ( 0 => array ( 0 => Module_topics::__set_state(array( )), 1 => '_add_reply', ), )

File -> '/home/bulldogs/public_html/sources/zones.php'
Line -> 425
Function -> 'run'
Class -> 'Module_topics'
Type -> '->'
Object -> Module_topics::__set_state(array( ))
Args -> array ( )

File -> '/home/bulldogs/public_html/sources/site.php'
Line -> 858
Function -> 'load_module_page'
Args -> array ( 0 => 'forum/pages/modules/topics.php', 1 => 'topics', )

File -> '/home/bulldogs/public_html/sources/site.php'
Line -> 646
Function -> 'request_page'
Args -> array ( 0 => 'topics', 1 => true, )

File -> '/home/bulldogs/public_html/forum/index.php'
Line -> 39
Function -> 'do_site'
Args -> array ( )

Details here are intended only for the website/system-administrator, not for regular website users.
If you are a regular website user, please let the website staff deal with this problem.

Depending on the error, and only if the website installation finished, you may need to edit the installation options (the info.php file).

ocProducts maintains full documentation for all procedures and tools. These may be found on the ocPortal website. If you are unable to easily solve this problem, we may be contacted from our website and can help resolve it for you.

ocPortal is a CMS for building websites, developed by ocProducts.


This could maybe just be my understanding of how it should handle this I don`t know

Thanks Mark
Back to the top
 
Posted
Rating:
#97540
Avatar

Well-settled

Actually testing this somemore, I think it maybe something to do with the masquerading as another user, as it does the same in a different forum that I have not changed.

Also the site is closed, if that makes any difference
Back to the top
 
Posted
Rating:
#97555
Avatar

Hi,

I'm totally baffled by this one. There must be something I'm missing here, as I've traced through the code several times, and I can't think how it could possibly both correctly render a forum, yet think it is a list of private topics and hence make an add private-topic button. Unless it doesn't, and somehow the ID number of the forum is corrupted after typing a topic but before posting it, but I can't see where that could happen.

I do wonder what the tooltip for the add topic button is, and the title when you get through to it.

I have also checked the permissions, and these have worked stably for a long time. I wonder if virtual-roots is somehow to do with it.

I will have a look on your site if you like, but I don't have access right now as it's closed.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#97578
Avatar

Well-settled

Hi Chris

By all means if you want to have a look at the site go ahead, I can either message you admin details or you can sign up and I will make you an admin.

I have just done a little more testing, and this actually has nothing to do with the title of this topic, as this does exactly the same in any forum at all.

So something to do with posting while masquerading as another user.

For my site, I may just remove the virtual roots altogether, and just keep the direct links to each individual forum, and allow the "forum home" breadcrumb to be shown all the time as it really is a little hit and miss when its shown, so I think it may be a little more confusing for users sometimes seeing this and then it disappearing when clicking another link.

Mark
Back to the top
 
Posted
Rating:
#97581
Avatar

Yes please PT me and at some point (maybe tomorrow or Tuesday) I will go through this, and your activities issue.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#97582
Avatar

Well-settled

Yes no problems, just when ever you want and have time (which I guess is a little scarce for you  ;) )

Back to the top
 
Posted
Rating:
#97604
Avatar

Ok, actually this was something totally different. The add topic privilege was still there, but this usergroup had no access to post attachment. There was a bug where certain critical fields were also omitted along with the attachment interface.

Fixed :).


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#97612
Avatar

Well-settled

Yes I removed the ability for users to attach files, as I just don`t have the space or bandwidth I don`t think to allow it.

I have just realised my mistake here, I had only removed the users permission to post in this forums home, and not actually to not be allowed to create a topic.

At least it fixed something else in the process lol  :lol:
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: