Stefano
Forum Replies Created
-
Forum: Plugins
In reply to: [Leaflet Map] kml custom iconOk, many thanks. So the final shortcode will be:
[leaflet-kml src=https://.../file_name.kml iconUrl="https://.../my_icon.png" iconsize=20,20]{name} - {description}[/leaflet-kml]
ReagardsForum: Plugins
In reply to: [Page View Count] stopped showing today’s viewsHello.
I posted the updated pvc_class.php at
https://github.com/a3rev/page-views-count/issues/10
Ciao
StefanoForum: Plugins
In reply to: [Page View Count] stopped showing today’s viewsOK, but how may I upload the changed file?
Bye
StefanoForum: Plugins
In reply to: [Page View Count] stopped showing today’s viewsEdit with a plain text editor (example PSPad) the file “pvc_class.php” under “\wp-content\plugins\page-views-count” folder.
Go to public static function pvc_get_stats( $post_id )
and take a look at:
============================================
if ( ! empty( $today ) ) {
$output_html .= number_format($results->today) . ‘ ‘ .__(‘views today’, ‘page-views-count’);
} else {
$output_html .= __(‘no views today’, ‘page-views-count’);
}
============================================change:
$results->today
with:
$todaySave pvc_class.php
Take a look at my site http://mybo.itForum: Installing WordPress
In reply to: On Clic InstallMy script not well working;
[Code moderated as per the Forum Rules. Please use the pastebin]
Forum: Themes and Templates
In reply to: Read Custom Header Image SizeHi, and thanks again for your patience.
After a ‘mumble-mumble’ night, finally I solved the problem.Lines to insert in function.php:
//========== START ========================//Custom Header & Background
add_custom_background();
// get current theme folder
$style_dir = get_stylesheet_directory() ;
// get header image size
list($width, $height, $type, $attr) = getimagesize($style_dir . ‘/images/header.jpg’);
//define( ‘NO_HEADER_TEXT’, true );
define(‘HEADER_TEXTCOLOR’, ‘fff’);
define(‘HEADER_IMAGE’, ‘%s/images/header.jpg’);
define(‘HEADER_IMAGE_WIDTH’, $width ) ; // read width of header image
define(‘HEADER_IMAGE_HEIGHT’, $height ) ; // read height of header image// function for corrected WP site visualization
function header_style() {
?>
<style type=”text/css”>
YOUR CSS DIV CONTAINING HEADER IMAGE {
background: url(<?php header_image() ?>);
height: <?php echo HEADER_IMAGE_HEIGHT; ?>px;
width:<?php echo HEADER_IMAGE_WIDTH; ?>px;
}YOUR CSS HEADER TITLE{
}
YOUR CSS HEADER SUBTITLE {
}
<?php
if ( ‘blank’ == get_header_textcolor() ) { ?>
YOUR CSS HEADER TITLE, YOUR CSS DIV CONTAINING HEADER IMAGE YOUR CSS HEADER SUBTITLE {
display: none;
}
<?php } else {
?>
YOUR CSS HEADER TITLE a, YOUR CSS HEADER SUBTITLE {
color:#<?php header_textcolor() ?>;
}
<?php } ?>
</style>
<?php
}// function for corrected WP Dashboard visualization
function admin_header_style() {
?>
<style type=”text/css”>
#headimg{
background: url(<?php header_image() ?>) no-repeat;
height: <?php echo HEADER_IMAGE_HEIGHT; ?>px;
width:<?php echo HEADER_IMAGE_WIDTH; ?>px;
padding:0 0 0 18px;
font-family: arial;
}
#headimg h1{
padding-top:20px;
margin: 0;
}
#headimg h1 a, #desc{
color:#<?php header_textcolor() ?>;
text-decoration: none;
border-bottom: none;
}
#desc {
padding-top: 15px;
}
<?php if ( ‘blank’ == get_header_textcolor() ) { ?>
#headimg h1, #headimg #desc {
display: none;
}
#headimg h1 a, #headimg #desc {
color:#<?php echo HEADER_TEXTCOLOR ?>;
}
<?php } ?>
</style>
<?php
}
add_custom_image_header(‘header_style’, ‘admin_header_style’);//========== END =====================
Forum: Themes and Templates
In reply to: Read Custom Header Image Sizemmmm
maybe the problem around here:http://codex.ww.wp.xz.cn/Function_Reference/add_custom_image_header
Forum: Themes and Templates
In reply to: Read Custom Header Image Sizethanks for your patience.
The problem is that new uploaded header image (cropped-autumn4.jpg) go to in the folder wp-content/uploads/2011/01/
but css search background-image: url(“images/header.jpg”);
I cannot dinamically change the css, maybe…..Forum: Themes and Templates
In reply to: Read Custom Header Image SizeThe image url is correct:
http://localhost/blognoster/0/wp-content/uploads/2011/01/cropped-fractals1.jpg
Launching the browser I see the image.The problem is that css”force” header image, maybe:
background-image: url(“images/header.jpg”);
Forum: Themes and Templates
In reply to: Read Custom Header Image SizeThanks for your replay.
some changes:$style_dir = get_stylesheet_directory() ;
list($width, $height, $type, $attr) = getimagesize($style_dir . ‘/images/header.jpg’);and it works.
Now, the problem move to other side:
when I go to Appearence –> Header to change header image by browsing on my local disk and than –> ‘Upload’, the uploaded image stay in wp-content/uploads/2011/01/cropped-autumn4.jpgLaunching the browser the uploaded image is not present…uffa !
Suggestions ??
Forum: Fixing WordPress
In reply to: First install with custom theme and pluging auto-activationOh no, I don’t use any translator; this is only my bad english….
After first install, user do not go in Dashboard to upload and activate theme and plugins but user want just the selected default theme and selected plugins activated.
In other words, if user has selected the theme “Winter” (suppose) and “photogallery” and/or “mp3 player” pluggins (suppose) during reigistration session, user needs to see that configuration active.
I hope that I explained…