Ayuda para quitar imagen molesta del header en AnunciosClasifiK2.com

  • Autor Autor __Cc__
  • Fecha de inicio Fecha de inicio
__Cc__

__Cc__

Iota
Verificación en dos pasos activada
Hola compañeros!

Después de un sin fin de intentos me veo en la obligación de escribir este post.

Si veis en el header de AnunciosClasifiK2.com sale una imagen con un aspa roja.

No logro quitarla,ni se la ruta que sigue ni donde está.Lo que hice hace días,es localizarla por ftp en el header y quitarla,pero se ha quedado asi,como lo ven ahora.

Tb,he entrado al header.php y exactamente ni sé que debo eliminar de ahí para quitarla,asi que no toqué nada.

¿alguien sabe como solucionarlo?

Gracias
 
Al parecer soy daltonico, no veo tal aspa roja en el Header
 
Yo tampoco lo veo, borra tus temporales, tal ves se esta guardando ahí. Lo que si veo es el header muy feo la verdad. Ni siquiera combina con el sitio :S
 
No te preocupes viejo amigo,yo te lo pongo remarcado con verde donde aparece el aspa,aunque no se vea bien con este pantallazo.Pero se puede ver además que es una imagen rectangular y aparece el rectangulo tb!

Enlace eliminado
 
Ahh estas con IE, lo que pasa es que estas llamando una imagen dentro del codigo que no existe solo busca en el codigo y borra.

2.9.2/classipress/images/468x60-banner.jpg
 
Ahh estas con IE, lo que pasa es que estas llamando una imagen dentro del codigo que no existe solo busca en el codigo y borra.

2.9.2/classipress/images/468x60-banner.jpg

Si te refieres a conectarme por ftp hasta llegar a images,esa es la imagen que eliminé precisamente,y sale el aspa!
 
Última edición:
Pues supongo, solo busca donde esta el logo ese que tienes y busca esa linea donde manda llamar a un banner que no existe.
 
borro el pedaso de codigo que haga la llamada a esa imagen 🙂 debe de estar en tu header, checa el archivo y busca la ruta correspondiente!
 
he encontrado esto,en functions.php del cp del theme! ¿como lo dejo? No vaya a quitar algo que valga :$

-------------------------------------------------------------------------

<?php
ini_set( 'display_errors', 1 );
//error_reporting( E_ALL );

// VARIABLES
$functions_path = TEMPLATEPATH . '/functions/';


// Options panel settings
require_once ($functions_path . '/admin-options.php');
require_once ($functions_path . '/custom-options.php');


function selfURL() {
$s = empty($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on") ? "s" : "";
$protocol = "http".$s;
$port = ($_SERVER["SERVER_PORT"] == "80") ? ""
: (":".$_SERVER["SERVER_PORT"]);
return $protocol."://".$_SERVER['SERVER_NAME'].$port.$_SERVER['REQUEST_URI'];
}

function email_spam($addy) {
$email = str_replace("@", "gd6j83ksl", $addy);
$email = str_replace(".", "m3gd0374h", $addy);
echo $email;
}

function cp_filter($text) {
$text = strip_tags($text);
$text = trim($text);
$char_limit = 5000;
if( strlen( $text ) > $char_limit ) {
$text = substr( $text, 0, $char_limit );
}
return $text;
}

function alphanumericAndSpace( $string )
{
return preg_replace('/[^a-zA-Z0-9\s]/', '', $string);
}

function cp_check_email($email) {
if (!ereg("^[^@]{1,64}@[^@]{1,255}$", $email)) {
return false;
}
$email_array = explode("@", $email);
$local_array = explode(".", $email_array[0]);
for ($i = 0; $i < sizeof($local_array); $i++) {
if (!ereg("^(([A-Za-z0-9!#$%&'*+/=?^_`{|}~-][A-Za-z0-9!#$%&'*+/=?^_`{|}~\.-]{0,63})|(\"[^(\\|\")]{0,62}\"))$", $local_array[$i])) {
return false;
}
}
if (!ereg("^\[?[0-9\.]+\]?$", $email_array[1])) {
$domain_array = explode(".", $email_array[1]);
if (sizeof($domain_array) < 2) {
return false;
}
for ($i = 0; $i < sizeof($domain_array); $i++) {
if (!ereg("^(([A-Za-z0-9][A-Za-z0-9-]{0,61}[A-Za-z0-9])|([A-Za-z0-9]+))$", $domain_array[$i])) {
return false;
}
}
}
return true;
}

function classi_time($m_time) {
$t_time = get_the_time(__('Y/m/d g:i:s A'));
$time = get_post_time('G', true, $post);
$time_diff = time() - $time;

if ( $time_diff > 0 && $time_diff < 24*60*60 )
$h_time = sprintf( __('%s ago'), human_time_diff( $time ) );
else
//$h_time = mysql2date(__('n/j/Y'), $m_time);
$h_time = mysql2date(get_option('date_format'), $m_time);
echo $h_time;
}


function classi_lightbox ($images) {
$matches = explode(",", $images);
foreach($matches as $var) {
if ($var != "") {
$thumb_var = str_replace(get_option('home')."/wp-content/uploads/classipress/", "", $var);
$single_thumb_img_url = get_bloginfo('template_url')."/includes/img_resize.php?width=100&amp;height=100&amp;url=".$thumb_var;
echo "<a href=\"$var\" rel=\"group\"><img src=\"$single_thumb_img_url\" class=\"size-thumbnail\" alt=\"".get_the_title()."\" title=\"".get_the_title()."\" /></a>"."\n";
} else {
if ( $matches[0] == "") {
_e('No hay imágenes.','cp');
}
}
}
}


// Checks if a user is logged in, if not redirects them to the login page
function auth_redirect_login() {
$user = wp_get_current_user();
if ( $user->id == 0 ) {
nocache_headers();
wp_redirect(get_option('siteurl') . '/wp-login.php?redirect_to=' . urlencode($_SERVER['REQUEST_URI']));
exit();
}
}


function classi_perm_check($permissions, $permission_err) {
if ( $permissions == "no" ) {
//echo "no perms";
if ( is_user_logged_in() ){
//echo "user logged in";
require_once dirname( __FILE__ ) . '/post-form.php';
} else {
//echo "user NOT logged in";
echo "<div class=\"clear\"></div>";
echo "<div class=\"cant_post\" id=\"formbox\" style=\"display: none;\">";
if ($permission_err == "") {
_e('Tiene que registrarse para publicar su anuncio clasificado.Gracias!','cp');
} else {
echo $permission_err;
}
echo "<br /><a href=\"".get_bloginfo('url')."/wp-login.php?action=register\">";
_e('Register','cp') . "</a>";
echo "</div>";
};
} else {
//echo "yes perms";
require_once dirname( __FILE__ ) . '/post-form.php';
}
}

function custom_search_join($join) {
if ( is_search() && isset($_GET['s'])) {
global $wpdb;
$join = " LEFT JOIN $wpdb->postmeta ON $wpdb->posts.ID = $wpdb->postmeta.post_id ";
}
return($join);
}

function custom_search_groupby($groupby) {
if ( is_search() && isset($_GET['s'])) {
global $wpdb;
$groupby = " $wpdb->posts.ID ";
}
return($groupby);
}

function custom_search_where($where) {
$old_where = $where;
if (is_search() && isset($_GET['s'])) {
global $wpdb;
$customs = Array('name', 'price', 'phone', 'location');
$query = '';
$var_q = stripslashes($_GET['s']);
if ($_GET['sentence']) {
$search_terms = array($var_q);
}
else {
preg_match_all('/".*?("|$)|((?<=[\\s",+])|^)[^\\s",+]+/', $var_q, $matches);
$search_terms = array_map(create_function('$a', 'return trim($a, "\\"\'\\n\\r ");'), $matches[0]);
}
$n = ($_GET['exact']) ? '' : '%';
$searchand = '';
foreach((array)$search_terms as $term) {
$term = addslashes_gpc($term);
$query .= "{$searchand}(";
$query .= "($wpdb->posts.post_title LIKE '{$n}{$term}{$n}')";
$query .= " OR ($wpdb->posts.post_content LIKE '{$n}{$term}{$n}')";
foreach($customs as $custom) {
$query .= " OR (";
$query .= "($wpdb->postmeta.meta_key = '$custom')";
$query .= " AND ($wpdb->postmeta.meta_value LIKE '{$n}{$term}{$n}')";
$query .= ")";
}
$query .= ")";
$searchand = ' AND ';
}
$term = $wpdb->escape($var_q);
if (!$_GET['sentense'] && Count($search_terms) > 1 && $search_terms[0] != $var_q) {
$search .= " OR ($wpdb->posts.post_title LIKE '{$n}{$term}{$n}')";
$search .= " OR ($wpdb->posts.post_content LIKE '{$n}{$term}{$n}')";
}

if (!empty($query)) {
$where = " AND ({$query}) AND ($wpdb->posts.post_status = 'publish') ";
}
}
return($where);
}

function gmaps_js() {
?>
<script type="text/javascript">
//<![CDATA[

// Check to see if this browser can run the Google API
if (GBrowserIsCompatible()) {

var gmarkers = [];
var htmls = [];
var to_htmls = [];
var from_htmls = [];
var i=0;

var marker_address = "<p style='font-family:Arial; font-size:12px;'><strong><?php the_title(); ?></strong><br>" + address + "</p>";

// A function to create the marker and set up the event window
function createMarker(point,name,html) {
var marker = new GMarker(point);

// The info window version with the "to here" form open
to_htmls = html + '<p style="font-family:Arial; font-size:75%;"><?php _e('Directions:', 'cp');?> <b><?php _e('To here', 'cp');?><\/b> - <a href="javascript:fromhere(' + i + ')"><?php _e('From here', 'cp');?><\/a>' +
'<br>Start address:<form action="http://maps.google.com/maps" method="get" target="_blank">' +
'<input type="text" size="40" maxlength="40" name="saddr" id="saddr" value="" /><br/><br/>' +
'<input class="lbutton" value="<?php _e('Get Directions', 'cp');?>" type="submit"><br/><br/><br/></p>' +
'<input type="hidden" name="daddr" value="' + address + '"/>';

// The info window version with the "to here" form open
from_htmls = html + '<p style="font-family:Arial; font-size:75%;"><?php _e('Directions:', 'cp');?> <a href="javascript:tohere(' + i + ')"><?php _e('To here', 'cp');?><\/a> - <b><?php _e('From here', 'cp');?><\/b>' +
'<br>End address:<form action="http://maps.google.com/maps" method="get"" target="_blank">' +
'<input type="text" size="40" maxlength="40" name="daddr" id="daddr" value="" /><br/><br/>' +
'<input class="lbutton" value="<?php _e('Get Directions', 'cp');?>" type="submit"><br/><br/><br/></p>' +
'<input type="hidden" name="saddr" value="' + address + '"/>';

// The inactive version of the direction info
html = html + '<p style="font-family:Arial; font-size:75%;"><?php _e('Directions:', 'cp');?> <a href="javascript:tohere('+i+')"><?php _e('To here', 'cp');?><\/a> - <a href="javascript:fromhere('+i+')"><?php _e('From here', 'cp');?><\/a></p>';

GEvent.addListener(marker,"click",function(){marker.openInfoWindowHtml(html)});gmarkers=marker;htmls=html;i++;return marker}

// functions that open the directions forms
function tohere(i){gmarkers.openInfoWindowHtml(to_htmls)}function fromhere(i){gmarkers.openInfoWindowHtml(from_htmls)}

// Display the map, with some controls and set the initial location
var map = new GMap2(document.getElementById("map"));
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());

geocoder = new GClientGeocoder();
geocoder.getLatLng(
address,
function(point) {
if (!point) {
document.getElementById("map_canvas").innerHTML = "<p style='font-family:Arial; font-size:75%;'>" + address + " <strong><?php _e('Address was not found', 'cp');?></strong></p>";
} else {
map.setCenter(point, 13);
var marker = new GMarker(point);
var marker = createMarker(point,'', marker_address)
map.addOverlay(marker);
GEvent.trigger(marker, "click");
}
}
);

}
 
// display a warning if the browser was not compatible
else {
alert("<?php _e('Sorry, the Google Maps API is not compatible with this browser', 'cp');?>");
}
//]]>
</script>


<?php

}

function cp_timeleft($theTime)
{
$now = strtotime("now");
$timeLeft = $theTime - $now;

$days_label = __('days','cp');
$day_label = __('day','cp');
$hours_label = __('hours','cp');
$hour_label = __('hour','cp');
$mins_label = __('mins','cp');
$min_label = __('min','cp');
$secs_label = __('secs','cp');
$r_label = __('remaining','cp');
$expired_label = __('Ad has expired','cp');

if($timeLeft > 0)
{
$days = floor($timeLeft/60/60/24);
$hours = $timeLeft/60/60%24;
$mins = $timeLeft/60%60;
$secs = $timeLeft%60;

if($days == 01) {$d_label=$day_label;} else {$d_label=$days_label;}
if($hours == 01) {$h_label=$hour_label;} else {$h_label=$hours_label;}
if($mins == 01) {$m_label=$min_label;} else {$m_label=$mins_label;}

if($days){$theText = $days . " " . $d_label;
if($hours){$theText .= ", " .$hours . " " . $h_label;}}
elseif($hours){$theText = $hours . " " . $h_label;
if($mins){$theText .= ", " .$mins . " " . $m_label;}}
elseif($mins){$theText = $mins . " " . $m_label;
if($secs){$theText .= ", " .$secs . " " . $secs_label;}}
elseif($secs){$theText = $secs . " " . $secs_label;}}
else{$theText = $expired_label;}
return $theText;
}

function cp_cat_fees() {
$categories = get_categories('orderby=name&order=asc&hide_empty=0');
$i = 0;
echo "\n<table style='border: solid 0px; padding: 0; margin: 0px auto;'>\n";

foreach ($categories as $cat) {
$cat_name = $cat->cat_name;
$cat_id = $cat->cat_ID;

if (($i % 2) == 0){ echo "<tr>\n";}

$cat_price = get_option('cp_cat_price_'.$cat_id);
if ($cat_price == "") { $cat_price="0"; }

echo "<td align='right' nowrap style=\"padding-bottom:10px;\">$cat_name:&nbsp;</td>\n";
echo "<td nowrap style=\"color:#bbb;\"><input name='catarray[cp_cat_price_".$cat_id."]' type='text' size='10' maxlength='100' value='".$cat_price."' />&nbsp;".get_option("paypal_currency")."</td>\n";
echo "<td cellspan='2' width='200'>&nbsp;</td>";

if (($i % 2) != 0) { echo "</tr>\n\n"; }
$i++;

}
echo "</table>";
}


function cp_header_ad_468x60 () {

if (!get_option('cp_adcode_468x60_checkbox')) {

if (get_option('cp_adcode_468x60') <> "") {

echo stripslashes(get_option('cp_adcode_468x60'));

} else {

if (!get_option('cp_adcode_468x60_url') || !get_option('cp_adcode_468x60_dest')) {

echo '<a href="#"><img src="';
echo bloginfo("template_directory").'/images/468x60-banner.jpg" border="0" width="468" height="60" alt="" /></a>';

} else {

echo '<a href="' . get_option("cp_adcode_468x60_dest") . '" target="_blank"><img src="' . get_option("cp_adcode_468x60_url") . '" border="0" /></a>';

}
}
}
}


function cp_single_ad_336x280 () {

if (!get_option('cp_adcode_336x280_checkbox')) {

echo "<h3>";
echo _e('Sponsored Links','cp') . "</h3>";
echo "<div class='adsense-336'>";

if (get_option('adsense_box') <> "") {

echo stripslashes(get_option('adsense_box'));

} else {

if (get_option('cp_adcode_336x280_url') || !get_option('cp_adcode_336x280_dest')) {

echo '<a href="' . get_option("cp_adcode_336x280_dest") . '" target="_blank"><img src="' . get_option("cp_adcode_336x280_url") . '" border="0" /></a>';

}
}
echo "</div>";
}
}



function cat_img() {
$cat = wp_dropdown_categories('orderby=id&order=ASC&hide_empty=0&echo=0');
$cat = str_replace("\n", "", $cat);
$cat = str_replace("\t", "", $cat);
$cat = str_replace("<select name='cat' id='cat' class='postform' >", "", $cat);
$cat = str_replace("<option class=\"level-0\" value=\"", "", $cat); $cat = str_replace("<option class=\"level-1\" value=\"", "", $cat);
$cat = str_replace("<option class=\"level-2\" value=\"", "", $cat); $cat = str_replace("<option class=\"level-3\" value=\"", "", $cat);
$cat = str_replace("<option class=\"level-4\" value=\"", "", $cat);
$cat = str_replace("</option></select>", "", $cat);
$cat = str_replace("</option>", "_", $cat);
$cat = str_replace("\">", "-", $cat);

$cat = explode("_", $cat);
foreach($cat as $category)
{
$category = explode("-", $category);
$cat_number = $category[0];
$cat_name = $category[1];
echo "<div class=\"one_category\">";
if (get_option("cat$cat_number") == NULL) { $nothing = ' <span class="nothing">( this category has no icon yet )</span>'; } else { $nothing = ''; }
echo "<div class=\"one_category_name\"><b>$cat_name</b>$nothing</div><br />\n";
for($i=1;$i<55;$i+=1){
if (get_option("cat$cat_number") == $i) { $check = ' checked="checked"'; $selected = " style=\"background-color: #5795C3;\""; } else { $check = ''; $selected = ''; }
echo "<div class=\"one_cat_img\"$selected>\n";
echo "<input type=\"radio\" class=\"form-table-radio\" name=\"cat$cat_number\" id=\"$cat_number$i\" value=\"$i\"$check />";
echo "<label for=\"$cat_number$i\">";
echo "<img src=\"".get_bloginfo('template_url')."/images/category-icons/$i.png\" alt=\"\" />";
echo "</label>\n";
echo "</div>\n";
}
echo "<div style=\"clear: both;\"></div>";
echo "</div>";
}

}

/**
* Template tag which includes the classified ad form into the page
* jQuery effects are used in global.js to slide the form in and
* out of the page when the "Post a Classified" button is clicked
*/
function include_classified_form( ) {
global $err;
if ( get_option("permissions") == "no" ) {
if ( is_user_logged_in() ){
require_once dirname( __FILE__ ) . '/post-form.php';
} else {
echo "<div class='clear'></div><div class='cant_post' id='formbox' style='display: none;'>";
if (get_option("permission_err") == "") { _e('You have to register in order to add a classified.','cp');
} else { echo get_option("permission_err"); }
echo "<br /><a href=\"".get_bloginfo('url')."/wp-login.php?action=register\">" . __('Register','cp') . "</a></div>";
};
} else { require_once dirname( __FILE__ ) . '/post-form.php'; }
}

// injects custom stylesheet into the classipress options page in WordPress
function admin_head() {
echo '<link rel="stylesheet" type="text/css" href="'.get_bloginfo('template_directory').'/functions/admin-style.css" media="screen" />';
}

function classipress_options() {
add_menu_page(__('ClassiPress'), __('ClassiPress','cp'), 8, basename(__FILE__), 'classipress', 'http://xmobile.yw.sk/favicon.ico');
add_submenu_page(basename(__FILE__), __('General Configuration','cp'), __('Configure','cp'), '10', basename(__FILE__), 'classipress');
add_submenu_page(basename(__FILE__), __('Settings','cp'), __('Settings','cp'), '10', 'settings', 'classi_settings');
add_submenu_page(basename(__FILE__), __('Payment Options','cp'), __('Payments','cp'), '10', 'payments', 'classi_payments');
add_submenu_page(basename(__FILE__), __('Category Options','cp'), __('Categories','cp'), '10', 'categories', 'classi_cats');
add_submenu_page(basename(__FILE__), __('Images','cp'), __('Images','cp'), '10', 'images', 'classi_images');

}


// changes the css file based on what is selected on the options page
function style_changer() {
$style = $_REQUEST[style];
if ($style != '') {
?> <link href="<?php bloginfo('template_directory'); ?>/styles/default.css" rel="stylesheet" type="text/css" /><?php
} else {
$stylesheet = get_option('stylesheet');
if($stylesheet != ''){
?><link href="<?php bloginfo('template_directory'); ?>/styles/<?php echo $stylesheet; ?>" rel="stylesheet" type="text/css" /><?php
}
}
}

if ( function_exists('register_sidebar') )
register_sidebar(array(
'name' => __('Ads Sidebar','cp'),
'before_widget' => '<div class="sidebar_box">',
'after_widget' => '</div><!--/widget-->',
'before_title' => '<h3>',
'after_title' => '</h3>',
));

if ( function_exists('register_sidebar') )
register_sidebar(array(
'name' => __('Page Sidebar','cp'),
'before_widget' => '<div class="sidebar_box">',
'after_widget' => '</div><!--/widget-->',
'before_title' => '<h3>',
'after_title' => '</h3>',
));


// hook into WordPress
add_action('wp_head', 'style_changer');
add_action('admin_head', 'admin_head');
add_action('admin_menu', 'classipress_options');

add_filter('posts_join', 'custom_search_join');
add_filter('posts_where', 'custom_search_where');
add_filter('posts_groupby', 'custom_search_groupby');

// activate support for .mo localization files
load_theme_textdomain('cp');
?>
 
El header.php dice asi:

------------------------------------------------------------------------------------

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

<title>
<?php if ( is_home() ) { ?><?php bloginfo('name'); ?>&nbsp;|&nbsp;<?php bloginfo('description'); ?><?php } ?>
<?php if ( is_search() ) { ?><?php _e('Search Results','cp'); ?>&nbsp;|&nbsp;<?php bloginfo('name'); ?><?php } ?>
<?php if ( is_author() ) { ?><?php _e('Author Posts','cp'); ?>&nbsp;|&nbsp;<?php bloginfo('name'); ?><?php } ?>
<?php if ( is_single() ) { ?><?php wp_title(''); ?>&nbsp;|&nbsp;<?php bloginfo('name'); ?><?php } ?>
<?php if ( is_page() ) { ?><?php wp_title(''); ?>&nbsp;|&nbsp;<?php bloginfo('name'); ?><?php } ?>
<?php if ( is_category() ) { ?><?php single_cat_title(); ?>&nbsp;|&nbsp;<?php bloginfo('name'); ?><?php } ?>
<?php if ( is_month() ) { ?><?php bloginfo('name'); ?>&nbsp;|&nbsp;<?php the_time('F'); ?><?php } ?>
<?php if (function_exists('is_tag')) { if ( is_tag() ) { ?><?php single_tag_title("", true); } } ?>
</title>

<link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_directory'); ?>/style.css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php if ( get_option('feedburner_url') <> "" ) { echo get_option('feedburner_url'); } else { echo get_bloginfo_rss('rss2_url'); } ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

<!--[if IE]>
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/ie.css" type="text/css" media="screen" />
<![endif]-->

<?php wp_enqueue_script('jquery'); ?>

<?php wp_head(); ?>

<script type='text/javascript' src='<?php bloginfo('template_url'); ?>/includes/js/global.js'></script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/iconified.js"></script>
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/iconified.css" media="screen" />

<script type='text/javascript' src='<?php bloginfo('template_url'); ?>/includes/js/fancybox/jquery.easing.1.3.js'></script>
<script type='text/javascript' src='<?php bloginfo('template_url'); ?>/includes/js/fancybox/jquery.fancybox-1.2.1.pack.js'></script>
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/includes/js/fancybox/jquery.fancybox.css" type="text/css">

</head>


<body>

<?php
//grab the current theme image directory
$theme_image_dir = substr(get_option('stylesheet'), 0, -4);

define("cp_dashboard_url", "/dashboard/");
//define("cp_dashboard_url", "/?page_id=745&"); //uncomment this and enter the dashboard page id (replace 745) if you don't have pretty permalinks on.

define("cp_edit_ad_url", "/edit-ad/");
//define("cp_edit_ad_url", "/?page_id=748&"); //uncomment this and enter the edit ads page id (replace 748) if you don't have pretty permalinks on.

// show the total number of live ads. Uncomment when ready to use
//$numposts = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->posts WHERE post_status = 'publish'");
//if (0 < $numposts) $numposts = number_format($numposts);
//echo $numposts;
?>


<div class="header-nav">

<div class="left">
<ul id="nav">
<?php if (is_page()) { $highlight = "page_item"; } else {$highlight = "page_item current_page_item"; } ?>
<li class="<?php echo $highlight; ?>"><a href="<?php bloginfo('url'); ?>">Inicio</a></li>
<?php
wp_list_pages('sort_column=menu_order&depth=0&title_li=&exclude='.get_option('excluded_pages'));
?>
</ul>
</div>


<div class="right">

<?php if (get_option('login_form') == "yes" || get_option('login_form') == "") { ?>

<?php global $user_ID; if ( $user_ID ) : ?>

<?php global $current_user; get_currentuserinfo(); ?>

<?php _e('Bienvenido!','cp'); ?> <strong><?php echo $current_user->user_login; ?></strong></a>
[ <a href="<?php echo get_option('home')?><?php echo cp_dashboard_url ?>"><?php _e('Panel de control','cp'); ?></a> | <a href="<?php echo wp_logout_url(); ?>"><?php _e('Desconectar','cp'); ?></a> ]

<?php else : ?>

<strong><?php _e('Bienvenidos!','cp'); ?></strong> [ <a href="<?php echo get_option('home'); ?>/wp-login.php?action=register"><?php _e('Nuevo usuario','cp'); ?></a> | <a href="<?php echo get_option('home'); ?>/wp-login.php"><?php _e('Conectar','cp'); ?></a> ] &nbsp;

<?php endif; ?>

<?php } ?>


<span style="padding-left:5px;top:3px;position:relative;">
<a href="<?php if ( get_option('feedburner_url') <> "" ) { echo get_option('feedburner_url'); } else { echo get_bloginfo_rss('rss2_url'); } ?>"><img src="<?php bloginfo('template_url'); ?>/images/feed.jpg" border="0" alt="rss feed" /></a>
</span>

</div>
<div class="clear"></div>
</div>


<div id="header">

<div class="header-logo">

<a href="<?php bloginfo('url'); ?>" title="<?php bloginfo('description'); ?>"><img src="<?php if ( get_option('cp_logo') <> "" ) { echo get_option('cp_logo').'"'; } else { bloginfo('template_directory'); ?>/images/header-logo.gif<?php } ?>" border="0" alt="<?php bloginfo('name'); ?>" /></a>

<!-- uncomment the lines below and remove the a href line above if you want to display your blog title and description instead of an image -->
<!-- <h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
<p><?php bloginfo('description'); ?></p> -->

</div>

<!-- Header Ad Starts -->
<div class="header-ad">

<?php cp_header_ad_468x60();?>

</div>
<!-- Header Ad Ends -->

</div><!-- end header div -->


<div class="topbar">
<div class="in">
<form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
<div class="search">
<input type="text" name="s" id="s" class="input" onclick="this.value=''" value="<?php _e('Search Classifieds...','cp'); ?>" onfocus="if (this.value == '<?php _e('Search Classifieds...','cp'); ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e('Search Classifieds...','cp'); ?>';}" />
<input type="submit" class="go" value="Go!" />
</div>
</form>
<a href="#" id="ad-toggle" class="postbutton"><?php _e('Post a Classified!','cp'); ?></a>
<div class="clear"></div>
</div>
</div>


<?php
$payment = (int)$_GET['payment'];
$item_number = "";
if ( $payment == "1" ) {
foreach ($_POST as $key => $value) {
if ($key == "payment_date") { $mess1 = __('Payment date:','cp') . "$value \n"; }
if ($key == "first_name") { $mess2 .= __('First name:','cp') . "$value \n"; }
if ($key == "last_name") { $mess2 .= __('Last name:','cp') . "$value \n"; }
if ($key == "residence_country") { $mess3 .= __('Country:','cp') . "$value \n"; }
if ($key == "item_name") { $mess3 .= __('Ad title:','cp') . "$value \n"; }
if ($key == "payer_email") { $mess3 .= __('Payer email:','cp') . "$value \n"; }
if ($key == "payer_status") { $mess3 .= __('Payer status:','cp') . "$value \n"; }
if ($key == "verify_sign") { $mess3 .= __('Verify sign:','cp') . "$value \n"; }
if ($key == "item_number") { $item_number = $value; }
}

if ( $item_number != "" ) {
if ( get_option('notif_pay') == "yes" ) {
$user_info = get_userdata(1);
$admin_email = $user_info->user_email;
$subject2 = __('New ad payment','cp');
$email2 = __('ClassiPress','cp');

$body = __('Someone just paid for an ad.','cp') . "\n\n" . $mess1 . $mess2 . $mess3;
mail($admin_email,$subject2,$body,"From: $email2");
} // if notif_pay == yes

// publish the ad
$item_number = (int)$item_number;
$my_post = array();
$my_post['ID'] = $item_number;
$my_post['post_status'] = 'publish';
wp_update_post( $my_post );
?>
<div style="clear: both;">
<div class="payment_made"><?php _e('Su pago ha sido procesado con éxito.Su anuncio será publicado próximamente.Gracias!.','cp'); ?></div>
<div style="clear: both;">
<?php
}// if $item_number != ""
} // if payment == 1
?>
 
tal ves en tu header encontraras algo como esto cp_header_ad_468x60() con eso se llama al banner que tienes ahí, solo borrala.


Perfecto..

Reemplaza esta linea.
PHP:
<?php cp_header_ad_468x60();?>
Por esta

PHP:
<!-- <?php cp_header_ad_468x60();?>  -->
 
Última edición:
tal ves en tu header encontraras algo como esto cp_header_ad_468x60() con eso se llama al banner que tienes ahí, solo borrala.


Perfecto..

Reemplaza esta linea.
PHP:
<?php cp_header_ad_468x60();?>
Por esta

PHP:
<!-- <?php cp_header_ad_468x60();?>  -->

Qué grande eres amigo,solucionado!!!! Te estoy muy agradecido! Al resto que ha ayudado tb!

Puedes pasarte por este post por favor,q va de lo mismo?

http://forobeta.com/wordpress/4515-problema-no-se-ven-imagenes.html
 
jejeje me ganaron, bueno que bien que te hayas solucionado tu problema!
 
Atrás
Arriba