function showbox(elmnt) {
document.getElementById('hiddencats').style.display = 'block';
}
function hidebox() {
document.getElementById('hiddencats').style.display = 'none';
}
function fixURL() {
parts = window.location.href.split("#/");
if(parts.length > 1) {
window.location.href = parts[parts.length - 1];
}
}
function changeURL(href) {
href = (href == "") ? "/" : href;
uri = window.location.href.split("#/");
window.location.href = uri[0] + "#/" + href;
}
if(typeof jQuery == "function") {
jQuery(document).ready(function($) {
fixURL();
$("#post-container").css("display", "block");
init(jQuery, "body");
});
function init($, id) {
id = (typeof(id) == 'undefined') ? "body" : id;
function nextpost() {
$(this).unbind('click', nextpost);
stylesheet_uri = $("link[rel='stylesheet']:eq(0)").attr("href").split("/");
stylesheet_uri.length--;
img = " <img src='"+stylesheet_uri.join("/") + "/images/indicator_small.gif"+"' alt='Loading' />";
$(this).after(img);
href = $(this).attr("href");
link = $(this);
$(".post-list").removeClass("post-list");
$(".boldbuttons").removeClass("boldbuttons");
$(this).parent().parent().before("<div class='older'></div>");
$(this).parent().parent().prev().load(href + " .post-list", {}, function() {
init(jQuery, ".post-list");
link.next().remove();
nextpostslink = (typeof($("#nextpage").attr("value")) == "undefined") ? "mbuh" : $("#nextpage").attr("value");
if(nextpostslink == "mbuh") {
link.remove();
} else {
link.attr("href", nextpostslink);
}
});
return false;
}
$(id + " a").not(".notajax").each(function() {
site = $("meta[name='home']").attr("content");
dashboard = $("meta[name='url']").attr("content") + "/wp-admin";
wplogin = $("meta[name='url']").attr("content") + "/wp-login.php";
if (
$(this).attr('href') != '#' && //it's not a '#' only link
$(this).attr('href').indexOf(site) == 0 && //it's an internal link
$(this).attr('href').indexOf(dashboard) == -1 && //it's not a link to dashboard
$(this).attr('href').indexOf(wplogin) == -1 && //it's not a link to wp-login.php
$(this).attr('target') != '_blank' //it's not a new window link
) {
$(this).click(function() {
hidebox();
hrefs = $(this).attr("href").split("#");
href = hrefs[0];
stylesheet_uri = $("link[rel='stylesheet']:eq(0)").attr("href").split("/");
stylesheet_uri.length--;
img = "<img src='"+stylesheet_uri.join("/") + "/images/indicator_large.gif"+"' alt='Loading' />";
$("#post-container").html(img).load(href + " #posts", {}, function() {
if($("#post-container").html() == "") {
window.location.href = href;
return false;
}
document.title = $("input[type='hidden'][name='title']").attr("value");
site = (site.charAt(site.length - 1) == "/") ? site : site + "/";
href = href.replace(site, "");
if(hrefs.length > 1)
href += "#" + hrefs[hrefs.length - 1];
changeURL(href);
init($, "#posts"); //re-init the database
});
return false;
});
}
});
$('textarea').not(".respondtext").autogrow({
minHeight: 30
});
$('etiket').not(".etiket").autogrow({
minHeight: 30
});
}
}bu kod wordpresin smells-like-facebook temasının bir kodu bu kodlar arasına benim hazırladığım bir class ve içinde linkler var<div class="etiket"><a href="link">etiket</a>....</div>şeklinde diyebilirm fakat bir türlü yerleştiremedim yukarıda bulunan koda yerleştirsem süper olcak ama olmuyor...
Sorun 2;
http://demo.facebookvideoindirx.com/ a bakabilirsiniz javascipt etkin değil video içine girin yanda ilgili videolar göreceksiniz kaynak koddada mevcut zaten kodları...
şimdi diceksiniz sorun nerde çalışıyor. Ama sormak istediğim farklı javascipt etkin olduğunda burda bulunan kodlar çalışmıyor kaç tane varsa onun boyutuna geliyor.
link yapısı => site.com/videolarinizi-indirin/#/videolarinizi-indirin/ şeklinde melesa o şekilde kalıyor video içine giriyor herşey oluyor ama yanda bulunan kodlar çalışmıyor.
umarım ne demek istediğimi anlatabilmişimdir...
phpyi bile deniye deniye öğrendim ama bunda kafayı yedim