I am reading some old posts on a web forum, and I guess they changed their code at some point because recent posts display correctly but old ones are often full of mojibake. Especially around the single curly quotemark which sometimes turns up used as an apostrophe.
Example, new post: "It’s a hard choice and I can see both sides..."
Example, old post: "I don’t think anyone has said that..."
I know this has to do with UTF-8 not being handled properly. What I'm wondering is, can I do anything in my own browser to automatically turn this '’' sequence back into a quotemark? It'd make everything a lot easier to read.
My ideas so far: maybe I could put some custom CSS in Stylebot? The other extension I use a lot is uBlock Origin but I don't think that'd help here. Can a CSS selector be used to replace text in the middle of a paragraph like that, or am I stuck with a 'run every page through Regexr before you try to read it' kind of situation?
Related
Ok, so maybe my search syntax is wrong here, this could have very well been covered in stackoverflow but i've been unable to find anything after hours of searching. Be warned, I am a novice developer when it comes to this type of stuff and would appreciate any guidance, help or pointers to accomplish the goal. I'm open to suggestions of any type! :)
So, I have a site http://www.animetip.com
On this site we have a popular feature called a "jump menu" which allows a user to quickly navigate directly to the page which contains the anime series they would like to see an episode in. Essentially we have every series on the site (over 1000) broken down in an a-z list. When a user hovers over a letter, the menu will drop down and display all series that begin with that letter. A user can then go to the series they'd like to view and click on it to go directly to the page.
The issue with this is SEO. We are being penalized due to the number of links on the page. What we need to accomplish is the same (or better) functionality while reducing the links loaded in the page. If we could come up with a way to create the menu and have the link itself not be served until its clicked on I believe that would resolve the issue.
What is the best strategy for doing this? I am no expert by any means, but I was thinking that putting all the links in mySQL and then calling the link as its clicked would be ok, but a friend cautioned me that it would cause a performance hit. I have also reviewed material which indicates you can do the same thing using an array to store the links and then call them as they are needed using PHP. I grasp the concept of doing that but could use a stub type example to get me started.
The site is built on Wordpress with a completely custom template / theme.
Someone has commented that the topic wasn't researched. Unfortunately I've spent lots of time researching it, the problem is that I think I'm using the wrong terminology to describe what I need to find. If anyone would care to give me the terminology or a good place to conduct further research (even a few keywords!) I will be MORE than happy to go do that.
Thank you for any help or tips to information I can learn from!
Brett
Try using ajax so that the links are not visible in the actual source code and while clicking the a,b,c links it will call a separate php file and display the output from the db on the fly. I hope this will resolve your issue. Thanks
Is this the easiest way in an html doc to create a link to a page that has the same name as the url?
So basically it will say:
Please click the following link:
http://test.com.
That is all I want it to say.
The code I wrote for this is as follows:
http://test.com.
Or is there a more all inclusive way where you don't have to write the name of the url twice?
Obviously my code doesnt include the initial text, this is just for example purposes.
Unless you want to copy the URL from one place to another using JavaScript, you will have to write the URL twice.
I advise agains the JavaScript copying, because its performance and SEO costs are much worse than the cost of typing everything twice.
What you have got now is the easiest way.
If it's not an option for some reason you can use server side scripting to search the page content for URLs and wrap an <a> tag around them.
This will require some very complicated regex. Daring Fireball has a very good blog post instructing you how to do this, and explaining exactly why it's actually impossible for this to be perfectly reliable (which is probably why HTML doesn't allow it):
http://daringfireball.net/2010/07/improved_regex_for_matching_urls
I've done this sort of thing before (with emails actually) and it's very difficult and took years to get right. If at all possible, you should just do what you're already doing - manually type in the <a> tag yourself.
Alternatively, you could use something like smarty (for PHP. I don't know what the ASP equivalent would be) to write something along the lines of the following, to programatically generate the full <a> tag:
{link url='http://example.com'}
Why don't we just sidestep the issue by making our links more semantically-rich?
Instead of:
For more information on our delicious pizza, visit www.pizzasrawesome.com.
Use this:
Read more about our delicious pizza.
I'm trying to help a web developer I'm working with figure out what might be causing poor rendering of a site I'm helping with. It involves javascript with rotating images, and the site is all skewed at different times for different people using different operating systems and different browsers (I just checked that via browsershots).
She's been trying for quite a while to fix it, and it's pretty urgent now, so although I know next to nothing about creating or troubleshooting javascript, I decided to have a look via w3's code validator myself to see if a second set of eyes might help, and I see that a closing script tag is in upper case letters, and w3 says only lower case is allowed in xhtml. I haven't heard back from the developer yet, so, I'm curious about what others would have to say - would this 'break' the site?
And what about having duplicate content-type meta tags - there is one above the title tag and again below it - both the same. Would that be having any effect on anything on the site?
I'd appreciate any opinions or advice. Thanks in advance.
Neither problem will break the site, unless you are serving the page with an XML content type, and you almost certainly aren't. But I endorse Pete Wilson's comment. The starting point for fixing (X)HTML problems is to ensure that the page validates.
Especially Ctrl+I , which is "mail this page". I'm using wordpress self hosted. So far I've found this code, not sure how to implement it or if it's old.
Please no plethora of reasons as to why you find this attempt pointless.
Really, shouldn't answer, but:
There's no reason for this, because there's always a very easy way around it. It'll probably take a lot more work than whatever you end up with's worth. If somebody has half of a computer literate mind, they probably can get past this without a problem at all.
Summary:
Don't bother
Disabling hotkeys won't stop anyone from just selecting that option from the File menu.
People will always find ways around these kinds of hacks. Turning off JavaScript, hacking the source with Firebug, Option+Click on a Mac, taking a screenshot, etc. They are completely ineffective against anyone even slightly determined to do what you don't want them to do.
You can't really do that. See this page for really good information on the portability of various key events in JavaScript across multiple browsers. You will see for one that each browser handles/responds to various key events in many different ways.
Also, most of the default browser actions (e.g. Ctrl-F, Ctrl-S) cannot be canceled if you are capturing key events. You can still detect some of them and respond, but you can't actually stop the browser from displaying the search dialog or whatever specific action is to be performed by the key combination.
Also, if someone really wants to take your page's HTML/JavaScript code or content, these methods won't stop them. The disable right click code from the link you referenced can prevent right click, but all someone has to do is disable javascript and it no longer works.
First of all I am not programmer nor web developer.
Someone made a website for me but can not contact him right now.
After 3 days of googling i decided to post this question.
How to enable gorizontal scrolling instead of menu and footer wrap on window resize?
I tried attributes such as: display:inline-block; white-space: nowrap (i think this is related to text only), some JavaScripts.
I might placed these elements in wrong place as it's hard to know that code.
This is index file:
http://slawgd.webpark.pl/index.rtf
and pls find CSS here:
http://slawgd.webpark.pl/style.css
Thank you very much for you help!!
Greg
CAUTION: I am sorry that my answer has no real solution so you can choose to ignore.
The followings are just my comment on your web page after I had analyzed it.
It would be slightly better if you copy the rendered code of HTML as we won't get your data in your SQL Database.
Simply right click the page in browser and find Source Code to get it.
Also, you might find a better answer from the someone who help you to produce it because he is the only one person familiarize your page most.
EDIT: Just a suggestion and not a solution.
After I looked at your page, it is suggested that to find the someone because the page was complicated designed.
It needs lots of effort to modify it without affecting other component.
Moreover, it is quite horrible to work out on cross-broswer compatibility because the code is not well designed.
In mainland China, users of Firefox might not have much, but there are still numbers of users using Maxthon which include WebKit engine.
Variant IE-based browser in mainland China also give a slightly different result of rendering so the code must be optimized.
Therefore, ask the website editor for cleaning the code (such as repeating CSS, malformed HTML structure, etc) and working hard on cross-broswer compatibility is considerable.
More personal comment:
In conclusion, if you find a worker for your website construction with money pay, it seems that it is a huge job to rewrite it and it is not easy to persuade him to help you.
Maybe you can ask someone to help you with a simpler basic structure and insert the original JS background slide effect and drop menu effect to your newer, simpler, and cleaner structure.
There are still a readable amount of unnecessary wrappers inside the page.