phpBBHacks.com - DM Easy Download System Problem
Community management insight at ManagingCommunities.com
StatsForums Home   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in
FAQFAQ   SearchSearch   MemberlistMemberlist   TutorialsTutorials   ContactContact Us
Username:    Password:
Remember Me?    
   I Lost My Password!
Bookmark and Share
Post new topic   Reply to topic    phpBBHacks.com Support Forums Forum Index -> phpBB 3 Hack Support
 See a User Guidelines violation? Please contact us.
Author Message

NeoBomb
New User

Joined: 29 Aug 2010
Posts: 6

PostPosted: August 29th 2010, 8:38 am    Post subject: DM Easy Download System Problem Reply with quote

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
View user's profile Send private message

Patrick
Admin/Webmaster

Joined: 11 May 2001
Posts: 17279
Location: Harbinger, NC, U.S.A.

PostPosted: August 29th 2010, 12:01 pm    Post subject: Reply with quote

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
_________________
Patrick O'Keefe - phpBBHacks.com Administrator - Feedback? Questions? Please Contact Me!
User Guidelines - Featured phpBB - Featured Author - phpBBHacks.com Awards - Supported Sites - About Us
Author, Managing Online Forums - A Practical Guide to Community Management
phpBB 3 Tutorials: Add Hacks | Clear Your Cache | Fix Missing Images | phpBB 3 Permissions Guide
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger

NeoBomb
New User

Joined: 29 Aug 2010
Posts: 6

PostPosted: August 29th 2010, 5:01 pm    Post subject: Reply with quote

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
View user's profile Send private message

femu
Well Known User

Joined: 07 Jul 2007
Posts: 206

PostPosted: August 30th 2010, 3:29 am    Post subject: Reply with quote

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
View user's profile Send private message

NeoBomb
New User

Joined: 29 Aug 2010
Posts: 6

PostPosted: August 30th 2010, 7:15 pm    Post subject: Reply with quote

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
View user's profile Send private message

femu
Well Known User

Joined: 07 Jul 2007
Posts: 206

PostPosted: August 30th 2010, 8:30 pm    Post subject: Reply with quote

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
View user's profile Send private message

NeoBomb
New User

Joined: 29 Aug 2010
Posts: 6

PostPosted: August 31st 2010, 9:44 am    Post subject: Reply with quote

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
View user's profile Send private message

Patrick
Admin/Webmaster

Joined: 11 May 2001
Posts: 17279
Location: Harbinger, NC, U.S.A.

PostPosted: August 31st 2010, 12:02 pm    Post subject: Reply with quote

Happy to try, NeoBomb. Thanks Felix.

Patrick
_________________
Patrick O'Keefe - phpBBHacks.com Administrator - Feedback? Questions? Please Contact Me!
User Guidelines - Featured phpBB - Featured Author - phpBBHacks.com Awards - Supported Sites - About Us
Author, Managing Online Forums - A Practical Guide to Community Management
phpBB 3 Tutorials: Add Hacks | Clear Your Cache | Fix Missing Images | phpBB 3 Permissions Guide
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger

femu
Well Known User

Joined: 07 Jul 2007
Posts: 206

PostPosted: August 31st 2010, 8:14 pm    Post subject: Reply with quote

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
View user's profile Send private message

NeoBomb
New User

Joined: 29 Aug 2010
Posts: 6

PostPosted: September 4th 2010, 6:03 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    phpBBHacks.com Support Forums Forum Index -> phpBB 3 Hack Support All times are GMT - 6 Hours
Page 1 of 1
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Links: Big Message Boards - Free JavaScript - phpBB2 - phpbb styles - Suporte phpBB - phpBB Česky - phpBB Turkiye - phpBBArabia.com - phpBB-fr.com - Romanian phpBB online community - phpBB-TW.net - phpBBservice.nl - phpBB Brasil - phpBB Portugal - phpBBpersian.com

Network: iFroggy Hosting - PhotoshopForums.com - Managing Online Forums - ManagingCommunities.com - CommunityAdmins.com - KarateForums.com - Bad Boy Blog - SodaRatings.com - Patrick O'Keefe

< Advertising - Contact Us - Disclosure Policy - Staff - User Guidelines >

Copyright © 2001-2012. iFroggy Network, phpBBHacks.com. All Rights Reserved. Privacy Policy. We Support phpBBHacks.com (of course!).
Powered by phpBB © phpBB Group. phpBB SEO. We are in no way affiliated with the phpBB Group. phpBB is copyright to the phpBB Group.