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

Recent

Welcome to TinyPortal. Please login or sign up.

April 28, 2024, 03:08:23 PM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,173
  • Total Topics: 21,219
  • Online today: 130
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 93
  • Total: 93

Submit Article Bug?

Started by ontap, March 21, 2006, 05:32:00 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ontap

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?  ;)

IchBin

This has been pointed out a few times Ontap. Bloc is aware of it. Thanks for helping squish it. :)

ontap


bloc