TinyPortal

Development => Resources => Modules => Topic started by: dhighet on March 21, 2009, 10:38:03 PM

Title: Download Manager - autopost topics?
Post by: dhighet on March 21, 2009, 10:38:03 PM
Is there a way to have Download Manager automatically post a topic in a designated forum when uploading a file? Also when I do it manually, there is no link from the file, to the topic designated to it.
Title: Re: Download Manager - autopost topics?
Post by: IchBin on March 22, 2009, 02:19:16 AM
The feature to add a topic is already built into TP beta3. However, since you didn't post your info about your setup, I wouldn't know if that would work for you or not...
Title: Re: Download Manager - autopost topics?
Post by: dhighet on March 22, 2009, 07:18:48 PM
I understand that, but I'm asking about having it do it automatically, without the user having to check a box and enter text.

I'm using Beta 3 and SMF 1.1.8
Title: Re: Download Manager - autopost topics?
Post by: IchBin on March 22, 2009, 09:38:52 PM
That is not a feature. And I don't think that it is something I would want to see in TP. Having the choice is what its all about.
Title: Re: Download Manager - autopost topics?
Post by: crucify on May 25, 2009, 12:35:44 AM
I would like to do this as well, to many people fail to check the box.
I would like to know how to make it permanently checked/automatic.
Title: Re: Download Manager - autopost topics?
Post by: IchBin on May 25, 2009, 12:48:27 AM
In TPdlmanager.template.php find this code:
// make a new topic too?
if(allowedTo('tp_dlcreatetopic') || !empty($context['TPortal']['dl_create_topic']))
{
echo '
</td></tr>
<tr>
<td height="40" valign="top" align="right" class="windowbg2">'.$txt['tp-dlcreatetopic'].'</td>
<td class="windowbg2">
<input type="checkbox" name="create_topic" /> ' . $txt['tp-dlcreatetopic'] . '<br />';


Add checked="checked" to the input checkbox.
// make a new topic too?
if(allowedTo('tp_dlcreatetopic') || !empty($context['TPortal']['dl_create_topic']))
{
echo '
</td></tr>
<tr>
<td height="40" valign="top" align="right" class="windowbg2">'.$txt['tp-dlcreatetopic'].'</td>
<td class="windowbg2">
<input type="checkbox" checked="checked" name="create_topic" /> ' . $txt['tp-dlcreatetopic'] . '<br />';
Title: Re: Download Manager - autopost topics?
Post by: crucify on May 25, 2009, 01:07:12 AM
Thank you very much!!!