I have several blogs.
I also have a wordpress blog , which is the main one.
I am driving traffic from the blogspot to the main wordpress blog.
I want to display content or links based on from which url a user is coming from.
For example.
If a user is coming from www.anyname.com/mobile
I want to show mobile phone related conetnts.
If a user is coming from www.anydomian.com/laptops
I want to shows laptop related contents.
So - how to detect from which url a user is coming from ?
I have tried the "HTTP_REFERER" code , it shows only current url.
You can use: Mobile Detect
So if it is mobile you redirect them to any URL you want, if it's not then stay on the page
Related
My client website created using php code.
However, when I click on any link on any web page, the url bar append some characters as below "VzFqJRV95E4". It is different from another computer and different browsers showing different characters.
I copy the website to my localhost also display different characters.
http://localhost/newbridge/Frequently-Asked-Questions.php#.VzFqJRV95E4
Screenshot from chrome
How can I remove the codes? I think it is session tracking. It's so annoying and I think I should remove it to protect user privacy.
I got the answer from rocky!
https://drupal.stackexchange.com/questions/37467/strange-characters-after-url-uafabbty-ie
The URL is actually generated by AddThis plugin's Address Bar Sharing Analytics.
Info can refer to this URL http://www.addthis.com/academy/what-is-address-bar-sharing-analytics/
How it Works
Address bar share tracking works by appending a special tag to your URL once your page has loaded. Your URLs will start to look like this:
http://example.com/blog#AHb4gs1hwck
In this case, “#AHb4gs1hwck” is a semi-random value which identifies each page view. When a user clicks on an URL like this we’ll know that they were the recipient of an address bar share and we’ll count a share and a click for your site. This tag contains the time that the page was viewed by the sharer so we can properly attribute the share. If that recipient subsequently shares your page to someone else, we’ll be able to measure it separately as a “reshare”, taking into account the various generations of your viral sharing.
Note: these types of tags (called URL fragments) will not affect your SEO because they are discarded by search engines during web crawling.
I have a website that I added the Facebook like button to it. Assume the website url is "www.xyz.com"
In this website I have articles, each of which has an id in the url like this "www.xyz.com/3/some-text-here"
In my website "www.xyz.com" and "www.xyz.com/3/title-here" refer to the same contents. My question is how to tell Facebook that these links are the same so if a user liked or shared one of these web pages then both of the pages will get the same numbers of likes and shares.
Thanks.
The solution is to set the data-href property, in one of the pages, to the other page.
reference: https://developers.facebook.com/docs/plugins/like-button
i want to create a wordpress website but i have a Question. i will post regulary on it and any user can post after registration and
his post will show after admin's approve.
explain my question :
category : computer, medical, science
post : how to repair computer ? >> this post is show in computer category
ok
so i want to ask if i dont want to index my and post in google how can i do.
i want to make a new page like : computer.php and will display all computer category post on it with SEO. i will enable search engine for it.
but i don't want to index any induvidiul post..
because some post is very short. and some post is only 2-3 lines.
and my some post's title can be same so i dont want to index any post i want to get all post in new worspress page and
display with pegination.
tell me it's good idea ????
You can use robots.txt to make google, bing... ignore your web pages depending on their url.
For example if your posts use urls like "www.yourdomain.com/posts/12-post-title" you can tell them to ignore all urls starting with "www.yourdomain.com/posts/" with just writing:
Disallow: /posts/
More info:
http://en.wikipedia.org/wiki/Robots_exclusion_standard
I've seem to have run into an issue here.
I have a voting/gallery app on a Tab of a specific page on Facebook.
So to provide a user with a direct link to a image in a Gallery(in the Paget Tab App), i generated a URL with APP_DATA, so I can pass data(image filename)to the iframe.
So basically my links look kinda like this:
https://www.facebook.com/pages/xxxxxx/xxxxxxxxx?sk=app_xxxxxxx&app_data=showimage.php%3Ffilename%3D1336314789stevakralj%2Ejpg
Now, when I try to create a Like button for this Link, I get nothing.
Any ideas?
I have exactly the same problem... In my app, which is hosted by a page tab, the "Like" buttons for each item apper correctly and the "data-href" attribute for each "like" button has the same format as yours, but EVERY like button points to the Facebook page which hosts the app, not to the individual item... so, for every item in my gallery, the "like" information under it is exactly the same (number of likes for the page hosting the app) and if I "dislike" any item, I "dislike" the entire page.
I have tried the same format but the parameter NOT on a facebook page... then it works... I don't see a difference but:
https://www.facebook.com/pages/xxxxxx/xxxxxxxxx?sk=app_xxxxxxx&app_data=abc (DOESN'T WORK, for each item which have app_data different)
https://www.mytestweb.com/test.aspx?sk=app_xxxxxxx&app_data=abc (WORKS for each item which have app_data different)
Facebook doesn't seem to allow linking directly to a tab page so strips your app ID from the URL. There's no way to get around this except by linking to an external site that bounces back to Facebook.
I am looking to add social icons to our site, giving customers the ability to "like", tweet and share content on their facebook and twitter profiles. I have noticed to the left of this box, the facebook and twitter icons do exactly what I am trying to accomplish but I am not familiar with how to do this. Looking at the source code, there are JS references to:
<script type="text/javascript">
StackExchange.ready(function() {
var shareUrl = "http%3a%2f%2fstackoverflow.com%2fq%2f7505636%2f337690";
var shareMsg = "Advice+integrating+Facebook+%27share%27+and+link%2fimage+capabilities+with+our+site";
StackExchange.share.facebook($("#fb-share-7505636"), shareUrl, shareMsg);
StackExchange.share.twitter($("#twitter-share-7505636"), shareUrl, shareMsg);
});
</script>
Our site works this way: While anybody can visit the primary site at any time, individuals can sign up as representatives with their own unique URL that acts as a referrer to give 'credit' on rewards. I have reviewed the facebook developer site and to be honest I am slightly overwhelmed. I want to give our members the ability to click a Facebook icon from within their dashboard, prompting them to post on their wall with a set image, set title, and description. I have read in the documentation this is done by setting meta tags in the head but it does not seem to matter for my site (or I am clearly doing it wrong).
What if the URL facebook is looking for (share URL) is behind a password protected page or an area of the site which would not allow content based on a missing PHP SESSION variable?
Edit
I have also seen a lot on the net which says I have to integrate the Facebook JS SDK but then goes on to talk about authentication/permission to write on walls, etc. Yes the link to the left does not ask for permission to do anything other than to 1) log into the FB account, 2) post on the user's wall.
This site is a perfect example
The link above is great but it assumes I need to authorize a 'share' which does not occur on this site.
When you click on the share button, you call a script on facebook.com that will then in turn access the page pointed to in the querystring (?u=xxxxxx).
Facebook will parse that page and grab the first few images it finds, a description and title from the page. That is what it shows to you and allows you to add some additional text (as well as edit the title/description/and choose different images).
If that page contains the specific meta tags that facebook asks you to add to the page, then they'll use those to populate the title/description/image. This allows the webpage author to control how their page shows up in a facebook feed (although the user could still edit it before posting). These meta tags would need to be in that particular page to be used by facebook.
If facebook cannot access the page because it's password protected, etc. - then it cannot parse the meta tags and will then just show the user the URL as the title with no description and thumbnail.