Jump to content

Recommended Posts

Posted

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>

 

  • Management
Posted
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.

Posted
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
Posted

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.

Posted
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?

 

Could contain: Page, Text

  • Management
Posted
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!

Posted
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
Posted

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.

Posted
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. 

 

Could contain: Text

Posted

The audio source is rewritten by IPS like this

 

	<audio controls="" data-audio-embed="">
		<source src="%7Bmedia=%228%22%7D" type="audio/mpeg">
	</audio>

 

Posted

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.

Posted (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 by marklcfc
Posted
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.

 

Posted
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. 
 

 

  • Management
Posted
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.

Posted (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 by marklcfc
Posted
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. 

 

Posted (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 by marklcfc
  • Management
Posted

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...