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

Recent

Welcome to TinyPortal. Please login or sign up.

April 19, 2024, 10:48:09 PM

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

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