Black Hat Forum
Go Back   Black Hat Forum > Black Hat SEO Forum > Blogging

Blogging Talk about Wordpress, Blogger, and other blogs.
Blogs = Increased Spider Visits.

Search
 
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-22-2008, 06:16 AM
almir's Avatar
Jr. VIP
 
Join Date: Jul 2008
Posts: 375
Thanks: 138
Thanked 31 Times in 14 Posts
Activity: 22%
Longevity: 11%
Today: 1/5
Default [GET] Link to this post script

Hi !

I asked for this on programming, but forced a friend to make me one, so here it is, if someone needs it.

This script will add - Link to this post + html code with post link and anchor text code. Right now the anchor will be Title of post + title of the site. I couldn't managed it myself to be only post title, but I guess this friend would fix that today, so I will update a thread if he is.

Code have to be added in your template below the <p><data:xpost.body/></p> ( remove x) part if you want it to be below post body.. I think you first have to enable adsense between posts to make this work ( you can delete that adsense code manually from the template, but you have to enable it first )

Here is the code :

Code:
Link to this post:
<p><b:if cond='data:blog.pageType == &quot;item&quot;'>
<b:if cond='data:post.includeAd'>
<textarea id="linkNaPost" cols="35" rows="1" class="bginput" onClick="this.focus();this.select()">
</textarea>
<script language="javascript">
  var mjesto=document.getElementById("linkNaPost");
  // dirty hack jer ne znam dovoljno javascripta
  var jedanDiv = document.createElement('div');
  var noviAnchor = document.createElement('a'); 
  noviAnchor.href = document.URL; 
  noviAnchor.name = noviAnchor.innerHTML = document.title;  
  jedanDiv.appendChild(noviAnchor); 
  mjesto.value = jedanDiv.innerHTML;
</script>
</b:if>
</b:if>
You can add your own CSS to make it fit your page

If you can fix it to show only post title, without blog title, post here please. I tried but I couldn't do it.

Actually, this <datax:xpost.title/> ( without x ) should be on the place of = document.title; but I don't know how to make it to work.

Last edited by almir; 09-22-2008 at 06:18 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to almir For This Useful Post:
maya123 (09-25-2008)
  #2 (permalink)  
Old 09-22-2008, 08:07 AM
PitBoss's Avatar
Jr. VIP
 
Join Date: Feb 2008
Location: Great American SouthWest
Posts: 319
Thanks: 357
Thanked 56 Times in 39 Posts
Activity: 27%
Longevity: 23%
Today: 0/5
Default Re: [GET]Link to this post script

Just so that I'm clear on this, you'd use this on a blog site, or on any site where you have "posts"? How is this different than the permanent link created with each post in Wordpress?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 09-22-2008, 07:25 PM
almir's Avatar
Jr. VIP
 
Join Date: Jul 2008
Posts: 375
Thanks: 138
Thanked 31 Times in 14 Posts
Activity: 22%
Longevity: 11%
Today: 1/5
Default Re: [GET]Link to this post script

No, this is for Blogger, but I guess you can add it to any page because it uses pages url and title

Its just a way to "force" someone who would potentially link to your post to use anchor of your post, for SEO reasons

Last edited by almir; 09-22-2008 at 07:28 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 09-24-2008, 05:31 PM
PitBoss's Avatar
Jr. VIP
 
Join Date: Feb 2008
Location: Great American SouthWest
Posts: 319
Thanks: 357
Thanked 56 Times in 39 Posts
Activity: 27%
Longevity: 23%
Today: 0/5
Default Re: [GET]Link to this post script

Ok, I think I get it now. I'm not a code boy, so it takes me a bit to understand how this stuff works and what it affects.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 09-26-2008, 04:52 AM
almir's Avatar
Jr. VIP
 
Join Date: Jul 2008
Posts: 375
Thanks: 138
Thanked 31 Times in 14 Posts
Activity: 22%
Longevity: 11%
Today: 1/5
Default Re: [GET] Link to this post script

I forgot to note, if you would use it on a non-blogger page, than delete those "if" parts
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 09-26-2008, 09:33 AM
PitBoss's Avatar
Jr. VIP
 
Join Date: Feb 2008
Location: Great American SouthWest
Posts: 319
Thanks: 357
Thanked 56 Times in 39 Posts
Activity: 27%
Longevity: 23%
Today: 0/5
Default Re: [GET] Link to this post script

Ah, that's good to know as I'm switching my main site to wordpress.
__________________
The Juggernaut
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Add Your Link



Site protected by Firewall Script


Sitemap: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54