Chris027 Posted February 23, 2023 Posted February 23, 2023 One item holding me up from moving to the cloud hosted plan is the lack of SFTP access. Even if this was to a single folder in the uploads directory or something, it's all I need. My feature request is some type of uploading capability. Perhaps it's there and I don't know it. I need this because I upload advertising banners to a nonstandard directory, then use custom code to call them. This way, no ad blockers block my ads. I also use SFTP to upload the audio MP3 of my articles, then put them into the articles with the code below. I would attach the MP3, but this displays how many times each article is listened to for some reason, and the accuracy of it is questionable, in addition to the fact that it's a stat that nobody needs to see. <audio controls="" data-audio-embed=""> <source src="https://example.com/my-article-audio.mp3" type="audio/mpeg"> </audio> SJ77, David N. and crmarks 3
Management Charles Posted February 23, 2023 Management Posted February 23, 2023 Can you use the Pages media option? It allows you to upload files not attached to a content item. Like this: https://content.invisioncic.com/a319035/pages_media/4_file_example_MP3_700KB.mp3
Chris027 Posted February 23, 2023 Author Posted February 23, 2023 6 minutes ago, Charles said: Can you use the Pages media option? It allows you to upload files not attached to a content item. Like this: https://content.invisioncic.com/a319035/pages_media/4_file_example_MP3_700KB.mp3 Whoa, I never knew that existed. Testing it now.
Management Charles Posted February 23, 2023 Management Posted February 23, 2023 Just now, Chris027 said: Whoa, I never knew that existed. Testing it now. So... ok... I was like "oh I have a solution!" but Pages Media is apparently a bit clunky. I'm putting in a to do to improve it 🙂 But, yes, you can upload media like that and it just creates a non-attached upload. crmarks, David N. and SeNioR- 3
Chris027 Posted February 23, 2023 Author Posted February 23, 2023 1 minute ago, Charles said: So... ok... I was like "oh I have a solution!" but Pages Media is apparently a bit clunky. I'm putting in a to do to improve it 🙂 But, yes, you can upload media like that and it just creates a non-attached upload. Very cool. I see I can create folders as well.
Management Charles Posted February 23, 2023 Management Posted February 23, 2023 Feel free to PM me if you ever want to do a Zoom to chat about how the platform works. It may not be a good choice for you but I am always open to sharing ideas.
Chris027 Posted February 23, 2023 Author Posted February 23, 2023 1 minute ago, Charles said: Feel free to PM me if you ever want to do a Zoom to chat about how the platform works. It may not be a good choice for you but I am always open to sharing ideas. I think I will. I want the new features. Is it possible to get the path to this file?
Management Charles Posted February 23, 2023 Management Posted February 23, 2023 Just now, Chris027 said: Is it possible to get the path to this file? That was the part I was like "ok this isn't very good" 😀 I embedded that "media" it in a page to get the path. Promise we will address that in next release! crmarks and David N. 1 1
Chris027 Posted February 23, 2023 Author Posted February 23, 2023 2 minutes ago, Charles said: That was the part I was like "ok this isn't very good" 😀 I embedded that "media" it in a page to get the path. Promise we will address that in next release! Without the path, is there a way to embed the audio using the {media...} code? A way to adjust the code below? <audio controls="" data-audio-embed=""> <source src="https://example.com/my-article-audio.mp3" type="audio/mpeg"> </audio>
Management Charles Posted February 23, 2023 Management Posted February 23, 2023 I would think you can create a Pages Block with your ad code and replace src=... with the {media} tag. Then embed the block wherever you want.
Ryan Ashbrook Posted February 23, 2023 Posted February 23, 2023 Yes, as Charles said, just replace your path with the media tag. <audio controls="" data-audio-embed=""> <source src='{media="1"}' type="audio/mpeg"> </audio>
Chris027 Posted February 23, 2023 Author Posted February 23, 2023 3 minutes ago, Charles said: I would think you can create a Pages Block with your ad code and replace src=... with the {media} tag. Then embed the block wherever you want. My ad code looks like this and I adjust the CSS to not have the word "ad" in it. <script type="text/javascript"> var images = [], index = 0; images[0] = "<a href = 'https://example.com/sf'><img src='https://example.com/uploads/b/dyn/e.jpg' class='mcbc' alt='Dynaudio'></a>"; images[1] = "<a href = 'https://example.com/sg'><img src='https://example.com/uploads/b/dyn/f.jpg' class='mcbc' alt='Dynaudio'></a>"; index = Math.floor(Math.random() * images.length); document.write(images[index]); </script> 4 minutes ago, Ryan Ashbrook said: Yes, as Charles said, just replace your path with the media tag. <audio controls="" data-audio-embed=""> <source src='{media="1"}' type="audio/mpeg"> </audio> Can't get this to load the audio. You can see the top one uses the mediaxxxxx code and the bottom uses the full path. The top doesn't ever load or play.
Chris027 Posted February 23, 2023 Author Posted February 23, 2023 The audio source is rewritten by IPS like this <audio controls="" data-audio-embed=""> <source src="%7Bmedia=%228%22%7D" type="audio/mpeg"> </audio>
Randy Calvert Posted February 23, 2023 Posted February 23, 2023 Where are you putting that code into? Are you pasting it into a post or are you making it part of your raw pages template?
Stuart Silvester Posted February 23, 2023 Posted February 23, 2023 For the audio in articles, you could just drag and drop it into the main editor as an attachment. On display it'll get embedded as a native audio element. Another alternative would be a custom field of the 'upload' type and you can set the output to your own specific audio code.
Randy Calvert Posted February 23, 2023 Posted February 23, 2023 (edited) Also... I just tested this by pasting this into a block and adding the block to the page. It worked fine like that. Also testing uploading via the editor instead of the file attachment system. This is a test.... 4_file_example_MP3_700KB.mp3 Edited February 23, 2023 by Randy Calvert
marklcfc Posted February 23, 2023 Posted February 23, 2023 (edited) The unlimited page views is nice addition today but I have a custom database and sometimes I need to download, edit and reupload php files and images for that database, likewise things like placing ads.txt in the home directory. Having no access to the files is such a restriction even if I wanted to move. Edited February 23, 2023 by marklcfc
Ryan Ashbrook Posted February 23, 2023 Posted February 23, 2023 22 minutes ago, marklcfc said: The unlimited page views is nice addition today but I have a custom database and sometimes I need to download, edit and reupload php files and images for that database, likewise things like placing ads.txt in the home directory. Having no access to the files is such a restriction even if I wanted to move. ads.txt specifically is covered in the guides.
Chris027 Posted February 23, 2023 Author Posted February 23, 2023 34 minutes ago, Stuart Silvester said: For the audio in articles, you could just drag and drop it into the main editor as an attachment. On display it'll get embedded as a native audio element. Another alternative would be a custom field of the 'upload' type and you can set the output to your own specific audio code. But this route is problematic.
Stuart Silvester Posted February 23, 2023 Posted February 23, 2023 1 minute ago, Chris027 said: But this route is problematic. The alternative proposal will work until we address that (I see the report in our queue)
Management Charles Posted February 23, 2023 Management Posted February 23, 2023 33 minutes ago, marklcfc said: The unlimited page views is nice addition today but I have a custom database and sometimes I need to download, edit and reupload php files and images for that database, likewise things like placing ads.txt in the home directory. Having no access to the files is such a restriction even if I wanted to move. Hopefully the new GraphQL system and future JS option will make the need for PHP unnecessary 🙂 We are trying to get to the point where "writing a PHP script" will not be necessary even if you want to extend the system to do all sorts of custom stuff. Daniel F 1
marklcfc Posted February 23, 2023 Posted February 23, 2023 (edited) 11 minutes ago, Charles said: Hopefully the new GraphQL system and future JS option will make the need for PHP unnecessary 🙂 We are trying to get to the point where "writing a PHP script" will not be necessary even if you want to extend the system to do all sorts of custom stuff. i've got this area which took years to put together, its all written in seperate php files in a seperate database. Once those are on the server then I pull it into the forum through the Pages app using includes for each page. I'm aware very few if any would be doing anything like this but the way you've set it up with no files or database access means I could never make the move unless I removed it which isn't an option. Edited February 23, 2023 by marklcfc
Jim M Posted February 23, 2023 Posted February 23, 2023 1 hour ago, marklcfc said: i've got this area which took years to put together, its all written in seperate php files in a seperate database. Once those are on the server then I pull it into the forum through the Pages app using includes for each page. I'm aware very few if any would be doing anything like this but the way you've set it up with no files or database access means I could never make the move unless I removed it which isn't an option. Why not build it in Pages? If you do not know how, why not hire someone to do so? (Assuming you hired someone to do this initial development, it would be a similar endeavor) Pages is a CMS and could be used for data entry and display like this. It may need to be carefully thought out but possible.
marklcfc Posted February 23, 2023 Posted February 23, 2023 (edited) 43 minutes ago, Jim M said: Why not build it in Pages? If you do not know how, why not hire someone to do so? (Assuming you hired someone to do this initial development, it would be a similar endeavor) Pages is a CMS and could be used for data entry and display like this. It may need to be carefully thought out but possible. The pages themself are very complex and even if possible redoing everything so its part of the Pages app would be another restriction I don't really want. Edited February 23, 2023 by marklcfc Jim M 1
Management Matt Posted February 23, 2023 Management Posted February 23, 2023 We can likely reveal the media path/filename in Pages. We did not do this because self-hosted allows you to have images in the database, in a local disk folder or on s3 so the full path and filename would break if you moved it to a new domain. Cloud doesn't have this problem. crmarks 1
Recommended Posts