TinyPortal

Development => Support => Topic started by: raid on October 17, 2008, 09:43:09 AM

Title: Articles submission
Post by: raid on October 17, 2008, 09:43:09 AM
hi,

I cannot found the permissions to active the article submission by membergroup:
TP 1.0.5:http://i36.tinypic.com/29cwcb6.png
TP 1.0.6:http://i37.tinypic.com/35hh177.png

On tp 1.0.6 I am not able to active the article submission, no link on userbox and profile.

I am using SMF 1.1.6.
I am not writing my confgurations mod etc... becouse the problem happens on SMF 1.1.6 and TP 1.0.6 just installed. without mod and nothing.
I gave all the permission on Permission task:
http://i36.tinypic.com/2q0u7hd.png

Am I missing something?
Title: Re: Articles submission
Post by: IchBin on October 17, 2008, 04:24:57 PM
Permissions are located in the SMF member group permissions. Edit the membergroups that you want to give them access to submitting HTML/BBC articles etc.
Title: Re: Articles submission
Post by: raid on October 18, 2008, 01:11:24 AM
On SMF "regular member" permissions, I selected the following ones:
Can submit HTML articles
Can submit BBC articles
Can edit own articles

and on userbox, link to insert these articles aren't shown:
http://i36.tinypic.com/zwezpi.png

EDIT: becouse these permissions above talks about:  allowedTo('tp_submithtml') and allowedTo('tp_submitbbc').
but what about $context['TPortal']['can_submit_article'] ?

Code (TPBlocks.template.php) Select
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')))
{
              echo '<li style="border-bottom: solid 1px #888; padding-bottom: 3px; margin-bottom: 3px;"></li>';
// can we submit an article?
if(!allowedTo('tp_articles'))
{
              if(allowedTo('tp_submithtml'))
echo '
<li><a href="', $scripturl, '?action=tpmod;sa=submitarticle">' . $txt['tp-submitarticle']. '</a><li/>';
              if(allowedTo('tp_submitbbc'))
echo '
<li><a href="', $scripturl, '?action=tpmod;sa=submitarticle;bbc">' . $txt['tp-submitarticlebbc']. '</a><li/>';
}
// upload a file?
              if(allowedTo('tp_dlupload') || allowedTo('tp_dlmanager'))
                       echo '
<li><a href="', $scripturl, '?action=tpmod;dl=upload">' . $txt['permissionname_tp_dlupload']. '</a></li>';

If I active the allowedTo('tp_dlupload') permission, it work for articles too becouse:
Code (TPBlocks.template.php) Select
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'))) $context['TPortal']['can_submit_article']==1 isn't checked, but is active the 'tp_dlupload' after the "||" so it works.

so, I think there is something wrong.