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

Recent

Welcome to TinyPortal. Please login or sign up.

July 05, 2024, 03:38:13 PM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,298
  • Total Topics: 21,230
  • Online today: 120
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 99
  • Total: 99

[bugtracker] Submit Article link hidden

Started by Petee, February 23, 2009, 01:19:21 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Petee

Submit HTML article & Submit BBC article links in User Info box are not displayed when membergroup does not have permission to Upload Files.


G6Cad

HM, have read that sentens several times now, and to me it seems to be normal, if they are not allowed to use a function, why should theyhave a link show that function ?

Petee

Submit Articles should be different than Upload Files, no?  If you give them permission to only Submit Articles, the link does not show up to Submit Articles. If you give them permission to Submit Articles AND Upload files, both links show up.

bloc

- Permission check for uploading files trapped the check for submitting articles. Fixed for v1.0beta4

A quickfix:

Open Themes/default/TPBlocks.template.php and find:
// do not show if none is availalable
if($context['TPortal']['can_submit_article']==1 || allowedTo(array('tp_dlupload','tp_dlmanager','tp_settings','tp_articles','tp_blocks','tp_linkmanager','tp_teampage','tp_gallery')))
{

Replace that with:
// do not show if none is availalable
if($context['TPortal']['can_submit_article']==1 || allowedTo(array('tp_dlupload','tp_dlmanager','tp_settings','tp_articles','tp_blocks','tp_submithtml','tp_submitbbc')))
{

Touti

There's a residual bug related to this

SMF: 1.1.10
TP: 1.0.683
Theme: Rhino114 (Does the same with default theme).

When logged in as a user, if they are allowed to submit articles (bbc, html or both) but not to upload files a scrollbar is created in the user box because of an extra bullet with no link beside it.

I'm assuming it's where the "Upload file" link would be.