");
37 if ($ftsettings['video_facebook_comments'] == "1") {
38 add_to_head("\n");
39 echo "\n";
40 }
41
42
43 if ($ftsettings['vidsenable'] !== "1" && !checkrights('VID')) { redirect("../../index.php"); }
44 if ($ftsettings['vidsenable'] !== "1" && iADMIN && checkrights('VID')) { echo "
\n";
82
83 echo"
".$locale['ft_010']."
84
n";
85 if ($data['video_description'] != "") {
86 echo"
".$locale['ft_008']."
87 ".nl2br(parsesmileys(parseubb(stripslashes($data['video_description']))))."n";
88 echo"";
89 }
90
91 echo"
\n";
92 }
93
94 if ($data['video_url'] != "") {
95 echo "\n";
96 if ($ftsettings['relatedvids'] == "1"){
97 echo"
";
98 require_once INFUSIONS."fusion_tube/inc/related_videos.php";
99 echo"
";
100 }
101
102 echo"
".$data['video_name']."
".$new."
";
103 echo"
104
105
n";
106 }
107 echo "
\n";
108
109 if ($ftsettings['video_descimg_pos'] == "0"){
110 echo"\n";
111 echo"
".$locale['ft_010']."
112
n";
113 if ($data['video_description'] != "") {
114 echo"
".$locale['ft_008']."
115 ".nl2br(parsesmileys(parseubb(stripslashes($data['video_description']))))."n";
116 echo"";
117 }
118 echo"
\n";
119 }
120
121 if ($ftsettings['video_comments'] == "1") { $video_comments = dbcount("(comment_id)", DB_COMMENTS, "comment_type='V' AND comment_hidden='0'
AND comment_item_id='".$data['video_id']."'"); }
122 echo "\n";
123 echo "
";
124 echo "".$locale['ft_018']." ".$locale['ft_060']." ".showdate("%B %d %Y %H:%M", $data['video_datestamp'])."
".$locale['ft_019']." ".profile_link($data['user_id'], $data['user_name'], $data['user_status'])." \n";
125 if ($data['video_update_datestamp']) {
126 echo" ".$locale['ft_148']." ".showdate("%B %d %Y %H:%M", $data['video_update_datestamp'])." \n";
127 }
128 echo"\n";
129 echo "
";
130 echo "
";
131 echo"".$data['video_name'] ." ".$locale['ft_061']." ".$data['video_views']." ".$locale['ft_062'].".";
132 echo "
\n";
133 if ($ftsettings['video_comments'] == "1") {
134 echo "
";
135 echo"";
136 echo "
\n";
137 }
138
139 if ($ftsettings['video_ratings'] == "1") {
140 echo "
";
141 $rate = dbquery("SELECT SUM(rating_vote) FROM ".DB_RATINGS." WHERE rating_type='V' AND rating_item_id='".$data['video_id']."'");
142 $info = dbresult($rate,0);
143 $num_rating = dbcount("(rating_vote)", DB_RATINGS, "rating_type='V' AND rating_item_id='".$data['video_id']."'");
144 $video_rating = ($num_rating ? $info / $num_rating : 0);
145 echo"
".$locale['ft_151']."";
146 echo "
\n";
147 }
148
149 if ($ftsettings['video_social'] == "1") {
150 echo "
";
151 echo"
158 ";
159 echo "
\n";
160 }
161 if ($ftsettings['video_youtube_link'] == "1") {
162 echo "
";
163 echo"
\n";
164 echo"\n";
165 echo "
\n";
166 }
167 echo"
";
168 echo "";
169
170 closetable();
171
172
173 if ($ftsettings['report_video'] == "1" && iMEMBER) { require_once INFUSIONS."fusion_tube/inc/report_video.php"; }
174
175 if ($ftsettings['video_facebook_comments'] == "1") {
176 opentable($locale['ft_156']);
177 global $settings;
178 echo"