Is there a possibility to hide the "buy" link in the Soundcloud HTML 5widget? - soundcloud

We'd like to embed Soundcloud in articles about artists using Soundcloud. But since we are a public radio station - we are not allowed to link to online stores. Is there any parameter that hides the "buy" link in the HTML 5 widget?

Yes, you need to use buying=false GET parameter when inserting widget. You can see all possible parameters for the widget here.

Related

Liferay DXP 7.2 - Check if User is on a Content Page or a Widget Page

is there a way to check if the user is on a Widget Page or a Content Page? Maybe some kind of variable that describes the page type, I'm looking in to the documentation but can't get any useful info around it
I found out how to do it, using the themeDisplay Object as follows:
themeDisplay.getLayout().type

How can I have carousel of basic cards in google actions app

I want to show a carousel with a list of of basic cards (https://developers.google.com/actions/assistant/responses#basic_card) in google actions conversation response. I looked at the rich response(https://developers.google.com/actions/assistant/responses#rich-responses) and it allows only one basic card in it.
The reason I want to use basic card instead of carousel of option is simple. When I click on the carousel option it proceeds to next conversation, but with basic card I will be redirected to the external link, which is what I needed.
I'm using the code below to display a list of items(options) in carousel for a chat response currently. Any suggestions and help appreciated
let carousel = app.buildCarousel()
// carousel.addSimpleResponse();
products_raw.forEach(function(item){
console.log(item);
carousel.addItems(
app.buildOptionItem(item.title,)
.setTitle(item.title)
.setDescription(`Price: ${item.price}`)
// .addButton('know more', item.url)
.setImage(item.image, item.title)
// .setImageDisplay('CROPPED')
)
});
app.askWithCarousel(answerData.message_text, carousel)
You can make a carrousel or list selector with multiple sites that you want to be able to choose from. Then when a user selects an item, build a basic card with the site you passed from the selector.
You can't. The two are intended to serve different purposes.
Carousel cards are meant to advance the conversation and provide visual information as part of advancing it. It isn't really meant to provide a final result or to produce something that takes you out of the conversation.
The basic card is meant as part of a result that supplements the voice part of the conversation. It can be the "end result" of a conversation, although it doesn't need to be. As such, it makes sense that it allow linking out to a website.
If you have a number of results as part of the conversation, it may be that there is more you need to do to advance the conversation along still.
You can use browsing carousal for your use case, Browsing Carousel

How do I add a like button to my facebook page and change the name to a company name?

I noticed some facebook company pages like:
http://www.facebook.com/companyname
Can change the persons name to the company name and also add a like button. How does one achieve these two things?
Add a like button to a company page of a URL like this - http://www.facebook.com/companypage
Add a like button on that page?
You need a special account designed for business, you cant just do it to a personal account.
https://www.facebook.com/business/overview
Once you reach enough likes on Facebook you can get your own "short page-link". You only need a few likes (100-200 I think it is).
A like button is already on your page. However you can add an extra tab using HTML and Iframes to a remote document with a like button. The like button is found on Facebook's dev pages.
https://developers.facebook.com/docs/plugins/like-button/
Code in HTML for Like Button
Detailed steps mentioned on the page on how to embed
You can add various styles too and a code will be generated for you

Want to share a particular block or div from my entire page into facebook

I have a requirement that in a webpage I have multiple block of content which is wrapped inside individual DIV. Each block needs to have a share to facebook button.
Did many researches but couldn't find a solution. Please can anyone give me a suitable code or idea how I can share particular blocks/content wrapped inside a div into facebook.
For e.g.
I have three DIV in my page and each DIV has share button, when user clicks on any of the share button the respective DIV is shared.
Is there any solution to this requirement or whether is it possible to do. Any kind of suggestions are widely accepted.
Check out this HyperArts tutorial on adding a Share Button to an iFrame tab - you use the exact same code for your webpage. You will be using the Facebook JavaScript SDK.
At the end of the tutorial it explains how to modify it to allow for multiple Share buttons on one page. You just need to add a unique identifier for each one.

Is it possible to add ads to an android Widget?

Im trying to make a free version of my widget and i would like to add ads to the widget, is it possible? if so how?
Views in widget apps are limited to :
AnalogClock
Button
Chronometer
ImageButton
ImageView
ProgressBar
TextView
Descendants of these classes are not supported.
So, as there is no webiew, you can't use admobs for instance.
Nevertheless, it looks like other people are trying to address this issue and provide widget with ads too by using simple imageButton :
http://openx-android.sourceforge.net/
Kind regards,
Stéphane
You could use StartApp.
When someone downloads your app,
Your user will then get a “search icon” on his home screen, a bookmark link and a browser home page. All directing to our web search URL.
According to the FAQ Page you get paid either 4 cents for partial integration or 5 cents for full integration just because your app is downloaded.