scheggia
Ragazzi ditemi perfavore un plugin tramite il quale inviare ebook a chi si iscrive alla newsleter. Grazie
Ciao,hai provato Sendit?
scheggia
Ragazzi ditemi perfavore un plugin tramite il quale inviare ebook a chi si iscrive alla newsleter. Grazie
Ciao,hai provato Sendit?
Salve ragazzi,
è possibile ricevere un aiuto nella modifica di questo plugin? Non mastico bene php, ma con qualche aiuto credo di potercela fare 
cosa fa:
il plugin in questione, tramite code da inserire tipo [youtube TCMszSjgKHE] mi inserisce il video di Youtube dentro al post e fin qui tutto ok.
cosa mi serve:
il codice riportato qui sotto è la routine del plugin e alla fine del video devo inserire il nome del video e il nome del video deve essere preso da un campo personalizzato di wordpress
define("YOUTUBE_WIDTH", 590); // default width
define("YOUTUBE_HEIGHT", 332); // default height
define("YOUTUBE_REGEXP", "/\[youtube ([[:print:]]+)\]/");
define("YOUTUBE_TARGET", "<object width=\"###WIDTH###\" height=\"###HEIGHT###\" type=\"application/x-shockwave-flash\" data=\"linkyoutube/v/###URL###&hl=en_US&fs=1&rel=0\"><param name=\"movie\" value=\"linkyoutube/v/###URL###&hl=en_US&fs=1&rel=0\"></param><param name=\"allowFullScreen\" value=\"true\"></param><param name=\"allowscriptaccess\" value=\"always\"></param></object>[B]Qui il nome del video 'echo get_post_meta($post->ID, 'nome-video', true);' [/B]");
function youtube_plugin_callback($match)
{
$tag_parts = explode(" ", rtrim($match[0], "]"));
$output = YOUTUBE_TARGET;
$output = str_replace("###URL###", $tag_parts[1], $output);
if (count($tag_parts) > 2) {
if ($tag_parts[2] == 0) {
$output = str_replace("###WIDTH###", YOUTUBE_WIDTH, $output);
} else {
$output = str_replace("###WIDTH###", $tag_parts[2], $output);
}
if ($tag_parts[3] == 0) {
$output = str_replace("###HEIGHT###", YOUTUBE_HEIGHT, $output);
} else {
$output = str_replace("###HEIGHT###", $tag_parts[3], $output);
}
} else {
$output = str_replace("###WIDTH###", YOUTUBE_WIDTH, $output);
$output = str_replace("###HEIGHT###", YOUTUBE_HEIGHT, $output);
}
return ($output);
}
function youtube_plugin($content)
{
return (preg_replace_callback(YOUTUBE_REGEXP, 'youtube_plugin_callback', $content));
}
add_filter('the_content', 'youtube_plugin',1);
add_filter('the_content_feed', 'youtube_plugin');
add_filter('comment_text', 'youtube_plugin');
add_filter('the_excerpt', 'youtube_plugin');
è possibile arrivare ad una soluzione?
Grazie
Salve,
possiedo un sitoweb e mi hanno chiesto un preventivo per inserire un video codice embed in home per due settimane.
Il sito fa circa 12000 visitatori unici e 17000 pagine visitate giornaliere
Quanto potrei chiedere secondi voi per il video in home o in tutte le pagine del sito?