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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 790
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 715
  • Total: 716
  • tino

"Remove" Downloads Module??

Started by Jokey, January 03, 2009, 04:56:47 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Jokey

Quote from: zarprime on January 04, 2009, 02:19:02 AM
Unlike the Shoutbox modules, I think the downloads module is actually integrated into TP, but I'm sure there's probably a way to totally remove it, but it probably involves finding and removing code from several different locations.  If you're sure that you are never going to want to use the downloads manager then perhaps somebody else can help you but I wouldn't even know where to start.

Sorry,
ZP

Maybe it can be optional, like the shout boxes, in the next TP release?

IchBin

It is planned to completely separate download and articles as well. If I get a moment I'll try to find the code to remove that link in the user block. If you'd like you can check the TPblocks.template.php file for the code in the mean time. :)

Jokey

Quote from: IchBinâ,,¢ on January 04, 2009, 02:28:20 AM
It is planned to completely separate download and articles as well. If I get a moment I'll try to find the code to remove that link in the user block. If you'd like you can check the TPblocks.template.php file for the code in the mean time. :)

and "god" has spoken! LOL!! Thanks Ich!!  :laugh:

Jokey

ok I commented out this part and it loks like I want - what do you think, the right amount commented out?



/*

// admin parts etc.

         if(!isset($context['TPortal']['can_submit_article']))

            $context['TPortal']['can_submit_article']=0;

// do not show if none is availalable

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($context['TPortal']['can_submit_article']==1 && !allowedTo('tp_articles'))

echo '

<li><a href="', $scripturl, '?action=tpmod;sa=submitarticle">' . $txt['tp-submitarticle']. '</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>';



// tpadmin checks

if (allowedTo('tp_settings'))

echo '

<li><a href="' . $scripturl . '?action=tpadmin;sa=settings">' . $txt['permissionname_tp_settings'] . '</a></li>';

if (allowedTo('tp_blocks'))

echo '

<li><a href="' . $scripturl . '?action=tpadmin;sa=blocks">' . $txt['permissionname_tp_blocks'] . '</a></li>';

if (allowedTo('tp_articles'))

{

echo '

<li><a href="' . $scripturl . '?action=tpadmin;sa=articles">' . $txt['permissionname_tp_articles'] . '</a></li>';

// any submissions?

if($context['TPortal']['submitcheck']['articles']>0)

echo '

<li><a href="' . $scripturl . '?action=tpadmin;sa=submission"><b>' . $context['TPortal']['submitcheck']['articles'] . ' ' .$txt['tp-articlessubmitted'] . '</b></a></li>';

}

if (allowedTo('tp_dlmanager'))

{

echo '

<li><a href="' . $scripturl . '?action=tpmod;dl=admin">' . $txt['permissionname_tp_dlmanager'] . '</a></li>';

// any submissions?

if($context['TPortal']['submitcheck']['uploads']>0)

echo '

<li><a href="' . $scripturl . '?action=tpmod;dl=adminsubmission"><b>' . $context['TPortal']['submitcheck']['uploads'] . ' ' .$txt['tp-dluploaded'] . '</b></a></li>';

}



}
*/


IchBin

Thats the whole menu. This is the download link:
// 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>';

Jokey

Quote from: IchBinâ,,¢ on January 04, 2009, 04:44:47 AM
Thats the whole menu. This is the download link:
// 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>';


Ok - then I did it right, I wanted the whole menu - LOL  :coolsmiley:

This website is proudly hosted on Crocweb Cloud Website Hosting.