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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 110
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 95
  • Total: 95

Articles submission

Started by raid, October 17, 2008, 09:43:09 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

raid

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?
SMF 2.0 + TP RC2

IchBin

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.

raid

#2
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.
SMF 2.0 + TP RC2

This website is proudly hosted on Crocweb Cloud Website Hosting.