|
|
| Author |
Message |
NeoBomb
New User
Joined: 29 Aug 2010
Posts: 6
|
Posted: August 29th 2010, 8:38 am Post subject: DM Easy Download System Problem |
|
|
Hi, I am having an issue with the DM Easy Download System. When I post a new download, it announces it in the forum, but the pictures and text are all too close and it looks very messy. I was wondering if someone could tell me where this message is defined for that I could change what it says, and how it is formatted. I looked through all of the root files and couldn't find it, I may have overlooked it? If anyone could point me to the file name I would appreciate it  |
|
| Back to top |
|
 |
Patrick
Admin/Webmaster

Joined: 11 May 2001
Posts: 17279
Location: Harbinger, NC, U.S.A.
|
|
| Back to top |
|
 |
NeoBomb
New User
Joined: 29 Aug 2010
Posts: 6
|
Posted: August 29th 2010, 5:01 pm Post subject: |
|
|
| Patrick wrote:
|
Hello and welcome, NeoBomb.
It appears that you can customize the appearance of associated text by editing the .css files included in the package. It is titled dm_eds.css and is located in your theme folder (in the prosilver or subsilver2 folder, depending on which style you are using).
I hope that this helps.
Thanks,
Patrick
|
Hi, thanks for the reply!
I am having trouble location the .css file. In my style folder I found a folder "dm_eds" and in that folder I found "index_body.html" and "showcat_body.html" but both of those seem to be for editing the download section on the forum, and I want to edit what it auto posts when I add a new download.
For it to be auto posting a message on the forum, wouldnt the file have to be somewhere in the ACP??? I have looked through everything and I can't find out where this is defined..... I also noticed the auto-message misspells title as "titel" ... so I would like to fix that too :-/ |
|
| Back to top |
|
 |
femu
Well Known User
Joined: 07 Jul 2007
Posts: 206
|
Posted: August 30th 2010, 3:29 am Post subject: |
|
|
The css file is in the styles/xx/theme folder and is called dm_eds.css.
But that won't solve your problem
The text which generate the message in the forum, comes from one of the language file. So go to language/en/info_acp_dm_eds.php and search for ACP_ANNOUNCE_MSG and/or ACP_ANNOUNCE_UP_MSG. There you have a little possibility to play around on how the message is formatted. The %1$s, %2$s, etc are then replaced with the values, texts, etc, which you entered in the description. _________________ Regards,
femu
NO SUPPORT VIA EMAIL OR PM!! Please use the forum!
[My modifications homepage] - [My main page (German only!)] |
|
| Back to top |
|
 |
NeoBomb
New User
Joined: 29 Aug 2010
Posts: 6
|
Posted: August 30th 2010, 7:15 pm Post subject: |
|
|
| femu wrote:
|
The css file is in the styles/xx/theme folder and is called dm_eds.css.
But that won't solve your problem
The text which generate the message in the forum, comes from one of the language file. So go to language/en/info_acp_dm_eds.php and search for ACP_ANNOUNCE_MSG and/or ACP_ANNOUNCE_UP_MSG. There you have a little possibility to play around on how the message is formatted. The %1$s, %2$s, etc are then replaced with the values, texts, etc, which you entered in the description.
|
Thanks!! That worked like a charm.
You wouldn't by chance know where these strings are defined would you? like the "%1$s"? For what ever reason, that is assigned to the title of the new download, but it is also the version number... so when I posts a new file it looks like this "New File1.0" and I want it to be "New File 1.0" with a space between the name and version number. |
|
| Back to top |
|
 |
femu
Well Known User
Joined: 07 Jul 2007
Posts: 206
|
Posted: August 30th 2010, 8:30 pm Post subject: |
|
|
As I wrote the mod, I surely know
But make the space in the lang file .... So ie. %1$s %2$s or %1$s v%2$s (that would give you New File v1.0).
All the stuff generated behind - for which the %x$s are placeholders - are database entries. _________________ Regards,
femu
NO SUPPORT VIA EMAIL OR PM!! Please use the forum!
[My modifications homepage] - [My main page (German only!)] |
|
| Back to top |
|
 |
NeoBomb
New User
Joined: 29 Aug 2010
Posts: 6
|
Posted: August 31st 2010, 9:44 am Post subject: |
|
|
| femu wrote:
|
As I wrote the mod, I surely know
But make the space in the lang file .... So ie. %1$s %2$s or %1$s v%2$s (that would give you New File v1.0).
All the stuff generated behind - for which the %x$s are placeholders - are database entries.
|
Hey, sorry I didn't realize
So I tried adding in the language file and I get this error
| Code:
|
[phpBB Debug] PHP Notice: in file /includes/acp/acp_dm_eds.php on line 849: sprintf() [function.sprintf]: Too few arguments
Warning: Cannot modify header information - headers already sent by (output started at /home/ressurec/public_html/forum/includes/functions.php:3493) in /home/ressurec/public_html/forum/adm/index.php on line 150
Warning: Cannot modify header information - headers already sent by (output started at /home/ressurec/public_html/forum/includes/functions.php:3493) in /home/ressurec/public_html/forum/adm/index.php on line 152
Warning: Cannot modify header information - headers already sent by (output started at /home/ressurec/public_html/forum/includes/functions.php:3493) in /home/ressurec/public_html/forum/adm/index.php on line 153
Warning: Cannot modify header information - headers already sent by (output started at /home/ressurec/public_html/forum/includes/functions.php:3493) in /home/ressurec/public_html/forum/adm/index.php on line 154
|
This was the edit I made
| Code:
|
|
'ACP_ANNOUNCE_TITLE' => '[NEW] %1$s v%2$s',
|
Did I do something wrong there? |
|
| Back to top |
|
 |
Patrick
Admin/Webmaster

Joined: 11 May 2001
Posts: 17279
Location: Harbinger, NC, U.S.A.
|
|
| Back to top |
|
 |
femu
Well Known User
Joined: 07 Jul 2007
Posts: 206
|
Posted: August 31st 2010, 8:14 pm Post subject: |
|
|
In the original file, there are 3 replacements ... not only two ...
So you either need to set these too or remove them in the includes/acp/apc_dm_eds.php. Chekc this part:
| Code:
|
// Announce download, if enabled
if ( $eds_values['announce_enable'] == 1 )
{
$sql = 'SELECT *
FROM ' . DM_EDS_CAT_TABLE . '
WHERE cat_id = ' . $cat_option;
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$cat_name = $row['cat_name'];
$db->sql_freeresult($result);
if ( empty($dl_version) )
{
$dl_title = $title;
}
else
{
$dl_title = $title . ' v' . $dl_version;
}
$download_link = '[url=' . generate_board_url() . '/dm_eds/showcat.php?id=' . $cat_option . ']' . $user->lang['ACP_CLICK'] . '[/url]';
$download_subject = sprintf($user->lang['ACP_ANNOUNCE_TITLE'], $dl_title);
$download_msg = sprintf($user->lang['ACP_ANNOUNCE_MSG'], $title, generate_text_for_display($desc, $uid, $bitfield, $options), $cat_name, $download_link);
$this->create_announcement($download_subject, $download_msg, $eds_values['announce_forum']);
}
|
_________________ Regards,
femu
NO SUPPORT VIA EMAIL OR PM!! Please use the forum!
[My modifications homepage] - [My main page (German only!)] |
|
| Back to top |
|
 |
NeoBomb
New User
Joined: 29 Aug 2010
Posts: 6
|
Posted: September 4th 2010, 6:03 am Post subject: |
|
|
| femu wrote:
|
In the original file, there are 3 replacements ... not only two ...
So you either need to set these too or remove them in the includes/acp/apc_dm_eds.php. Chekc this part:
| Code:
|
// Announce download, if enabled
if ( $eds_values['announce_enable'] == 1 )
{
$sql = 'SELECT *
FROM ' . DM_EDS_CAT_TABLE . '
WHERE cat_id = ' . $cat_option;
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$cat_name = $row['cat_name'];
$db->sql_freeresult($result);
if ( empty($dl_version) )
{
$dl_title = $title;
}
else
{
$dl_title = $title . ' v' . $dl_version;
}
$download_link = '[url=' . generate_board_url() . '/dm_eds/showcat.php?id=' . $cat_option . ']' . $user->lang['ACP_CLICK'] . '[/url]';
$download_subject = sprintf($user->lang['ACP_ANNOUNCE_TITLE'], $dl_title);
$download_msg = sprintf($user->lang['ACP_ANNOUNCE_MSG'], $title, generate_text_for_display($desc, $uid, $bitfield, $options), $cat_name, $download_link);
$this->create_announcement($download_subject, $download_msg, $eds_values['announce_forum']);
}
|
|
Hmmm... I couldn't figure this out. I guess I can just edit the title when I post something. Thanks for all the help, and for making the mod! |
|
| Back to top |
|
 |
|