• Welcome to PHPVIBE Forums. 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 P.

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.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

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)