← Desenvolvimento

Como modificar ou atualizar um plugin

Lida 6039 vezes

Offline

Mister_Magoo 
Membro
Mensagens 594 Gostos 38
Troféus totais: 29
Trófeus: (Ver todos)
Nineth year Anniversary Eighth year Anniversary Quick Poster Signature Level 5 Search Windows User Super Combination Combination Topic Starter

Tenho um plugin pago americano que usava nos meus blogs de vídeos no qual eu digito as palavras chaves e puxava automaticamente os vídeos do Youtube, porém o plugin não puxa mais os vídeos e estou tentando contato com o autor do plugin e não responde mais.

É possível e como atualizar esse plugin?
Offline

kurtmix 
Membro
Mensagens 1895 Gostos 605
Feedback +4

Troféus totais: 28
Trófeus: (Ver todos)
Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary Seventh year Anniversary Search Level 5 Windows User Super Combination Combination Topic Starter

Sem saber qual o plugin fica difícil orientar. Sempre podes instalar de novo ou ver no error log do site se está a gerar algum erro.
Offline

Mister_Magoo 
Membro
Mensagens 594 Gostos 38
Troféus totais: 29
Trófeus: (Ver todos)
Nineth year Anniversary Eighth year Anniversary Quick Poster Signature Level 5 Search Windows User Super Combination Combination Topic Starter

Link do plugin http://zombieplugins.com/zombie-videofly/

Não puxa mais os vídeos.

[1] Connecting youtube.com... [Check Link] - "gdata.youtube.com/feeds/api/videos/-/doen%C3%A7a/de/chagas?max-results=50&alt=atom&v=2&orderby=published"

There is no new videos in this page.

Done!
No videos added.
Maybe you already have all the videos from this source. Wait for the source to be updated.
Offline

kurtmix 
Membro
Mensagens 1895 Gostos 605
Feedback +4

Troféus totais: 28
Trófeus: (Ver todos)
Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary Seventh year Anniversary Search Level 5 Windows User Super Combination Combination Topic Starter

A api está correta e funcional? Estás a usar url com https?
Offline

Mister_Magoo 
Membro
Mensagens 594 Gostos 38
Troféus totais: 29
Trófeus: (Ver todos)
Nineth year Anniversary Eighth year Anniversary Quick Poster Signature Level 5 Search Windows User Super Combination Combination Topic Starter

A url acima esta com http tire aqui do fórum o http porque estava dando erro.

Como eu vejo essa questão do api?
Offline

STronic 
Elite
Mensagens 546 Gostos 8
Feedback +5

Troféus totais: 30
Trófeus: (Ver todos)
Mobile User Search Apple User Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3

A api está correta e funcional? Estás a usar url com https?

Não deve estar correta (ou pelo menos atualizada), pois ao aceder a gdata.youtube.com/feeds/api/videos/ dá a seguinte mensagem:

Citar
No longer available[/quota]
Offline

kurtmix 
Membro
Mensagens 1895 Gostos 605
Feedback +4

Troféus totais: 28
Trófeus: (Ver todos)
Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary Seventh year Anniversary Search Level 5 Windows User Super Combination Combination Topic Starter

Precisas atualizar a API do youtube, aqui tens a informação da nova api: https://developers.google.com/youtube/2.0/developers_guide_protocol_video_feeds
Offline

Mister_Magoo 
Membro
Mensagens 594 Gostos 38
Troféus totais: 29
Trófeus: (Ver todos)
Nineth year Anniversary Eighth year Anniversary Quick Poster Signature Level 5 Search Windows User Super Combination Combination Topic Starter

Mais uma vez obrigado pela resposta.

Com o plugin instalado no meu wordpress clique em editar e nas opções achei videofly/zvf_newfeed.php (inativo) e videofly/zvf_showfeeds.php (inativo).

Vou postar abaixo o que tem em cada um.

Offline

Mister_Magoo 
Membro
Mensagens 594 Gostos 38
Troféus totais: 29
Trófeus: (Ver todos)
Nineth year Anniversary Eighth year Anniversary Quick Poster Signature Level 5 Search Windows User Super Combination Combination Topic Starter

videofly/zvf_newfeed.php

Código: [Seleccione]
<?php
$table_name 
$wpdb->prefix "videofly";
$siteurl get_bloginfo('wpurl');
?>

<div class=wrap>
<table width="100%"><tr><td>
<a href="admin.php?page=videofly/zvf_main.php" title="ZombiePlugins.com"><img src="<?php echo $siteurl?>/wp-content/plugins/videofly/includes/zvflogo.png" border="0" alt="ZombiePlugins.com"></a>
</td><td>
<a href="admin.php?page=videofly/zvf_main.php"><img src="<?php echo $siteurl?>/wp-content/plugins/videofly/includes/sources.png" border="0" alt="Sources"></a>
<a href="admin.php?page=zvf_Add_New_Feed"><img src="<?php echo $siteurl?>/wp-content/plugins/videofly/includes/addvideo.png" border="0" alt="Add Video"></a>
<a href="admin.php?page=zvf_Settings"><img src="<?php echo $siteurl?>/wp-content/plugins/videofly/includes/settings.png" border="0" alt="Settings"></a>
<a href="admin.php?page=zvf_Auto-Updates_Settings"><img src="<?php echo $siteurl?>/wp-content/plugins/videofly/includes/updates.png" border="0" alt="Updates"></a> <a href="admin.php?page=Adfly"><img src="<?php echo $siteurl?>/wp-content/plugins/videofly/includes/adfly.png" border="0" alt="Adfly"></a>
</td></tr></table>
<h2>Add Video Source</h2>
<?php
if ($_REQUEST['action'] == "savefeed") {
if ((
$_REQUEST['feedsource'] == "youtube") and ($_REQUEST['ytthetype'] == "byuser") and (!$_REQUEST['feedusername']) and (!$_REQUEST['feedurl']))  { echo "<font color=red>Please put the YouTube username.</font><br>";}
else if ((!
$_REQUEST['feedkeywords']) and (!$_REQUEST['feedurl'])) { echo "<font color=red>Please put the keywords or put a specific Feed URL.</font><br>";}
else if (!
$_REQUEST['days']) {echo "<font color=red>Please select the weekdays to update this Feed!</font><br>";}
else if (!
$_REQUEST['feedcategory']) {echo "<font color=red>Please select the categories to save your videos.</font><br>";}
else if (!
$_REQUEST['feedsource']) {echo "<font color=red>Please select the feed source!</font><br>";}
else { 
$maxvideos $_REQUEST['maxvideos'];
if (!
$maxvideos) { $maxvideos "1";}
if (
$maxvideos == "0") { $maxvideos "1";}

$days $_REQUEST['days'];
foreach (
$days as $weekday) {
if (
$weekday == "everyday") { $everyday "yes";}
if (
$weekday == "sunday") { $sunday "yes";}
if (
$weekday == "monday") { $monday "yes";}
if (
$weekday == "tuesday") { $tuesday "yes";}
if (
$weekday == "wednesday") { $wednesday "yes";}
if (
$weekday == "thursday") { $thursday "yes";}
if (
$weekday == "friday") { $friday "yes";}
if (
$weekday == "saturday") { $saturday "yes";}
}

$mytags strtolower($_REQUEST['feedkeywords']);
$feedsource $_REQUEST['feedsource'];
$poststatus $_REQUEST['poststatus'];
$scheduletime $_REQUEST['scheduletime'];
$commentstatus $_REQUEST['commentstatus'];
$pingstatus $_REQUEST['pingstatus'];
$shufcats $_REQUEST['shufcats'];
$phcats $_REQUEST['phcats'];
$ytcats $_REQUEST['ytcats'];
$redtubecats $_REQUEST['redtubecats'];
$postauthor $_REQUEST['author'];
$grab_comments $_REQUEST['grab_comments'];
$ytlang $_REQUEST['ytlang'];
$dm_orderby $_REQUEST['dm_orderby'];
$dm_lang $_REQUEST['dm_lang'];
$keepsettings $_REQUEST['keepsettings'];
$hulucats $_REQUEST['hulucats'];
$hulu_vidtype $_REQUEST['hulu_vidtype'];
$hulu_orderby $_REQUEST['hulu_orderby'];
$megaporncats $_REQUEST['megaporncats'];
$megavideocats $_REQUEST['megavideocats'];

if(
$grab_comments == "no"){
$max_comments "0";
} else {
$max_comments $_REQUEST['max_comments'];
}
$aprove_comments $_REQUEST['aprove_comments'];

if(
$ytlang == "any") {
$bylang "";
} else {
$bylang "&lr=".$ytlang."";
}


if (
$feedsource == "youtube") {
if (
$_REQUEST['ytthetype'] == "byuser") {
$usefeed "http://gdata.youtube.com/feeds/api/users/".$_REQUEST['feedusername']."/uploads?max-results=50".$bylang."&alt=atom&v=2&orderby=published";
} else {
$mytags str_replace(', '"/"$mytags);
$mytags str_replace(','"/"$mytags);
$mytags str_replace(' '"/"$mytags);
$usefeed "http://gdata.youtube.com/feeds/api/videos/-/".$ytcats."".$mytags."?max-results=50".$bylang."&alt=atom&v=2&orderby=published";
}

$feedurl $_REQUEST['feedurl'];
$feedurl str_replace("gdata.youtube.com/feeds/base/""gdata.youtube.com/feeds/api/"$feedurl);
$feedurl str_replace("alt=rss""alt=atom"$feedurl);
$feedurl str_replace("alt=json""alt=atom"$feedurl);
$feedurl str_replace("alt=json-in-script""alt=atom"$feedurl);
if (
$feedurl) {
$usefeed $feedurl;
}
$feedcategory serialize($_REQUEST['feedcategory']);

if (
$_REQUEST['blocktags'] == "example|keyword1|keyword2") {
$getblocktags == "";
} else {
$getblocktags strtolower($_REQUEST['blocktags']);
}

$blocktags explode("|"$getblocktags);
$blocktags serialize($blocktags);

$blockwhere $_REQUEST['blockwhere'];
if (
is_array($blockwhere)) {
foreach (
$blockwhere as $block_in) {
if (
$block_in == "title") { $checktitle "yes";}
if (
$block_in == "desc") { $checkdesc "yes";}
if (
$block_in == "tags") { $checktags "yes";}
}
}

$wpdb->query("INSERT INTO $table_name (fid, feed, category, active, maxvideos, poststatus, sunday, monday, tuesday, wednesday, thursday, friday, saturday, commentstatus, pingstatus, blocktags, checktitle, checkdesc, checktags, postauthor, scheduletime, grab_comments, max_comments, aprove_comments) VALUES ('', '$usefeed', '$feedcategory', 'yes', '$maxvideos', '$poststatus', '$sunday', '$monday', '$tuesday', '$wednesday', '$thursday', '$friday', '$saturday', '$commentstatus', '$pingstatus', '$blocktags', '$checktitle', '$checkdesc', '$checktags', '$postauthor', '$scheduletime', '$grab_comments', '$max_comments', '$aprove_comments')");


echo 
"<br><center><font color=green>Video Source Added!</font></center>";
}
}
?>

<form action="admin.php?page=zvf_Add_New_Feed" method="post" name="myform">
<input type="hidden" name="action" value="savefeed">
<table class="widefat" style="border-width:0px;border-style:solid;border-spacing:0;width:100%;clear:both;margin:0;-moz-border-radius:0px;-khtml-border-radius:0px;-webkit-border-radius:0px;border-radius:0px;background-color:#F9F9F9"><tr><td valign="top" style="border-bottom-width:0px;">
<table class="widefat" cellspacing="0">
<thead>
<th>
Video Source
</th>
</thead>
<tr><td bgcolor="#f3f3f3" style="border-bottom-width:0px;">
<table width="100%" cellspacing="0" style="border-bottom-width:0px;">
<tr><td style="border-bottom-width:0px;">
<div style="float:left;width=100px;padding-right:3px">
<div><b>Source:</b></div>
<div>
<select name="feedsource" onchange="showsources(this.value)">
<option value="youtube">YouTube</option>
</select>
</div>
</div>
<div id="yttype" style="float:left;display:block;padding-right:3px">
<div><b>Type:</b></div>
<div>
<select name="ytthetype" onchange="ytchangetype(this.value)" id="yttypes">
<option value="bytags">Keywords</option>
<option value="byuser">Username</option>
</select>
</div>
</div>
<div id="ytdiv" style="float:left;display:block;padding-right:3px">
<div><b>Source Category:</b></div>
<div>
<select name="ytcats">
<option value="">Any</option>
<option value="Autos/">Autos & Vehicles</option>
<option value="Comedy/">Comedy</option>
<option value="Education/">Education</option>
<option value="Entertainment/">Entertainment</option>
<option value="Film/">Film & Animation</option>
<option value="Gaming/">Gaming</option>
<option value="Howto/">Howto & Style</option>
<option value="Music/">Music</option>
<option value="News/">News & Politics</option>
<option value="Nonprofits/">Nonprofits & Activism</option>
<option value="People/">People & Blogs</option>
<option value="Pets/">Pets & Animals</option>
<option value="Science/">Science & Technology</option>
<option value="Sports/">Sports</option>
<option value="Travel/">Travel & Events</option>
</select>
</div>
</div>
<div id="ytlangdiv" style="float:left;display:block;padding-right:3px">
<div><b>Language:</b></div>
<div>
<select name="ytlang">
<option value="any">Any Language</option>
<option value="en">English</option>
<option value="ar">Arabic</option>
<option value="bg">Bulgarian</option>
<option value="ca">Catalan</option>
<option value="zh-Hans">Chinese (Simplified)</option>
<option value="zh-Hant">Chinese (Traditional)</option>
<option value="hr">Croatian</option>
<option value="cs">Czech</option>
<option value="da">Danish</option>
<option value="nl">Dutch</option>
<option value="et">Estonian</option>
<option value="fi">Finnish</option>
<option value="fr">French</option>
<option value="de">German</option>
<option value="er">Greek</option>
<option value="iw">Hebrew</option>
<option value="hu">Hungarian</option>
<option value="is">Icelandic</option>
<option value="it">Italian</option>
<option value="ja">Japanese</option>
<option value="ko">Korean</option>
<option value="lv">Latvian</option>
<option value="lt">Lithuanian</option>
<option value="no">Norwegian</option>
<option value="pl">Polish</option>
<option value="pt">Portuguese</option>
<option value="ro">Romanian</option>
<option value="ru">Russian</option>
<option value="sr">Serbian</option>
<option value="sk">Slovak</option>
<option value="sl">Slovenian</option>
<option value="es">Spanish</option>
<option value="sv">Swedish</option>
<option value="tr">Turkish</option>
</select>
</div>
</div>

</td></tr>
</table>
<table width="100%" cellspacing="0" style="border-bottom-width:0px;">
<tr><td style="border-bottom-width:0px;">
<div id="keydiv" style="float:left;display:block;padding-right:3px">
<div><b>Keywords:</b> (Separated by comma.)</div>
<div>
<input type="text" name="feedkeywords" value="<?php if(($keepsettings) AND ($_REQUEST['feedkeywords'])){echo $_REQUEST['feedkeywords'];} else{echo "example,tag,tag";}?>" size="35">
</div>
</div>
<div id="userdiv" style="float:left;display:none;padding-right:3px">
<div><b>Username:</b></div>
<div>
<input type="text" name="feedusername" value="channel/user" size="35">
</div>
</div>
<div id="mvdiv" style="width:100px;float:left;display:block;padding-right:3px">
<div><b>Max Videos:</b></div>
<div>
<input style="font-size:10px;" type="text" name="maxvideos" maxlength="3" size="2" value="<?php if(($keepsettings) AND ($_REQUEST['maxvideos'])){echo $_REQUEST['maxvideos'];} else{echo "20";}?>">
</div>
</div>
</td></tr>
</table>
<div id="clicksf" style="display:block";padding-right:3px";>
<br>

</div>
</div>
</div>
<?php
if(($keepsettings) AND ($_REQUEST['feedurl'])) {
echo 
"<div id=\"showsf\" style=\"display:block\";>";
} else {
echo 
"<div id=\"showsf\" style=\"display:none\";>";
}
?>

<table cellspacing="1" cellpadding="2" bgcolor="#C6D9E9" style="border-bottom-width:0px;">
<tr><td bgcolor="#f3f3f3" style="border-bottom-width:0px;"><b>Specific Feed/Page URL:</td></tr>
<tr><td bgcolor="#e3e3e3" style="border-bottom-width:0px;">
<input type="text" name="feedurl" size="50" value="<?php if(($keepsettings) AND ($_REQUEST['feedurl'])){echo $_REQUEST['feedurl'];} else{echo "";}?>">
</td></tr>
</table><br>
</div>
</td></tr></table>
<br>
<table class="widefat" cellspacing="0">
<thead>
<th>
Post Options
</th>
</thead>
<tr><td style="border-bottom-width:0px;">

<table cellspacing="4" cellpadding="4" bgcolor="#C6D9E9" style="border-bottom-width:0px;">
<tr><td bgcolor="#f3f3f3" style="border-bottom-width:0px;"><b>Publish Status:</b></td>
<td bgcolor="#e3e3e3" style="border-bottom-width:0px;">
<input value="publish" type="radio" name="poststatus"  onClick="hideschedule();" <?php if(($keepsettings) AND ($_REQUEST['poststatus'] == "publish")){echo "checked";} else if(!$keepsettings){echo "checked";}?>>Publish
<input value="pending" type="radio" name="poststatus" onClick="hideschedule();" <?php if(($keepsettings) AND ($_REQUEST['poststatus'] == "pending")){echo "checked";}?>>Pending
<input value="draft" type="radio" name="poststatus" onClick="hideschedule();" <?php if(($keepsettings) AND ($_REQUEST['poststatus'] == "draft")){echo "checked";}?>>Draft
<input value="future" type="radio" name="poststatus" onClick="showschedule();" <?php if(($keepsettings) AND ($_REQUEST['poststatus'] == "future")){echo "checked";}?>>Schedule
<input value="private" type="radio" name="poststatus" onClick="hideschedule();" <?php if(($keepsettings) AND ($_REQUEST['poststatus'] == "private")){echo "checked";}?>>Private
<?php
if (($keepsettings) AND ($_REQUEST['poststatus'] == "future")) {
echo 
"<div id=\"schedulediv\" style=\"float:left;display:block;padding-right:3px\">";
} else {
echo 
"<div id=\"schedulediv\" style=\"float:left;display:none;padding-right:3px\">";
}
?>

Interval between each post: <input type="text" name="scheduletime" value="<?php if(($keepsettings) AND ($_REQUEST['scheduletime'])){echo $_REQUEST['scheduletime'];}?>" size="3" maxlength="10"> Seconds<br>
300 = 5 minutes, 3600 = 1 hour
</div>
</td></tr>
<tr><td bgcolor="#f3f3f3" style="border-bottom-width:0px;"><b>Allow Comments:</b></td>
<td bgcolor="#e3e3e3" style="border-bottom-width:0px;"><input value="open" type="radio" name="commentstatus" <?php if(($keepsettings) AND ($_REQUEST['commentstatus'] == "open")){echo "checked";} else if(!$keepsettings){echo "checked";}?>>Yes
<input value="closed" type="radio" name="commentstatus" <?php if(($keepsettings) AND ($_REQUEST['commentstatus'] == "closed")){echo "checked";}?>>No
</td></tr>

<tr><td bgcolor="#f3f3f3" style="border-bottom-width:0px;"><b>Allow Pings:</td>
<td bgcolor="#e3e3e3" style="border-bottom-width:0px;">
<input value="open" type="radio" name="pingstatus" <?php if(($keepsettings) AND ($_REQUEST['pingstatus'] == "open")){echo "checked";} else if(!$keepsettings){echo "checked";}?>>Yes
<input value="closed" type="radio" name="pingstatus" <?php if(($keepsettings) AND ($_REQUEST['pingstatus'] == "closed")){echo "checked";}?>>No
</td></tr>

<tr><td bgcolor="#f3f3f3" style="border-bottom-width:0px;"><b>Post Author:</td>
<td bgcolor="#e3e3e3" style="border-bottom-width:0px;">
<select name="author">
<?php
$getauthors 
$wpdb->get_results("SELECT ID, display_name FROM $wpdb->users ORDER BY ID");
foreach (
$getauthors as $theauts) {
$author_id $theauts->ID;
$author_name $theauts->display_name;
if((
$keepsettings) AND ($_REQUEST['author'] == $author_id)){
echo 
"<option value=\"$author_id\" selected>$author_name</option>";
} else {
echo 
"<option value=\"$author_id\">$author_name</option>";
}
}
?>

</select>
</td></tr>

<div id="comments_div" style="display:block;">


<tr><td bgcolor="#f3f3f3" style="border-bottom-width:0px;"><b>Grab YouTube comments?</b></td>
<td bgcolor="#e3e3e3" style="border-bottom-width:0px;"><input value="yes" type="radio" name="grab_comments" <?php if(($keepsettings) AND ($_REQUEST['grab_comments'] == "yes")){echo "checked";}?>>Yes
<input value="no" type="radio" name="grab_comments" <?php if(($keepsettings) AND ($_REQUEST['grab_comments'] == "no")){echo "checked";} else if(!$keepsettings){echo "checked";}?>>No
</td></tr>

<tr><td bgcolor="#f3f3f3" style="border-bottom-width:0px;"><b>Max comments per video:</b></td>
<td bgcolor="#e3e3e3" style="border-bottom-width:0px;">
<input style="font-size:10px;" type="text" name="max_comments" maxlength="2" size="2" value="<?php if(($keepsettings) AND ($_REQUEST['max_comments'])){echo $_REQUEST['max_comments'];} else {echo "20";}?>">
</td></tr>

<tr><td bgcolor="#f3f3f3" style="border-bottom-width:0px;"><b>Auto aprove these comments?</td>
<td bgcolor="#e3e3e3" style="border-bottom-width:0px;">
<input value="yes" type="radio" name="aprove_comments" <?php if(($keepsettings) AND ($_REQUEST['aprove_comments'] == "yes")){echo "checked";} else if(!$keepsettings){echo "checked";}?>>Yes
<input value="no" type="radio" name="aprove_comments" <?php if(($keepsettings) AND ($_REQUEST['aprove_comments'] == "no")){echo "checked";}?>>No
</td></tr>
</table>

</div>
</td></tr></table>
</td><td width="200" valign="top" style="border-bottom-width:0px;">
<table class="widefat" cellspacing="0">
<thead>
<th>
Days to Update
</th>
</thead>
<tr><td bgcolor="#f3f3f3" style="border-bottom-width:0px;">
<input value="everyday" type="checkbox" name="days[]" onClick="Check(this)"><b>Everyday</b>
<br><input value="sunday" type="checkbox" name="days[]" <?php if(($keepsettings) AND ($sunday == "yes")){echo "checked";}?>>Sunday
<br><input value="monday" type="checkbox" name="days[]" <?php if(($keepsettings) AND ($monday == "yes")){echo "checked";}?>>Monday
<br><input value="tuesday" type="checkbox" name="days[]" <?php if(($keepsettings) AND ($tuesday == "yes")){echo "checked";}?>>Tuesday
<br><input value="wednesday" type="checkbox" name="days[]" <?php if(($keepsettings) AND ($wednesday == "yes")){echo "checked";}?>>Wednesday
<br><input value="thursday" type="checkbox" name="days[]" <?php if(($keepsettings) AND ($thursday == "yes")){echo "checked";}?>>Thursday
<br><input value="friday" type="checkbox" name="days[]" <?php if(($keepsettings) AND ($friday == "yes")){echo "checked";}?>>Friday
<br><input value="saturday" type="checkbox" name="days[]" <?php if(($keepsettings) AND ($saturday == "yes")){echo "checked";}?>>Saturday
</td></tr>
</table><br>
<table class="widefat" cellspacing="0">
<thead>
<th>
Categories
</th>
</thead>
<tr><td bgcolor="#f3f3f3" style="border-bottom-width:0px;">
<table width="100%" cellspacing="0">
<?php
$getcats 
$wpdb->get_results("SELECT term_id, term_taxonomy_id FROM $wpdb->term_taxonomy WHERE taxonomy = 'category' ORDER BY term_taxonomy_id DESC");
foreach (
$getcats as $thecats) {
$taxocat_id $thecats->term_id;
$showcat_name $wpdb->get_var("SELECT name FROM $wpdb->terms WHERE term_id = '$taxocat_id'");

if((
$keepsettings) AND ($_REQUEST['feedcategory'])) {
foreach (
$_REQUEST['feedcategory'] as $thecategory) {
if(
$taxocat_id == $thecategory) {
$waschecked 1;
echo 
"<tr><td style=\"border-bottom-width:0px;\"><input value=\"$taxocat_id\" type=\"checkbox\" name=\"feedcategory[]\" checked>$showcat_name</td></tr>";
}
}
} else if((!
$keepsettings) AND ($_REQUEST['feedcategory'])) {
if(
$taxocat_id == $_REQUEST['feedcategory']) {
$waschecked 1;
echo 
"<tr><td style=\"border-bottom-width:0px;\"><input value=\"$taxocat_id\" type=\"checkbox\" name=\"feedcategory[]\" checked>$showcat_name</td></tr>";
}
}

if (
$waschecked == "1") {
$waschecked 0;
continue;
}
echo 
"<tr><td style=\"border-bottom-width:0px;\"><input value=\"$taxocat_id\" type=\"checkbox\" name=\"feedcategory[]\">$showcat_name</td></tr>";
}
?>

</table>
</td></tr></table>
<br>
<table class="widefat" cellspacing="0">
<thead>
<th>
Finalize
</th>
</thead>
<tr><td bgcolor="#f3f3f3" style="border-bottom-width:0px;">
<table width="100%" cellspacing="0">
<br><center>
<input value="ks_yes" type="checkbox" name="keepsettings" <?php if($keepsettings){echo "checked";}?>> Save As Default<br><br>
<input type="submit" name="submit" class="button-primary" value="SAVE SOURCE">
</center>
</form>
<br>
</td></tr></table>
</td></tr></table>

<?php
VideoFly_showfooter
();
?>
Offline

Mister_Magoo 
Membro
Mensagens 594 Gostos 38
Troféus totais: 29
Trófeus: (Ver todos)
Nineth year Anniversary Eighth year Anniversary Quick Poster Signature Level 5 Search Windows User Super Combination Combination Topic Starter

videofly/zvf_showfeeds.php

Código: [Seleccione]
<?php
$table_name 
$wpdb->prefix "videofly";
$server_url $_SERVER['REQUEST_URI'];
$tv $_REQUEST['tv'];
$tf $_REQUEST['tf'];
$siteurl get_bloginfo('wpurl');

function 
VideoFly_feedON() {
global 
$wpdb;
$table_name $wpdb->prefix "videofly";
$fid $_GET['fid'];
$wpdb->query("UPDATE $table_name SET active = 'yes' WHERE fid = '$fid'");
echo 
"<font color=green>Source $fid is active now!</font><br>";
}

function 
VideoFly_feedOFF() {
global 
$wpdb;
$table_name $wpdb->prefix "videofly";
$fid $_GET['fid'];
$wpdb->query("UPDATE $table_name SET active = 'no' WHERE fid = '$fid'");
echo 
"<font color=red>The source $fid was stopped!</font><br>";
}

function 
VideoFly_delfeed() {
global 
$wpdb;
$table_name $wpdb->prefix "videofly";
$fid $_GET['fid'];
$wpdb->query("DELETE FROM $table_name WHERE fid = '$fid'");
echo 
"<font color=red>The source $fid was deleted!</font><br>";
}

function 
VideoFly_changemarks() {
global 
$wpdb;
$table_name $wpdb->prefix "videofly";
$markfeeds $_POST['markfeeds'];
$marksaction $_POST['marksaction'];

if (
$markfeeds) {

foreach(
$markfeeds as $fid) {

if (
$marksaction == "activeon") {
$wpdb->query("UPDATE $table_name SET active = 'yes' WHERE fid = '$fid'");
} else if (
$marksaction == "activeoff") {
$wpdb->query("UPDATE $table_name SET active = 'no' WHERE fid = '$fid'");
} else if (
$marksaction == "publish") {
$wpdb->query("UPDATE $table_name SET poststatus = 'publish' WHERE fid = '$fid'");
} else if (
$marksaction == "pending") {
$wpdb->query("UPDATE $table_name SET poststatus = 'pending' WHERE fid = '$fid'");
} else if (
$marksaction == "draft") {
$wpdb->query("UPDATE $table_name SET poststatus = 'draft' WHERE fid = '$fid'");
} else if (
$marksaction == "commentopen") {
$wpdb->query("UPDATE $table_name SET commentstatus = 'open' WHERE fid = '$fid'");
} else if (
$marksaction == "commentclosed") {
$wpdb->query("UPDATE $table_name SET commentstatus = 'closed' WHERE fid = '$fid'");
} else if (
$marksaction == "pingopen") {
$wpdb->query("UPDATE $table_name SET pingstatus = 'open' WHERE fid = '$fid'");
} else if (
$marksaction == "pingclosed") {
$wpdb->query("UPDATE $table_name SET pingstatus = 'closed' WHERE fid = '$fid'");
} else if (
$marksaction == "delete") {
$wpdb->query("DELETE FROM $table_name WHERE fid = '$fid'");
}

}
echo 
"<font color=green>Changes saved!</font><br>";
} else {
echo 
"<font color=red>No video sources selected!</font><br>";
}

}
?>

<div class=wrap>
<table width="100%"><tr><td>
<a href="admin.php?page=videofly/zvf_main.php" title="ZombiePlugins.com"><img src="<?php echo $siteurl?>/wp-content/plugins/videofly/includes/zvflogo.png" border="0" alt="ZombiePlugins.com"></a>
</td><td>
<a href="admin.php?page=videofly/zvf_main.php"><img src="<?php echo $siteurl?>/wp-content/plugins/videofly/includes/sources.png" border="0" alt="Sources"></a>
<a href="admin.php?page=zvf_Add_New_Feed"><img src="<?php echo $siteurl?>/wp-content/plugins/videofly/includes/addvideo.png" border="0" alt="Add Video"></a>
<a href="admin.php?page=zvf_Settings"><img src="<?php echo $siteurl?>/wp-content/plugins/videofly/includes/settings.png" border="0" alt="Settings"></a>
<a href="admin.php?page=zvf_Auto-Updates_Settings"><img src="<?php echo $siteurl?>/wp-content/plugins/videofly/includes/updates.png" border="0" alt="Updates"></a> <a href="admin.php?page=Adfly"><img src="<?php echo $siteurl?>/wp-content/plugins/videofly/includes/adfly.png" border="0" alt="Adfly"></a>
</td></tr></table>
<?php
switch ($_REQUEST['action']) {
    case 
"feedon":
VideoFly_feedON();
        break;
    case 
"feedoff":
        
VideoFly_feedOFF();
        break;
    case 
"publish":
        
VideoFly_publish();
        break;
    case 
"pending":
        
VideoFly_pending();
        break;
    case 
"draft":
        
VideoFly_draft();
        break;
    case 
"commentopen":
        
VideoFly_commentopen();
        break;
    case 
"commentclosed":
        
VideoFly_commentclosed();
        break;
    case 
"pingopen":
        
VideoFly_pingopen();
        break;
    case 
"pingclosed":
        
VideoFly_pingclosed();
        break;
    case 
"delfeed":
        
VideoFly_delfeed();
        break;
    case 
"changemarks":
        
VideoFly_changemarks();
        break;
    case 
"manualupdate":
        
VideoFly_manualupdate();
        break;
case "processfeed":
        
VideoFly_processfeed();
        break;
case "mu":
        echo 
"$tv new videos added from $tf feed(s)!<br>";
        break;
}

$oldyt "www.youtube.com/rss/tag";
$checkyoutube $wpdb->get_results("SELECT fid, feed FROM $table_name WHERE feed LIKE '%".$oldyt."%' ORDER BY fid");
if(
$checkyoutube) {
foreach ($checkyoutube as $ytinfo) {
$old_yt_url $ytinfo->feed;
$old_yt_id $ytinfo->fid;
$old_yt_keys str_replace("http://www.youtube.com/rss/tag/"""$old_yt_url);
$old_yt_keys str_replace(".rss"""$old_yt_keys);
$new_yt_keys str_replace('-'"/"$old_yt_keys);
$new_yt_url "http://gdata.youtube.com/feeds/api/videos/-/".$new_yt_keys."/?max-results=50";
$wpdb->query("UPDATE $table_name SET feed = '$new_yt_url' WHERE fid = '$old_yt_id'");
}
}

$fixyt "max-results=80";
$fixyoutube $wpdb->get_results("SELECT fid, feed FROM $table_name WHERE feed LIKE '%".$fixyt."%' ORDER BY fid");
if(
$fixyoutube) {
foreach ($fixyoutube as $fixytinfo) {
$fixold_yt_url $fixytinfo->feed;
$fixold_yt_id $fixytinfo->fid;
$fixnew_yt_url str_replace("max-results=80""max-results=50"$fixold_yt_url);
$wpdb->query("UPDATE $table_name SET feed = '$fixnew_yt_url' WHERE fid = '$fixold_yt_id'");
}
}

$oldshuf1 "http://www.shufuni.com/rssnews.xml?ct=amateur";
$newshuf1 "http://www.shufuni.com/rssnews.xml?ct=amateurs";
$checkshuf1 $wpdb->get_results("SELECT fid, feed FROM $table_name WHERE feed = '$oldshuf1' ORDER BY fid");
if(
$checkshuf1) {
foreach ($checkshuf1 as $shuf1info) {
$old_shuf1_id $shuf1info->fid;
$wpdb->query("UPDATE $table_name SET feed = '$newshuf1' WHERE fid = '$old_shuf1_id'");
}
}

$oldshuf2 "http://www.shufuni.com/rssnews.xml?ct=shemale";
$newshuf2 "http://www.shufuni.com/rssnews.xml?ct=Transexuals";
$checkshuf2 $wpdb->get_results("SELECT fid, feed FROM $table_name WHERE feed = '$oldshuf2' ORDER BY fid");
if(
$checkshuf2) {
foreach ($checkshuf2 as $shuf2info) {
$old_shuf2_id $shuf2info->fid;
$wpdb->query("UPDATE $table_name SET feed = '$newshuf2' WHERE fid = '$old_shuf2_id'");
}
}

$totalfeeds $wpdb->get_var("SELECT count(*) FROM $table_name");

if (
$totalfeeds >= "1") {
?>

<center>
<table width="100%" cellspacing="1">
<tr><td align="left">
<h2>My Video Sources</h2>
</td></tr>
</table>

<form action="<?php echo $server_url;?>" method="post" name="marksform" id="marksform">
<table class="widefat" width="100%" cellspacing="0">
<thead>
<tr>
<th scope="col"><b><a href="admin.php?page=videofly/zvf_main.php&show=byid&order=<?php if($_GET['order'] == "ASC") {echo "DESC";} else {echo "ASC";}?>" style="color:#333;font-style:bold"><u>ID</u></a></b></th>
<th scope="col"><b><a href="admin.php?page=videofly/zvf_main.php&show=bysource&order=<?php if($_GET['order'] == "ASC") {echo "DESC";} else {echo "ASC";}?>" style="color:#333;font-style:bold"><u>Video Sources</u></a></b></th>
<th scope="col"><b><a href="admin.php?page=videofly/zvf_main.php&show=bystatus&order=<?php if($_GET['order'] == "ASC") {echo "DESC";} else {echo "ASC";}?>" style="color:#333;font-style:bold"><u>Status</u></a></b></th>
<th scope="col"><b><a href="admin.php?page=videofly/zvf_main.php&show=bycats&order=<?php if($_GET['order'] == "ASC") {echo "DESC";} else {echo "ASC";}?>" style="color:#333;font-style:bold"><u>Categories</u></a></b></th>
<th scope="col"><b><a href="admin.php?page=videofly/zvf_main.php&show=bypoststatus&order=<?php if($_GET['order'] == "ASC") {echo "DESC";} else {echo "ASC";}?>" style="color:#333;font-style:bold"><u>Post Status</u></a></b></th>
<th scope="col"><b>Edit</b></th>
<th scope="col"><b>Del</b></th>
<th scope="col">
<input type="hidden" name="action" value="changemarks">
<input value="markall" type="checkbox" name="markfeeds[]" onClick="Check(this)">
</th>
</tr>
</thead>
<?php
if($_GET['show'] == "byid") {
$orderby "fid ".$_GET['order']."";
} else if(
$_GET['show'] == "bysource") {
$orderby "feed ".$_GET['order']."";
} else if(
$_GET['show'] == "bystatus") {
$orderby "active ".$_GET['order']."";
} else if(
$_GET['show'] == "bycats") {
$orderby "category ".$_GET['order']."";
} else if(
$_GET['show'] == "bypoststatus") {
$orderby "poststatus ".$_GET['order']."";
} else {
$orderby "fid DESC";
}
$getfeeds $wpdb->get_results("SELECT fid, feed, category, active, maxvideos, poststatus, sunday, monday, tuesday, wednesday, thursday, friday, saturday, commentstatus, pingstatus, grab_comments, max_comments, aprove_comments FROM $table_name ORDER BY $orderby");

foreach (
$getfeeds as $showfeed) {

if (
$showfeed->active == "yes") {
$turn "<a href=\"$server_url&action=feedoff&fid=$showfeed->fid\" title=\"Change to OFF\"><img src=\"$siteurl/wp-content/plugins/videofly/includes/on.png\" border=\"0\" alt=\"Change to OFF!\"></a>";
} else {
$turn "<a href=\"$server_url&action=feedon&fid=$showfeed->fid\" title=\"Change to ON\"><img src=\"$siteurl/wp-content/plugins/videofly/includes/off.gif\" border=\"0\" alt=\"Change to ON\"></a></a>";
}

$poststatus ucwords($showfeed->poststatus);
$commentstatus ucwords($showfeed->commentstatus);
$pingstatus ucwords($showfeed->pingstatus);
$grab_comments ucwords($showfeed->grab_comments);
$max_comments $showfeed->max_comments;
$aprove_comments ucwords($showfeed->aprove_comments);

$catid $showfeed->category;
$rssfeedurl $showfeed->feed;
$feedhost $rssfeedurl;
$feedhost strtolower($feedhost);
$feedhost str_replace("http://"""$feedhost);
$feedhost str_replace("www."""$feedhost);
$feedhost2 strstr($feedhost"/");
if (
$feedhost2) {
$feedhost str_replace($feedhost2""$feedhost);
}
$thesource str_replace("http://www."""$rssfeedurl);
$thesource str_replace("http://rss."""$thesource);
$thesource str_replace("http://gdata."""$thesource);
$thesource str_replace("http://en."""$thesource);
$thesource str_replace("http://video."""$thesource);
$thesource str_replace("http://playervideo."""$thesource);
$thesource2 strstr($thesource".com");
$thesource str_replace($thesource2""$thesource);
$thesource ucwords($thesource);
$sunday $showfeed->sunday;
$monday $showfeed->monday;
$tuesday $showfeed->tuesday;
$wednesday $showfeed->wednesday;
$thursday $showfeed->thursday;
$friday $showfeed->friday;
$saturday $showfeed->saturday;

$weekday = array($sunday$monday$tuesday$wednesday$thursday$friday$saturday);
if (
$weekday[0] == "yes") { $sun "Sunday";} else { $sun "";}
if (
$weekday[1] == "yes") { $mon "Monday";} else { $mon "";}
if (
$weekday[2] == "yes") { $tue "Tuesday";} else { $tue "";}
if (
$weekday[3] == "yes") { $wed "Wednesday";} else { $wed "";}
if (
$weekday[4] == "yes") { $thu "Thursday";} else { $thu "";}
if (
$weekday[5] == "yes") { $fri "Friday";} else { $fri "";}
if (
$weekday[6] == "yes") { $sat "Saturday";} else { $sat "";}

if ((
$sunday == "yes") AND  ($monday == "yes") AND ($tuesday == "yes") AND ($wednesday == "yes") AND ($thursday == "yes") AND ($friday == "yes") AND ($saturday == "yes")) { $everyday "yes";} else { $everyday "no";}
if (
$everyday == "yes") {
$showweekdays "<font size=1 color=#808080><b>Updates:</b> Everyday</font>";
} else {
$showweekdays "<font size=1 color=#808080><b>Updates:</b> $sun $mon $tue $wed $thu $fri $sat</font>";
}

$showcats unserialize($showfeed->category);
?>

<tr><td bgcolor="#f3f3f3"><b><?php  echo $showfeed->fid;?></b></td>
<td width="35%" align="left" valign="middle" bgcolor="#e4e4e4">
<?php
if (($thesource == "Shufuni") OR ($thesource == "Pornhub") OR ($thesource == "Xvideos") OR ($thesource == "Redtube") OR ($thesource == "Deviantclip") OR ($thesource == "Keezmovies") OR ($thesource == "Megaporn") OR ($thesource == "Globo") OR ($thesource == "Megavideo") OR ($thesource == "Hardsextube") OR ($thesource == "Extremetube")) {
?>

<a href="<?php  echo $showfeed->feed;?>" target="_blank" title="View Page"><img src="<?php echo $siteurl;?>/wp-content/plugins/videofly/includes/web.png" border="0" alt="View Page"></a> <a href="<?php  echo $showfeed->feed;?>" target="_blank" title="View Page"><?php  echo $thesource;?></a>
<?php
} else {
?>

<a href="<?php  echo $showfeed->feed;?>" target="_blank" title="View Feed"><img src="<?php echo $siteurl;?>/wp-content/plugins/videofly/includes/feed_go.png" border="0" alt="View Feed"></a> <a href="<?php  echo $showfeed->feed;?>" target="_blank" title="View Feed"><?php  echo $thesource?></a>
<?php
}
?>

<br><?php  echo $showweekdays;?>
<?php
echo "<br><font size=1 color=#808080><b>Max Videos:</b> ".$showfeed->maxvideos."  <b>Comments:</b> ".$commentstatus."  <b>Ping:</b> ".$pingstatus."</font>";
if(
$thesource == "Youtube"){echo "<br><font size=1 color=#808080><b>Scrape Comments:</b> ".$grab_comments." <b>Max:</b> ".$max_comments." <b>Auto aprove:</b> ".$aprove_comments."</font>";}
//echo "<font size=1 color=#c0c0c0><br>$showfeed->feed</font>";
echo "<br><a href=\"".$server_url."&action=processfeed&updatefeed=".$showfeed->fid."&showoutput=yes\">Scrape Videos!</a>";
?>

</td>
<td bgcolor="#f3f3f3"><?php  echo $turn;?></td>
<td bgcolor="#f3f3f3">
<?php
$cncount
=0;
foreach (
$showcats as $taxocat_id) {
$feedcatname $wpdb->get_var("SELECT name FROM $wpdb->terms WHERE term_id=$taxocat_id");
if (
$cncount "0") {echo "&nbsp;|&nbsp;";}
echo 
"<a href=\"admin.php?page=zvf_Add_New_Feed&feedcategory=".$taxocat_id."\" title=\"Add new feed to ".$feedcatname."\">".$feedcatname."</a>";
$cncount++;
}
?>
</td>
<td bgcolor="#f3f3f3" width="80"><?php  echo $poststatus?></td>
<td bgcolor="#f3f3f3"><a href="admin.php?page=zvf_Edit_Feed&editfeed=<?php echo $showfeed->fid;?>" title="Edit Feed <?php echo $showfeed->fid;?>"><img src="<?php echo $siteurl?>/wp-content/plugins/videofly/includes/edit.gif" border="0" alt="Edit Feed <?php echo $showfeed->fid;?>"></a></td>
<?php $imgsiteurl get_option('siteurl');?>
<?php echo"<td bgcolor=\"#e4e4e4\"><a href=\"#\" onclick=\"delconfirm('".$server_url."&action=delfeed&fid=".$showfeed->fid."','Do you really want to delete the Feed ID ".$showfeed->fid." ?');return false;\" title=\"Delete Feed ".$showfeed->fid."\"><img src=\"".$imgsiteurl."/wp-content/plugins/videofly/includes/del.png\" border=\"0\" alt=\"Delete Feed ".$showfeed->fid."\"></a></td>";?>
<th scope="col" valign="top"><input value="<?php  echo $showfeed->fid;?>" type="checkbox" name="markfeeds[]"></th>
</tr>

<?php  ?>


</table>
<table class="widefat" width="100%" cellspacing="1">
<thead>
<tr>
<th scope="col"><center><b>Tools</b></center></th>
<th scope="col"><center><b>Manual Update</b></center></th>
</tr>
</thead>
<tr><td bgcolor="#e4e4e4" width="35%" align="center">
<select name="marksaction" id="marksform" onchange="this.form.submit();" style="margin: 0 3em 0 3em;">
    <option value="With selected:" selected="selected">With selected:</option>
    <option value="activeon" >Source Status: ON</option>
    <option value="activeoff" >Source Status: OFF</option>
    <option value="publish" >Post Status: Published</option>
    <option value="pending" >Post Status: Pending</option>
    <option value="draft" >Post Status: Unpublished</option>
    <option value="commentopen" >Comment Status: Open</option>
    <option value="commentclosed" >Comment Status: Closed</option>
    <option value="pingopen" >Ping Status: Open</option>
    <option value="pingclosed" >Ping Status: Closed</option>
    <option value="" >--------------</option>
    <option value="delete">Delete</option>
    <option value="" >--------------</option>
</select></form>
</td><td bgcolor="#e4e4e4" width="65%" align="center">
<form action="<?php  echo $server_url?>" method="post" name="manualupdate">
<input type="hidden" name="action" value="manualupdate">
Display Output <input type="checkbox" name="showoutput" value="yes" checked>&nbsp;&nbsp;&nbsp;<input type="submit" name="submit" class="button-primary" value="Update Results" onclick="this.disabled=disabled">
</form>
</td></tr></table>
</div>
</center>
<?php 
} else {
echo 
"<center><br><a href=\"admin.php?page=zvf_Add_New_Feed\">Add feeds!</a></center>";
}
VideoFly_showfooter();
?>

Quais dessas linhas eu devo alterar?

E no site https://developers.google.com/youtube/2.0/developers_guide_protocol_video_feeds tem vários links qual eu devo usar para alterar.

Mil desculpas pelo meu conhecimento zero.
Offline

kurtmix 
Membro
Mensagens 1895 Gostos 605
Feedback +4

Troféus totais: 28
Trófeus: (Ver todos)
Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary Seventh year Anniversary Search Level 5 Windows User Super Combination Combination Topic Starter

Mais uma vez obrigado pela resposta.

Com o plugin instalado no meu wordpress clique em editar e nas opções achei videofly/zvf_newfeed.php (inativo) e videofly/zvf_showfeeds.php (inativo).

Vou postar abaixo o que tem em cada um.


Quando inserir código no post aqui no fórum use o botão "code" representado com um #.
Offline

Mister_Magoo 
Membro
Mensagens 594 Gostos 38
Troféus totais: 29
Trófeus: (Ver todos)
Nineth year Anniversary Eighth year Anniversary Quick Poster Signature Level 5 Search Windows User Super Combination Combination Topic Starter

Pelo desculpas esqueci disso.

Se permitir voltar a pergunta:
Quais dessas linhas eu devo alterar?

E no site https://developers.google.com/youtube/2.0/developers_guide_protocol_video_feeds tem vários links qual eu devo usar para alterar.
Offline

kurtmix 
Membro
Mensagens 1895 Gostos 605
Feedback +4

Troféus totais: 28
Trófeus: (Ver todos)
Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary Seventh year Anniversary Search Level 5 Windows User Super Combination Combination Topic Starter

Tem que alterar o link do feed que está desatualizado.
Offline

Mister_Magoo 
Membro
Mensagens 594 Gostos 38
Troféus totais: 29
Trófeus: (Ver todos)
Nineth year Anniversary Eighth year Anniversary Quick Poster Signature Level 5 Search Windows User Super Combination Combination Topic Starter

Eu acho que fiz uma besteira.

Entrei no:

videofly/zvf_showfeeds.php

Na linha "http://gdata.youtube.com/feeds/api/videos/-/" alterei para https://gdata."/

videofly/zvf_newfeed.php

Também mudei "http://gdata.youtube.com/feeds/api/videos/-/" alterei para https://gdata."/

E agora da o seguinte erro
Parse error: syntax error, unexpected '?' in /home/harmo329/public_html/wp-content/plugins/videofly/zvf_showfeeds.php on line 136
Offline

Mister_Magoo 
Membro
Mensagens 594 Gostos 38
Troféus totais: 29
Trófeus: (Ver todos)
Nineth year Anniversary Eighth year Anniversary Quick Poster Signature Level 5 Search Windows User Super Combination Combination Topic Starter

@kurtmix algum help?