The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
helpers.php -- email_body
#1
Hi,
I've added a contact form to the UserSpice navigation bar and wanted to use the UserSpice functions like email and email_body from the helpers.php. However, the function email_body requires an email template:
Code:
require $abs_us_root.$us_url_root.'users/views/'.$template;
Should I place my template in users/views ?
Or makes it sense to put it in usersc/views and add something like:
<pre>
Code:
if (file_exists($abs_us_root.$us_url_root.'users/views/'.$template)) {
    require $abs_us_root.$us_url_root.'users/views/'.$template;
    }
</pre>

<pre>
Code:
if (file_exists($abs_us_root.$us_url_root.'usersc/views/'.$template)) {
        require $abs_us_root.$us_url_root.'usersc/views/'.$template;
    }
</pre>


?
Thanks,
Sebastian
  Reply


Messages In This Thread
helpers.php -- email_body - by Sebastian - 10-05-2016, 09:56 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)