The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [code]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
16 views

I am trying to make a file upload form for my website, I have some code but it is not working [closed]

I cannot get this to work am I doing something wrong? $extensions= array("jpeg","jpg","png"); if(in_array($file_ext,$extensions)=== false){ $errors[]="extension not allowed, please choose a ...
3
votes
0answers
76 views

Migrating Wordpress to Hugo (or generic markdown)

I have a blog which I want to migrate from Wordpress to Hugo. The problem is that the blog has a lot of posts which contain code examples, including HTML code. I'm using Codecolorer as Wordpress ...
3
votes
1answer
3k views

Questions about editing a site created in Adobe Muse by someone else

A client came to me with an existing site created in Adobe Muse by another developer. They had exported the site to HTML so I could post the files to the client's new hosting account. Now the client ...
2
votes
2answers
83 views

How much recyling CSS makes my website faster?

I'll give you two examples to clarify what I'm trying to say. Example 1: p { font-family: Arial; } #id1 { font-family: Arial; } .class1 { font-family: Arial; } #id2 { font-family: Arial; } ....
0
votes
1answer
26 views

Printable characters between two links. How to legally hide so my page still appears correctly?

Once again, I'm trying to follow standards... Here's another issue. On one page of my site, I have a grid of clickable images. In HTML code, the grid is partly as follows, and the images are ...
3
votes
2answers
845 views

Does Google care about code formatting?

TLDR; Does Google care how code is formatted? Background I work in an agency. One developer is trying to convince the other to put line-breaks between rules in his css file: .class { width:100%...
2
votes
1answer
229 views

Yext has added code to our URL — what does this do, and why?

Our company has employed Yext to fix business listings across the web. We've discovered that a significant portion of the links on our business listings have bizarre code added to them that we did not ...
4
votes
0answers
45 views

What is missing in my SEO checklist for new websites? [duplicate]

So I have a question about what can be done for SEO-purposes purely with coding (meaning this question is not about content strategies, keyword research, linkbuilding and stuff like that, but only ...
1
vote
2answers
39 views

Can a website meet standards without a single link returning 404 status?

According to woorank.com seo tools, I read that its not best practice for a website to not have a custom 404 error page. But here's why I don't have it on a domain. Currently I and one other person ...
1
vote
0answers
19 views

Mediawiki strange string on pages

I upgraded from MediaWiki 1.23 to 1.24.2, but at the end of the upgrade, the pages started to show a strange string, by instance - "COS" at the top of the pages. I tried to inspect the page code to ...
1
vote
1answer
84 views

Trying to improve code-text ratio without a catch-22

My website has several subdomains with it that represent each major section of the website and I have that to allow search engines to understand what each section is about. My problem lies with the ...
0
votes
1answer
446 views

What is the ideal code to text ratio? [duplicate]

is there a formula you have to keep in mind and how much does it affect SERPs? Also is there an efficient way calculating that ratio?
3
votes
2answers
459 views

Create MediaWiki template to format source code

I want to create a MediaWiki template like <syntaxhighlight lang="Java" style="background-color:lightgray; border:1px dashed gray;"> {{{code}}} </syntaxhighlight> and use it in normal ...
4
votes
3answers
5k views

HTML Character Entities/Special characters with crossbrowser/crossplatform support?

I used some good looking ones from http://dev.w3.org/html5/html-author/charref on my site but I just noticed that they don't show on mobile browsers of Android. For example: ⪦ &ltcc; &...
2
votes
2answers
199 views

HTTP code 403, access denied & Options -Indexes

at "webmasters.stackexchange.com" I already found a similar topic: Stop directory listing using .htaccess and redirect to good error page Options -Indexes ErrorDocument 403 /path/to/403.html ...
-3
votes
1answer
988 views

Google Sites: code block - how to disable wrapping [closed]

I'm using Google Sites to host the wiki-like website. I noticed that code blocks have text wrapped in them. Instead, I would like to have the code non-wrapped and with horizontal scrollbar when ...
2
votes
1answer
188 views

What's the best HTTP code for dynamically deleted pages?

I've built my own CMS and I'm looking for the best way to handle pages / items deletion. Actually, pages and items were deleted and cannot be restored. But since I have implemented a bin, I don't ...
1
vote
1answer
56 views

Blank lines between sourcecode [closed]

I'm so confused with a strange behaviour. Actually I have edited some php files remotely with my PhpDesigner8 (a php editor). Everything goes right, but when my teammates reopen the files that I have ...
2
votes
2answers
4k views

Where to find my website's source code?

My company ordered a website and we were given all usernames and passwords but I can't find the PHP source files and this is my first website assignment. I have no prior exposure to web technologies ...
0
votes
1answer
56 views

How do I use the include directive under IIS

I just took over a local web site and it uses IIS 6. There is a lot of code repeated across all files, and I would like to use some directive to include the same generic code over and over in each ...
0
votes
1answer
122 views

Are there some good Javascript templates out there? [closed]

I am trying to create a simple .js file that will let me have some submit buttons here and there, with the text paragraph in the middle changing based on which submit button is pressed. Does the ...
-2
votes
2answers
86 views

how are they doing this for their CMS?? And how can I do something similar

They've linked the CMS, mail (which is http://www.campaignmonitor.com), social sites management, some kind of online payment solutions, and word press all under one log-in. I'm mostly a graphic ...
0
votes
1answer
254 views

Internet Explorer blocking

How do I add a custom page that is displayed only to Internet Explorer users so that they are not able to access my blog. I'm using Wordpress 3.3 and thought there would be a plugin for that or ...
13
votes
8answers
6k views

Which tool can tidy/indent HTML5? [closed]

I've already spent about 2 hours searching google and trying various tools but either they don't do indent tags per say or they aren't HTML5 compatible such as the famous HTML tidy which was last ...
3
votes
1answer
798 views

How can I automatically clean, beautify, and autoindent dynamic HTML code?

Using content management systems to build dynamic sites invariably results in ugly HTML. Indent levels are often wrong, white space litters the page, and a host of other tiny annoyances plague anyone ...
1
vote
2answers
205 views

Best technical blog site for existing domain

I would like to have a blog site, tough I have created my own by writing the code.. Huhhh... hosting cost is killing me. I have my domain name with me and I just wanted to get the blog where I can ...
3
votes
3answers
887 views

Some browsers zoom in on website, removing whitespace on sides?

On some browsers, they show the website more expanded, removing the white space on the sides of the page. This has the effect of making everything seem more cluttered and bigger. Is there something ...
1
vote
1answer
107 views

Common web app code base

There are a bunch of very similar RE search sites out there. I would not be surprised if a lot of them started out from the same code base. Does anyone know if these are all custom built, or if some ...
16
votes
7answers
687 views

How do you backup your websites?

I was just wondering how the community backs up their websites? I take a nightly dump the database and shift it across onto another server which then gets backed up onto removable media. It is ...
13
votes
2answers
20k views

How to ignore certain coding standard errors in PHP CodeSniffer

We have a PHP 5 web application and we're currently evaluating PHP CodeSniffer in order to decide whether forcing code standards improves code quality without causing too much of a headache. If it ...
5
votes
4answers
73 views

Maintaining legacy code

I have an old codebase that still "works" but is difficult/nearly impossible to maintain. It may be expensive (time and money wise) to update it. Do I just go for it, or should I continue to hate my ...