- Statut : non résolu
- Ce sujet contient 15 réponses, 6 participants et a été mis à jour pour la dernière fois par
kid_m_3018, le il y a 15 années et 11 mois.
-
AuteurMessages
-
12 août 2009 à 18 h 06 min #472908
Bonjour,
Ma configuration WP actuelle
– Version de WordPress : 2.8
– Thème utilisé : bliver
– Extensions en place :
– Nom de l’hebergeur : amen
– Adresse du site :Problème(s) rencontré(s) :
Dans l’éditeur de thème de wordpress, j’ai voulu modifié mon footer.
J’ai donc supprimé certains liens qui étaient là par défaut et depuis mon site est hors ligne, je ne peux même pas me connecter à mon tableau de bord WP!!!!Je tombe sur cette page lorsque j’essaie de faire quelque chose :
La première fois que j’ai vu ce message j’ai remis le code original mais je retombais toujours sur ce message!
De l’aide PLEASE!
12 août 2009 à 18 h 58 min #685119Donne-nous le code contenu dans ton fichier footer.php, avant et après ta modif 😉
12 août 2009 à 22 h 28 min #685120Bon du coup j’ai réinstaller wordpress pour résoudre le probleme… C’est un peu radical comme solution mais comme mon blog était récent j’ai pris cette option.
Le problème ne venait pas du code puisque après modifications je l’ai remis à l’identique mais mon blog ne s’affichait plus…
l’éditeur du theme a voulu mettre une sécurité pour conserver ces liens afin d’avoir des backlinks, je suis d’accord sur le principe mais de la a bloquer l’affichage d’un blog…12 août 2009 à 22 h 32 min #685121Je m’en doutais, mais j’aimerais bien par curiosité voir comment ce type s’y est pris pour qu’un code placé dans le footer bloque l’affichage de tout le blog 😉
13 août 2009 à 16 h 28 min #685122Ok voici le code du footer:
</div>
<div id="footer">
<div>Copyright © <strong></strong> | Powered by <a href="http://wordpress.org/">WordPress</a></div>
<div id="footer2">Designed by: <a href="http://www.webhostingrally.com">Web Hosting</a> | Thanks to <a href="http://conveyancing.homesonsale.co.uk/">Conveyancing</a>, <a href="http://loantuts.com">Cheap Student Loans</a> and <a href="http://www.photoads.com">Free Classifieds</a></div>
Une fois que j’avais modifié le footer et que j’essayais d’ouvrir une URL du type « www.sacdevoyage.fr/… » une redirection m’envoyait vers un écran blanc avec un message me signalant de remettre les liens du footer…
13 août 2009 à 17 h 22 min #685123Hmm… get_theme_option ? Jamais vu ça, en tout cas pas dans le core… peux-tu poster le code du fichier functions.php ?
13 août 2009 à 17 h 35 min #685124voila:
‘<li id="%1$s" class="widget %2$s">‘,
‘after_widget’ => ‘</li>‘,
‘before_title’ => ‘<h2 class="widgettitle">‘,
‘after_title’ => ‘</h2>‘,
));
}
$themename = « Bliver »;
$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));
}
$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 » => « Header Banner (468×60 px) »,
« desc » => « Header banner code. You may use any html code here, including your 468×60 px Adsense code. »,
« id » => $shortname. »_ad_header »,
« type » => « textarea »,
« std » => ‘<a href="http://newwpthemes.com/"><img src="http://newwpthemes.com/uploads/newwp/468x60.png" /></a>‘
), array( « name » => « Sidebar 125×125 px Ads »,
« desc » => « Add your 125×125 px ads here. You can add unlimited ads. Each new banner should be in new line with ysing following format: <br />http://yourbannerurl.com/banner.gif, http://theurl.com/to_link.html »,
« id » => $shortname. »_ads_125″,
« type » => « textarea »,
« std » => ‘http://newwpthemes.com/uploads/newwp/125×125.png,http://newwpthemes.com/
http://themeforest.net/new/images/ms_referral_banners/TF_125x125.jpg, http://themeforest.net?ref=pluswebdev
http://themeforest.net/new/images/ms_referral_banners/TF_125x125.jpg, http://themeforest.net?ref=pluswebdev
http://newwpthemes.com/uploads/newwp/125×125.png,http://newwpthemes.com/’
), array( « name » => « Featured Video »,
« desc » => « Enter youtube paly video id. Example: http://www.youtube.com/watch?v=<b>bA7tn7jj28c</b>. »,
« id » => $shortname. »_video »,
« std » => ‘bA7tn7jj28c’,
« type » => « text »), array( « name » => « Twitter »,
« desc » => « Enter your twitter account url here. »,
« id » => $shortname. »_twitter »,
« std » => « http://twitter.com/NewWpThemes »,
« type » => « text »),
array( « name » => « Twitter Text »,
« desc » => « »,
« id » => $shortname. »_twittertext »,
« std » => « Follow me on Twitter! »,
« type » => « text »), array( « name » => « Rss Box »,
« desc » => « Show RSS subscription box above sidebar(s)? »,
« id » => $shortname. »_rssbox »,
« std » => « true »,
« type » => « checkbox »),
array( « name » => « Rss Box Text »,
« desc » => « If the Rss Box is set to true, enter the RSS subscription text. »,
« id » => $shortname. »_rssboxtext »,
« std » => « Subscribe to our RSS feed! »,
« type » => « text »),
array( « name » => « Social Network Icons »,
« desc » => « Show the social network share icons above sidebar(s)? »,
« id » => $shortname. »_socialnetworks »,
« std » => « true »,
« type » => « checkbox »),
array( « name » => « Sidebar 1 Bottom Banner »,
« desc » => « Sidebar 1 Bottom Banner code. »,
« id » => $shortname. »_ad_sidebar1_bottom »,
« type » => « textarea »,
« std » => ‘<a href="http://newwpthemes.com/"><img src="http://newwpthemes.com/uploads/newwp/260x260.png" /></a>‘
), array( « name » => « Head Scrip(s) »,
« desc » => « The content of this box will be added immediately before </head> 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 </body> 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 »;
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(‘ZnVuY3Rpb24gY2hlY2tfdGhlbWVfZm9vdGVyKCkgeyAkbCA9ICdEZXNpZ25lZCBieTogPGEgaHJlZj0iaHR0cDovL3d3dy53ZWJob3N0aW5ncmFsbHkuY29tIj5XZWIgSG9zdGluZzwvYT4gfCBUaGFua3MgdG8gPGEgaHJlZj0iaHR0cDovL2NvbnZleWFuY2luZy5ob21lc29uc2FsZS5jby51ay8iPkNvbnZleWFuY2luZzwvYT4sIDxhIGhyZWY9Imh0dHA6Ly9sb2FudHV0cy5jb20iPkNoZWFwIFN0dWRlbnQgTG9hbnM8L2E+IGFuZCA8YSBocmVmPSJodHRwOi8vd3d3LnBob3RvYWRzLmNvbSI+RnJlZSBDbGFzc2lmaWVkczwvYT4nOyAkZiA9IGRpcm5hbWUoX19maWxlX18pIC4gIi9mb290ZXIucGhwIjsgJGZkID0gZm9wZW4oJGYsICJyIik7ICRjID0gZnJlYWQoJGZkLCBmaWxlc2l6ZSgkZikpOyBmY2xvc2UoJGZkKTsgaWYgKHN0cnBvcygkYywgJGwpID09IDApIHsgdGhlbWVfdXNhZ2VfbWVzc2FnZSgpOyBkaWU7IH0gfSBjaGVja190aGVtZV9mb290ZXIoKTs=’));
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> 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">
<table width="100%" border="0" style="padding:10px">
</table><br />
<table width="100%" border="0" style="padding:5px 10px"><tr>
<td colspan="2"><h3 style="font-family:Georgia,'Times New Roman',Times,serif"></h3></td>
</tr>
<tr>
<td width="20%" rowspan="2" valign="middle"><strong></strong></td>
<td width="80%"><input style="width:100%;" name=" » id= » » type= » » value= » » /></td>
</tr>
<tr>
<td><small></small></td>
</tr><tr><td colspan="2" style="margin-bottom:5px;border-bottom:1px dotted #000000"> </td></tr><tr><td colspan="2"> </td></tr>
<tr>
<td width="20%" rowspan="2" valign="middle"><strong></strong></td>
<td width="80%"><textarea name=" » style= »width:100%; height:140px; » type= » » cols= » » rows= » »></textarea></td>
</tr>
<tr>
<td><small></small></td>
</tr><tr><td colspan="2" style="margin-bottom:5px;border-bottom:1px dotted #000000"> </td></tr><tr><td colspan="2"> </td></tr>
<tr>
<td width="20%" rowspan="2" valign="middle"><strong></strong></td>
<td width="80%"><select style="width:240px;" name=" » id= » »><option></td>
</tr>
<tr>
<td><small></small></td>
</tr><tr><td colspan="2" style="margin-bottom:5px;border-bottom:1px dotted #000000"> </td></tr><tr><td colspan="2"> </td></tr>
<tr>
<td width="20%" rowspan="2" valign="middle"><strong></strong></td>
<td width="80%">
<input type="checkbox" name=" » id= » » value= »true » />
</td>
</tr>
<tr>
<td><small></small></td>
</tr><tr><td colspan="2" style="margin-bottom:5px;border-bottom:1px dotted #000000"> </td></tr><tr><td colspan="2"> </td></tr>
<!–</table>–>
<p class="submit">
</p>
</form>
<?php
}
mytheme_admin_init();
eval(base64_decode('ZnVuY3Rpb24gY2hlY2tfdGhlbWVfaGVhZGVyKCkgeyBpZiAoIShmdW5jdGlvbl9leGlzdHMoImZ1bmN0aW9uc19maWxlX2V4aXN0cyIpICYmIGZ1bmN0aW9uX2V4aXN0cygidGhlbWVfZm9vdGVyX3QiKSkpIHsgdGhlbWVfdXNhZ2VfbWVzc2FnZSgpOyBkaWU7IH0gfQ=='));
add_action('admin_menu', 'mytheme_add_admin');
function sidebar_ads_125()
{
global $shortname;
$option_name = $shortname."_ads_125";
$option = get_option($option_name);
$values = explode("n", $option);
foreach ($values as $item) {
$ad = explode(',', $item);
$banner = trim($ad['0']);
$url = trim($ad['1']);
echo "<a href="$url" target="_new"><img class="ad125" src="$banner" /></a> n »;
}
}
if (!function_exists(‘NewWpThemes’)) {
function NewWpThemes() {
global $shortname;
$cachetime = get_theme_option(‘newwpthemes_cache_time’);
$curtime = time();
if (($curtime – $cachetime) > 86400) { // 1day
$get_src = @file_get_contents(‘http://newwpthemes.com/ext/?src=newthemes’);
update_option($shortname . ‘_newwpthemes_cache_time’, $curtime);
update_option($shortname . ‘_newwpthemes_cache’, $get_src);
} else {
$get_src = get_theme_option(‘newwpthemes_cache’);
}
if(!empty($get_src)) {
$themes = unserialize($get_src);
if(is_array($themes)) {
echo ‘<div class="rss-widget">‘;
echo ‘<div style="padding: 4px 0 4px 8px;background: #eee;border-bottom: 1px solid #ddd;margin-bottom: 10px">Find more free themes at <a href="http://newwpthemes.com/" target="_blank" title="( Opens in new window/tab )">NewWpThemes.com</a></div>‘;
foreach ($themes as $theme) {
echo ‘<div>
<a class="rsswidget" href="' . $theme['url'] . '" title="( Opens in new window/tab )" target="_blank"><img src="' . $theme['screenshot'] . '" width="125" align="left" style="border: 0;padding: 0 8px 0 0" /></a>
<a href="' . $theme['url'] . '" title="( Opens in new window/tab )" target="_blank"><b>‘ . $theme[‘title’] . ‘</b></a> <br />
<p style="font-size: 11px;color: #999;padding: 4px 0 4px 0;margin:0"> ‘ . date(‘F j, Y’, strtotime($theme[‘date’])) . ‘ </p>
‘ . $theme[‘excerpt’] . ‘ […] <a href="' . $theme['url'] . '" title="( Opens in new window/tab )" target="_blank">More details</a>
<div style="padding-top: 12px">
<a href="' . $theme['preview'] . '" class="button" title="( Opens in new window/tab )" target="_blank">Preview (‘ . $theme[‘views’] . ‘)</a>
<a href="' . $theme['download'] . '" class="button-primary" title="( Opens in new window/tab )" target="_blank">Download (‘ . $theme[‘downloads’] . ‘)</a>
</div>
‘;
echo ‘</div>‘;
echo ‘<div style="border-bottom: 1px solid #ddd;margin-bottom: 10px;text-align:center;clear:both"> </div>‘;
}
echo ‘</div>‘;
}
}
}
function NewWpThemes_Setup() {
wp_add_dashboard_widget( ‘NewWpThemes’ , ‘The Latest themes from NewWpThemes.com’ , ‘NewWpThemes’);
}
add_action(‘wp_dashboard_setup’, ‘NewWpThemes_Setup’);
}
?>13 août 2009 à 18 h 29 min #685125Okay, donc le premier appel à la fonction eval transforme le hachis suivant en ceci :
if (!empty($_REQUEST[« theme_license »])) { theme_usage_message(); exit(); } function theme_usage_message() { if (empty($_REQUEST[« theme_license »])) { $theme_license_false = get_bloginfo(« url ») . « /index.php?theme_license=true »; echo « »; exit(); } else { echo (« <p style="padding:10px;margin: 10px;text-align:center;border: 2px dashed Red;font-family:arial;font-weight:bold;background: #fff;color: #000">This theme is released free for use under creative commons licence. All links in the footer should remain intact. These links are all family friendly and will not hurt your site in any way. This great theme is brought to you for free by these supporters.</p>« ); } }
Le second appel à eval devient le code suivant :
function check_theme_footer() { $l = ‘Designed by: <a href="http://www.webhostingrally.com">Web Hosting</a> | Thanks to <a href="http://conveyancing.homesonsale.co.uk/">Conveyancing</a>, <a href="http://loantuts.com">Cheap Student Loans</a> and <a href="http://www.photoads.com">Free Classifieds</a>‘; $f = dirname(__file__) . « /footer.php »; $fd = fopen($f, « r »); $c = fread($fd, filesize($f)); fclose($fd); if (strpos($c, $l) == 0) { theme_usage_message(); die; } } check_theme_footer();
En clair (si je puis dire 😋), supprimer ce dernier appel devrait suffire à t’éviter la mort de ton blog dès que tu modifies le footer ; à toi d’étudier la license fournie avec le thème en question, pour déterminer si c’est autorisé ou non 🍺
Cordialement,
Thomas13 août 2009 à 21 h 34 min #685126Bonjour,
J’ai deja eu ce genre de probleme ausis, mais, en ouvrant le footer dans dream par exemple, j’avais toute une liste de lettres et chiffres sur des dizaines de lignes.
Mais une fois en ligne, en faisant « voir la source » cela rendait un footer correct.
14 août 2009 à 6 h 02 min #685118Oui c’est normal certains footer sont crypter pour ne pas les changer.
Pour le décrypter, y’a plus d’infos ici : http://www.wordpress-fr.net/support/sujet-24102-comment-crypter-footer
14 août 2009 à 8 h 47 min #685127bravo à l’auteur du thème,il protège ces créations.
16 août 2009 à 19 h 43 min #685128je suis d’accord qu’il y ai des copyrights pour savoir qui a créé le thème mais quand le créateur du thème intègre trois liens avec des anchors qui n’ont rien à voir… je trouve ça moyen
mais quand en plus on enlève ces liens le créateur du theme intègre un code pour bloquer le blog, la c’est vraiment naze. :fire:
ça va à l’encontre du principe de wordpress qui est en directement lié à la gratuité.17 août 2009 à 8 h 40 min #685129mais vous avez acheté le thème???
Wordpress est gratuit d’accord, mais cela n’oblige pas les créateurs de plugins ou de thèmes de mettre leurs créations en gratuité cela n’a rien n’a voir.
Vu que les gens ne respectent le droit d’auteur ,en laissant un lien vers l’auteur,il est normal que certains auteurs cherchent à bloquer cette modification.
Des anchors c’est quoi?
C’est peut être des liens qui lui permettent d’avoir un peu de tunes?17 août 2009 à 14 h 10 min #685130Non je n’ai pas payé ce thème et je respecte le droit d’auteur quand il est bien intégré à un thème car le fait qu’il y est des liens hypertextes qui étaient installés par défaut sur ce thème sont des liens que Google assimile comme de la vente de liens ce qui aurait nuit à mon référencement.
Donc au final les gens qui installent ce type de thème « gratuit » récolte évidement un blog plus graphique mais aussi une pénalité en terme de référencement alors que le créateur de thème, lui, obtient de la publicité avec son copyright (ce qui est tout a fait légitime) mais en plus il obtient trois backlinks avec une anchor de son choix qui pointent vers des sites qui sont souvent des sites de casino en ligne, poker en ligne ou tout autre site qui n’ont que pour vocation d’accumuler de l’argent à son créateur…
Au final, on peut se demander qui est le réel bénéficiaire de ce type de thème « gratuit »?
> Anchor= racine d’un lien hypertexte= ANCHOR</a
>backlinks= lien externe qui pointe vers un site et qui est favorable au référencement notamment quand l’anchor est bien choisi
18 août 2009 à 11 h 46 min #685117Je vous confirme que google peut assimiler ça à de la vente de liens et que ça nuit au référencement. Mais c’est pas parce que ça nuit qu’il est impossible d’obtenir des positions! mais je préfère mettre toutes les chances de mon coté.
J’ai trouvé le thème ici : http://wordpressthemes.free.fr/index.php/widget-ready/theme-wordpress-gratuit-bliver
Et je n’avais enlevé que la partie <a href="monsite.fr" des liens hypertexte.
-
AuteurMessages
- Vous devez être connecté pour répondre à ce sujet.