I am with blogger platform, and I want to know the code when template developers use if their credits are removed so the template redirects to their own website. I want to know what is that code and how it is implemented because I am developing some blogger templates so I want to place my credits not to be removed.
Related
I am very new to Shopify and the .liquid format but I want to add a file upload button to a custom contact page on my Shopify site.
Is there a function like this that will populate a upload file option?
{{ 'contact.form.email' | t }}
I tried replacing ".email" with other logical terms but nothing worked.
No, there is not. If you want to provide for your customers uploading files for their account, you will have to provide custom code in your theme. A good serviceable pattern is to present them with a file-upload option in their customer account screen, connected to an App you rig for that purpose. It's not hard to do, and it allows you to provide for secure standard CRUD.
The official documentation says to use a jot form. lol.
https://help.shopify.com/themes/customization/communication/let-customers-upload-files
Here is some documentation for customisation which has the ability to upload files.
https://help.shopify.com/themes/customization/products/get-customization-information-for-products
This can be done on a cart page. Although because you can make an unlimited number of cart templates it doesn't really have to be a cart. Or you can do it on the product page using enctype="multipart/form-data" on your file upload form.
I am trying to get twitter feeds in to my shopify site. I want to get the feeds and style them as I want and thus cant use a app.
I know how to do it using PHP but can not use that code in shopify and looking for a way I can use OAuth in shopify and get the feeds. I tried the shopify docs but without an example its kinda hard to actually get my head around it.
http://docs.shopify.com/api/tutorials/oauth
Thats the link I am using as a guide. If anyone can direct me to an example which might be similar that would be awesome. (google didnt seem to be that helpful this time either)
Cheers
I know you said you didn't want to use an app, but can I suggest taking a look at Twitify? You can use custom CSS to style your tweets. Also see discussions about Twitify here and here.
Twitter changed their display guidelines and policies on embedding of tweets on websites in June 2013. One of the themes I used for a client earlier in the year had custom styling of tweets, and they have now changed it to use the official Twitter widget to meet the new guidelines. In fact, the images on the Shopify theme store show how it used to look before Twitter changed things:
And after:
I think using an app like Twitify would be the easiest way to deal with these changes to embedding tweets.
Thanx for the suggestion. I did take a look at that before I posted this question. This is a project for a client and I dont think getting a plug in is a viable option. Anyways I found a work around.
Hosted the file on a server and then accessed it. So that resolved the problem. :)
I used node.js to write the script and get the posts as required.
Cheers.
you can use the app for that Twitify https://apps.shopify.com/twitify or you can Embed a Twitter feed in your online store
Go to your Twitter settings.
Click Widgets to open the widgets menu.
Create a new widget, following Twitter's instructions.
Copy the embed code.
I would like to monitor users' page visits and clicks in my Rails app to make recommendations. My questions are:
Is there a Rails gem for this, or Google Analytics is the standard? If latter is true, then how should I link a page visit to a particular user profile?
It is typical in Rails to have a section in application.html.erb, which is shared for all pages. If I add Google Analytics pageview tracking code to in application.html.erb, will it be able to track all individual pages?
There are other ways, but the vast majority probably use Google Analytics. Several gems exist that help you integrate with GA to get at the data. See here: https://www.ruby-toolbox.com/categories/Web_Analytics.
Based on your first question, it seems you may want more insight than GA can provide. I've used ClickTale (http://www.clicktale.com) and Woopra (http://www.woopra.com) before, to good effect. This article lists several other alternatives, too - notice the high marks for Clicky: http://imimpact.com/web-stats-alternatives-to-google-analytics/.
Google Analytics (and almost all of these others) will take care of your second question automatically whenever the user loads a new page, since it keyed by URL. That means that, although you put the GA script code in a single place, each unique page is tracked individually.
If you have AJAX requests that change that page without changing the URL, you'll need to dig in to the GA script API. Essentially you'll need to push a new url (possibly with a # in it) whenever you want to track an AJAX-driven link/button click. See here: http://davidwalsh.name/ajax-analytics
I am biased, but I would recommend checking out impressionist, if you need to integrate the page views into the app in real-time. With analytics you will always have some lag time and you are also relying on an external dependency. Impressionist is good if you need this kind of control, but if you are just looking for simple metrics and don't need to pull them into the app, then analytics is probably the way to go.
Check out Ahoy, at https://github.com/ankane/ahoy. With just a few lines of code in your app, you can track page views and tie them to user accounts.
You can further customize Ahoy to track custom events, both the client (with JavaScript) and server.
Ahoy does not depend on any third-party services.
I am creating an ios app that needs to download a html page and extract some information from it. To get to the page I also need to login. I have looked everywhere for some code on how to login to a site using the cocoa framework, but every answer I see only seems to answer half the question. Here is the login site: romres.ist-asp.com. I need some code for writing something in the first field (the other two are left blank), then submit the form and then I need to be able to see the next page. I believe apps like Facebook should use som of the same technology, where you log in to a facebook and then you can see the contents of your profile.
Basically what you want to do is called scraping.
Scraping is really easy for sites that don't require authentication, but in your case what you should do is to inspect the POST request being made when logging in the site your interested in (try to understand of the service respond) and the POST request made, when already logged in, to retrieve each page.
The purpose of all of this is to have later the possibility to simulate regular HTTP requests that should came from a browser via code.
If you have any doubt ask in the comments.
I made a site which can be browsed both as non-deep linked version for non-javascript users (somesite.com?state) and a deep-link version for javascript-enabled users (somesite.com#state). Note: both of these versions give the same content except in one version, the content is populated by PHP, and in other by javascript.
It works perfectly however when a javascript-enabled user browses the site and wants to share a link on Facebook such as (somesite.com#someotherstate), the Facebook can't parse the proper content of the page since it can't deal with hash parameters for deep-linking.
So, other then putting a separate "Share" button on the page which will give explicitly a non-deep linked version of the URL (somesite.com?someotherstate) for the user to copy and share on Facebook, how does the industry go about with this issue?
UPDATE
I noticed that Facebook implemented Google Ajax methodology. Can't find official statement though.