TinyPortal

Development => Feedback => Bugs/Errors => Topic started by: ontap on March 21, 2006, 05:32:00 AM

Title: Submit Article Bug?
Post by: ontap on March 21, 2006, 05:32:00 AM
no one could submit any articles via the "User" block link, could not figure out why because they had the permissions too, looking threw TPortalBlocks.template file, i found the submit link was wrong....
changed it and now it works fine

TPortalBlocks.template.php

// can we submit an article?
              if($context['TPortal']['can_submit_article']==1 && !allowedTo('tp_articles'))
                       echo $bullet4.'<a href="', $scripturl, 'action=tpmod&sub=submitarticle">' . $txt['tp-submitarticle']. '</a><br />';


Should Be...

// can we submit an article?
              if($context['TPortal']['can_submit_article']==1 && !allowedTo('tp_articles'))
                       echo $bullet4.'<a href="', $scripturl, '?action=tpmod;sa=submitarticle">' . $txt['tp-submitarticle']. '</a><br />';


would this be a bug?  ;)
Title: Re: Submit Article Bug?
Post by: IchBin on March 21, 2006, 05:44:47 AM
This has been pointed out a few times Ontap. Bloc is aware of it. Thanks for helping squish it. :)
Title: Re: Submit Article Bug?
Post by: ontap on March 21, 2006, 05:47:23 AM

ahhh ok, didnt notice :P
Title: Re: Submit Article Bug?
Post by: bloc on March 31, 2006, 05:55:59 PM
Solved in 0.9.