在 ClipBucket 视频共享脚本中,Watch_video.html 页面包含一个订阅按钮,但不包含该视频的用户拥有的订阅者数量。
但是,在用户频道页面中,有一个数量。这是输出金额的代码。 {$u.subscribers|number_format}
我尝试了以下内容,但什么都没有。
{$vdo.userid.subscribers|number_format}
watch_video.html的完整代码:https://raw.githubusercontent.com/arslancb/clipbucket/master/upload/styles/cbv2new/layout/watch_video.html
频道页面(没有足够的代表来发布链接)
ClipBucket完整代码:https://github.com/arslancb/clipbucket/tree/master/upload
任何帮助,不胜感激。
我在这篇博文中找到了解决方案:在 ClipBucket 的视频页面上显示订阅者数量。
我测试了它,它工作得很好。
首先转到watch_video.php并添加以下内容:
//Getting the user information - Read more: BLOG.GEORGECHALHOUB.COM
echo $u = $vdo['username'];
$u = mysql_clean($u);
$udetails = $userquery->get_user_details($u);
assign("u",$udetails);
//End Getting the user information
然后转到watch_video.html并添加以下要显示数字的智能行:
{$u.subscribers|number_format}
就是这样。它应该有效。