Remove auto added "http://" in wordpress user website - wordpress

When I add a website (url) to a user in wordpress, it automatically gets "http://" added to the start of the url. Is there a way to stop this happening? It is causing other plugins to not function properly as I call on the user_url but need the http to not be present?
edit: i have tried editing user-edit.php to change the "Website:" field input type to text instead of url, but no avail.
Thanks, Nick

What plugins are causing issues with that? It usually works perfect and must not have any issues as per my opinion.
but there is one trick that MIGHT work in this scenario : using Protocol relative URLs
So instead of putting user website as "www.yahoo.com", try putting "//www.yahoo.com" and see if it works for you.

Related

Broken WP images after domain move

I have just moved a site from the domain trfinch.com to moralesfinch.com and all the images seem to be broken. I know this is a common issue, but my problem seems particuylarly complex.
After the move, I used the 'Better Search Replace' plugin to replace all absolute links in the database. I am seeing the broken img icon in all instances, wether in the Media Library or the Front end.
However, here's the interesting bit, if I inspect the image code and manually visit the URL, the images are all there. Something is stopping them pulling through to the main site.
The issue also seems to apply to background images and favicons too.
Any suggestions?
The image urls look right, it is most likely not a problem with wrong siteurl and homeurl as codenathan pointed out, but it is still a good idea to check. My instinct would say it is a problem with routing/permalinks. Try updateing the permalink structrue, or even try deactivating pretty permalinks and see if it helps.
I observed that your website forwards you to the main page (not the 404 page) when you put in the image url directly into the address bar. Do you have access to your server logs? Try locking at Apache's access.log to find out what happens to the .jpg requests.
My last guess would be a permission issue with the uploads folder, but there is no way to know without log files.
Hope it helps.
you may want to open the database and look at the table called wp_options
and look at column labelled option_name and look for the records for : -
siteurl and homeurl, and if these records still reference the old site replace them with the new site domain.

WordPress' Tribe Events leads to main page

My client is using Tribe Events for, well, managing his events :) I was asked to make a new theme for him. I downloaded his old installation and created new theme, checked and everything was great. I uploaded the whole thing to my server - works as well. But when I finally got the thing on my client's host, every link leading to Tribe Events' content is leading back to main page. Strange thing - it happens only when my theme is on. But then again, I tried removing tribe-events directory from the theme, renaming it etc. Nothing helps. Any ideas?
You didn't provide details about the way you use it so I am not sure the way to provide exact reply.
If you use it without default page template (plugin one) then you should check your loop.
Did you override any files or did you change plugin files at all.
Make sure there is no extra loop running and if you use lops on page make sure you finish it properly
And finally - try to reset permalings, both theme and plugin, if any

How to hide a directory within URL call

I don't think what I want can be done, but I thought I'd try here .. maybe someone can think outside the square for me...
I have installed wordpress on my domain at /wordpress.
I will eventually move it to / when it is finished and overwrite the existing content.
My problem is that in my posts, I have to reference images directly (i.e. /wordpress/wp-content/uploads/image.png)
My problem is that when I move wordpress to root, all of those images in the posts are going to be rendered invalid.
What I want to do is try and make a request for /wp-content/uploads/image.png find /wordpress/wp-content/uploads/image.png but I can't redirect everything to /wordpress because my existing site will disappear...
I'm thinking I need to install some type of internal media manager because I just can't see how this could work
this might help u
RewriteRule ([^.]+\.(jpe?g|gif|bmp|png))$ http://www.newurl.com/$1 [R=3-1,L,NC)
u can get image name from old url and pass to new url..
Redirecting is not really a solution here, IMO it just creates additional load, you should do a database wide search and replace of all referenced URLs after you move.
I recommend using searchreplacedb2 - I've been using it for years and it works great for me-
http://interconnectit.com/products/search-and-replace-for-wordpress-databases/
Search yourdomain.com/wordpress
Replace yourdomain.com

Facebook like button is liking wrong url

First off, I saw similar posts already, but they weren't exactly what I am asking.
I used the Facebook Dev to create a like button for my website, stuck the code in and the the button showed up. The only issue is that it likes the wrong url when I click the button.
I'm pretty sure the issue is that I have it set to redirect automatically from mydomain.com to the most recent post. I think this is gumming up the works with the like button and causing it to like mydomain.com/mostrecentpost instead of simply liking mydomain.com.
Is there a way to correct this issue without having to get rid of the redirect (because that isn't an option)?
Sorry if that was a little wordy, wanted to make sure I explained the issue fully.
Is there a way to correct this issue without having to get rid of the redirect (because that isn't an option)?
Either don’t redirect in those cases where the user agent header of the request points to it being Facebook’s scraper;
or set the canonical URL of http://example.com/mostrecentpost to just http://example.com/ using the appropriate Open Graph meta tag. (Although that would mean you would not be able to like a single post any more, because all of your posts would just point to your base domain as the “real” website; so the first is probably the better option.)

Changing URLs in IFrame without using Hash

I am running a website that contains an IFrame, and changing the URL requires to add (#) among the URL, for example: google.com/#/docs
And what i am trying to do is to change the URL in an IFrame without (#) to make it more easy for users, for example: google.com/docs
I've seen that "Reverbnation.com" do have the technology to change URLs in an IFrames but withouth (#)
Please advice.
Thanks,
I've never tried it before, but I think this is what you need:
http://spoiledmilk.dk/blog/html5-changing-the-browser-url-without-refreshing-page

Resources