Login  |  Register
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome, Guest. Please login or register.
Did you miss your activation email?

August 04, 2020, 04:19:16 PM

Login with username, password and session length
Members
  • Total Members: 3786
  • Latest: Deaks
Stats
  • Total Posts: 190582
  • Total Topics: 20864
  • Online Today: 100
  • Online Ever: 917
  • (January 21, 2020, 09:02:26 AM)
Users Online
Users: 1
Guests: 63
Total: 64

Author Topic: Download Manager - autopost topics?  (Read 4580 times)

0 Members and 1 Guest are viewing this topic.

dhighet

  • Guest
Download Manager - autopost topics?
« on: March 21, 2009, 04: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.

Offline IchBin

  • Developer
  • *
  • Posts: 16228
    • My Website
Re: Download Manager - autopost topics?
« Reply #1 on: March 21, 2009, 08:19:16 PM »
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...

dhighet

  • Guest
Re: Download Manager - autopost topics?
« Reply #2 on: March 22, 2009, 01: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

Offline IchBin

  • Developer
  • *
  • Posts: 16228
    • My Website
Re: Download Manager - autopost topics?
« Reply #3 on: March 22, 2009, 03: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.

crucify

  • Guest
Re: Download Manager - autopost topics?
« Reply #4 on: May 24, 2009, 05:35:44 PM »
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.

Offline IchBin

  • Developer
  • *
  • Posts: 16228
    • My Website
Re: Download Manager - autopost topics?
« Reply #5 on: May 24, 2009, 05:48:27 PM »
In TPdlmanager.template.php find this code:
Code: [Select]
// 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.
Code: [Select]
// 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 />';

crucify

  • Guest
Re: Download Manager - autopost topics?
« Reply #6 on: May 24, 2009, 06:07:12 PM »
Thank you very much!!!