Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x
Author Message
hicuxunicorniobestbuildpc
The Mouse Is Extension Of Arm



Joined: Aug 13, 2009
Posts: 1123

PostPosted: Sat Dec 04, 2021 4:48 pm Reply with quote

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.
 
View user's profile Send private message
neralex
Site Admin



Joined: Aug 22, 2007
Posts: 1774

PostPosted: Sun Dec 05, 2021 12:35 pm Reply with quote

try this:

php Code:
<br /><span class="thick">' . _RNVIDDUR . '</span> ' . date("i:s", rtrim($video->duration)) . '

_________________
Github: RavenNuke 
View user's profile Send private message
hicuxunicorniobestbuildpc







PostPosted: Sun Dec 05, 2021 4:29 pm Reply with quote

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







PostPosted: Mon Dec 06, 2021 12:23 pm Reply with quote

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







PostPosted: Tue Dec 07, 2021 4:57 pm Reply with quote

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







PostPosted: Thu Dec 09, 2021 7:02 am Reply with quote

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







PostPosted: Thu Dec 09, 2021 7:04 am Reply with quote

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







PostPosted: Thu Dec 09, 2021 9:48 am Reply with quote

Check the output:

php Code:
echo $video->duration;
 
hicuxunicorniobestbuildpc







PostPosted: Sat Dec 18, 2021 5:13 am Reply with quote

What do u mean with output?
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©