Search found 15 matches

by Zippo
Fri Mar 11, 2022 3:12 am
Forum: Modules/Add-Ons
Topic: Write Data To Database Table
Replies: 10
Views: 6890

Re: Write Data To Database Table

Hi webform! Sorry for the late reply. Time gets away from me now and then... You asked about why I believed I couldn't use data from Form Builder using Form Browser. I didn't say that I couldn't but a couple of things: 1 - Form Browser is no longer listed on the "Additional Modules" sectio...
by Zippo
Mon Mar 07, 2022 3:23 am
Forum: Modules/Add-Ons
Topic: Write Data To Database Table
Replies: 10
Views: 6890

Re: Write Data To Database Table

You can have several different Form Browsers with different layouts and outputs, all pulling data from the same Form Builder Form. Where shouldn't be any need to send Form Data to a new DB table. Let's suppose that on the "localhost" I have a database named "My_Database" and in ...
by Zippo
Fri Mar 04, 2022 3:10 am
Forum: Modules/Add-Ons
Topic: Display A File's Content On A Content Page.
Replies: 11
Views: 1806

Re: Display A File's Content On A Content Page. Solved

I think you need to use the full path to the file, not just from the site route. I haven't checked in a while though. Depending on your server environment it would be something like /yourhostingaccount/public_html/uploads/... Oh, man! That did it! Thank you so much for the help. I'm gonna make sure...
by Zippo
Thu Mar 03, 2022 4:07 pm
Forum: Modules/Add-Ons
Topic: Display A File's Content On A Content Page.
Replies: 11
Views: 1806

Re: Display A File's Content On A Content Page.

https://docs.cmsmadesimple.org/configuration/config-file/config-reference#config_permissive_smarty and no, nothing to do with fopen. Thanks, but still not working. I added the tag $config['permissive_smarty'] = 1; to my config.php file but still getting an error when attempting to fetch the file. I...
by Zippo
Thu Mar 03, 2022 2:00 am
Forum: Modules/Add-Ons
Topic: Display A File's Content On A Content Page.
Replies: 11
Views: 1806

Re: Display A File's Content On A Content Page.

It's only a concern if you're allowing front-end editing that also allows Smarty tags (like allowing Front End Users to post news articles, and your News template evals that Smarty). If only trusted people have access to edit things, it doesn't really change the risk level to enable permissive_smar...
by Zippo
Wed Mar 02, 2022 11:18 pm
Forum: Modules/Add-Ons
Topic: Display A File's Content On A Content Page.
Replies: 11
Views: 1806

Re: Display A File's Content On A Content Page.

You could also use: http://dev.cmsmadesimple.org/projects/cacheremotefile Demo and tutorial at: https://cmscanbesimple.org/blog/share-data-between-websites-cache-remote-file-tag Thank you, Rolf! This looks a bit cumbersome for just showing the contents of a local text file on a local Content page, ...
by Zippo
Wed Mar 02, 2022 11:16 pm
Forum: Modules/Add-Ons
Topic: Display A File's Content On A Content Page.
Replies: 11
Views: 1806

Re: Display A File's Content On A Content Page.

If you want to do it without a UDT, Smarty has a {fetch} tag: https://www.smarty.net/docs/en/language.function.fetch.tpl It currently does require permissive_smarty to be enabled in your config file though. Thank you, DIGI3! This does try to work but you're correct. I get a permission denied by SMA...
by Zippo
Wed Feb 23, 2022 6:54 pm
Forum: Modules/Add-Ons
Topic: Display A File's Content On A Content Page.
Replies: 11
Views: 1806

Re: Display A File's Content On A Content Page. Solved

Shoot! Sorry. Very easy:

echo getcwd();
by Zippo
Wed Feb 23, 2022 6:50 pm
Forum: Modules/Add-Ons
Topic: Display A File's Content On A Content Page.
Replies: 11
Views: 1806

Display A File's Content On A Content Page.

I thought that maybe I could use a simple UDT for this with the following PHP code: $myfile = fopen("uploads/docs/test.txt", "r") or die("Unable to open file!"); echo fread($myfile,filesize("test.txt")); fclose($myfile); Unfortunately, it appears that the path...
by Zippo
Wed Feb 23, 2022 6:46 pm
Forum: Modules/Add-Ons
Topic: Write Data To Database Table
Replies: 10
Views: 6890

Re: Write Data To Database Table

Thanks, rotezecke. I think I can make that work but the issue for me now, is where to place the code and how to call it so that the connection info isn't viewable to "Joe User" who happens to click on the webpage and choose "view source". Maybe I'm trying to make this more diffic...
by Zippo
Mon Feb 21, 2022 10:19 pm
Forum: Modules/Add-Ons
Topic: Write Data To Database Table
Replies: 10
Views: 6890

Re: Write Data To Database Table

Thanks, DIGI3 - I did check that out but the issue with form builder (as near as I can tell) is that it's stuck to writing to one table. That table structure doesn't fit my needs - plus I'll be needing other data tables for other aspects of the site as well. I need to perform the usual SQL functions...
by Zippo
Mon Feb 21, 2022 9:28 pm
Forum: Modules/Add-Ons
Topic: Write Data To Database Table
Replies: 10
Views: 6890

Re: Write Data To Database Table

Thanks, Jo Morg. Context - I have a website I created using CMSMS. On the website I have a content page that includes a Form Builder Form. When that form is submitted by the user, I would like to write that data to a custom table (perhaps in a database separate from the CMSMS database, if possible) ...
by Zippo
Mon Feb 21, 2022 7:39 pm
Forum: Modules/Add-Ons
Topic: Write Data To Database Table
Replies: 10
Views: 6890

Write Data To Database Table

I'm having trouble figuring out how to connect to and read or write data from or to a database table. I'd like to use form browser to gather the data, if possible, but I'm not having issues getting the data it's figuring how (and where on my site - template or form or...?) to open a connection to th...
by Zippo
Fri Feb 04, 2022 6:33 pm
Forum: Feature ideas
Topic: Global Search And Replace
Replies: 3
Views: 4428

Re: Global Search And Replace

Thanks for the very helpful replies.
by Zippo
Mon Jan 31, 2022 12:28 am
Forum: Feature ideas
Topic: Global Search And Replace
Replies: 3
Views: 4428

Global Search And Replace

I’m new here and new to CMSMS so I apologize if this has been suggested but I would love to have a global search and replace function. It would be great to search all templates and/or style sheets for #fefefe and replace it with #cecece for example.

Go to advanced search