I'm writing an add-on for hipchat. So, basically, I want:
Enter in a chat room with several users (#user1, #user2, #user3, #myuser)
Write the message /hangout #user1 #user3 into messages input
Press enter
See (as a new message) a hangout url to strat the hangout with #user1 and #user3
I don't need help to show the message (step 4), I just need to know how to build the hangout url. I need something like:
https://plus.google.com/hangouts?users[0]=user1#gmail.com&users[1]=user3#gmail.com
I know that I can start a HO accessing: http://hangouts.google.com/start
But, I dont want this. I want the result url of http://hangouts.google.com/start. I want this: https://plus.google.com/hangouts/_/xxxoiiasdioasodnahsdhasd and, if it's posible with user's invitations
There is not a direct URL to use for starting Hangouts. Your best option is to give the user a URL on your own site that renders a Hangout Button with the people to invite specified.
<html>
<head>
<script type="text/javascript">
<title>Hangout button demo: Inviting people</title>
<link rel="canonical" href="http://www.example.com" />
</script>
</head>
<body>
<script type="text/javascript" src="https://apis.google.com/js/platform.js"></script>
<g:hangout render="createhangout"
invites="[{ id : '1234', invite_type : 'PROFILE' },
{ id : 'foo#example.com', invite_type : 'EMAIL' }]">
</g:hangout>
</body>
</html>
For example, use a structure like this:
https://hangouts.google.com/hangouts/_/OrganizationDomain.com/group-name
Where:
OrganizationDomain.com: Is the organization domain name that will host the hangout group conversation. (In your specific case it could be same domain used to login on HipChat.)
group-name: Can be a permanent hangout group, created previously. Or a new group to be created automatically.
Notes:
Remember that OrganizationDomain.com must be managed by Google G Suite in order to allow automatic group creation. Also, take a look at how to start a group conversation.
Related
i need to set a 410 for pages that contains parameter stats with "?apple".
I try this code :<?php if (strpos($_SERVER['REQUEST_URI'], '?apple') !== false) { header("HTTP/1.0 410 Gone"); exit; } ?>
i have some page link like : webiste.com/?apple , website.com/?apple-fruit
IF i use this code, the homepage will remove from Google ?
Remove only the page with parameters, not the root.
If this is only a temporary problem
You can remove the URLs directly in Google Search Console by following the steps here: https://search.google.com/search-console/removals?resource_id=sc-domain%3Awebsite.com (replace "website.com" with your actual website)
You need to have the website registered in GSC for this to work.
If you don't have access to GSC
I advise you to use canonical URLs instead, this is common practice to make sure Google does not index canonical URLs such as "/?apple" parameters.
The simple fix for this would be to include this simple line in the of each page pointing to itself:
eg. https://website.com/ gets:
<link rel="canonical" href="https://website.com/" />
and https://website.com/another-page/ gets:
<link rel="canonical" href="https://website.com/another-page/" />
this will prevent Google from putting the parameter URLs in the index.
Good evening, I'm working with Google Custom Search Engine: https://cse.google.it/cse/ and I need to add, only for some URLs (in total 10 URLs) a parameter at the end of each search results URL. For example: if the domain is www.dominio-test.com then the URL to show is www.dominio-test.com/123456 the CSE searches on the web without restriction.
The code I use is the following:
<script async src = "https://cse.google.com/cse.js cx=014431187084467459449:v2cmjgvgjr0"> </script>
<div class = "gcse-search"> </div>
I thought of proceeding with reading the DOM with getElementsByClassName (), extracting the content and adding it to a variable, at this point add the if / else / replace controls and output again.
But I don't know how to proceed, can you please support me?
Thanks and good job
Search Element callbacks might work for you: https://developers.google.com/custom-search/docs/element#callbacks
If a customer lands on any page of the Shopify site (not Plus), with a referral parameter in GET (?ref=something), how can this value be carried over to the checkout and order confirmation pages, where the domain is different?
One idea I had was to set a cookie on our domain, and then modify URL one navigates to upon clicking Checkout to include the values of the cookies, but I am unsure if this is the cleanest way, and where the best place to modify the URL would be.
I see that _ga parameter appears to be included automatically, in checkout URL. How can this be done for custom GET parameters?
One is the tricky way for doing this by modifying the checkout URL before submitting.
For doing this on your cart.liquid file find the form with action="/cart" and add attribute:
onsubmit="update_action(this)"
And add the javascript code at the bottom of your theme.liquid file :
<script type="text/javascript">
function update_action(form){
var new_action;
var some_value = "something";
var form_action = form.action;
if( (form_action.indexOf("?") >= 0) ) {
if(form_action.indexOf("ref")>=0) {
new_action = form_action.replaceAt(form_action.indexOf("ref"),"ref="+some_value);
}else{
new_action = form_action+"&ref="+some_value;
}
}else{
new_action = form_action+"?ref="+some_value;
}
$(form).attr("action",new_action);
}
</script>
Hope this will solve your problem.
Note that the ref and landing page are automatically stored by Shopify, meaning without you doing anything, you get those values in the order placed by the customer. You do not have manually manipulate them as per this thread.
Why do you need the value on checkout (you can do nothing with it anyway) and why on the order confirmation where again, it serves no purpose for the customer?
I'm building a little toolkit wrapped into an HTA for use in a helpdesk. One of the tasks I'd like to have included is the ability to quickly pull info about a domain user. Now, normally, I would just use something like Net User USERNAME /domain and get a quick little blurb. Works great.
However, I can't seem to find a way to integrate that into the script for the toolkit. I could probably use cscript and just dump the output, but then I would have a heck of a time getting it formatted into anything interactive (the whole point of the HTA).
I'd really like to use something like ADSI. I can pretty easily get members of a given group, or the primary group of a given user, but I can't seem to find a way to list all the memberships of a username on the domain.
Note, that pulling all the groups and users, then comparing them is not an option. This is for a domain with hundreds of thousands of users.
I promise I have googled for days on this thing. Dug around in the documentation etc, but nothing really seems to do what I need.
This is similar to your comment about running CSCRIPT and dumping the output.
You can consider using the WScript.Shell object instead, specifically, the Exec method to run a command from within your HTA and make use of stdout.readAll to suck the output.
The following example shows how you would do this to capture the output of IPCONFIG into your HTA:
<html>
<head>
<hta:application icon="http://www.stackoverflow.com/favicon.ico"/>
<title>WScript.Shell Example</title>
<script language="VBScript">
Sub RunCommand
Dim wshShell
Set wshShell = CreateObject("WScript.Shell")
Dim wshExec
Set wshExec = wshShell.Exec("IPCONFIG")
textAreaResult.value = wshExec.stdout.readall
End Sub
</script>
</head>
<body onload="RunCommand">
<textarea id="textAreaResult" style="width:100%;height:300"/>
</textarea>
</body>
</html>
I need to capture server side a notification of a users payment. I've gone through a good majority of the documentation with no luck, but will go through it again. Is there a way to enable a "return to site" after they complete the order?
I searched google checkout return url and got http://www.phpexpertsforum.com/return-url-in-google-checkout-after-payment-t561.html
veerlapallavi wrote...
There are 2 methods through which you
can provide the return URL. 1) Go to
your Google checkout account and Open
the settings. In the settings>>Profile
you can find a field with name "Public
business website:" provide your return
URL there.
2) The second method is , You can pass
the value to Google Checkout with the
HTML form as a hidden variable.
<input name="continue_shopping_url"
type="hidden"
value="http://www.yousite.com/payment_success.php">
OR
Set a function as below
SetContinueShoppingUrl("http://www.yousite.com/payment_success.php");
function SetContinueShoppingUrl($url)
{ $this->continue_shopping_url =
$url; }
Hope that helps.
It looks like you can configure gcheckout to send you XML notifications, but I don't see how you can associate it with a particular order ID other than matching fields or something...
http://code.google.com/apis/checkout/developer/Google_Checkout_XML_API_Notification_API.html#new_order_notifications