Syoichi's Tumblr

Apr 01 2009

Reblog Notes Script

cxx:

I wrote a script that allow visitors to access the reblog-notes in my tumblelog. This post describes the method of setting up the script in your tumblelog.

First, insert the following code in the head element of your custom HTML.

<script type="text/javascript">
function show_notes(post_uri) {
var key = '/uIojWsJsR';
var post_id = post_uri.substring(post_uri.lastIndexOf('/') + 1, post_uri.length);
var notes_uri = 'http://www.tumblr.com/dashboard/notes/' + post_id + key;
window.open(notes_uri, '_blank', 'width=500,height=600,scrollbars=1,resizable=1');
}
</script>

Here, the value of the variable “key” is user-specific (‘/uIojWsJsR’ for me). The value is found by searching for the source code of http://www.tumblr.com/show/everything/by/me by “/dashboard/notes/”.

Next, insert the following code in the div element of “post” class.

<a href="#" onclick="show_notes('{Permalink }');return false;">reblog notes</a>

Here, actually delete the blank at the right of “Permalink.”

Update (01-May-2008):

Now, you can use theme variable “{postID }” and simply write as follows

<a href="http://www.tumblr.com/dashboard/notes/{postID }/uIojWsJsR">reblog notes</a>
or
<a href="http://www.tumblr.com/dashboard/notes/{postID }/uIojWsJsR"
onclick="window.open('http://www.tumblr.com/dashboard/notes/{postID }/uIojWsJsR',
'_blank','width=500,height=600,scrollbars=1,resizable=1');return false;">reblog notes</a>
Of course, “uIojWsJsR” is different in each user.

See Also

Tumblr - Reblog Notes Styler by dobbydog

関連:Untitled Shanti - Reblog notes script » Reblog notes variables

Reblogged from (cxx) / Posted by (cxx)
tumblr customize | 14 notes | Comments (View) | 09/04/01 Wed 16:58:29 |

Reblogged & Liked (14 notes) | Tumblr Reblog Tree

  1. syoichi reblogged this from cxx and added:
    関連:Untitled Shanti...notes script » Reblog notes variables
  2. none00 reblogged this from cxx
  3. alicia reblogged this from cxx
  4. tsupo reblogged this from plasticdreams
  5. thomyou-deactivated20081113 reblogged this from plasticdreams
  6. plasticdreams reblogged this from cxx
  7. lo9kid4xt6yduhv reblogged this from cxx
  8. hypertext reblogged this from cxx
  9. cxx posted this
Syoichi
blog comments powered by Disqus