group name - case sensitive

This mod, will add the ability to make "newsletters" and other customised mass emails, status is showen while sending mass email
It will also be posible to grant other users permissions to send mass email to a specific usergroup
Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

group name - case sensitive

Postby bog_tom on Tue 02. Mar, 2004 11:02

how I can made so the group name should't be case sensitive ?

I have a group Newsletter. When I try to upload the file custom_email_Newsletter.tpl on the server, because of SO this is renamed to custom_email_newsletter.tpl !

modifying all lines
Code: Select all
         if (file_exists($phpbb_root_path . "language/lang_" . $current_lang . "/email/custom_email_".$group_name.".tpl"))
            {
               $emailer->use_template("custom_email_".$group_name, $current_lang);
            }
            else
            {
               if (file_exists($phpbb_root_path . "language/lang_" . $board_config['default_lang'] . "/email/custom_email_".$group_name.".tpl"))
               {
                  $emailer->use_template("custom_email_".$group_name,$board_config['default_lang']);
               } else
               {
               $emailer->use_template("admin_send_email", $current_lang);
               }
            }


replaced with
Code: Select all
if (file_exists($phpbb_root_path . "language/lang_" . $current_lang . "/email/custom_email_".strtolower($group_name).".tpl"))
            {
               $emailer->use_template("custom_email_".strtolower($group_name), $current_lang);
            }
            else
            {
               if (file_exists($phpbb_root_path . "language/lang_" . $board_config['default_lang'] . "/email/custom_email_".strtolower($group_name).".tpl"))
               {
                  $emailer->use_template("custom_email_".strtolower($group_name),$board_config['default_lang']);
               } else
               {
               $emailer->use_template("admin_send_email", $current_lang);
               }
            }
:?:
User avatar
bog_tom
Poster
Poster
 
Posts: 17
Joined: Tue 14. Jan, 2003 13:14
Location: Romania

Return to Custom mass email [2.0.8/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron