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

Recent

Welcome to TinyPortal. Please login or sign up.

January 14, 2025, 05:48:36 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,449
  • Total Topics: 21,255
  • Online today: 159
  • Online ever: 6,457 (November 30, 2024, 02:40:09 PM)
Users Online
  • Users: 0
  • Guests: 73
  • Total: 73

Move Submit an Article to User Box block

Started by JPDeni, October 19, 2006, 02:31:40 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JPDeni

Piece o' cake! :)

In TPortalBlocks.template.php, look for function TPortal_userbox()

After

if(isset($context['TPortal']['userbox']['unread'])){
echo '<br />'.$bullet.'<a href="', $scripturl, '?action=unread">' .$txt['tp-unread'].'</a>
<br />'.$bullet.'<a href="', $scripturl, '?action=unreadreplies">'.$txt['tp-replies'].'</a>
<br />'.$bullet.'<a href="', $scripturl, '?action=profile;u='.$context['user']['id'].';sa=showPosts">'.$txt['tp-showownposts'].'</a>';
}


add


if(!isset($context['TPortal']['can_submit_article']))
  $context['TPortal']['can_submit_article']=0;
if($context['TPortal']['can_submit_article']==1)
  echo '<br />',$bullet.'<a href="', $scripturl, '?action=tpmod;sa=submitarticle">' . $txt['tp-submitarticle']. '</a><br />';

Edited to fix the inevitable bugs.

rbh

you're a peach! :) it worked like a charm of course. thanks