Beiträge von markus228
-
-
So jetzt verschieb ich das mal hierher damit es keinen Krach gibt:
1.
Öffne die Datei jgs_portal_meincode.php und füge zwischen die beiden Pfeile folgendes ein:
PHPif($seiteninfos[seiten_text]=="[videos]") {require_once("./flvideo_functions.php");$last_videos = 3; // Wert für Anzahl der letzten Videos optimal 3 oder 5$result = $db->unbuffered_query("SELECT * FROM bb".$n."_videos_options");while($vardata = $db->fetch_array($result)) define($vardata['key'], $vardata['value']);$v_KON_path_jpgs = KON_path_jpgs;$flvideo_cnt = 0;$result = $db->unbuffered_query("SELECT vid_id FROM bb".$n."_videos WHERE vid_processed = 1 AND vid_status = 0 ORDER BY vid_date DESC LIMIT $last_videos");while($video = $db->fetch_array($result)) { $flvideo_cnt++; $data = vid_getData($video['vid_id']); eval("\$flvideo_5 .= \"".$tpl->get("flvideo_index_recent5")."\";"); if($flvideo_cnt == 1) $flvideo_5 = str_replace("<tr>", "", $flvideo_5);}$result = $db->query_first("SELECT * FROM bb".$n."_videos ORDER BY RAND() LIMIT 1");$flvideo_rand = vid_getData($result['vid_id']);eval ("\$seiteninfos[seiten_text] = \"".$tpl->get("sponsor_portalboxen_video")."\";");}
2. Erstelle ein neues Template mit dem Namen: sponsor_portalboxen_video
Füge in dieses folgendes ein:
Code<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:{$style['tableinwidth']}" class="tableinborder"> <tr> <td colspan="3" class="tabletitle"><span class="normalfont"><strong>» <font color="#B22222">$last_videos</font> neusten Videos</strong></span></td> </tr> <tr> <td colspan="3" class="tablea"><span class="smallfont"><strong><font color="#808080">Zufallsvideo »</font> $flvideo_rand[vid_title]</strong></span></td> </tr> <tr> <td rowspan="5" width="25%" class="tableb"><embed allowScriptAccess="always" src="flvideo.swf" width="320" height="260" border="0" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="file=$flvideo_rand[vid_filename].flv"/> </td>$flvideo_5 <tr> <td width="97%" colspan="3" class="tableb"><span class="smallfont"><strong>Mehr:</strong> <a href="flvideo.php?action=upload">Eigene Videos hochladen</a> | <a href="flvideo.php?action=search&for=tag&value=_all_">Alle Videos auflisten</a> | <a href="flvideo.php?action=tags">Tags</a></span></td> </tr></table><br />
3.
Erstelle nun eine Portalbox mit dem Inhalt:
"[videos]"