On my website I have a download, but I want it to display the number of downloads next to the download Button. I have found websites that do It for you, but It gives me an HTML link instead of a button.
A bit like the counter here www.minecraft.net
My Site www.Go-Create.Net/game
Thanks! : )
Added Some JavaScript to log how many times the link is clicked. That is saved into a .txt file which is then displayed where ever I want.
Related
There are buttons to click for downloading files in some websites.
So I need to make a program that can automatically download.
or automatically click those buttons.
I need your help. Thank you
-
-
I want to know ways to solve that problem or I want to get related url
I uploaded some images to a public folder in my Google Drive and would like to display them in a Fusiontable. I defined a column "link" as "Four line image" and store a link to the image there in the following format (provided by #Mori)
https://drive.google.com/uc?id=FILE-ID
example: https://drive.google.com/uc?id=0B6qZJQj7B-4ERS1KZ3p2SE9IbkU
I also tried the following format (provided by #niutech)
http://googledrive.com/host/<folderID>/<filename>
Unfortunately the result looks like this (screenshot 1)
Only after right click onto the image placeholder and selecting "View image", the image is displayed in a separate window. Now going back to the fusiontable the image appears correctly, see screenshot 2:
What could be the solution to this problem? I would like to see all images without need to right click first. Btw, I'm using Firefox.
EDIT: I now set the Fusiontable to "visible to anybody with link" and tested with Google Chrome and Opera. There it works fine. Firefox still does not work. Seems to be a browser issue...
I now set the Fusiontable to "visible to anybody with link" and tested with Google Chrome and Opera. There it works fine. Firefox still does not work. Seems to be a browser issue...
After many attempts I was only able to upload my own images to fusion tables via Dropbox and not Drive. I could not find a way to automate this, so for many images it might be better to go to another visualization platform.
Upload the images to your personal Dropbox (mine were .png)
For each image:
Click on Share -> Create a Link -> Copy link.
Open the 'shareable link' in a new tab. It might help to open the link in a private browser to check that anyone not logged in to Dropbox can view the image. Then right click on your image and go to 'Copy Image Location' (Firefox) or 'Copy Image Address' (Chrome). You will notice if you put this link in a new tab it will prompt you to automatically start downloading the image.
Paste this image location URL into the appropriate fusion table cell and make sure the column attribute is defined as e.g. "Four line image" and not 'URL'.
You almost had the correct answer. You have to change your picture's URL from the one for viewing the picture, to a direct URL for download.
See https://www.labnol.org/internet/direct-links-for-google-drive/28356/ for details.
I managed to do this in a calculated column (I use google form to gather info, then google spreadsheet and than synchronized fusion table). I changed the URL with spreadsheet formula:
=CONCAT("https://drive.google.com/uc?export=download&id=",right(left('URL',(len('URL')-17)),len('URL')-49))
Where 'URL' is the URL for viewing your picture in the browser.
Hope it helps anyone else!
My front end of magento does not show any content and footer, its only showing header and navigation menu. I have checked in view.phtml as the code is there to display the page. please provide me the solution.. picking my hair since morning...
If I understand you correctly, your site is loading the header and then displaying nothing after that section. Syntax errors in PHP are the most common cause of this. Could be something as simple as whitespace. In order to diagnose I would recommend turning on template hints in Magento's backend to see what template files have or have not loaded.
From the dashboard, go to System > Configuration. Scroll down to the bottom left and you will see "Advanced". Click on "Developer" underneath that. A new screen will appear. Click on the section labeled "Debug" and uncheck "Use Website" next to "Template Path Hints". If you don't see this option, switch stores in the upper-left drop down.
Go back to your troubled web page and reload. You'll see all kinds of fun markup which leads to file paths pertaining to your site. After header.phtml loads, usually the next files to be called are breadcrumbs.phtml, topmenu.phtml or even homepage.phtml depending on your site's setup. I generally go into these template files, select all and delete the contents of each. If breadcrumbs.phtml is empty and your content isn't showing, restore it with cmd + z or ctrl + z and move on to the next file. Empty it, save it and reload the website. The goal is to narrow down that syntax error that is causing the page to break. When you have successfully found the file, your site will load correctly (minus whatever phtml file you just emptied). Be sure to have a backup or copy of your PHTML files while doing this. ;)
You could also switch back to your default template. If your content returns then you definitely know it is something with your custom template.
You might also be able to check your PHP/Apache logs for signs of trouble but I feel confident the above method will help you out. Let me know.
I am using HTML and CSS, and willing to use a very simple JavaScript code if necessary.
I uploaded ResumeWord.doc and ResumePDF.pdf to the FTP. I created links for "View" "Download" and "Print" for each. ResumeWord.doc only seems to give me a pop-up with options to Open or Save instead of opening in the browser, while I was able to open ResumePDF.pdf in the browser but not create a clickable link to download it without viewing. I have tried the HTML target_blank and JavaScript window.open for the "View", unsuccessfully. I am self-taught and an amatuer.
How can I make the "View" link open ResumeWord.pdf in the browser without a pop-up?
How can I get ResumePDF.pdf to download when the user clicks "Download"?
Without some help, the browser won't assume that a user has Microsoft Word installed on their computer. That is why you only get the option to save it, rather than it opening.
The PDF, however, is something that can be viewed in-browser, and the browser can check if the right files are installed to make this happen. So if they are, the browser goes ahead and opens the file.
As for forcing the browser to open a word file, see this SO question.
And as for forcing a download of a PDF, see this SO question. It may not be possible, in your case, as the solution involves sending different server-side headers.
i want to show a folder. After that clicking on this folder might open some subfolder those are containing the images and at last when one will click on each folder then he/she should see some images which will sliding.
How can do that? any link or suggestion...
It seems that you are looking for a tree control. If you can use jQuery have a look at TreeView plug-in.