Social Engine <body> tags and pasting code in the body - socialengine

I have a Social Engine website and I need to post a script into tags — just before the closing. The specific instruction for me is the following:
"Copy & paste the code below right before the closing tag at the end of your code."
I don't know how to do this, as Social Engine is set up in a way that the source code is not easily accessible.
We host in AWS.
The specific question is, What are the step-by-step instructions I need to post a script just before the closing tag?
Thank you for any help in advance :)

Go to application->modules->Core->layouts->scripts->default.tpl
and check line no:189 for body tag.
Please let me know if you need more help.

Related

simulating file download with selenium on chrome browser for element with reactid

I need to simulate file download on chrome browser and below links points to solutions which is what I'm looking for.
http://ardesco.lazerycode.com/index.php/2012/07/how-to-download-files-with-selenium-and-why-you-shouldnt/
https://github.com/Ardesco/Ebselen/blob/master/ebselen-core/src/main/java/com/lazerycode/ebselen/customhandlers/FileDownloader.java
I'm not able to use this code as it requires attribute and in my case button has a reactid which triggers a end point call. Please refer to attached screen shot.
Can somebody please tell what changes I need to do to make code in above links work ?
Thanks in advance.
Regards,
Vikram
To be able to download a link to need to find a way to get the link. The best way to do that is to talk to the developer that wrote the code and find out how it works.
Clicking on the button will trigger some sort of JavaScript event, you need to know what that event is so that you can replicate it to get the download link.
Bear in mind that this is probably not a test that's worth performing in Selenium., it's probably a unit test in JavaScript land.
Since you can't get the link of the downloadable file from the html and verify the https status code because in your case - the downloading happens by javascript method
The only way to verify downloading in your case is to actually click the element and verify that the file was downloaded.
You also need to set the capability in ChromeDriver to download to default directory without asking.
Chrome Web Driver download files

Google+ posting issue. Snippet not appearing correctly

For some reason, when we try to post a link to our blog it doesn't show the actual blog post title or the snippet. It used to do it in the past and I've attached an additional screen shot. Our website zamansky.com and it doesn't seem to contain any code that I'm aware of that's causing this. Any help why this is happening and how to fix it would be greatly appreciated!
Here's a link to the screen shot:
If you use the structured data testing tool provided by Google you can see the data found is:
WebSite
url: http://www.zamansky.com/
name: Zamansky LLC
alternateName: Zamansky LLC
That matches what is shown for the snippet. Looking back at your sites source code and you'll find:
<script type='application/ld+json'>
{
"#context":"http:\/\/schema.org",
"#type":"WebSite",
"url":"http:\/\/www.zamansky.com\/",
"name":"Zamansky LLC",
"alternateName":"Zamansky LLC"
}
</script>
This is the microdata the data tool is finding. Since Google+ Snippets prioritize schema.org data first that's what's getting used. You can simply make sure the ld+json attributes are set to match what's in the og tags and you should be all set.
Keep in mind that the details shown in Google+ share previews might be cached and may not show the latest updates immediately.

How to implement Marketo tracking code

I'm investigating how to implement Marketo tracking visitor, email, white-paper, webinar,...
I have research about it, but i just know install script munchkin, but i don't know how to get it works?
Anybody could help me understand more about it? Thanks a lot.
If I am understanding you correctly you want to insert the marketo "munchin api" script into the footer of your document as you would with Google analytics.
<script src="http://munchkin.marketo.net/munchkin.js" type="text/javascript"></script>
<script>mktoMunchkin("YOUR ID HERE");</script>
You can get this code by logining into Marketo, going to "admin" in the top right, than going to "munchkin setup" in the left navigation bar. You can will see your code which you can copy and paste into the footer. This is all outlined on this marketo setup guide.
Hope this helps.
Marketo developer evangelist here. We document how to implement Munchkin, which is Marketo's tracking code, on our developer's site.

Post Screenshot of APP to wall

How would I make a button that when clicked the user of the app will be posting a screenshot of the canvas page they are on and have it posted to their wall? And maybe add some comments with it as well.
you would have to require the user to add some additional plugin to their browser. There are many plugins that do this - for example clipboard.com provides this functionality.
To the best of my knowledge, these extensions actually make a request themselves (in the back-end) to the url you are currently on and takes the screenshot from that url on the actual server. From there it can be shared and commented on.
However with out some external utility I don't think this functionality is possible.
hope this helps...

Create screenshot of the page with Watin-like tool

I need to create a screenshot of the page by providing a page URL to the command line tool. I found the following application: Convert HTML To Image. This tool is OK but want a more flexible application. I need to have ability to perform the following:
Go to the following page.
Click button.
Take a screenshot and save it.
I want to create an application that will test a site by going by URL, take a shots, and then send the images to the email.
Does anybody has an experience in solving such problems?
Watin can capture screenshots:
ie.CaptureWebPageToFile("c:\tmp\watin main page.jpg");
More info:
http://watin.sourceforge.net/releasenotes-1-2-0-4000.html
http://fwdnug.com/blogs/ddodgen/archive/2008/06/19/watin-api-capturewebpagetofile.aspx
I am a contributor to the WatiN project and the author of the WatiN Test Recorder. To do what you want, I'd suggest using something like csExWB2 (http://code.google.com/p/csexwb2/). The demo will give you the basic browser, and you can add screen shots where you like. Emailing is not covered, but that should be fairly easy.
I know this is very old post but i want to leave a message for visitor of this post.
PhantomJS is one option (http://www.phantomjs.org).
According to the WatiN features page:
Supports creating screenshots of webpages
I would direct you to more specifical documentation, but the documentation web doesn't work well with Firefox, so I can't search it.