Ale nie! Kde je JavaScript?
Váš webový prehliadač nemá povolený JavaScript alebo nepodporuje JavaScript. Ak chcete správne zobraziť túto webovú lokalitu, povoľte JavaScript vo svojom webovom prehliadači, alebo inovujte na webový prehliadač, ktorý podporuje JavaScript.

Fórum

Video panel [Vyřešeno]

4 príspevky 1333 zobrazeníNaposledy aktualizované pred 2 rokmi
Someone tried to remake the panel: The last video, to show video only from one category.
The original panel, without any changes:
if (!defined('IN_FUSION')) {
 die('Access Denied');
}

$videos = function_exists('infusion_exists') ? infusion_exists('videos') : db_exists(DB_PREFIX.'videos');
if ($videos) {
 $side_panel = FALSE;
 require_once INFUSIONS.'videos/functions.php';

 $result = dbquery("SELECT v.*, vc.video_cat_id, vc.video_cat_name, u.user_id, u.user_name, u.user_status, u.user_avatar, u.user_level, u.user_joined
 FROM ".DB_VIDEOS." v
 INNER JOIN ".DB_VIDEO_CATS." vc on v.video_cat = vc.video_cat_id
 LEFT JOIN ".DB_USERS." u ON v.video_user=u.user_id
 ORDER BY v.video_datestamp DESC
 LIMIT 6
 ");

I think I need to add code, in INNER JOIN: AND vc.video_cat_id='2', but I can not get the panel to work. Can someone help, show sample code.
Upravil/a Kvido dňa 26/06/2018 19:48, pred 2 rokmi
The PHP-Fusion developer has changed the entire video code, you probably do not have it:

/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) PHP-Fusion Inc
| https://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: videos/videos.php
| Author: RobiNN
Upravil/a Kvido dňa 22/06/2018 14:17, pred 2 rokmi
Very easy


 $result = dbquery("SELECT v.*, vc.video_cat_id, vc.video_cat_name, u.user_id, u.user_name, u.user_status, u.user_avatar, u.user_level, u.user_joined
 FROM ".DB_VIDEOS." v
 INNER JOIN ".DB_VIDEO_CATS." vc on v.video_cat = vc.video_cat_id
 LEFT JOIN ".DB_USERS." u ON v.video_user=u.user_id
 WHERE v.video_cat = 2
 ORDER BY v.video_datestamp DESC
 LIMIT 6
 ");


@kvido neviem čo tu píšeš ale neprepísal som cely kód, on používa najnovšiu verziu z GitHubu. Naposledy som tam pridal podporu pre Vimeo. Teraz stačí dať link na YouTube alebo Vimeo a obrázok sa použije z videa. Ale stále sa tam dá dať vlastný.

Upravil/a RobiNN dňa 22/06/2018 15:23, pred 2 rokmi
RobiNN - Thank you very much for your help. It's really that simple. I tried to do it using old PF-7 samples for news and articles. Because of this, my panel completely stopped showing up.
Upravil/a zizub dňa 22/06/2018 20:17, pred 2 rokmi