Saturday, November 17, 2012

One Election Result: No US Attack on Iran

There will be no war with Iran in President Obama's second term. As a result of his reelection, Obama is now in an unassailable position to prevent the outbreak of any conflict with Tehran and, as a leader averse to further wars (as in Afghanistan and Iraq), he will not seek one. Here are the reasons why:
First, Obama immediately inherits a huge breathing space on the Iranian issue to pursue negotiations with the Iranians. This is because the Israeli leadership has already indicated (under goading from President Obama) that it will wait on considering any action against Iran's nuclear facilities until at least next year. Israel's Prime Minister Benjamin Netanyahu told the United Nations General Assembly on September 27th that, in his view, the crucial time for mounting action against Iran should not come until sometime in the Spring of 2013.
In addition, Israel's Defense Minister, Ehud Barak, himself stated last week in an interview with the London Daily Telegraph that he does not foresee Iran acquiring enough bomb grade fuel for a primitive atomic bomb at least until at least the summer of 2013, "delaying the moment of truth by 8 to 10 months." Furthermore many of the most important intelligence and security leaders in Israel, including a possible new potential opponent for Netanyahu, former Prime Minister Ehud Olmert, have publicly decried war with Iran. All of these utterances provide additional time for the US to continue talks with the Iranians for an agreement in which UN sanctions will be dropped if Iran discards the bomb.
Second, at home President Obama, as a term-limited leader, no longer need take into consideration the fierce pressures from Republicans in Congress and a hawkish Jewish constituency to support the Netanyahu government on Iran. He barely survived an imbroglio last summer with Israel over Iran. Just before Netanyahu came to New York City for last Fall's UN meeting, the Israeli Prime Minister openly challenged Obama over his willingness to initiate military action against Iran. Netanyahu's stirring of the pot at that time led to attacks from Republicans and from pro-Netanyahu Jewish organizations against Obama as not being supportive enough of Israel. Obama quieted the storm by restating his unshakeable support for Israel, but was undoubtedly bruised by the controversy. Now Obama can now act virtually without political considerations.
Third, Obama clearly has gained the strongest hand yet in the US relationship with Israel with the enhanced political clout of winning a second term. He can now withhold US military support -- most importantly, America's so-called "bunker-busting" bombs that can do real damage to Iranian nuclear sites buried deep in the ground (by contrast, Israel's bombs cannot penetrate to the depths which US weaponry can) -- without suffering overt political damage and instead focus on global measures designed to isolate Iran. This, in turn, leaves Israel in the precarious position of, at best, being able to threaten Iran with weaker missiles but without further assurances of US backing. Under those circumstances, will Israel be willing to go it alone, especially with its own domestic opposition growing toward an Iranian war?
Fourth, Obama has recourses to the United Nations Security Council, the IAEA, and the UN General Assembly to demonstrate to the planet that it is possible to dismantle Iran's nuclear facilities peacefully. All of these bodies provide public and visible ways to exert world-wide pressure on Iran to end its secret work. Undoubtedly Obama will still have to persuade both Russia and China, particularly in the Security Council, to agree to tighter sanctions -- and this will take time. But Obama's re-election has bought him the space he otherwise would not have to pursue a realistic deal.
Fifth, finally, it seems highly unlikely, in any case, that Obama on his watch, despite any statements that he has made to the contrary, will want another US intervention in the Middle East after the tragic circumstances of our Iraqi escapade. He is a leader who has shown his intention to withdraw US troops from wars abroad, as in Iraq and Afghanistan, not send more forces overseas. He is focusing his second term on rebuilding America. Thus it seems apparent that Obama will play out the "jaw, jaw, not war, war" scenario throughout his next four years. This means, in practice, he will permit the Iranians to continue their ambiguity as to whether they truly possess a nuclear arsenal. Meantime, he will support what amounts, in practice, to a quasi-containment policy toward the Persian state consisting of South African anti-apartheid type stratagems -- sanctions, threats, boycotts, planet-wide pressures -- but no war.

See further commentary from the Century Foundation Fellows on the US election's consequences here.

Application Form For Yellow Cab Taxi Scheme Car


1101287313 1 Application Form for Yellow Cab Taxi Scheme Car
5939470096 94799f15c8 b Application Form for Yellow Cab Taxi Scheme Car

Lahore: Punjab Government announces the procedure and requirements for Nawaz Sharif yellow cab scheme car in Punjab. The Application form will be available on July 17,2011 at the same page. So keep visiting www.columnpk.com
LAHORE:The Punjab cabinet on Thursday formally approved the Yellow Cab Scheme. Under the Scheme, 20,000 vehicles will be distributed among jobless youth. Forty per cent of these have been allocated for Southern Punjab.
Computerised balloting for the distribution of vehicles will be held in the presence of news media.
The cabinet also accorded approval to a draft bill for an amendment in Section 17(4) of the Government Servants Housing Foundation Act, 2004.
The Punjab Information Technology Board chairman gave a detailed briefing regarding websites of various departments for the promotion of e-government in the province.
Addressing the meeting, Chief Minister Shabaz Sharif said that the government was undertaking a comprehensive programme for the elimination of poverty and unemployment from the province.
He said that the Yellow Cab Scheme would not only help reduce unemployment but will also promote local industry and provide better transport facilities.
Sharif said that under the scheme, 2,500 vehicles will be distributed among the winners of the draw every month for eight months. He said that people having intermediate or equivalent academic qualification will be eligible to apply for the scheme.
Application forms will be available from all branches of the Bank of Punjab as well as the website of the Transport Department and the Bank of Punjab. Successful applicants will have to make a 20 per cent down payment at the time of delivery. The remaining amount is to be paid in monthly installments. A low-markup loan facility at will be offered by the Bank of Punjab.
He said the Akhuwat Foundation representatives will be included in committees formed for the scrutiny of the particulars of successful applicants. Revenue staff like patwaris and tehsildars will have no role in the verification process.
The chief minister said that e-government was the need of the hour for a prompt solution of people’s problems and a comprehensive strategy had been adopted for this purpose.
He said the Punjab Police website should be developed along such lines that it should be helpful in redressing the grievances of the common man, monitoring efficiency of police stations and bringing about a positive change in police culture. He directed that a comprehensive plan be evolved for the website in consultation with the law minister, the law secretary and the inspector general of police and presented in the next cabinet meeting. He said that redressing the grievances of the people and providing them justice was the responsibility of the government and no effort should be spared in this regard.
Finance Secretary Tariq Bajwa said that 16,000 Suzuki Mehrans and 4,000 Suzuki Bolans will be distributed under the Yellow Cab Scheme. An advertisement will be published in newspapers on July 15 regarding details of the Scheme after which applications will be received.
The distribution of vehicles will start from the day after Eid from Multan, Dera Ghazi Khan and Rawalpindi. He said that special number plates will be issued for Yellow Cabs.
These will carry the name of the district. Both men and women will be eligible under the scheme. Punjab Information Technology Board chairman Dr Javed Ghani informed the cabinet about the website of the Chief Minister’s Secretariat and the Punjab Police and the measures taken for the promotion of e-government.Source

Widening Tax Network: FBR Declares War Against Tax Evaders


fbr1 Widening Tax Network: FBR declares war against tax evaders
1101258279 1 Widening Tax Network: FBR declares war against tax evaders
1101258279 2 Widening Tax Network: FBR declares war against tax evaders

PTCL Decides To Introduce High Speed Internet Service In Pakistan


Speedinternet PTCL decides to Introduce high Speed Internet Service in Pakistan
1101258200 1 PTCL decides to Introduce high Speed Internet Service in Pakistan

India’s Temple Treasure Worth Goes To 22 Billion Dollar


1101280335 1 Indias Temple Treasure Worth goes to 22 Billion Dollar
1101280335 2 Indias Temple Treasure Worth goes to 22 Billion Dollar

NEW DELHI – A vast treasure trove of billions of dollars in gold coins, jewels and precious stones unearthed at a Hindu temple in India was expected to grow further in value Monday as officials opened the last two secret vaults sealed for nearly 150 years.
The discovery has instantly turned the 16th-century Sree Padmanabhaswamy Temple into one of the wealthiest religious institutions in the country, prompting a government move to beef up security around it.
An archive image of Sree Padmanabhaswamy Temple in Thiruvananthapuram, the capital of the southern Indian state of Kerala, Feb. 18, 2011.
The four vaults already opened in recent days at the temple in Trivandrum, the capital of the southern state of Kerala, held a vast bounty that unofficial estimates peg at $22 billion.
Other treasures unearthed so far include statues of gods and goddesses made of solid gold and studded with diamonds, rubies, emeralds and other precious stones, crowns and necklaces, all given as gifts to the temple over the centuries.
The volume of gold and silver coins was so enormous that the investigators weighed the coins by the sackful, rather than counting them, officials said.
The temple, built by the maharajas who ruled the then-kingdom of Travancore, remained under the control of the erstwhile royal family after India’s independence in 1947.
India’s Supreme Court ordered the inspection of the vaults after a lawyer petitioned a local court asking the state government to take over the temple, citing inadequate security.
The operation began last week and the final vaults were to be unlocked Monday.
Before the trove was uncovered, there was almost no visible security at the temple, save for a few local security guards patrolling the complex with batons, mainly for crowd control.
Kerala’s police chief, Jacob Punnoose, said he sent extra police officers to guard the temple and is planning a high-tech security system to protect the treasure.
“We plan to enhance security in a manner which will not interfere with the activities of the temple or devotees,” Mr. Punnoose said.
The security plans include the installation of digital electronic networks, closed circuit cameras and metal detectors at the entrance and exits of the temple.
1101280336 1 Indias Temple Treasure Worth goes to 22 Billion Dollar

Indian Spy In Pakistan Singer Asma Lata Arrested By Agencies


Peshawar: Pakistan Hindu Singer Asma Lata is a Indian Spy in Pakistan. This was revealed by Intelligences Agencies. Pakistan Agencies arrested the Asma Lata and moved into a secret locations. According to reports, security force got sensitive instruments, Maps and other documents from her. Forces also found Pakistani, Indian and US currency from her items. Asma Lata who visited Pakistan as a singer for the mission of Aman Ki Aasha started by Geo TV Network and some other Networks from India.
1101287010 1 Indian Spy in Pakistan Singer Asma Lata arrested by Agencies
39 Indian Spy in Pakistan Singer Asma Lata arrested by Agencies
 Indian Spy in Pakistan Singer Asma Lata arrested by Agencies

Hamas targets Jerusalem in major escalation

GAZA CITY, Gaza Strip (AP) — Palestinian militants took aim at Jerusalem for the first time Friday, launching a rocket attack on the holy city in a major escalation of hostilities as Israel pressed forward with a relentless campaign of airstrikes in the Gaza Strip.
Israel called up thousands of reservists and massed troops along the border with Gaza, signaling a ground invasion of the densely populated seaside strip could be imminent. The attack on Jerusalem, along with an earlier strike on the metropolis of Tel Aviv, raised the likelihood that Israel would soon move in.
Israel launched its military campaign Wednesday after days of heavy rocket fire from Gaza by assassinating the military chief of the territory's ruling Hamas militant group. Since then it has carried out hundreds of airstrikes on weapons-storage facilities and underground rocket-launching sites.
It has slowly expanded its operation beyond military targets and before dawn on Saturday, missiles smashed into a small Hamas security facility as well as the sprawling Hamas police headquarters in Gaza City, setting off a massive blaze there that threatened to engulf nearby houses and civilian cars parked outside. No one was inside the buildings at the time.
A separate airstrike leveled a mosque in central Gaza, damaging nearby houses, Gaza security officials and residents said. The military had no comment on that attack and it wasn't clear whether weapons or fighters were being harbored in the area.
Israeli leaders have threatened to widen the operation if the rocket fire doesn't halt. Foreign Minister Avigdor Lieberman said options included the possible assassination of Hamas' prime minister, Ismail Haniyeh, and other top leaders.
"Every time that Hamas fires there will be a more and more severe response," he told Channel 2 TV. "I really recommend all the Hamas leadership in Gaza not to try us again. ... Nobody is immune there, not Haniyeh and not anybody else."
While Israeli military officials insist they have inflicted heavy damage on Hamas, there has been no halt to the militants' rocket fire. Hundreds of rockets have been fired, including a number of sophisticated weapons never before used.
The rocket attack on Jerusalem was unprecedented, setting off the eerie wail of air raid sirens across the city shortly after the beginning of the Jewish sabbath, a time when roads are empty. Police said the rocket landed in an open area southeast of the city. Earlier on Friday, Hamas fired a rocket at Tel Aviv that also landed in an open area.
Israel's two largest cities have never before been exposed to rocket fire from Hamas-ruled Gaza.
Over the past three days, Israel has struck suspected rocket-launching sites and other Hamas targets in Gaza with scores of airstrikes, while Hamas has fired more than 450 rockets toward Israel. In all, 27 Palestinians and three Israelis have been killed.
On Friday, the Israeli army sent text messages to some 12,000 Gaza residents warning them to steer clear of Hamas operatives.
An attack on Jerusalem, claimed by both Israel and the Palestinians as their capital, was especially bold, both for its symbolism and its distance from the Palestinian territory. Located roughly 50 miles (80 kilometers) from the Gaza border, Jerusalem had been thought to be beyond the range of Gaza rockets.
"We are sending a short and simple message: There is no security for any Zionist on any single inch of Palestine and we plan more surprises," said Abu Obeida, a spokesman for Hamas' armed wing.
It marked a bit of a gamble for the militants. The rocket landed near the Palestinian city of Bethlehem and just a few miles from the revered Al-Aqsa Mosque in Jerusalem's Old City, one of Islam's holiest sites.
Hamas, an Iranian-backed group committed to Israel's destruction, was badly bruised during its last full-fledged confrontation with Israel four years ago that ended with an informal truce, although rocket fire and Israeli airstrikes on militant operations continued sporadically.
Just a few years ago, Palestinian rockets were limited to crude, homemade devices manufactured in Gaza. But in recent years, Hamas and other armed groups have smuggled in sophisticated, longer-range rockets from Iran and Libya, which has been flush with weapons since Moammar Gadhafi was ousted last year.
Hamas said the rockets aimed at the two Israeli cities Friday were made in Gaza, a prototype the militants call M-75, and have a range of about 50 miles (80.46 kilometers). The Israeli military also released a video of what it said was an attempt by Hamas to launch an unmanned drone aircraft. Neither weapon was previously known to be used by Hamas.
Israeli Prime Minister Benjamin Netanyahu huddled with his emergency Cabinet on Friday night. Israeli media reported the meeting approved a request from Defense Minister Ehud Barak to draft 75,000 reservists. Earlier this week, the government approved a separate call-up of as many as 30,000 soldiers. Combined, it would be the biggest call-up of reserves in a decade.
Lt. Col. Avital Leibovich, a military spokeswoman, said 16,000 reservists were called to duty on Friday and others could soon follow.
She said no decision had been made on a ground offensive but all options are on the table. Dozens of armored vehicles have been moved to Israel's border with Gaza since fighting intensified Wednesday.
The violence has widened the instability gripping the region, straining already frayed Israel-Egypt relations. The Islamist government in Cairo, linked like Hamas to the region-wide Muslim Brotherhood, recalled its ambassador in protest and dispatched Prime Minister Hesham Kandil to show solidarity with Gaza.
Kandil called for an end to the offensive while touring Gaza City's Shifa Hospital with Haniyeh, the Gaza prime minister who was making his first public appearance since the fighting began.
In one chaotic moment, a man rushed toward the two leaders, shouting as he held up the body of a 4-year-old boy. The two prime ministers cradled the lifeless boy who Hamas said was killed in an Israeli airstrike. Israel vociferously denied the claim, saying it had not operated in the area.
Fighting to hold back tears, Kandil told reporters the Israeli operation must end.
"What I saw today in the hospital, the wounded and the martyrs, the boy ... whose blood is still on my hands and clothes, is something that we cannot keep silent about," he said.
An Egyptian intelligence official, meanwhile, said an Egyptian proposal for a cease-fire in Gaza was presented Friday to Haniyeh and other Hamas leaders. The details were not made public.
However, Hamas replied that a cease-fire was premature because military chief Ahmed Jaabari's "blood has not dried yet."
The Egyptian official said Hamas officials promised to study the cease-fire proposal again in the coming days. The official spoke on condition of anonymity because he was not authorized to release the information.
A senior Hamas official confirmed that Egypt, which often mediates between Hamas and Israel, was working behind the scenes to arrange a truce.
The official, speaking on condition of anonymity because he was discussing a sensitive diplomatic matter, said Hamas was demanding an end to the offensive, limits on Israeli ground activities along the border, a permanent halt in assassinations of Hamas leaders and an end to Israel's blockade of Gaza.
"These conditions must be honored and sponsored by a third party," he said. "We will stop all armed activities out of Gaza in return."
An Israeli official refused to say whether Egypt or any other country was involved in cease-fire efforts but said Israel would not settle for anything less than a complete and long-standing halt to the rocket fire. "We're not interested in a timeout that returns us to square one," he said, speaking on condition of anonymity because he was not allowed to discuss the matter with the media.
___
Federman reported from Jerusalem. Aya Batrawi in Cairo and Ian Deitch in Jerusalem contributed reporting.

Israeli strike kills 33, Hamas HQ also hit


GAZA CITY: An Israeli air strike killed three Palestinians in the central Gaza Strip on Saturday, medics said, with Palestinian security sources confirming they were associated with Hamas.

The latest deaths raised the overall death toll in Gaza to 33 as a relentless Israeli air campaign against Hamas entered its fourth straight day.

"Three men died in an Israeli air strike on Maghazi camp in central Gaza," said emergency services spokesman Adham Abu Selmiya.
Earlier, Israeli air strikes also hit the cabinet headquarters of Gaza's Hamas government, the group said, with eyewitnesses reporting extensive damage to the building.

"The cabinet headquarters was targeted with four strikes and the government stresses that it remains committed to its positions and its stand alongside the people," the Hamas government said in a statement.
"The IDF (army) has targeted (Hamas prime minister) Ismail Haniya's headquarters in Gaza," an Israeli army spokesman told AFP. "Over the past six hours, the IDF targeted 85 more terror sites," the military spokesperson's official Twitter account added. Eyewitnesses and Hamas officials said the headquarters in the Nasser neighbourhood of Gaza City was virtually leveled in the strike.

"The headquarters was completely destroyed and neighbouring houses were damaged as a result of the barbaric Israeli bombing," a Hamas official told AFP. On Friday morning, Haniya and a slew of other top Hamas government officials lined up in front of the building to welcome Egypt's Prime Minister Hisham Qandil, on a brief solidarity trip to the Gaza Strip.

The raid on the building came as Israel renewed strikes across Gaza, bombing the headquarters of the Hamas police force in western Gaza City and the government's internal security headquarters in the north of the city.

As CIA Chief Scandal Looms, Lawmakers Consider Tightening E-Mail Privacy


Then-CIA Director David Petraeus visited the McConnell Center in 2010. Photo: McConnell Center/Flickr
Recent intrusions by the FBI into e-mail correspondence between former CIA Director David Petraeus and his mistress and biographer, Paula Broadwell, have raised a lot of questions and concerns about the government’s ability to access private e-mails.
The current law covering access to e-mail gives the government the right to snoop without a court order on email that’s older than 180 days, but requires a court order for missives that are newer than this, a fact that privacy activists have been trying to change for years.
Now they might finally be getting closer to that wish.
The Senate Judiciary Committee announced Thursday that it will be voting Nov. 29 on whether to advance legislation that would require authorities to obtain a probable-cause warrant to get access to all e-mail and other content stored in the cloud, just as a warrant is required to search a car or house.
Sen. Patrick Leahy (D-Vermont), chairman of the Judiciary Committee, proposed the sweeping digital privacy protections in September after first failing to push them through last year. The proposal would amend the 1986 Electronic Communications Privacy Act and “bring our privacy laws into the digital age.”
The announcement comes two days after Google released stats showing an alarming rise in the number of U.S. government demands for data about Gmail users and other Google account holders. Google didn’t say how many times authorities used a warrant to make the requests.
It’s also not known precisely what legal authorities were used to obtain access to e-mail accounts used by Broadwell, Petraeus and others involved.
The investigation into the extramarital affair between the two, which led to the CIA director’s resignation last week, is ongoing, and the FBI won’t say whether it obtained a probable-cause warrant signed by a judge to peek at e-mail exchanged between the two. Conflicting news reports say they did and did not use a warrant. The issue is important, because authorities apparently had no reason to believe a crime had been committed at the time they sought access to the accounts.
The career of the former CIA director and former Afghanistan war commander came unhinged after a woman in Florida named Jill Kelley received harassing e-mails from an anonymous sender and reported them to an FBI friend.
Authorities say the location data connected to the e-mails and the e-mail account from which they were sent helped them identify the sender as Petraeus’ biographer — Broadwell. Armed with this information, they were reportedly able to obtain a warrant to search other e-mail accounts Broadwell used, which led to discovery of the affair.
It’s not the first time that Leahy has tried to strengthen privacy protection for e-mail. Last year, he never even got a hearing for the same proposal introduced in the committee that he heads. But this time he’s trying to attach it to a legislative package about video-rental privacy and Netflix that already has momentum.
Leahy’s package (.pdf) would nullify the provision of ECPA that allows the government to acquire a suspect’s e-mail or other stored content from an internet service provider without showing probable cause that a crime was committed, as long as the content has been stored on a third-party server for 180 days or more. Currently, to acquire such data, the government only needs to show, often via an administrative subpoena, that it has “reasonable grounds to believe” the information would be useful in an investigation.
When enacted two decades ago, ECPA provided much more privacy than it does today. The act was adopted at a time when e-mail wasn’t stored on servers for a long time, but instead was held there briefly on its way to a recipient’s inbox. E-mail more than six months old was assumed abandoned.
As technology advanced, more and more people began storing e-mail on cloud servers indefinitely. And Congress has so far been unwilling to change course, despite the Fourth Amendment implications as data storage in the cloud has grown.
Leahy’s measure simply requires authorities to get a probable-cause warrant from a judge to access electronic information. His package has a greater chance of passing this time because the measure is being included in a proposal to amend the Video Privacy Protection Act — which concerns the ability of Netflix customers to more easily display their video preferences and interests on Facebook and other sites and has broad support from legislators.

JOBS IN PAKISTAN


Data Entry Operator Jobs In Lahore

Ceset Centre For Emerging Sciences Engineering & Technology Islamabad Jobs

 

Lesco Lahore Jobs

Doctors & Lab Job Sin Rawalpindi

 

Pakistan Navy Islamabad Jobs

Police Department Lahore Jobs

Adding a new CSS (formatting) rule to your blog's template

This article is about how to add a new Cascading Style Sheet (CSS) rule to your blog's template.

(It assumes that you know the CSS command for the rule you want to add:  check a CSS reference guide if you need help to write the command - I've found Sitepoint's HTML Utopia: Designing Without Tables Using CSS very useful.)





What are CSS rules


CSS rules are a way to apply standard formatting to HTML:  you say what formatting rules are in the rule definition, and then just use the rule name everywhere else in the blog that you want to apply that particular format.

It's useful because it lets you change the formatting throughout your blog by making a change in only one place (the rule).

If your blog has a Designer or Dynamic template, then adding a CSS rule is very easy.   (Ref:  "What type of Blogger template do I have?")

If you're using a Layout or Custom template it's a little more complicated - and you should make sure you're aware of the disadvantages of changing your blog's template.


Adding a CSS rule to a Designer or Dynamic template


1  Log in to Blogger, and go to the Dashboard.

2  For the blog that you want to add the rule to:
In pre-Sept-2011 Blogger (ie the old interface) choose Design > Template Designer > Advanced.
In pre-Sept-2011 Blogger (ie the old interface) choose Design > Customize > Advanced

3  Scroll to the bottom of the list of options, where there is an item for Add CSS.  Clicking this opens a panel on the right hand side of the screen.

Enter the new rule underneath any other rules that are already listed in the panel.   (Unless, of course, you want to change one of the rules that was entered before.

5  Click Apply to Blog (top right corner of the screen),



NB  The Add CSS window now shows you any rules that have been added to the template via the window previously.


Adding a CSS rule to a Layout template


1  Log in to Blogger, and go to the Dashboard.

2  Edit your template in the usual way.

3  Insert the new rule immediately before this text:
]]>

 
Note:  it's likely that there will be other rules already before the quoted text.  Make sure that you don't interrupt them, ie that your new rule is placed after the close-bracket } for the rule that's there already, and before the first ]



Adding a CSS rule to a Classic template


1  Log in to Blogger, and go to the Dashboard.

2  Edit your template in the usual way.

3  Insert the new rule immediately before this text:
 

Note:  it's likely that there will be other rules already before the quoted text.  Make sure that you don't interrupt them, ie that your new rule is placed after the close-bracket } for the rule that's there already, and before the statement.

Putting HTML from a outside sources into your blog

This article is about how to put HTML or Javascript code from 3rd parties into your blog.



Overview


Unlike some blogging tools, Blogger allows you to put HTML code from third-party sites that they are not integrated with (eg PayPal, Flickr, Amazon, Facebook, Twitter, LinkedIn), into your blog.

The only code that you can use this way is HTML and Javascript: there is no way to add PHP, SQL or any other type of code.  (The only exception might be if you can host and execute this code elsewhere, and call it and receive output with Javascript - I haven't tried this, have no idea if it's possible in practice.).

If you have a layout or designer template (ref   What type of template do you have?), there are three ways to put outside code into your blog:
  • Option one:  In a widget/gadget.
    These can be placed in any location the Design > Page Elements screen gives you access to - usually go into the header, footer or sidebar.
  • Option two:  Inside a specific Post (or Page)
    This means that the effect of the code will be shown every time the post is viewed
  • Option three:  In the blog's layout template
    This gives you most control over where and how the item appears, but is also the hardest.
These three options are described in detail in the sections below.

If you are using a dynamic template, then you face more limitations:  you can put code into posts/pages for sure, but (for the moment anyway) there are limits to what gadgets can be added.   And editing your template may be more challenging, because the template-structure is so different.


Warning:
By letting us put 3rd-party code into our Blogger is giving us the responsibility for making sure that only code from trust-worthy sources is used.

If you install code from unreliable sources, you may find that your blog is "hacked" in some way.

Every time that someone wants you to install something to your blog, think very carefully about how much you should trust them.


Option 1: Putting third party code in a gadget


  • Copy the code from the third-party site.
  • In Blogger, choose Layout > Add a Gadget > HTML-Javascript Note:  Use the gadget created by Blogger which is in the Basic list.  Currently you need to see to scroll down the list of gadget to see it. 
    Don't use the search tool to find it, because currently (2/11/10), it returns a 3rd party gadget that doesn't work.)
  • Paste the code into the Contents field.
  • Enter a title, if you want the gadget to have one
  • Press Save.  
  • Drag-and-drop the new gadget to where you want it to appear.
  • Save the layout
  • If you also have a mobile template set up for your blog, and you want this gadget to show up on it, then you need to enable the gadget specifically for it.

Some sites either give you the HTML, and also button that will put their gadget (etc) directly into your blog.   I only use these type of buttons if the address bar in the screen that opens has an address starting with blogger.com:  if it has something else, then the third-party site may be collecting your Google account password along the way
.


Option Two: Put third-party code inside a post

  • Copy the code from the third party site
  • Go to blogger and Edit the Post (or Page) that you want to put it on
  • Switch into HTML mode
  • Paste the code in at the place where you want the item to go.
    If you are not familiar with HTML, it may help to put in some marker text, eg XXX, at the place where you want the product link while you're still in Compose mode.  Then switch to Edit HTML mode, find the marker text using your browser's search tool (eg Ctrl/F), and replace it with the third-part code.
  • Switch back to Compose mode
    This sometimes lets you see the 3rd party item within the post editor - although sometimes it just shows as a blank box, or even just as a blank line (I sometimes surround lines like this with some marker text, eg xxx, while I'm editing the post, to make sure I don't accidentally over-type of the code.
    If you forget to go back to Compose mode before you press Publish, you may get confused the next time you edit a post.


Option Three: Put the third-party code into your template


You should only use this option if you are very familiar with how your template works, and you accept the disadvantages of editing it.

Also, be aware that for some third-parties, putting the code into your template can over-ride controls that usually come with it (eg for AdSense, only displaying up to three ad-units and three link-units per screen).  For other types of code, the tweaks that are needed to make it work within Blogger may break the other parties terms-and-conditions (eg if they say you cannot change the code at all).   You need to weigh up the risks and issues involved for each individual third party.
  • Edit your template in the usual way
  • Work out where exactly the code needs to go, and put it there.
  • Preview the change, to make sure it works
  • Save the template

Installing code into your blog

This article is about how to install code into your blog.


Why you might want to install code:

Javascript Code example There are plenty of websites suggesting to tweak your blog.  A few these tell you how to use standard Blogger tools, but many have written code that does something useful that Blogger doesn't currently provide.

Also, there are lots of tutorials about how to do things with HTML, CSS or Javascript - no matter what "development environment" (Blogger, Dreamweaver, etc) you're working in.     For example, I recently wanted to put tables with scroll-bars into the posts of one site, and, after a bit of googling found a method that works across all the common browsers.  (Well it worked when I tested it first - sadly it wasn't working in Chrome when I finally finished loading the content, but that's another story!).

I'm generally wary about installing things from 3rd parties.  But there are times when it's a good thing to do because the benefits for your blog outweigh the risks - for example, I'm happy to install code from AdSense, Amazon Associates, Chitika, PayPal and various other well known brands.


How to install code:

Two previous articles describe how to install 3rd party HTML into your blog, and how to add CSS to your blog.

The only other type of code that you can add is Javascript.  To add this:

1  Edit your template, in the usual way.

2  Find the
statement

3  Put the code immediately before , using this format:

4  Click the Preview button, to check that the blog loads and looks ok.

5  If it's not ok,choose Clear Edits and try again:  check you are putting the code in the right place.

6  Once you're happy, Save the changes.