Adding Script to Blogger

Talk about scripts, analytics, API, software, and shrinkers here.
Forum rules
WARNING: Tools in this forum are being supported or maintained by the original author and not Adf.ly Staff. Proceed at your own risk.
Ishanfdo199
Pro Member
Posts: 131
Joined: Sun Dec 30, 2012 8:41 am

Adding Script to Blogger

Postby Ishanfdo199 » Fri Feb 22, 2013 10:38 am

Hello,

I used full page script on my blog but it doesnt work?
You can check it here.

Note :- This is not for getting traffic to my blog.I actually need help
*removed*

I used this script on my blog.Check the Right middle on the page.
If the script need to be changed plz tell that also.

Code: Select all

<script type="text/javascript">
    var adfly_id = 3010790;
    var adfly_advert = 'int';
    var exclude_domains = ['example.com', 'http://appz-store.blogspot.com'];
</script>
<script src="http://cdn.adf.ly/js/link-converter.js"></script>
Last edited by Ishanfdo199 on Sun Mar 17, 2013 8:19 am, edited 1 time in total.

User avatar
Xellon
Forum Admin
Posts: 3935
Joined: Tue Feb 21, 2012 12:10 am
Location: Somewhere in a distant land

Re: Full Page Script Not Working? Help Plz

Postby Xellon » Fri Feb 22, 2013 2:22 pm

Try this:

Login to your blogger Account >> select your Blog
Got to Layout And Add HTML Widget ( Anywhere you like)
Copy and paste the script code from your Adfly Account.

Ishanfdo199
Pro Member
Posts: 131
Joined: Sun Dec 30, 2012 8:41 am

Re: Full Page Script Not Working? Help Plz

Postby Ishanfdo199 » Sat Feb 23, 2013 1:57 am

I did the same thing before i posted this thread. Blogger - My Blog - Layout - add html .....

Is there something wrong with the Full page script which i posted? I need the rename(Shorten) all the Play.google.com links?? or all the links.. cuz i have only links to play.google.com

User avatar
Xellon
Forum Admin
Posts: 3935
Joined: Tue Feb 21, 2012 12:10 am
Location: Somewhere in a distant land

Re: Full Page Script Not Working? Help Plz

Postby Xellon » Sat Feb 23, 2013 2:10 am

Ishanfdo199 wrote:I did the same thing before i posted this thread. Blogger - My Blog - Layout - add html .....

Is there something wrong with the Full page script which i posted? I need the rename(Shorten) all the Play.google.com links?? or all the links.. cuz i have only links to play.google.com


That's strange. Not sure why that wouldn't work. Try adding it to your template then. Edit your html and put it at the bottom.

Ishanfdo199
Pro Member
Posts: 131
Joined: Sun Dec 30, 2012 8:41 am

Re: Full Page Script Not Working? Help Plz

Postby Ishanfdo199 » Sat Feb 23, 2013 2:20 am

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html expr:dir='data:blog.languageDirection' xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>
  <head>
<link href='http://fonts.googleapis.com/css?family=Marvel' rel='stylesheet' type='text/css'/>
<link href='http://fonts.googleapis.com/css?family=Play' rel='stylesheet' type='text/css'/>
<link href='http://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'/>
<link href='http://fonts.googleapis.com/css?family=Shadows+Into+Light' rel='stylesheet' type='text/css'/>
<link href='http://fonts.googleapis.com/css?family=Droid+Sans:bold' rel='stylesheet' type='text/css'/>
<link href='http://fonts.googleapis.com/css?family=Droid+Serif:bold' rel='stylesheet' type='text/css'/>
<link href='http://fonts.googleapis.com/css?family=Raleway:100' rel='stylesheet' type='text/css'/>
    <b:include data='blog' name='all-head-content'/>
    <title><data:blog.pageTitle/></title>
    <b:skin><![CDATA[/*
-----------------------------------------------
Blogger Template Style
Name:   MagazineBlog
Author: Klodian
URL:    www.deluxetemplates.net
Date:   Feb 2013

----------------------------------------------- */
#navbar-iframe {
display: none !important;
}
/* Variable definitions
   ====================
   
   <Variable name="textcolor" description="Text Color"
             type="color" default="#333" value="#333333">


its the Template>Edit HTML
(The first lines of the code..)

Where can i insert that code?? i dont know know anything about html..

User avatar
Xellon
Forum Admin
Posts: 3935
Joined: Tue Feb 21, 2012 12:10 am
Location: Somewhere in a distant land

Re: Full Page Script Not Working? Help Plz

Postby Xellon » Sat Feb 23, 2013 3:33 am

Normally between head/body tags <head></head> or <body></body>

On my wordpress, it actually works right before html tag

</html>

Ishanfdo199
Pro Member
Posts: 131
Joined: Sun Dec 30, 2012 8:41 am

Re: Full Page Script Not Working? Help Plz

Postby Ishanfdo199 » Sat Feb 23, 2013 4:18 am

Code: Select all

<div class='first-links'>Copyright (c) <a expr:href='data:blog.homepageUrl'><data:blog.title/></a> Designed by <a href='http://www.radio-adapter.eu/'>best blog</a> and <a href='http://www.autoradio-adapter.eu/'>onlineshop</a>, <a href='http://www.car-hifi-radio-adapter.eu/autoradioblende/ford/'>Ford Autoradioblenden</a>, <a href='http://www.car-hifi-radio-adapter.eu/autolautsprecher/vw/'>VW Lautsprecher</a></div>
</div></div></div></div></div>

</body>
<script type='text/javascript'>
    var adfly_id = 3010790;
    var adfly_advert = &#39;int&#39;;
    var exclude_domains = [&#39;example.com&#39;, &#39;http://appz-store.blogspot.com&#39;];
</script>
<script src='http://cdn.adf.ly/js/link-converter.js'/>
</html>


doesnt work

User avatar
Xellon
Forum Admin
Posts: 3935
Joined: Tue Feb 21, 2012 12:10 am
Location: Somewhere in a distant land

Re: Full Page Script Not Working? Help Plz

Postby Xellon » Sat Feb 23, 2013 4:46 am

Maybe this will then.

Template > Edit HTML > Proceed
Search for head closing tag </head>
Paste the code just before the closing tag

Something funny bout blogger.

Ishanfdo199
Pro Member
Posts: 131
Joined: Sun Dec 30, 2012 8:41 am

Re: Full Page Script Not Working? Help Plz

Postby Ishanfdo199 » Sat Feb 23, 2013 4:47 am

I found the prob... :) Adblock ....... disable it now working..

Ishanfdo199
Pro Member
Posts: 131
Joined: Sun Dec 30, 2012 8:41 am

Re: Full Page Script Not Working? Help Plz

Postby Ishanfdo199 » Sat Feb 23, 2013 4:48 am

thanks for taking time with my prob...


Return to “Tools”

Who is online

Users browsing this forum: No registered users and 6 guests