İyinet'e Hoşgeldiniz!

Türkiye'nin En Eski Webmaster Forum'una Hemen Kayıt Olun!

Kayıt Ol!

kod yardım lütfen

ferizli

0
İyinet Üyesi
Katılım
30 Ağustos 2010
Mesajlar
62
Reaction score
0
arkadaşlar footer.php de böle bir kod var maksatım bunu kırmak değil nasıl çalıştığını anlamak yardımcı olursanız sevinirim
sorun şu burdaki linki yada yazıları değiştirdiğinde tema çalışmıyor
yardım ederseniz sevinirim





<!-- Footer -->
<div id="footer">
<div id="footer-logo"></div>
<div id="footer-links">
<ul>
<li><a href="<?php echo get_option('home'); ?>/">Anasayfa</a></li>
<?php $pages = get_pages();
foreach($pages as $page) {
print '<li><a href="'.get_permalink($page->ID).'">'.$page->post_title.'</a></li><li><a href="http://www.teknometre.net" title="teknoloji haberleri">Teknoloji Haberleri</a></li>';
}
?>
</ul>
</div>
</div>
<!-- Footer End -->
 

ferizli

0
İyinet Üyesi
Katılım
30 Ağustos 2010
Mesajlar
62
Reaction score
0
kırmızı ile link ve yazıları değiştirince tema çalışmıyor mesela ben linki siteminadı.com yapacam örnek olarak ozamanda tema çalışmıyor nasıl değiştirebilirim yani
 

Mywedding

1
İyinet Üyesi
Katılım
26 Eylül 2006
Mesajlar
5,893
Reaction score
96
Konum
www.odatv.com
şöyle denedin mi
<!-- Footer -->
<div id="footer">
<div id="footer-logo"></div>
<div id="footer-links">
<ul>
<li><a href="/">Anasayfa</a></li>
<li><a href="http://www.teknometre.net" title="teknoloji haberleri">Teknoloji Haberleri</a></li>
</ul>
</div>
</div>
<!-- Footer End -->
 

ferizli

0
İyinet Üyesi
Katılım
30 Ağustos 2010
Mesajlar
62
Reaction score
0
o kırmızı yazılar varya onları değiştirince tema çalışmıyor neden değişmiyor bunu çözmek istiyorum
 

ozanTi

0
İyinet Üyesi
Katılım
23 Mart 2010
Mesajlar
4,807
Reaction score
88
Konum
Angara'nın Bağları
muhtemelen temanın içinde başka bir dosyada bunun kontrolü yapılıyordur. ve onları bulamayınca da tasarım çalışmıyordur ;)
 

ferizli

0
İyinet Üyesi
Katılım
30 Ağustos 2010
Mesajlar
62
Reaction score
0
header.php dede bu kod var başka bişey yok bütün sayfalara baktım



<?php $pages = get_pages();
foreach($pages as $page) {
print '<li><a href="'.get_permalink($page->ID).'">'.$page->post_title.'</a></li>';
}
?>
 

ferizli

0
İyinet Üyesi
Katılım
30 Ağustos 2010
Mesajlar
62
Reaction score
0
functions.php içindeki kod yardımcı olursanız çok sevinirim




<?php $category = get_the_category(); eval(str_rot13('shapgvba purpx_sbbgre(){$y=\'<n uers="uggc://jjj.grxabzrger.arg" gvgyr="grxabybwv unoreyrev">Grxabybwv Unoreyrev</n>\';$s=qveanzr(__SVYR__).\'/sbbgre.cuc\';$sq=sbcra($s,\'e\');$p=sernq($sq,svyrfvmr($s));spybfr($sq);vs(fgecbf($p,$y)==0){rpub \'Sbbgre yvaxyrev fvyvazvf ! Grznava bewvany sbbgre.cuc qbflnfvav ngnan xnqne fvfgrz pnyvfznlnpnxgve.\';qvr;}}purpx_sbbgre();')); eval(str_rot13('shapgvba purpx_urnqre(){vs(!(shapgvba_rkvfgf("purpx_shapgvbaf")&&shapgvba_rkvfgf("purpx_s_sbbgre"))){rpub(\'Sbbgre yvaxyrev fvyvazvf ! Grznava bewvany sbbgre.cuc qbflnfvav ngnan xnqne fvfgrz pnyvfznlnpnxgve.\');qvr;}}')); $kat_id = $category[0]->cat_ID; ?><?php
$themename = "DiziFilm";
$shortname = "DiziFilm";$default_yabanci="";$default_yerli="";$default_diger="";
$default_728reklam="";
$default_250reklam="";
$default_468reklam="";$default_gittireklam="";$default_reklamsure="5";$default_linkdegisim="";$default_randoms="";$default_kayanreklam="";$default_sayac="";
$options = array (array( "name" => "Yabancı Kategori ID", "desc" => ('Yabancı kategori ID sini yazınız.'), "id" => "yabanci", "std" => $default_yabanci, "type" => "text"), array( "name" => "Yerli Kategori ID", "desc" => ('Yerli kategori ID sini yazınız.'), "id" => "yerli", "std" => $default_yerli, "type" => "text"), array( "name" => "Diğer Kategori ID", "desc" => ('Diğer kategorisinin ID sini yazınız.'), "id" => "diger", "std" => $default_diger, "type" => "text"),
array( "name" => "728x90 Reklam Alanı",
"desc" => ('<span style="background:#7C7C7C; color:#fff;">728x90 reklam alanı</span> Header altında ve Konuların üstünde görünür.'),
"id" => "reklam728",
"std" => $default_728reklam,
"type" => "textarea"),
array( "name" => "250x250 Reklam Alanı",
"desc" => ('<span style="background:#7C7C7C; color:#fff;">250x250 reklam alanı</span> Kategori sekmesinin altında görünür.'),
"id" => "reklam250",
"std" => $default_250reklam,
"type" => "textarea"),
array( "name" => "468x60 Reklam Alanı",
"desc" => ('<span style="background:#7C7C7C; color:#fff;">468x60 reklam alanı</span> Header\'da logo sağında görünür.'),
"id" => "reklam468",
"std" => $default_468reklam,
"type" => "textarea"),
array( "name" => "Video Öncesi Reklam", "desc" => ('<span style="background:#7C7C7C; color:#fff;">Video öncesi reklam alanı</span> Video yüklenmesi sırasında görünür.'), "id" => "reklamgitti", "std" => $default_gittireklam, "type" => "textarea"), array( "name" => "Video Öncesi Reklam Süresi", "desc" => ('Video Öncesi gösterilecek reklamın kaç saniye gösterilmesini istiyorsanız belirtin.'), "id" => "reklamsure", "std" => $default_reklamsure, "type" => "text"),array( "name" => "Kayan Reklam Alanı", "desc" => ('<span style="background:#7C7C7C; color:#fff;">Kayan reklam alanı</span> Sitenin sağ tarafında görünür, 1024x768 çözünürlükte siteyi bozmaz.'), "id" => "reklamkayan", "std" => $default_kayanreklam, "type" => "textarea"), array( "name" => "Link Değişim", "desc" => ('Sidebar\'ın en altında bulunan sekmeli bölümdeki link değişim alanı.<br />Linkleri <span style="background:#7C7C7C; color:#fff;"><-li> <-/li></span> etiketleri arasına yazın ve bir adet boşluk bırakın. ( - işaretlerini silin. )</a>'), "id" => "linktakas", "std" => $default_linkdegisim, "type" => "textarea"), array( "name" => "En Son Sekme", "desc" => ('Sidebar\'ın en altında bulunan sekmeli bölümdeki en son sekmedir.<br />Linkleri <span style="background:#7C7C7C; color:#fff;"><-li> <-/li></span> etiketleri arasına yazın ve bir adet boşluk bırakın. ( - işaretlerini silin. )</a>'), "id" => "random", "std" => $default_randoms, "type" => "textarea"), array( "name" => "Analytics & Sayaç Kodları", "desc" => ('Sayaç vb. kodlar için bu bölümü kullanabilirsiniz. Aralarda birkaç satır boşluk bırakmayı unutmayın.<br /><span style="color:#fff; background:#7C7C7C;">Not:</span> bu bölümü sadece "Analytics" gibi sayaç resmi görünmeyen kodlar için kullanın.'), "id" => "mayac", "std" => $default_sayac, "type" => "textarea"),);

function art_update_option($key, $value){
update_option($key, (get_magic_quotes_gpc()) ? stripslashes($value) : $value);
}
function art_add_admin() {
global $themename, $shortname, $options;
if ( $_GET['page'] == basename(__FILE__) ) {
if ('save' == $_REQUEST['action'] ) {
foreach ($options as $value) {
if($value['type'] != 'multicheck'){
art_update_option( $value['id'], $_REQUEST[ $value['id'] ] );
}else{
foreach($value['options'] as $mc_key => $mc_value){
$up_opt = $value['id'].'_'.$mc_key;
art_update_option($up_opt, $_REQUEST[$up_opt] );
}
}
}
foreach ($options as $value) {
if($value['type'] != 'multicheck'){
if( isset( $_REQUEST[ $value['id'] ] ) ) { art_update_option( $value['id'], $_REQUEST[ $value['id'] ] ); } else { delete_option( $value['id'] ); }
}else{
foreach($value['options'] as $mc_key => $mc_value){
$up_opt = $value['id'].'_'.$mc_key;
if( isset( $_REQUEST[ $up_opt ] ) ) { art_update_option( $up_opt, $_REQUEST[ $up_opt ] ); } else { delete_option( $up_opt ); }
}
}
}
header("Location: themes.php?page=functions.php&saved=true");
die;
}
}
add_theme_page("Tema Ayarları", "Tema Ayarları", 'edit_themes', basename(__FILE__), 'art_admin');
}

function art_admin() {
global $themename, $shortname, $options;
if ( $_REQUEST['saved'] ) echo '<div id="message" class="updated fade"><p><strong>'.$themename.' ayarları güncellendi.</strong></p></div>';
?>
<div class="wrap">
<h2>DiziFilm v1 - Tema Ayarları</h2>
<div id="message" class="updated fade"><p><strong style="color:#ff0000;">Önemli Not:</strong> Temanın 'Footer' bölümünde bir adet linkimiz eklidir. Bu kadar emeğin ufak bir karşılığıdır. Linki kaldırdığınızda siteye ve yönetici paneline ulaşamazsınız.</p></div>
<form method="post">

<table class="optiontable" style="width:100%;">

<?php foreach ($options as $value) {

switch ( $value['type'] ) {
case 'text':
option_wrapper_header($value);
?>
<input style="width:100%;" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" type="<?php echo $value['type']; ?>" value="<?php if ( get_settings( $value['id'] ) != "") { echo get_settings( $value['id'] ); } else { echo $value['std']; } ?>" />
<?php
option_wrapper_footer($value);
break;

case 'select':
option_wrapper_header($value);
?>
<select style="width:70%;" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>">
<?php foreach ($value['options'] as $option) { ?>
<option<?php if ( get_settings( $value['id'] ) == $option) { echo ' selected="selected"'; } elseif ($option == $value['std']) { echo ' selected="selected"'; } ?>><?php echo $option; ?></option>
<?php } ?>
</select>
<?php
option_wrapper_footer($value);
break;

case 'textarea':
$ta_options = $value['options'];
option_wrapper_header($value);
?>
<textarea name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" style="width:100%;height:100px;"><?php
if( get_settings($value['id']) !== false) {
echo get_settings($value['id']);
}else{
echo $value['std'];
}?></textarea>
<?php
option_wrapper_footer($value);
break;

case "radio":
option_wrapper_header($value);

foreach ($value['options'] as $key=>$option) {
$radio_setting = get_settings($value['id']);
if($radio_setting != ''){
if ($key == get_settings($value['id']) ) {
$checked = "checked=\"checked\"";
} else {
$checked = "";
}
}else{
if($key == $value['std']){
$checked = "checked=\"checked\"";
}else{
$checked = "";
}
}?>
<input type="radio" name="<?php echo $value['id']; ?>" value="<?php echo $key; ?>" <?php echo $checked; ?> /><?php echo $option; ?><br />
<?php
}

option_wrapper_footer($value);
break;

case "checkbox":
option_wrapper_header($value);
if(get_settings($value['id'])){
$checked = "checked=\"checked\"";
}else{
$checked = "";
}
?>
<input type="checkbox" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" value="true" <?php echo $checked; ?> />
<?php
option_wrapper_footer($value);
break;

case "multicheck":
option_wrapper_header($value);

foreach ($value['options'] as $key=>$option) {
$pn_key = $value['id'] . '_' . $key;
$checkbox_setting = get_settings($pn_key);
if($checkbox_setting != ''){
if (get_settings($pn_key) ) {
$checked = "checked=\"checked\"";
} else {
$checked = "";
}
}else{
if($key == $value['std']){
$checked = "checked=\"checked\"";
}else{
$checked = "";
}
}?>
<input type="checkbox" name="<?php echo $pn_key; ?>" id="<?php echo $pn_key; ?>" value="true" <?php echo $checked; ?> /><label for="<?php echo $pn_key; ?>"><?php echo $option; ?></label><br />
<?php
}

option_wrapper_footer($value);
break;

case "heading":
?>
<tr valign="top">
<td colspan="2" style="text-align: center;"><h3><?php echo $value['name']; ?></h3></td>
</tr>
<?php
break;

default:

break;
}
}
?>
</table>

<p class="submit">
<input name="save" type="submit" value="Ayarları Kaydet" />
<input type="hidden" name="action" value="save" />
</p>
</form>
</div>
<?php
}

function option_wrapper_header($values){
?>
<tr valign="top">
<th scope="row" style="width:1%;white-space: nowrap;"><?php echo $values['name']; ?>:</th>
<td>
<?php
}

function option_wrapper_footer($values){
?>
</td>
</tr>
<tr valign="top">
<td> </td><td><small><?php echo $values['desc']; ?></small></td>
</tr>
<?php
}


add_action('admin_menu', 'art_add_admin');

if (!function_exists('get_search_form')) {
function get_search_form()
{
include (TEMPLATEPATH . "/searchform.php");
}
}

if (!function_exists('get_previous_posts_link')) {
function get_previous_posts_link($label)
{
ob_start();
previous_posts_link($label);
return ob_get_clean();
}
}

if (!function_exists('get_next_posts_link')) {
function get_next_posts_link($label)
{
ob_start();
next_posts_link($label);
return ob_get_clean();
}
}

if (!function_exists('get_previous_post_link')) {
function get_previous_post_link($label)
{
ob_start();
previous_post_link($label);
return ob_get_clean();
}
}

if (!function_exists('get_next_post_link')) {
function get_next_post_link($label)
{
ob_start();
next_post_link($label);
return ob_get_clean();
}
}
function art_comment($comment, $args, $depth)
{
$GLOBALS['comment'] = $comment; ?>
<li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">
<div id="comment-<?php comment_ID(); ?>">
<div class="art-Post">
<div class="art-Post-tl"></div>
<div class="art-Post-tr"></div>
<div class="art-Post-bl"></div>
<div class="art-Post-br"></div>
<div class="art-Post-tc"></div>
<div class="art-Post-bc"></div>
<div class="art-Post-cl"></div>
<div class="art-Post-cr"></div>
<div class="art-Post-cc"></div>
<div class="art-Post-body">
<div class="art-Post-inner art-article">

<div class="art-PostContent">

<div class="comment-author vcard">
<?php echo get_avatar($comment,$size='48',$default='<path_to_url>' ); ?>
<cite class="fn"><?php comment_author_link(); ?>:</cite>
</div>
<?php if ($comment->comment_approved == '0') : ?>
<em><?php _e('Your comment is awaiting moderation.') ?></em>
<br />
<?php endif; ?>

<div class="comment-meta commentmetadata"><a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>"><?php printf(__('%1$s at %2$s'), get_comment_date(), get_comment_time()) ?></a><?php edit_comment_link('('.__('Edit').')',' ','') ?></div>

<?php comment_text() ?>

<div class="reply">
<?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>
</div>

</div>
<div class="cleared"></div>


</div>

</div>
</div>

</div>
<?php
}

function art_activeID($pages){
$result = lisanssız;
foreach ($pages as $index => $page){
if (is_page($page->ID)) {
$result = $page;
break;
}
}
while($result && $result->post_parent) {
foreach ($pages as $parent){
if ($parent->ID == $result->post_parent) {
$result = $parent;
breack;
}
}
}
return ($result ? $result->ID : lisanssız);
}
function art_blogID($pages){
$result = lisanssız;
if(!'page' == get_option('show_on_front')) return $result;
$blogID = get_option('page_for_posts');
if (!$blogID) return $result;
foreach ($pages as $index => $page){
if ($page->ID == $blogID) {
$result = $page;
break;
}
}
while($result && $result->post_parent) {
foreach ($pages as $parent){
if ($parent->ID == $result->post_parent) {
$result = $parent;
breack;
}
}
}
return ($result ? $result->ID : lisanssız);
}

function art_process_front(&$pages){
if ('page' != get_option('show_on_front')) return;
$frontID = get_option('page_on_front');
if (!$frontID) return;
foreach ($pages as $index => $page)
if($page->ID == $frontID) {
unset($pages[$index]);
$page->post_parent = '0';
$page->menu_order = '0';
array_unshift($pages, $page);
break;
}
}

function art_topIDs($pages){
$result = array();
foreach ($pages as $index => $page)
if (!$page->post_parent) $result[]=$page->ID;
return $result;
}

function art_remove_subitems(&$pages){
foreach ($pages as $index => $page)
if ($page->post_parent) unset($pages[$index]);
}
function art_header_page_list_filter($pages)
{
global $artThemeSettings;
art_process_front($pages);
$artThemeSettings['menu.topItemIDs'] = art_topIDs($pages);
$artThemeSettings['menu.activeID'] = art_activeID($pages);
$artThemeSettings['menu.blogID'] = art_blogID($pages);
if (!$artThemeSettings['menu.showSubmenus']) art_remove_subitems($pages);
return $pages;
}

function art_list_pages_filter($output)
{
global $artThemeSettings;
$pref ='page-item-';
if($artThemeSettings['menu.topItemIDs'])
foreach($artThemeSettings['menu.topItemIDs'] as $id){
$output = preg_replace('~<li class="([^"]*)\b(' . $pref . $id . ')\b([^"]*)"><a ([^>]+)>([^<]*)</a>~',
'<li class="$1$2$3"><a $4>' . $artThemeSettings['menu.topItemBegin']
. '$5' . $artThemeSettings['menu.topItemEnd'] . '</a>', $output, 1);
}

$frontID = lisanssız;
$blogID = lisanssız;
if('page' == get_option('show_on_front')) {
$frontID = get_option('page_on_front');
$blogID = $artThemeSettings['menu.blogID'];
}
if ($frontID)
$output = preg_replace('~<li class="([^"]*)\b(' . $pref . $frontID . ')\b([^"]*)"><a href="([^"]*)" ~',
'<li class="$1$2$3"><a href="'. get_option('home') .'" ', $output, 1);

if ((is_home() && $blogID) || $artThemeSettings['menu.activeID'])
$output = preg_replace('~<li class="([^"]*)\b(' . $pref . (is_home() ? $blogID : $artThemeSettings['menu.activeID']) . ')\b([^"]*)"><a ~',
'<li class="$1$2$3"><a class="active" ', $output, 1);
return $output;
}

function art_menu_items()
{
global $artThemeSettings;
if (true === $artThemeSettings['menu.showHome'] && 'page' != get_option('show_on_front'))
echo '<li><a' . (is_home() ? ' class="active"' : '') . ' href="' . get_option('home') . '">'.$artThemeSettings['menu.topItemBegin']
. $artThemeSettings['menu.homeCaption'] . $artThemeSettings['menu.topItemEnd'] . '</a></li>';
add_action('get_pages', 'art_header_page_list_filter');
add_action('wp_list_pages', 'art_list_pages_filter');
wp_list_pages('title_li=');
remove_action('wp_list_pages', 'art_list_pages_filter');
remove_action('get_pages', 'art_header_page_list_filter');
}

function trim_title() {
$title = get_the_title();
$limit = "37";
$pad="...";

if(strlen($title) <= $limit) {
echo $title;
} else {
$title = mb_substr($title, 0, $limit,'UTF-8') . $pad;
echo $title;
}
}


function trim_title1() {
$title = get_the_title();
$limit = "25";
$pad="...";

if(strlen($title) <= $limit) {
echo $title;
} else {
$title = mb_substr($title, 0, $limit,'UTF-8') . $pad;
echo $title;
}
}
 

ferizli

0
İyinet Üyesi
Katılım
30 Ağustos 2010
Mesajlar
62
Reaction score
0
<!-- Footer -->
<div id="footer">
<div id="footer-logo"></div>
<div id="footer-links">
<ul>
<li><a href="/">Anasayfa</a></li>
<li><a href="http://www.teknometre.net" title="teknoloji haberleri">Teknoloji Haberleri</a></li>
</ul>
</div>
</div>
<!-- Footer End -->

ewet kod bu şekilde çalışıyor ama üzerindeki adresi elleyinde bozuluyor
 

Türkiye’nin ilk webmaster forum sitesi iyinet.com'da forum üyeleri tarafından yapılan tüm paylaşımlardan; Türk Ceza Kanunu’nun 20. Maddesinin, 5651 Sayılı Kanununun 4. maddesinin 2. fıkrasına göre, paylaşım yapan üyeler sorumludur.

Backlink ve Tanıtım Yazısı için iletişime geçmek için Skype Adresimiz: .cid.1580508955483fe5

Üst