TinyPortal

Development => Support => Topic started by: Jokey on January 03, 2009, 04:56:47 AM

Title: "Remove" Downloads Module??
Post by: Jokey on January 03, 2009, 04:56:47 AM
I have turned off the downloads module as it is not needed, is there anyway to remove it or remove the downloads menu from showing up in the User box???   :o
Title: Re: "Remove" Downloads Module??
Post by: G6Cad on January 03, 2009, 07:38:55 AM
You have to do that inside the folder and files through the ftp or cpanel.
/tp-files/tp-modules/ should be a download module locaded here. just remove the folder and it will be removed from the list.
Title: Re: "Remove" Downloads Module??
Post by: Jokey on January 03, 2009, 09:02:23 AM
Quote from: G6 on January 03, 2009, 07:38:55 AM
You have to do that inside the folder and files through the ftp or cpanel.
/tp-files/tp-modules/ should be a download module locaded here. just remove the folder and it will be removed from the list.

Nope nothing there related to the download module  :'(
Title: Re: "Remove" Downloads Module??
Post by: IchBin on January 04, 2009, 12:42:29 AM
A menu in the user box? Can you explain that a little better I'm not quite sure I get what you're asking about.
Title: Re: "Remove" Downloads Module??
Post by: Jokey on January 04, 2009, 12:49:34 AM
Quote from: IchBinâ,,¢ on January 04, 2009, 12:42:29 AM
A menu in the user box? Can you explain that a little better I'm not quite sure I get what you're asking about.

it is the standard TP User info block,
Displays these items in the userbox:
Avatar (if any)
Logged-in time
Time
Unread replies/unread posts
but after it also displays the Downloads options you can do as a member ot admin, like upload a file etc.
Title: Re: "Remove" Downloads Module??
Post by: IchBin on January 04, 2009, 01:13:09 AM
Ah yes, if you go into the permissions for the membergroups you can disable the downloads permission.

Admin > Permissions > click member group. :)
Title: Re: "Remove" Downloads Module??
Post by: Jokey on January 04, 2009, 01:59:39 AM
Quote from: IchBinâ,,¢ on January 04, 2009, 01:13:09 AM
Ah yes, if you go into the permissions for the membergroups you can disable the downloads permission.

Admin > Permissions > click member group. :)

I did that - but you can't disable it for the forum admin, so I continue to see it, and I don't want to. :'(
Title: Re: "Remove" Downloads Module??
Post by: ZarPrime on January 04, 2009, 02:07:33 AM
PVC,

You can't set or change permissions for Admins because Admins have all permissions by default.  Otherwise they wouldn't be able to make proper changes to their Forum.  If you don't want to see them, set yourself up with an account that you can use most of the time that isn't an Admin.  That way you only have to see all the things an Admin sees when you need to login as an Admin and change something.

ZarPrime
Title: Re: "Remove" Downloads Module??
Post by: Jokey on January 04, 2009, 02:10:18 AM
Quote from: zarprime on January 04, 2009, 02:07:33 AM
PVC,

You can't set or change permissions for Admins because Admins have all permissions by default.  Otherwise they wouldn't be able to make proper changes to their Forum.  If you don't want to see them, set yourself up with an account that you can use most of the time that isn't an Admin.  That way you only have to see all the things an Admin sees when you need to login as an Admin and change something.

ZarPrime

Thanks Zar - but that doesn't solve the problem, if I cannot get rid of the permissions, then there must be a way to totally get rid of the download module and its files and changes, yes?

Title: Re: "Remove" Downloads Module??
Post by: 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
Title: Re: "Remove" Downloads Module??
Post by: Jokey on January 04, 2009, 02:20:41 AM
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?
Title: Re: "Remove" Downloads Module??
Post by: 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. :)
Title: Re: "Remove" Downloads Module??
Post by: Jokey on January 04, 2009, 02:32:40 AM
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:
Title: Re: "Remove" Downloads Module??
Post by: Jokey on January 04, 2009, 02:51:30 AM
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>';

}



}
*/

Title: Re: "Remove" Downloads Module??
Post by: 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>';
Title: Re: "Remove" Downloads Module??
Post by: Jokey on January 04, 2009, 05:49:23 AM
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: