• Welcome to WooUSEFUL by PHPVIBE . Please log in.

[ Video Sharing CMS v4 ] PHPVibe 3.5 small patches.

Started by PHPVibe A.,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

PHPVibe A.Topic starter

Committed a patch to moderator/setts.php and moderator/players.php as reported here

PHPVibe A.Topic starter

Patched tpl/main/css/ files vibe.style.css and responsive.css , removed left margin on .container, and video holder 1% padding left.

Marius

Open a topic if you need an answer or have a question that consigns patches, do not report the thread.
It will stay close so people browse it fast and see what's being added and where.
If this helped, consider buying me a coffee.
20 years coding, tweaking, building in PHP. Still creating!
  •  

PHPVibe A.Topic starter

Changed thumb_fix function in lib/functions.php to:
// Thumb fix
function thumb_fix($thumb, $resize = false, $w=280, $h=180) {
if($thumb) {
if ((strpos($thumb, "http") === 0) || (strpos($thumb, "https") === 0) || (strpos($thumb, "www.") === 0)){
$thumb = str_replace("www.","",$thumb);
if(strpos($thumb, 'http') !== 0)  {
  return 'http://' . $thumb;
} else {
  return $thumb;
}
} elseif($resize) {
return site_url().'res.php?src='.$thumb.'&q=100&w='.$w.'&h='.$h;
}else {
return site_url().$thumb;
}
}
}


To avoid https issues.

Similar topics (7)