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
/printthread.php 16 require_once



UserSpice
Copying lang Function - Printable Version

+- UserSpice (https://userspice.com/forums)
+-- Forum: Miscellaneous (https://userspice.com/forums/forumdisplay.php?fid=28)
+--- Forum: Modifications and Hackery (https://userspice.com/forums/forumdisplay.php?fid=29)
+--- Thread: Copying lang Function (/showthread.php?tid=505)



Copying lang Function - Brandin - 03-23-2017

Hey!

I love changing things you make! Just kidding I'm just copying what you make now...I have a templates page I use for work and other agents use it too, so I want to make a page with a input field and submit button called "name" for example, it posts back to the page and that will be the array for one of x amount of templates. I then want it to pull the template from the db and replace the markers with the name, there would only ever be 1 marker.

E.g. I have 6 templates, all named differently, with a {3bc1fe685386cc4c3ab89a3f76566d8931e181ad17f08aed9ad73b30bf28114d}m1{3bc1fe685386cc4c3ab89a3f76566d8931e181ad17f08aed9ad73b30bf28114d}, I want to pull the templates from the DB, which I am sure I can figure out but when I pull each template, I need it to do the marker replacement IF there is markers. Thoughts on how I can do this?

Thank you!