Pokazywanie postów oznaczonych etykietą Webmaster. Pokaż wszystkie posty
Pokazywanie postów oznaczonych etykietą Webmaster. Pokaż wszystkie posty
niedziela, 24 marca 2013
Trochę o multikodach - pozycjonowanie
http://www.blog.gdaq.pl/2012/03/najwieksze-listy-seokatalogow-gwarancja-skutecznosci-w-pozycjonowaniu/
niedziela, 17 marca 2013
UTF-8 BOM - jak sie dziadostwa pozbyć, rekursywnie w PHP
Znalezione gdzieś na sieci:
<?php
function scanDirectories($rootDir, $allData=array()) {
$invisibleFileNames = array(".", "..", ".htaccess", ".htpasswd");
$dirContent = scandir($rootDir);
foreach($dirContent as $key => $content) {
$path = $rootDir.'/'.$content;
if(!in_array($content, $invisibleFileNames)) {
if(is_file($path) && is_readable($path)) {
$allData[] = $path;
}elseif(is_dir($path) && is_readable($path)) {
$allData = scanDirectories($path, $allData);
}
}
}
return $allData;
}
function remove_utf8_bom($text) {
$bom = pack('H*','EFBBBF');
$text = preg_replace("/^$bom/", '', $text);
return $text;
}
$dirlist = scanDirectories('.');
$c = count ($dirlist);
for ($i=0; $i<$c; $i++) {
echo $dirlist[$i].'<br/>';
$res = remove_utf8_bom(file_get_contents($dirlist[$i]));
file_put_contents($dirlist[$i], $res);
}
?>
<?php
function scanDirectories($rootDir, $allData=array()) {
$invisibleFileNames = array(".", "..", ".htaccess", ".htpasswd");
$dirContent = scandir($rootDir);
foreach($dirContent as $key => $content) {
$path = $rootDir.'/'.$content;
if(!in_array($content, $invisibleFileNames)) {
if(is_file($path) && is_readable($path)) {
$allData[] = $path;
}elseif(is_dir($path) && is_readable($path)) {
$allData = scanDirectories($path, $allData);
}
}
}
return $allData;
}
function remove_utf8_bom($text) {
$bom = pack('H*','EFBBBF');
$text = preg_replace("/^$bom/", '', $text);
return $text;
}
$dirlist = scanDirectories('.');
$c = count ($dirlist);
for ($i=0; $i<$c; $i++) {
echo $dirlist[$i].'<br/>';
$res = remove_utf8_bom(file_get_contents($dirlist[$i]));
file_put_contents($dirlist[$i], $res);
}
?>
środa, 27 lutego 2013
Wtyczki do WordPress'a 3.5
Sprawdzone i działają:
Accordion Shortcode
Adds shortcode that enables you to create accordions
http://wordpress.org/extend/plugins/accordion-shortcode/
Basic Google Maps Placemarks
Embeds a Google Map into your site and lets you add map markers with custom icons and information windows. Each marker can have a different icon.
http://wordpress.org/extend/plugins/basic-google-maps-placemarks/
Contact Form 7
Kolejna wtyczka formularzy. Prosta ale elastyczna.
http://contactform7.com/
Velvet Blues Update URLs
This plugin updates all urls in your website by replacing old urls with new urls.
http://www.velvetblues.com/web-development-blog/wordpress-plugin-update-urls/
WP SMTP
WP SMTP can help us to send emails via SMTP instead of the PHP mail() function.
http://boliquan.com/wp-smtp/
Accordion Shortcode
Adds shortcode that enables you to create accordions
http://wordpress.org/extend/plugins/accordion-shortcode/
Basic Google Maps Placemarks
Embeds a Google Map into your site and lets you add map markers with custom icons and information windows. Each marker can have a different icon.
http://wordpress.org/extend/plugins/basic-google-maps-placemarks/
Contact Form 7
Kolejna wtyczka formularzy. Prosta ale elastyczna.
http://contactform7.com/
Velvet Blues Update URLs
This plugin updates all urls in your website by replacing old urls with new urls.
http://www.velvetblues.com/web-development-blog/wordpress-plugin-update-urls/
WP SMTP
WP SMTP can help us to send emails via SMTP instead of the PHP mail() function.
http://boliquan.com/wp-smtp/
środa, 13 lutego 2013
czwartek, 24 stycznia 2013
piątek, 4 stycznia 2013
piątek, 14 grudnia 2012
czwartek, 29 listopada 2012
Tinyscrollbar with anchors in URL
Based on rfausak's solution from stackoverlow.com
$(document).ready(function(){
$('#scrollbar_content').tinyscrollbar();
var bottom = $('.viewport .overview').children().last().position().top;
var cur = $(window.location.hash).position().top;
if (cur >= bottom - $('.viewport').height()) {
cur = 'bottom';
} else {
cur = cur + 'px';
}
$('#scrollbar_content').tinyscrollbar_update(cur);
});
$(document).ready(function(){
$('#scrollbar_content').tinyscrollbar();
var bottom = $('.viewport .overview').children().last().position().top;
var cur = $(window.location.hash).position().top;
if (cur >= bottom - $('.viewport').height()) {
cur = 'bottom';
} else {
cur = cur + 'px';
}
$('#scrollbar_content').tinyscrollbar_update(cur);
});
piątek, 12 października 2012
Własne fonty na stronach WWW
http://blog.serwisamano.pl/2011/08/rzecz-o-fontach-czyli-moja-przegrana-walka-z-font-face/
http://www.wmroczkowski.pl/wlasne-czcionki-na-stronie-instalujemy-cufon/
http://www.webnote.pl/5-czcionek-z-polskimi-znakami-gotowych-do-uzycia-z-font.html
http://www.webnote.pl/czcionki-z-polskimi-znakami-font-face.html
http://blog.psboy.pl/2012/03/10-darmowych-fontow-do-font-face-z-ogonkami/
http://grafmag.pl/artykuly/darmowe-fonty-z-polskimi-znakami-czesc-2/
http://www.fontsquirrel.com/
http://webroad.pl/inne/436-google-fonts-koniec-standardowych-krojow-czcionek
http://unitinteractive.com/blog/2008/06/26/better-css-font-stacks/
http://www.wmroczkowski.pl/wlasne-czcionki-na-stronie-instalujemy-cufon/
http://www.webnote.pl/5-czcionek-z-polskimi-znakami-gotowych-do-uzycia-z-font.html
http://www.webnote.pl/czcionki-z-polskimi-znakami-font-face.html
http://blog.psboy.pl/2012/03/10-darmowych-fontow-do-font-face-z-ogonkami/
http://grafmag.pl/artykuly/darmowe-fonty-z-polskimi-znakami-czesc-2/
http://www.fontsquirrel.com/
http://webroad.pl/inne/436-google-fonts-koniec-standardowych-krojow-czcionek
http://unitinteractive.com/blog/2008/06/26/better-css-font-stacks/
piątek, 27 stycznia 2012
Joomla - dostosowywanie
Przeniesienie szczegółów artykułu na sam dół:
(plus informacja jak tego dokonywać, by zmiany nie były niszczone przez aktualizacje)
http://www.joomlart.com/forums/showthread.php?58197-Move-article-tools-%28author-date-hits-etc%29-from-top-to-bottom-of-articles
czyli koncepcja nadpisywania szablonem:
http://wiki.joomla.pl/index.php/Zrozumie%C4%87_koncepcj%C4%99_nadpisywania_szablonem
Media Manager as the default File Browser in TinyMCE
http://forum.joomla.org/viewtopic.php?p=1271433
(plus informacja jak tego dokonywać, by zmiany nie były niszczone przez aktualizacje)
http://www.joomlart.com/forums/showthread.php?58197-Move-article-tools-%28author-date-hits-etc%29-from-top-to-bottom-of-articles
czyli koncepcja nadpisywania szablonem:
http://wiki.joomla.pl/index.php/Zrozumie%C4%87_koncepcj%C4%99_nadpisywania_szablonem
Media Manager as the default File Browser in TinyMCE
http://forum.joomla.org/viewtopic.php?p=1271433
czwartek, 19 stycznia 2012
ZenPhoto - integracja z własną stroną
<?php
define('WEBPATH', 'sciezka_do_zenphoto');
require_once(WEBPATH . "/zp-core/template-functions.php");
$ts = 140; // szerokosc i wysokosc miniaturki
$zw = 960; // szerokosc powiekszenia
$an = "moj-album"; // nazwa albumu, ktory wyswietlamy
$galleryobject = new Gallery();
$albumobject = new Album($galleryobject, $an);
makeAlbumCurrent($albumobject);
$images = $albumobject->getImages();
while (next_image($images)) {
$thumb = htmlspecialchars(getCustomImageURL(NULL,$ts,$ts,$ts,$ts));
$thumb_html = '<img src="'.$thumb.'" alt="" width="'.$ts.'" height="'.$ts.'"/>';
$zoom = htmlspecialchars($_zp_current_image->getCustomImage(NULL,$zw,NULL,NULL,NULL,NULL,NULL));
$zoom_html = '<a href="'.$zoom.'">'.$thumb_html.'</a>';
echo $zoom_html;
}
?>
define('WEBPATH', 'sciezka_do_zenphoto');
require_once(WEBPATH . "/zp-core/template-functions.php");
$ts = 140; // szerokosc i wysokosc miniaturki
$zw = 960; // szerokosc powiekszenia
$an = "moj-album"; // nazwa albumu, ktory wyswietlamy
$galleryobject = new Gallery();
$albumobject = new Album($galleryobject, $an);
makeAlbumCurrent($albumobject);
$images = $albumobject->getImages();
while (next_image($images)) {
$thumb = htmlspecialchars(getCustomImageURL(NULL,$ts,$ts,$ts,$ts));
$thumb_html = '<img src="'.$thumb.'" alt="" width="'.$ts.'" height="'.$ts.'"/>';
$zoom = htmlspecialchars($_zp_current_image->getCustomImage(NULL,$zw,NULL,NULL,NULL,NULL,NULL));
$zoom_html = '<a href="'.$zoom.'">'.$thumb_html.'</a>';
echo $zoom_html;
}
?>
poniedziałek, 9 stycznia 2012
niedziela, 18 grudnia 2011
Joomla 1.7 i home.pl
http://www.kshelp.pl/joomla/joomla-1-7-1-na-home-pl/
http://rozwijaj.home.pl/102489-joomla-1-7-x
http://peb.pl/tworzenie-stron/92344-inne-joomla-na-home-pl-potrzebna.html
I sposób nadesłany w komentarzu poniżej:
http://blog.netlife.pl/2012/01/joomla-na-home-pl/
http://rozwijaj.home.pl/102489-joomla-1-7-x
http://peb.pl/tworzenie-stron/92344-inne-joomla-na-home-pl-potrzebna.html
I sposób nadesłany w komentarzu poniżej:
http://blog.netlife.pl/2012/01/joomla-na-home-pl/
poniedziałek, 8 sierpnia 2011
APC caching extension
http://www.blogcatalog.com/blogs/7php-dot-com
http://7php.com/linux-mint-how-to-install-apc-and-configure-apc-on-xampp-apc-caching-extension/
Found on the Internet - haven't checked yet ...
"To install APC (APC caching extension) for Xampp on your Linux Mint or Ubuntu distro, just follow the steps below:
# cd apc (to your apc folder you just extracted)
# sudo /opt/lampp/bin/phpize
# ./configure –enable-apc –with-apxs –with-php-config=/opt/lampp/bin/php-config
# make
# sudo make install
Next Step is to edit you php.ini and add the apc extension as follows:extension=apc.so
How To Configure APC In php.ini ?
I have been pretty comfortable with the following APC Settings so far with version PHP 5.3.2+ (I haven’t tested with lower PHP version)
In your php.ini, just add the following block:
NOTE:
=> There should be only one line of extension=apc.so
=> So either delete the one you added above, or remove the one in the block below.. your choice, but I prefer the one below, to keep things grouped by modules/extensions
[apc]
extension=apc.so
apc.enabled = 1
apc.shm_segments = 1
apc.shm_size = 32M
apc.optimization = 0
apc.num_files_hint = 512
apc.user_entries_hint = 1024
apc.ttl = 0
apc.user_ttl = 0
apc.gc_ttl = 600
apc.cache_by_default = 0
apc.filters = “apc\.php$”
apc.slam_defense = 0
apc.use_request_time = 1
apc.mmap_file_mask = /tmp/apc.XXXXXX
apc.file_update_protection = 2
apc.enable_cli = 0
apc.max_file_size = 2M
apc.stat = 0
apc.write_lock = 1
apc.report_autofilter = 0
apc.include_once_override = 0
apc.rfc1867 = 0
apc.rfc1867_prefix = “upload_”
apc.rfc1867_name = “APC_UPLOAD_PROGRESS”
apc.rfc1867_freq = 0
apc.localcache = 1
apc.localcache.size = 512
apc.coredump_unmap = 0
apc.stat_ctime = 0
Possible Errors During Execution Of phpize..."
http://7php.com/linux-mint-how-to-install-apc-and-configure-apc-on-xampp-apc-caching-extension/
Found on the Internet - haven't checked yet ...
"To install APC (APC caching extension) for Xampp on your Linux Mint or Ubuntu distro, just follow the steps below:
# cd apc (to your apc folder you just extracted)
# sudo /opt/lampp/bin/phpize
# ./configure –enable-apc –with-apxs –with-php-config=/opt/lampp/bin/php-config
# make
# sudo make install
Next Step is to edit you php.ini and add the apc extension as follows:extension=apc.so
How To Configure APC In php.ini ?
I have been pretty comfortable with the following APC Settings so far with version PHP 5.3.2+ (I haven’t tested with lower PHP version)
In your php.ini, just add the following block:
NOTE:
=> There should be only one line of extension=apc.so
=> So either delete the one you added above, or remove the one in the block below.. your choice, but I prefer the one below, to keep things grouped by modules/extensions
[apc]
extension=apc.so
apc.enabled = 1
apc.shm_segments = 1
apc.shm_size = 32M
apc.optimization = 0
apc.num_files_hint = 512
apc.user_entries_hint = 1024
apc.ttl = 0
apc.user_ttl = 0
apc.gc_ttl = 600
apc.cache_by_default = 0
apc.filters = “apc\.php$”
apc.slam_defense = 0
apc.use_request_time = 1
apc.mmap_file_mask = /tmp/apc.XXXXXX
apc.file_update_protection = 2
apc.enable_cli = 0
apc.max_file_size = 2M
apc.stat = 0
apc.write_lock = 1
apc.report_autofilter = 0
apc.include_once_override = 0
apc.rfc1867 = 0
apc.rfc1867_prefix = “upload_”
apc.rfc1867_name = “APC_UPLOAD_PROGRESS”
apc.rfc1867_freq = 0
apc.localcache = 1
apc.localcache.size = 512
apc.coredump_unmap = 0
apc.stat_ctime = 0
Possible Errors During Execution Of phpize..."
poniedziałek, 1 sierpnia 2011
Ładowanie podstron bez przeładowywania strony
http://forum.webhosting.pl/Strona-glowna-podstrony-t1726.html&hl=ajax
http://net.tutsplus.com/tutorials/javascript-ajax/how-to-load-in-and-animate-content-with-jquery/
http://www.mkyong.com/jquery/page-loading-effects-with-jquery/
http://yensdesign.com/2008/12/how-to-load-content-via-ajax-in-jquery/
http://net.tutsplus.com/tutorials/javascript-ajax/how-to-load-in-and-animate-content-with-jquery/
http://www.mkyong.com/jquery/page-loading-effects-with-jquery/
http://yensdesign.com/2008/12/how-to-load-content-via-ajax-in-jquery/
czwartek, 28 lipca 2011
Nauka pozycjonowania - szeroko i na tema
http://www.naukapozycjonowania.pl/unikalnosc-i-aktualizacje
sobota, 23 lipca 2011
jQuery content slider
http://www.dynamicdrive.com/dynamicindex17/featuredcontentglider.htm
http://www.webdesignbooth.com/step-by-step-to-create-content-slider-using-jflow-a-minimalist-jquery-plugin/
http://css-tricks.com/3412-anythingslider-jquery-plugin/
http://jqueryfordesigners.com/coda-slider-effect/
http://www.webdesignbooth.com/step-by-step-to-create-content-slider-using-jflow-a-minimalist-jquery-plugin/
http://css-tricks.com/3412-anythingslider-jquery-plugin/
http://jqueryfordesigners.com/coda-slider-effect/
poniedziałek, 18 lipca 2011
Sprawdzanie prędkości ładowania strony WWW i przyspieszanie powyższego
http://webhosting.pl/Minify.test.aplikacji.PHP.do.przyspieszenia.strony.internetowej
http://webhosting.pl/11.uslug.ktore.pokaza.Ci.jak.szybko.laduje.sie.twoja.strona.WWW
http://webhosting.pl/11.uslug.ktore.pokaza.Ci.jak.szybko.laduje.sie.twoja.strona.WWW
Subskrybuj:
Posty (Atom)