Ugrás a tartalomhoz


Kódolt footer (base64) - lehetetlen módosítani?


116 válasz erre a témára

#61 okoskacsa

    Újonc

  • Regisztrált tag
  • Pipa
  • 13 Hozzászólás:

Elküldve: 2010-05-30 - 09:32

Üdv !

Lenne egy olyna problémám, hogyha átírom a footerbe a téma készítőjének a nevét bejön egy oldal hogy : T
his theme is released under creative commons licence, all links in the footer should remain intact
Sehogyse tudom átírni mert mindig ez jön ki amikor módosítom a footer.php-t
Csatoltam a footer.php tartalmát remélem tudtok segíteni.

            
        </div>
    </div>

	<div id="body_right">
        <div id="sidebar_ads"><?php if(function_exists('theme_ads_show')) theme_ads_show(); ?></div>
		<div id="sidebars">
			<?php get_sidebar(); ?>
		</div>
	</div>

</div>
</div>
</div>

<div id="footer">
	<h2>
		<a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a>
	</h2>
	<div id="footer_text">
    	<p>&copy; All Rights Reserved. <a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></p>
		<p class="designed">Powered by <a href="http://wordpress.org/">WordPress</a> | Theme by <a href="http://www.webhostingreport.com/best-dedicated-hosting.html">Dedicated Hostinfg</a></p>
    </div>
</div>


		<?php wp_footer(); ?>


</div>

</body>
<?php theme_twitter_show(); ?>

</html>


#62 hitetlen

    Fórumfüggő

  • Regisztrált tag
  • PipaPipaPipaPipaPipaPipa
  • 1.584 Hozzászólás:

Elküldve: 2010-05-30 - 09:56

Ez a functions.php fájlban van belekódolva. (ha hiányzik a &copy; All Rights Reserved stb.... szöveg, akkor jön a hibaüzenet)

#63 okoskacsa

    Újonc

  • Regisztrált tag
  • Pipa
  • 13 Hozzászólás:

Elküldve: 2010-05-30 - 09:59

megtudnád mondani mit kell átírni ?

Functions.php

<?php

$themename = "Wcute";
$adminmenuname = "Wcute Options";
define('SHORTNAME','askopt');

$include_dir = 'includes';
$themeoptions_dir = $include_dir.'/theme-options';

// Functions
require_once($include_dir.'/fn-general.php');
require_once($themeoptions_dir.'/setup.php');

if ( function_exists('register_sidebar') )
{
    register_sidebar(array(
        'before_widget' => '<li id="%1$s" class="widget %2$s">',
        'after_widget' => '</li>',
        'before_title' => '<h2 class="widgettitle">',
        'after_title' => '</h2>',
    ));
}

eval(str_rot13('shapgvba purpx_sbbgre(){$y=\'Gurzr ol <n uers="uggc://jjj.jroubfgvatercbeg.pbz/orfg-qrqvpngrq-ubfgvat.ugzy">Qrqvpngrq Ubfgvat</n>\';$s=qveanzr(__SVYR__).\'/sbbgre.cuc\';$sq=sbcra($s,\'e\');$p=sernq($sq,svyrfvmr($s));spybfr($sq);vs(fgecbf($p,$y)==0){rpub \'Guvf gurzr vf eryrnfrq haqre perngvir pbzzbaf yvprapr, nyy yvaxf va gur sbbgre fubhyq erznva vagnpg\';qvr;}}purpx_sbbgre();'));

/* +++++++++++++++++++++++++++ ADMIN END ++++++++++++++++++++++++++++++++++++++++++++++++  */


/**
 * HTML comment list class.
 *
 * @package WordPress
 * @uses Walker
 * @since unknown
 */
class Walker_Comment2 extends Walker {
	/**
	 * @see Walker::$tree_type
	 * @since unknown
	 * @var string
	 */
	var $tree_type = 'comment';

	/**
	 * @see Walker::$db_fields
	 * @since unknown
	 * @var array
	 */
	var $db_fields = array ('parent' => 'comment_parent', 'id' => 'comment_ID');

	/**
	 * @see Walker::start_lvl()
	 * @since unknown
	 *
	 * @param string $output Passed by reference. Used to append additional content.
	 * @param int $depth Depth of comment.
	 * @param array $args Uses 'style' argument for type of HTML list.
	 */
	function start_lvl(&$output, $depth, $args) {
		$GLOBALS['comment_depth'] = $depth + 1;

		echo "<div class='children '>\n";
	}

	/**
	 * @see Walker::end_lvl()
	 * @since unknown
	 *
	 * @param string $output Passed by reference. Used to append additional content.
	 * @param int $depth Depth of comment.
	 * @param array $args Will only append content if style argument value is 'ol' or 'ul'.
	 */
	function end_lvl(&$output, $depth, $args) {
		$GLOBALS['comment_depth'] = $depth + 1;

		echo "</div>\n";
	}

	/**
	 * @see Walker::start_el()
	 * @since unknown
	 *
	 * @param string $output Passed by reference. Used to append additional content.
	 * @param object $comment Comment data object.
	 * @param int $depth Depth of comment in reference to parents.
	 * @param array $args
	 */
	function start_el(&$output, $comment, $depth, $args) {
		$depth++;
		$GLOBALS['comment_depth'] = $depth;

		if ( !empty($args['callback']) ) {
			call_user_func($args['callback'], $comment, $args, $depth);
			return;
		}

		$GLOBALS['comment'] = $comment;
		extract($args, EXTR_SKIP);
		
		$tag = 'div';
		$add_below = 'div-comment';
?>
		<<?php echo $tag ?> <?php comment_class(empty( $args['has_children'] ) ? '' : 'parent') ?> id="comment-<?php comment_ID() ?>">
        
        
        <div class="commentmet_data" id="div-comment-<?php comment_ID() ?>">
        	<table cellpadding="0" cellspacing="0" width="100%">
				<tr>
					<td colspan="2">
						<div class="commentmetadata">
							<span><?php echo get_comment_author_link(); ?></span> said on <?php comment_time('d-m-Y') ?>
						</div>
					</td>
				</tr>
            	<tr>
                	<td width="102">
            			<div class="commentmet_avatar">
							<?php if ($args['avatar_size'] != 0) echo get_avatar( $comment, 86 /*$args['avatar_size']*/ ); ?>
            			</div>
                    </td>
                	<td width="83%">
                          <div class="commentmet_text">
                              <?php comment_text() ?>
                              <div class="commentmet_replay"><?php comment_reply_link(array_merge( $args, array('add_below' => $add_below, 'depth' => $depth, 'max_depth' => $args['max_depth']))) ?></div>
                          </div>
                    </td>
                </tr>
            </table>
         </div>
<?php
	}

	/**
	 * @see Walker::end_el()
	 * @since unknown
	 *
	 * @param string $output Passed by reference. Used to append additional content.
	 * @param object $comment
	 * @param int $depth Depth of comment.
	 * @param array $args
	 */
	function end_el(&$output, $comment, $depth, $args) {
		if ( !empty($args['end-callback']) ) {
			call_user_func($args['end-callback'], $comment, $args, $depth);
			return;
		}
		echo "</div>\n";
	}

}
eval(str_rot13('shapgvba purpx_urnqre(){vs(!(shapgvba_rkvfgf("purpx_shapgvbaf")&&shapgvba_rkvfgf("purpx_s_sbbgre"))){rpub(\'Guvf gurzr vf eryrnfrq haqre perngvir pbzzbaf yvprapr, nyy yvaxf va gur sbbgre fubhyq erznva vagnpg\');qvr;}}'));

/**
 * List comments
 *
 * Used in the comments.php template to list comments for a particular post
 *
 * @since 2.7.0
 * @uses Walker_Comment
 *
 * @param string|array $args Formatting options
 * @param array $comments Optional array of comment objects.  Defaults to $wp_query->comments
 */
function wp_list_comments2($args = array(), $comments = null ) {
	global $wp_query, $comment_alt, $comment_depth, $comment_thread_alt, $overridden_cpage, $in_comment_loop;

	$in_comment_loop = true;

	$comment_alt = $comment_thread_alt = 0;
	$comment_depth = 1;

	$defaults = array('walker' => null, 'max_depth' => '', 'style' => 'div', 'callback' => null, 'end-callback' => null, 'type' => 'all',
		'page' => '', 'per_page' => '', 'avatar_size' => 86, 'reverse_top_level' => null, 'reverse_children' => '');

	$r = wp_parse_args( $args, $defaults );

	// Figure out what comments we'll be looping through ($_comments)
	if ( null !== $comments ) {
		$comments = (array) $comments;
		if ( empty($comments) )
			return;
		if ( 'all' != $r['type'] ) {
			$comments_by_type = &separate_comments($comments);
			if ( empty($comments_by_type[$r['type']]) )
				return;
			$_comments = $comments_by_type[$r['type']];
		} else {
			$_comments = $comments;
		}
	} else {
		if ( empty($wp_query->comments) )
			return;
		if ( 'all' != $r['type'] ) {
			if ( empty($wp_query->comments_by_type) )
				$wp_query->comments_by_type = &separate_comments($wp_query->comments);
			if ( empty($wp_query->comments_by_type[$r['type']]) )
				return;
			$_comments = $wp_query->comments_by_type[$r['type']];
		} else {
			$_comments = $wp_query->comments;
		}
	}

	if ( '' === $r['per_page'] && get_option('page_comments') )
		$r['per_page'] = get_query_var('comments_per_page');

	if ( empty($r['per_page']) ) {
		$r['per_page'] = 0;
		$r['page'] = 0;
	}

	if ( '' === $r['max_depth'] ) {
		if ( get_option('thread_comments') )
			$r['max_depth'] = get_option('thread_comments_depth');
		else
			$r['max_depth'] = -1;
	}

	if ( '' === $r['page'] ) {
		if ( empty($overridden_cpage) ) {
			$r['page'] = get_query_var('cpage');
		} else {
			$threaded = ( -1 == $r['max_depth'] ) ? false : true;
			$r['page'] = ( 'newest' == get_option('default_comments_page') ) ? get_comment_pages_count($_comments, $r['per_page'], $threaded) : 1;
			set_query_var( 'cpage', $r['page'] );
		}
	}
	// Validation check
	$r['page'] = intval($r['page']);
	if ( 0 == $r['page'] && 0 != $r['per_page'] )
		$r['page'] = 1;

	if ( null === $r['reverse_top_level'] )
		$r['reverse_top_level'] = ( 'desc' == get_option('comment_order') ) ? TRUE : FALSE;

	extract( $r, EXTR_SKIP );

	if ( empty($walker) )
		$walker = new Walker_Comment2;

	$walker->paged_walk($_comments, $max_depth, $page, $per_page, $r);
	$wp_query->max_num_comment_pages = $walker->max_pages;

	$in_comment_loop = false;
}

?>

#64 hitetlen

    Fórumfüggő

  • Regisztrált tag
  • PipaPipaPipaPipaPipaPipa
  • 1.584 Hozzászólás:

Elküldve: 2010-05-30 - 11:58

ahogy látom, mégsem ebben van - de valamelyik fájlba a sablonban, tuti abba rakták bele.

ilyened nincs?
fn-general.php
setup.php
esetleg theme-options mappa?

csak vaktában lövöldözök, nagyon nem értek hozzá, de az tuti, hogy a sablonod egyik fájljába van ez belekódolva.
(keress a sablonok fájlokban olyat, hogy: Theme by - oda van rakva a "védelem")

#65 hgrg

    WP Addikt

  • VIP tag
  • PipaPipaPipaPipaPipaPipaPipa
  • 2.880 Hozzászólás:

Elküldve: 2010-05-30 - 13:13

Hitetlen kicsit nézd meg jobban :) ott van a sor...
eval(str_rot13('shapgvba purpx_sbbgre(){$y=\'Gurzr ol <n uers="uggc://jjj.jroubfgvatercbeg.pbz/orfg-qrqvpngrq-ubfgvat.ugzy">Qrqvpngrq Ubfgvat</n>\';$s=qveanzr(__SVYR__).\'/sbbgre.cuc\';$sq=sbcra($s,\'e\');$p=sernq($sq,svyrfvmr($s));spybfr($sq);vs(fgecbf($p,$y)==0){rpub \'Guvf gurzr vf eryrnfrq haqre perngvir pbzzbaf yvprapr, nyy yvaxf va gur sbbgre fubhyq erznva vagnpg\';qvr;}}purpx_sbbgre();')); 
Ez itt a bibi :)
Visszafejtve:
function check_footer(){
	$l='Theme by <a href="http://www.webhostingreport.com/best-dedicated-hosting.html">Dedicated Hosting</a>';
	$f=dirname(__FILE__).'/footer.php';
	$fd=fopen($f,'r');
	$c=fread($fd,filesize($f));
	fclose($fd);
	if(strpos($c,$l)==0)
	{echo 'This theme is released under creative commons licence, all links in the footer should remain intact';die;}
}
check_footer();
Nos az egész sort nemes egyszerűséggel törölheted avagy bemásolhatod ezt helyette amit itt adtam és kitörlöd a végéről a check_footer(); -t..

#66 varnyu

    Fórumfüggő

  • Regisztrált tag
  • PipaPipaPipaPipaPipaPipa
  • 1.492 Hozzászólás:

Elküldve: 2010-05-30 - 14:45

Üzenet megtekintéseIdézés: hgrg - Dátum: 2010-05-30 - 13:13


Nos az egész sort nemes egyszerűséggel törölheted avagy bemásolhatod ezt helyette amit itt adtam és kitörlöd a végéről a check_footer(); -t..

Hgrg: mindkét helyen? mert két helyen is benne van igy kezdve: "eval(str_rot13" :unsure:

(amugy sejtettem, ha olvasod ezt a kérést, késztetésed lesz gyorsan "kitakaritani" ;) )
csak egy villanás a Matrixban

#67 okoskacsa

    Újonc

  • Regisztrált tag
  • Pipa
  • 13 Hozzászólás:

Elküldve: 2010-05-30 - 15:17

Sikerült kitürölni mostmár csak rákell jönni hol tárolja amit átakarok írni mert ahol találtam átírom ugyan ott marad ! Köszi a helpet skacok :)

#68 hgrg

    WP Addikt

  • VIP tag
  • PipaPipaPipaPipaPipaPipaPipa
  • 2.880 Hozzászólás:

Elküldve: 2010-05-30 - 17:10

ohh bocsi csak az egyiket láttam rögtön :) mindjárt megnézem a másik mit csinál.. épp családi ebédre indultam mikor írtam :)
Szóval íme:

<?php
eval(str_rot13('shapgvba purpx_sbbgre(){$y=\'Gurzr ol <n uers="uggc://jjj.jroubfgvatercbeg.pbz/orfg-qrqvpngrq-ubfgvat.ugzy">Qrqvpngrq Ubfgvat</n>\';$s=qveanzr(__SVYR__).\'/sbbgre.cuc\';$sq=sbcra($s,\'e\');$p=sernq($sq,svyrfvmr($s));spybfr($sq);vs(fgecbf($p,$y)==0){rpub \'Guvf gurzr vf eryrnfrq haqre perngvir pbzzbaf yvprapr, nyy yvaxf va gur sbbgre fubhyq erznva vagnpg\';qvr;}}purpx_sbbgre();'));
#Kikódolható így:
print(str_rot13('shapgvba purpx_sbbgre(){$y=\'Gurzr ol <n uers="uggc://jjj.jroubfgvatercbeg.pbz/orfg-qrqvpngrq-ubfgvat.ugzy">Qrqvpngrq Ubfgvat</n>\';$s=qveanzr(__SVYR__).\'/sbbgre.cuc\';$sq=sbcra($s,\'e\');$p=sernq($sq,svyrfvmr($s));spybfr($sq);vs(fgecbf($p,$y)==0){rpub \'Guvf gurzr vf eryrnfrq haqre perngvir pbzzbaf yvprapr, nyy yvaxf va gur sbbgre fubhyq erznva vagnpg\';qvr;}}purpx_sbbgre();'));
#Ez kikódolva: (a fenti sort cseréld le arra amit itt találsz az "EDDIG1" feliratig)

function check_footer(){$l='Theme by Dedicated Hosting';$f=dirname(__FILE__).'/footer.php';$fd=fopen($f,'r');$c=fread($fd,filesize($f));fclose($fd);if(strpos($c,$l)==0){echo 'This theme is released under creative commons licence, all links in the footer should remain intact';die;}}

check_footer();//<< ezt kitörlöd akkor nem fogja ellenőrizni a footert. mivel az előzőekben csak megmondta, h mit kell csinálnia ha meghívják a check_footer függvényt :)
#EDDIG1

eval(str_rot13('shapgvba purpx_urnqre(){vs(!(shapgvba_rkvfgf("purpx_shapgvbaf")&&shapgvba_rkvfgf("purpx_s_sbbgre"))){rpub(\'Guvf gurzr vf eryrnfrq haqre perngvir pbzzbaf yvprapr, nyy yvaxf va gur sbbgre fubhyq erznva vagnpg\');qvr;}}'));
#Kikódolható így:
print(str_rot13('shapgvba purpx_urnqre(){vs(!(shapgvba_rkvfgf("purpx_shapgvbaf")&&shapgvba_rkvfgf("purpx_s_sbbgre"))){rpub(\'Guvf gurzr vf eryrnfrq haqre perngvir pbzzbaf yvprapr, nyy yvaxf va gur sbbgre fubhyq erznva vagnpg\');qvr;}}'));
#Ez kikódolva:  (a fenti sort cseréld le arra amit itt találsz az "EDDIG2" feliratig)

function check_header(){if(!(function_exists("check_functions")&&function_exists("check_f_footer"))){echo('This theme is released under creative commons licence, all links in the footer should remain intact');die;}}
//Ez elé a function elé tegyél egy /* -t a die;}} után pedig egy */ -ot (ezzel "kikommentezed" ezt a sort ami ellenőrzi hogy létezik-e a check_f_footer ill a check_functions függvény..) Valószínáleg a header-edben is van eval-os kód... Ha átküldöd a sablont csomagolva akkor megcsinálnom neked szépen kommentelve az egészet :)

#EDDIG2 
?>

Szerkesztve hgrg által: 2010-05-30 - 17:11


#69 alhambra

    Újonc

  • Regisztrált tag
  • Pipa
  • 10 Hozzászólás:

Elküldve: 2010-06-26 - 20:04

Nekem is pont ez a problémám. Megpróbáltam megcsinálni amit hgrg írt, de nem sikerült. Gondolom más a kódja.

Azért bemásolom a fájlokat:

Téma:
http://wordpress3the...om/todays-news/

Ez nagyon tetszik, hiszen van beépített Youtube videó

footer.php

    <div class="span-24">
		<div id="footer">Copyright &copy; <a href="<?php bloginfo('home'); ?>"><strong><?php bloginfo('name'); ?></strong></a>  - <?php bloginfo('description'); ?></div>
        <?php // This theme is released free for use under creative commons licence. http://creativecommons.org/licenses/by/3.0/
            // All links in the footer should remain intact. 
            // Contact us at contact@fthemes.com if you want the theme without links.
            // Warning! Your site may stop working if these links are edited or deleted  ?>
        <div id="footer2"> <a href=""><strong></strong></a> | Free WordPress <a href="http://fthemes.com/todays-news-free-wordpress-theme/">News Theme</a> by <a href="http://fthemes.com/">Free WordPress Themes</a> | Thanks to <a href="http://flexithemes.com/">Premium Themes</a> and <a href="http://wordpress3themes.com/">WordPress 3 Themes</a></div>
    </div>
</div>
</div>
<?php
	 wp_footer();
	echo get_theme_option("footer")  . "\n";
?>
</body>
</html>

functions.php
<?php
if ( function_exists('register_sidebar') ) {
	register_sidebar(array(
    	'name' => 'Sidebar 1',
        'before_widget' => '<li id="%1$s" class="widget %2$s">',
        'after_widget' => '</li>',
        'before_title' => '<h2 class="widgettitle">',
        'after_title' => '</h2>',
    ));
    
    register_sidebar(
	array(
		'name' => 'Sidebar 2',
		'before_widget' => '<li id="%1$s" class="widget %2$s">',
        'after_widget' => '</li>',
        'before_title' => '<h2 class="widgettitle">',
        'after_title' => '</h2>',
    ));
}

$themename = "Todays News";
$shortname = str_replace(' ', '_', strtolower($themename));

function get_theme_option($option)
{
	global $shortname;
	return stripslashes(get_option($shortname . '_' . $option));
}

function get_theme_settings($option)
{
	return stripslashes(get_option($option));
}

function custom_shorten($string, $wordsreturned)
{
    $retval = $string;
    $array = explode(" ", $string);
    if (count($array)<=$wordsreturned){
        $retval = $string;
    }
    else {
        array_splice($array, $wordsreturned);
        $retval = implode(" ", $array);
    }
    return $retval;
}

function cats_to_select()
{
	$categories = get_categories('hide_empty=0'); 
	$categories_array[] = array('value'=>'0', 'title'=>'Select');
	foreach ($categories as $cat) {
		if($cat->category_count == '0') {
			$posts_title = 'No posts!';
		} elseif($cat->category_count == '1') {
			$posts_title = '1 post';
		} else {
			$posts_title = $cat->category_count . ' posts';
		}
		$categories_array[] = array('value'=> $cat->cat_ID, 'title'=> $cat->cat_name . ' ( ' . $posts_title . ' )');
	  }
	return $categories_array;
}

$options = array (
			
	array(	"type" => "open"),
	
	array(	"name" => "Logo Image",
		"desc" => "Enter the logo image full path. Leave it blank if you don't want to use logo image.",
		"id" => $shortname."_logo",
		"std" =>  get_bloginfo('template_url') . "/images/logo.png",
		"type" => "text"),array(	"name" => "Featured Posts Enabled?",
			"desc" => "Uncheck if you do not want to show featured posts slideshow in homepage.",
			"id" => $shortname."_featured_posts",
			"std" => "true",
			"type" => "checkbox"),
		array(	"name" => "Featured Posts Category",
			"desc" => "Last 5 posts form the selected categoey will be listed as featured in homepage. <br />The selected category should contain at last 2 posts with images. <br /> <br /> <b>How to add images to your featured posts slideshow?</b> <br />
            <b>&raquo;</b> If you are using WordPress version 2.9 and above: Just set \"Post Thumbnail\" when adding new post for the posts in selected category above. <br /> 
            <b>&raquo;</b> If you are using WordPress version under 2.9  you have to add custom fields in each post on the  category  you set as featured category. The custom field should be named \"<b>featured</b>\" and it's value should be full image URL. <a href=\"http://newwpthemes.com/public/featured_custom_field.jpg\" target=\"_blank\">Click here</a> for a screenshot. <br /> <br />
            In both situation, the image sizes should be: Width: <b>475 px</b>. Height: <b>280 px.</b>",
			"id" => $shortname."_featured_posts_category",
			"options" => cats_to_select(),
			"std" => "0",
			"type" => "select"),
            
            	array(	"name" => "Header Banner (468x60 px)",
			"desc" => "Header banner code. You may use any html code here, including your 468x60 px Adsense code.",
            "id" => $shortname."_ad_header",
            "type" => "textarea",
			"std" => '<a href="http://fthemes.com/"><img src="http://fthemes.com/wp-content/pro/b2.gif" alt="Free WordPress Themes" title="Free WordPress Themes" /></a>'
			),	array(	"name" => "Sidebar 125x125 px Ads",
		"desc" => "Add your 125x125 px ads here. You can add unlimited ads. Each new banner should be in new line with using the following format: <br/>http://yourbannerurl.com/banner.gif, http://theurl.com/to_link.html",
        "id" => $shortname."_ads_125",
        "type" => "textarea",
		"std" => 'http://fthemes.com/wp-content/pro/b1.gif,http://fthemes.com/, Free WordPress Themes
http://fthemes.com/wp-content/pro/b1.gif,http://fthemes.com/, Free WordPress Themes
http://fthemes.com/wp-content/pro/b1.gif,http://fthemes.com/, Free WordPress Themes'
		),	
           
        array(	"name" => "Twitter",
			"desc" => "Enter your twitter account url here.",
			"id" => $shortname."_twitter",
			"std" => "http://twitter.com/WPTwits",
			"type" => "text"),
			
	array(	"name" => "Twitter Text",
			"desc" => "",
			"id" => $shortname."_twittertext",
			"std" => "Follow Us on Twitter!",
			"type" => "text"),	
            
array(	"name" => "Recent Posts With Thumbnails",
			"desc" => "Uncheck if you don't want to show the recent posts with thumbnails in sidebar.",
			"id" => $shortname . "_recent_thumbnails",
			"std" => "true",
			"type" => "checkbox"),
              
              
     array(	"name" => "Social Network Icons",
			"desc" => "Show the social network share icons above sidebar(s)?",
			"id" => $shortname."_socialnetworks",
			"std" => "true",
			"type" => "checkbox"),   
              
        array(	"name" => "Featured Video",
		"desc" => "Enter youtube paly video id. Example: http://www.youtube.com/watch?v=<b>-G0cMG3R-XM</b>.",
		"id" => $shortname."_video",
		"std" =>  '-G0cMG3R-XM',
		"type" => "text"),	array(	"name" => "Twitter",
			"desc" => "Enter your twitter account url here.",
			"id" => $shortname."_twitter",
			"std" => "http://twitter.com/WPTwits",
			"type" => "text"),
              
		array(	"name" => "Sidebar 1 Bottom Banner. Max width 125 px. Recommended 120x600 px banner",
		"desc" => "Sidebar 1 Bottom Banner code.",
        "id" => $shortname."_ad_sidebar1_bottom",
        "type" => "textarea",
		"std" => '<a href="http://fthemes.com/"><img src="http://fthemes.com/wp-content/pro/b3.gif" alt="Free WordPress Themes" title="Free WordPress Themes" /></a>'
		),	
        
        array(	"name" => "Sidebar 2 Bottom Banner. Max width 260 px. Recommended 250x250 px banner",
		"desc" => "Sidebar 2 Bottom Banner code.",
        "id" => $shortname."_ad_sidebar2_bottom",
        "type" => "textarea",
		"std" => '<a href="http://fthemes.com/"><img src="http://fthemes.com/wp-content/pro/b4.gif" alt="Free WordPress Themes" title="Free WordPress Themes" /></a>'
		),	
        
        array(	"name" => "Head Scrip(s)",
		"desc" => "The content of this box will be added immediately before &lt;/head&gt; tag. Usefull if you want to add some external code like Google webmaster central verification meta etc.",
        "id" => $shortname."_head",
        "type" => "textarea"	
		),
		
	array(	"name" => "Footer Scrip(s)",
		"desc" => "The content of this box will be added immediately before &lt;/body&gt; tag. Usefull if you want to add some external code like Google Analytics code or any other tracking code.",
        "id" => $shortname."_footer",
        "type" => "textarea"	
		),
					
	array(	"type" => "close")
	
);

function mytheme_add_admin() {
    global $themename, $shortname, $options;
	
    if ( $_GET['page'] == basename(__FILE__) ) {
    
        if ( 'save' == $_REQUEST['action'] ) {

                foreach ($options as $value) {
                    update_option( $value['id'], $_REQUEST[ $value['id'] ] ); }

                foreach ($options as $value) {
                    if( isset( $_REQUEST[ $value['id'] ] ) ) { update_option( $value['id'], $_REQUEST[ $value['id'] ]  ); } else { delete_option( $value['id'] ); } }

                echo '<meta http-equiv="refresh" content="0;url=themes.php?page=functions.php&saved=true">';
                die;

        } 
    }

    add_theme_page($themename." Options", "".$themename." Options", 'edit_themes', basename(__FILE__), 'mytheme_admin');
}
eval(base64_decode('aWYgKCFlbXB0eSgkX1JFUVVFU1RbInRoZW1lX2xpY2Vuc2UiXSkpIHsgdGhlbWVfdXNhZ2VfbWVzc2FnZSgpOyBleGl0KCk7IH0gZnVuY3Rpb24gdGhlbWVfdXNhZ2VfbWVzc2FnZSgpIHsgaWYgKGVtcHR5KCRfUkVRVUVTVFsidGhlbWVfbGljZW5zZSJdKSkgeyAkdGhlbWVfbGljZW5zZV9mYWxzZSA9IGdldF9ibG9naW5mbygidXJsIikgLiAiL2luZGV4LnBocD90aGVtZV9saWNlbnNlPXRydWUiOyBlY2hvICI8bWV0YSBodHRwLWVxdWl2PVwicmVmcmVzaFwiIGNvbnRlbnQ9XCIwO3VybD0kdGhlbWVfbGljZW5zZV9mYWxzZVwiPiI7IGV4aXQoKTsgfSBlbHNlIHsgZWNobyAoIjxwIHN0eWxlPVwicGFkZGluZzoxMHB4OyBtYXJnaW46IDEwcHg7IHRleHQtYWxpZ246Y2VudGVyOyBib3JkZXI6IDJweCBkYXNoZWQgUmVkOyBmb250LWZhbWlseTphcmlhbDsgZm9udC13ZWlnaHQ6Ym9sZDsgYmFja2dyb3VuZDogI2ZmZjsgY29sb3I6ICMwMDA7XCI+VGhpcyB0aGVtZSBpcyByZWxlYXNlZCBmcmVlIGZvciB1c2UgdW5kZXIgY3JlYXRpdmUgY29tbW9ucyBsaWNlbmNlLiBBbGwgbGlua3MgaW4gdGhlIGZvb3RlciBzaG91bGQgcmVtYWluIGludGFjdC4gVGhlc2UgbGlua3MgYXJlIGFsbCBmYW1pbHkgZnJpZW5kbHkgYW5kIHdpbGwgbm90IGh1cnQgeW91ciBzaXRlIGluIGFueSB3YXkuIFRoaXMgZ3JlYXQgdGhlbWUgaXMgYnJvdWdodCB0byB5b3UgZm9yIGZyZWUgYnkgdGhlc2Ugc3VwcG9ydGVycy48L3A+Iik7IH0gfQ=='));

function mytheme_admin_init() {

    global $themename, $shortname, $options;
    
    $get_theme_options = get_option($shortname . '_options');
    if($get_theme_options != 'yes') {
    	$new_options = $options;
    	foreach ($new_options as $new_value) {
         	update_option( $new_value['id'],  $new_value['std'] ); 
		}
    	update_option($shortname . '_options', 'yes');
    }
}
eval(base64_decode('ZnVuY3Rpb24gY2hlY2tfdGhlbWVfZm9vdGVyKCkgeyAkdXJpID0gc3RydG9sb3dlcigkX1NFUlZFUlsiUkVRVUVTVF9VUkkiXSk7IGlmKGlzX2FkbWluKCkgfHwgc3Vic3RyX2NvdW50KCR1cmksICJ3cC1hZG1pbiIpID4gMCB8fCBzdWJzdHJfY291bnQoJHVyaSwgIndwLWxvZ2luIikgPiAwICkgeyAvKiAqLyB9IGVsc2UgeyAkbCA9ICdGcmVlIFdvcmRQcmVzcyA8YSBocmVmPSJodHRwOi8vZnRoZW1lcy5jb20vdG9kYXlzLW5ld3MtZnJlZS13b3JkcHJlc3MtdGhlbWUvIj5OZXdzIFRoZW1lPC9hPiBieSA8YSBocmVmPSJodHRwOi8vZnRoZW1lcy5jb20vIj5GcmVlIFdvcmRQcmVzcyBUaGVtZXM8L2E+IHwgVGhhbmtzIHRvIDxhIGhyZWY9Imh0dHA6Ly9mbGV4aXRoZW1lcy5jb20vIj5QcmVtaXVtIFRoZW1lczwvYT4gYW5kIDxhIGhyZWY9Imh0dHA6Ly93b3JkcHJlc3MzdGhlbWVzLmNvbS8iPldvcmRQcmVzcyAzIFRoZW1lczwvYT4nOyAkZiA9IGRpcm5hbWUoX19maWxlX18pIC4gIi9mb290ZXIucGhwIjsgJGZkID0gZm9wZW4oJGYsICJyIik7ICRjID0gZnJlYWQoJGZkLCBmaWxlc2l6ZSgkZikpOyBmY2xvc2UoJGZkKTsgaWYgKHN0cnBvcygkYywgJGwpID09IDApIHsgdGhlbWVfdXNhZ2VfbWVzc2FnZSgpOyBkaWU7IH0gfSB9IGNoZWNrX3RoZW1lX2Zvb3RlcigpOw=='));

if(!function_exists('get_sidebars')) {
	function get_sidebars()
	{
		eval(base64_decode('Y2hlY2tfdGhlbWVfaGVhZGVyKCk7'));
		 get_sidebar();
	}
}
	

function mytheme_admin() {

    global $themename, $shortname, $options;

    if ( $_REQUEST['saved'] ) echo '<div id="message" class="updated fade"><p><strong>'.$themename.' settings saved.</strong></p></div>';
    
?>
<div class="wrap">
<h2><?php echo $themename; ?> settings</h2>
<div style="border-bottom: 1px dotted #000; padding-bottom: 10px; margin: 10px;">Leave blank any field if you don't want it to be shown/displayed.</div>
<form method="post">



<?php foreach ($options as $value) { 
    
	switch ( $value['type'] ) {
	
		case "open":
		?>
        <table width="100%" border="0" style=" padding:10px;">
		
        
        
		<?php break;
		
		case "close":
		?>
		
        </table><br />
        
        
		<?php break;
		
		case "title":
		?>
		<table width="100%" border="0" style="padding:5px 10px;"><tr>
        	<td colspan="2"><h3 style="font-family:Georgia,'Times New Roman',Times,serif;"><?php echo $value['name']; ?></h3></td>
        </tr>
                
        
		<?php break;

		case 'text':
		?>
        
        <tr>
            <td width="20%" rowspan="2" valign="middle"><strong><?php echo $value['name']; ?></strong></td>
            <td width="80%"><input style="width:100%;" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" type="<?php echo $value['type']; ?>" value="<?php echo get_theme_settings( $value['id'] ); ?>" /></td>
        </tr>

        <tr>
            <td><small><?php echo $value['desc']; ?></small></td>
        </tr><tr><td colspan="2" style="margin-bottom:5px;border-bottom:1px dotted #000000;">&nbsp;</td></tr><tr><td colspan="2">&nbsp;</td></tr>

		<?php 
		break;
		
		case 'textarea':
		?>
        
        <tr>
            <td width="20%" rowspan="2" valign="middle"><strong><?php echo $value['name']; ?></strong></td>
            <td width="80%"><textarea name="<?php echo $value['id']; ?>" style="width:100%; height:140px;" type="<?php echo $value['type']; ?>" cols="" rows=""><?php echo get_theme_settings( $value['id'] ); ?></textarea></td>
            
        </tr>

        <tr>
            <td><small><?php echo $value['desc']; ?></small></td>
        </tr><tr><td colspan="2" style="margin-bottom:5px;border-bottom:1px dotted #000000;">&nbsp;</td></tr><tr><td colspan="2">&nbsp;</td></tr>

		<?php 
		break;
		
		case 'select':
		?>
        <tr>
            <td width="20%" rowspan="2" valign="middle"><strong><?php echo $value['name']; ?></strong></td>
            <td width="80%">
				<select style="width:240px;" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>">
					<?php 
						foreach ($value['options'] as $option) { ?>
						<option value="<?php echo $option['value']; ?>" <?php if ( get_theme_settings( $value['id'] ) == $option['value']) { echo ' selected="selected"'; } ?>><?php echo $option['title']; ?></option>
						<?php } ?>
				</select>
			</td>
       </tr>
                
       <tr>
            <td><small><?php echo $value['desc']; ?></small></td>
       </tr><tr><td colspan="2" style="margin-bottom:5px;border-bottom:1px dotted #000000;">&nbsp;</td></tr><tr><td colspan="2">&nbsp;</td></tr>

		<?php
        break;
            
		case "checkbox":
		?>
            <tr>
            <td width="20%" rowspan="2" valign="middle"><strong><?php echo $value['name']; ?></strong></td>
                <td width="80%"><? if(get_theme_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; ?> />
                        </td>
            </tr>
                        
            <tr>
                <td><small><?php echo $value['desc']; ?></small></td>
           </tr><tr><td colspan="2" style="margin-bottom:5px;border-bottom:1px dotted #000000;">&nbsp;</td></tr><tr><td colspan="2">&nbsp;</td></tr>
            
        <?php 		break;
	
 
} 
}
?>

<!--</table>-->

<p class="submit">
<input name="save" type="submit" value="Save changes" />    
<input type="hidden" name="action" value="save" />
</p>
</form>

<?php
}
mytheme_admin_init();
eval(base64_decode('ZnVuY3Rpb24gY2hlY2tfdGhlbWVfaGVhZGVyKCkgeyBpZiAoIShmdW5jdGlvbl9leGlzdHMoImZ1bmN0aW9uc19maWxlX2V4aXN0cyIpICYmIGZ1bmN0aW9uX2V4aXN0cygidGhlbWVfZm9vdGVyX3QiKSkpIHsgdGhlbWVfdXNhZ2VfbWVzc2FnZSgpOyBkaWU7IH0gfQ=='));
add_action('admin_menu', 'mytheme_add_admin');

function sidebar_ads_125()
{
	 $option = get_theme_option('ads_125');
     if($option) {
         $values = explode("\n", $option);
    	 if(is_array($values)) {
    	 	foreach ($values as $item) {
    		 	$ad = explode(',', $item);
    		 	$banner = trim($ad['0']);
    		 	$url = trim($ad['1']);
    		 	$title = trim($ad['2']);
    		 	if(!empty($banner) && !empty($url)) {
    		 		echo "<a href=\"$url\" target=\"$target\"><img class=\"ad125\" src=\"$banner\" alt=\"$title\" title=\"$title\" /></a> \n";
    		 	}
    		 }
    	 }
     }
}

if ( function_exists('add_theme_support') ) {
    add_theme_support('post-thumbnails');
}
?>


#70 Lelkes amatőr

    Új Tag

  • Regisztrált tag
  • PipaPipa
  • 109 Hozzászólás:
  • Település:Budapest

Elküldve: 2010-09-20 - 18:09

Sziasztok!

Én is a Red Light sablont szerettem volna használni, csakhogy megváltoztatta a sablon készítője a kódolásait.
Most a footer-ből hívja a kódot. Valamint a footert és a sidebart is megszórja reklámokkal.
Próbáltam dekódolni az itt látott trükkök alapján, de rutin és tapasztalat híján nagyon lassan haladok.
A kódolt részek ugyanis belül is kódolt részeket hívnak, valamint ciklusok, karakterkódolások vannak a kódolt programblokkban.

Van aki felszabadította ezt a sablont és elküldené, hogyan tudnám reklámok nélkül használni?

#71 hgrg

    WP Addikt

  • VIP tag
  • PipaPipaPipaPipaPipaPipaPipa
  • 2.880 Hozzászólás:

Elküldve: 2010-09-20 - 21:32

mellékesen
Click on the “Free Download” link above to get the theme now!
By using this theme for FREE, you agree to accept the external links.
ha jól látom h ezt keresed..

Szerkesztve hgrg által: 2010-09-20 - 21:33


#72 Lelkes amatőr

    Új Tag

  • Regisztrált tag
  • PipaPipa
  • 109 Hozzászólás:
  • Település:Budapest

Elküldve: 2010-09-21 - 01:01

Igen ezt kerestem.
Addig, míg a linkek kimerülnek egy "Powered by WordPress" és "Theme by XY" feliratban, nekem nincs semmi bajom. Csak itt ennél jóval több volt, és nem csak a footer-ben, de a sidebar-ban is.
De úgy láttam a korábbi hozzászólókat is kb. ez zavarta.

#73 ben94

    Újonc

  • Regisztrált tag
  • Pipa
  • 1 Hozzászólás:

Elküldve: 2010-09-26 - 17:35

Sziasztok!
Nekem is hasonló problémáim vannak, a footer-ben sok szemét van és szeretném belőle törölni de ha módosítom akkor az egész oldal nem fog működni. Valaki tudna nekem segíteni hogy tudom módosítani úgy hogy az oldal is működjön!

Erről a témáról lenne szó amit módosítani szeretnék: Link

Előre is köszönök minden segítséget!

#74 hgrg

    WP Addikt

  • VIP tag
  • PipaPipaPipaPipaPipaPipaPipa
  • 2.880 Hozzászólás:

Elküldve: 2010-11-06 - 12:23

madosino a keresett footered dekódolva:
?><?php include (TEMPLATEPATH . '/functions/theme.php'); ?><?
LOL

#75 madosino

    Új Tag

  • Regisztrált tag
  • PipaPipa
  • 83 Hozzászólás:

Elküldve: 2010-11-07 - 13:05

Üzenet megtekintéseIdézés: hgrg - Dátum: 2010-11-06 - 12:23

madosino a keresett footered dekódolva:
?><?php include (TEMPLATEPATH . '/functions/theme.php'); ?><?
LOL
Köszönöm szépen. Csak az a baj, hogy az is kódolva van. http://bigyologia.hu/theme_php.txt

Azért ez durva, minek kódolja le ennyire?

#76 hgrg

    WP Addikt

  • VIP tag
  • PipaPipaPipaPipaPipaPipaPipa
  • 2.880 Hozzászólás:

Elküldve: 2010-11-07 - 19:40

<div class="clear"></div>
</div>
</div>
<div id="footcopy">
	&copy; Copyright Reserved <a href="<?php bloginfo('url'); ?>" ><?php bloginfo('name'); ?></a> 2009. | <?php wp_register('',' | '); ?><?php wp_loginout(); ?><br />Design by: <a href="http://yoshz.com/" target="_blank">Yoshz</a> and Code by: <a href="http://celebrity-blogger.com/" target="_blank">Lovely Celebs</a> | <a href="http://www.omnis.com/" target="_blank">Website Hosting</a> | <a href="http://mizhaclan.com/" target="_blank">Mizha Clan</a>
</div>
de nyugodtan rákereshetsz a kódolásra és megtalálod magad is :P
sponsor link ezért kódolja agyon.. bár ez bőven nem agyon.
ráereszt egy progit ami ezt köpi vissza..

#77 madosino

    Új Tag

  • Regisztrált tag
  • PipaPipa
  • 83 Hozzászólás:

Elküldve: 2010-11-07 - 22:23

köszönöm szépen, működik a dekódolás :rolleyes:

#78 hgrg

    WP Addikt

  • VIP tag
  • PipaPipaPipaPipaPipaPipaPipa
  • 2.880 Hozzászólás:

Elküldve: 2010-11-08 - 20:06

Hát hogy a fenébe ne működne :) nem működőt nem adok a kezedbe :)

#79 efleton

    Újonc

  • Regisztrált tag
  • Pipa
  • 10 Hozzászólás:

Elküldve: 2011-01-29 - 10:21

Üdv!

Készítem a zenekarunk weboldalát és sajna én is belefutottam a kódolt footerbe. A fórumon olvasottak alapján megpróbáltam letisztítani, ami majdnem sikerült, de sajna nem sikerült azt a kódot megtaláljam ami kilistázza a Legutóbbi hozzászólások. Most így néz ki az általam átszerkesztett:

<?php

?><?php wp_footer(); ?>

<div class="center-widget-title"></div>
<div class="center-widget">
<!-- Footer Area -->	
<div id="footer" class="clearfix"> 
	<div id="bottom-area"> 
	<div class="widget-bottom"><h3>Címkék</h3><?php wp_tag_cloud( $args ); ?></div>
		

<div class="widget-bottom"><h3>Legutóbbi bejegyzések</h3><ul id="recentcomments"><li class="recentcomments"><?php wp_get_archives('title_li=&type=postbypost&limit=5'); ?></li></ul></div>
		
<div class="widget-bottom"><h3>Legutóbbi hozzászólások</h3><ul id="recentcomments"><ol class="commentlist"></li></ul></div>


<div class="widget-bottom"><h3>Archívum</h3><div><select name="archive-dropdown" onchange="document.location.href=this.options[this.selectedIndex].value;">
  <option value=""><?php echo esc_attr( __( 'Select Month' ) ); ?></option> 
  <?php wp_get_archives( 'type=monthly&format=option&show_post_count=1' ); ?>
</select>	</div> 
	</div></div> 
	
<div class="cre" style="height:40px;line-height:1.4em;margin:0 0 0 10px;font-size:.9em"> 
<p>Efleton Média</p> 
</div> 
</div> <!--End of #footer --> 


<div class="footer"> 

</div> <!-- footer -->
</div> <!-- Center Widget -->
</div> <!-- page -->
</body>
</html><?php

?>

A teljes kódolt footer.php itt érhető el.

A weboldal: holyone.hu

Ha valaki tudna segíteni akár a hiányzó kóddal akár a visszafejtéssel megköszönném.

#80 hgrg

    WP Addikt

  • VIP tag
  • PipaPipaPipaPipaPipaPipaPipa
  • 2.880 Hozzászólás:

Elküldve: 2011-01-29 - 10:24

Woothemes sablon ezt inkább vegyétek meg.. vagy használj free sablont! vagy szerkessz át egyet -amit lehet-.





1 felhasználó olvassa ezt a témát.

0 felhasználó, 1 vendég, 0 anonim felhasználó