Author |
Message |
hicuxunicorniobestbuildpc
The Mouse Is Extension Of Arm
Joined: Aug 13, 2009
Posts: 1123
|
Posted:
Sat Dec 04, 2021 4:48 pm |
|
Code:Warning: gmdate() expects parameter 2 to be integer, string given in /www.bestbuildpc.org/modules/RN_Video/index.php on line 26
|
Code:echo '<tr><td valign="top"><a class="youtube" href="https://player.vimeo.com/video/' . $video->id . '">
<img class="vimg" src="' . $video->thumbnail_large . '" alt="" /></a></td><td>
<span class="larger thick"><a class="youtube" href="https://player.vimeo.com/video/' . $video->id . '">' . $video->title . '</a></span>
<br /><span class="thick">' . _RNVIDVIEWS . '</span> ' . $video->stats_number_of_plays . ' ' . _RNVIDTIMES . '
<br /><span class="thick">' . _RNVIDDISC . '</span> ' . strip_tags($video->description) . '
<br /><span class="thick">' . _RNVIDDUR . '</span> ' . gmdate("i:s", rtrim($video->duration)) . '
</td></tr>';
}
echo '</table>';
|
Line error: Code:<br /><span class="thick">' . _RNVIDDUR . '</span> ' . gmdate("i:s", rtrim($video->duration)) . '
|
I do know this is not a module from the core files but it was made for Ravennuke to work but since I upgrade to php 7 is not working at all. |
|
|
|
|
neralex
Site Admin
Joined: Aug 22, 2007
Posts: 1774
|
Posted:
Sun Dec 05, 2021 12:35 pm |
|
try this:
php Code:<br /><span class="thick">' . _RNVIDDUR . '</span> ' . date("i:s", rtrim($video->duration)) . '
|
|
_________________ Github: RavenNuke |
|
|
|
hicuxunicorniobestbuildpc
|
Posted:
Sun Dec 05, 2021 4:29 pm |
|
Nee I got this
Warning: date() expects parameter 2 to be integer, string given in /www.bestbuildpc.org/modules/RN_Video/index.php on line 26
Code:<br /><span class="thick">' . _RNVIDDUR . '</span> ' . date("i:s", rtrim($video->duration)) . '
|
|
|
|
|
|
neralex
|
Posted:
Mon Dec 06, 2021 12:23 pm |
|
Without to know the content of $video->duration is nothing to say. Read the both links below, check the output of $video->duration, modify the code and test it again.
[ Only registered users can see links on this board! Get registered or login! ]
[ Only registered users can see links on this board! Get registered or login! ] |
|
|
|
|
hicuxunicorniobestbuildpc
|
Posted:
Tue Dec 07, 2021 4:57 pm |
|
I really don't get it.
I understand this
Code:
function get_time_string($seconds)
{
return date('H:i:s', strtotime("2000-01-01 + $seconds SECONDS"));
}
|
but I do not know what I should replace instead of... |
|
|
|
|
neralex
|
Posted:
Thu Dec 09, 2021 7:02 am |
|
Check the output:
php Code:echo $video->duration;
|
|
Last edited by neralex on Thu Dec 09, 2021 7:04 am; edited 1 time in total |
|
|
|
hicuxunicorniobestbuildpc
|
Posted:
Thu Dec 09, 2021 7:04 am |
|
Warning: date() expects parameter 2 to be integer, string given in /www.bestbuildpc.org/modules/RN_Video/index.php on line 26
it just shows this.
Views: times
Description:
Video Duration:
Views: times
Description:
Video Duration:
Views: times
Description:
Video Duration:
Views: times
Description:
Video Duration:
Views: times
Description:
Video Duration:
Views: times
Description:
Video Duration:
Views: times
Description:
Video Duration:
Views: times
Description:
Video Duration:
Views: times
Description:
Video Duration: |
|
|
|
|
neralex
|
Posted:
Thu Dec 09, 2021 9:48 am |
|
Check the output:
php Code:echo $video->duration;
|
|
|
|
|
|
hicuxunicorniobestbuildpc
|
Posted:
Sat Dec 18, 2021 5:13 am |
|
What do u mean with output? |
|
|
|
|
|