Besøgende
Gæster online: 6
Brugere online: 0
Antal brugere: 1,664
Nyeste bruger: Kiemba
10 nyeste brugere: Klik her
 28,287,660 Unikke besøg
8009 Besøg pr. dag
Synes godt om
Translate this page
Tilfældige Avatars
375 brugere (22.62%)
Har allerede en Avatar.
Artikler
Nyeste artikler
V7 versions-liste 13017
V6/V7-identifier 17879
Tilfældigt tema på ... 13424
Hvordan tælles unik... 14585
Ens registreringssi... 169116
Populære artikler
Ens registreringssi... 169116
Kør PHP-Fusion loka... 34837
Tilfældigt banner/l... 27384
Flytning af PHP-Fus... 25403
Opgradering af PHP-... 21055
Info om artikler
Artikler i databasen: 9
Læst antal gange: 336700
Downloads
Nyeste downloads
Danske sprogfiler ... 109
Avatar in viewforu... 580
Latest Blacklisted... 577
Search in Shouts 531
Users Websites Pan... 511
Populære downloads
DeLuxe Dropdown Me... 3396
CSS Dropdown Menu ... 2412
Installations-vide... 2266
PHP-Fusion v7.00.0... 2169
Forum Pack v1.0 1883
Info om downloads
Filer i databasen: 180
Hentet antal gange: 87578
Statistik mm.
Se indlæg
PHPFusion-Tips.dk :: PHP-Fusion v7.02.XX :: Infusioner
Hvem er her? 1 gæst(er)
 Udskriv debat
Ny linie under filmtitel
MichaelP
#1 Udskriv indlæg
Lagt på d. 14-03-2016 13:40
Brugers avatar

Junior bruger


Antal indlæg: 22
Tilmeldt: 23.07.08
Sidst set: 07.04.16
On/Offline: Offline
Status:
Ingen status er valgt
Dagens humør:
Ikke valgt
 
Hejsa
I infusionen " The Kroax "
Vil jeg gerne have tilføjet en linie, under filmens titel, således jeg kan skrive
længden på filmen - Hvordan gør jeg det ?

Det skal gerne stå således :

FILMTITEL
LÆNGDE

Jeg skal have tilføjet det under den her kode :

Download kildekode  Kode
<td width=\"49%\" align=\"right\">".$locale['KROAX204']."</td>
<td><input type=\"text\" name=\"titel\" value=\"$titel\" class=\"textbox\" style=\"width:250px;\"></td>
<tr>




På forhånd tak
Redigeret af MichaelP d. 14-03-2016 14:57
Til forsiden  Til toppen af forum  Til bunden af forum
Smokeman
#2 Udskriv indlæg
Lagt på d. 15-03-2016 21:25
Brugers avatar

Super Administrator


Antal indlæg: 12134
Tilmeldt: 25.01.08
Sidst set: 28.01.17
On/Offline: Offline
Status:
Startet så småt op igen..
Dagens humør:

 
Hejsa.

I hvilken fil finder du den kodestump du har postet ?
Til forsiden  Til toppen af forum  Til bunden af forum
MichaelP
#3 Udskriv indlæg
Lagt på d. 15-03-2016 22:30
Brugers avatar

Junior bruger


Antal indlæg: 22
Tilmeldt: 23.07.08
Sidst set: 07.04.16
On/Offline: Offline
Status:
Ingen status er valgt
Dagens humør:
Ikke valgt
 
Hejsa
Det gør jeg i kroax_admin.php startende ved linie 161.
koden er her :

Download kildekode  Kode
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright © 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Author: Domi & fetloser
| www.venue.nu                      
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!checkRights("I")) { ("Location:../../index.php"); exit; }
echo "<script type=\"text/javascript\" src=\"".INFUSIONS."the_kroax/admin/js.js\"></script>";

if (isset($id) && !isNum($id)) fallback("index.php");

echo"
<SCRIPT LANGUAGE=\"JAVASCRIPT\" TYPE=\"TEXT/JAVASCRIPT\">
<!--Hide script from old browsers
function confirmdelete() {
return confirm(\"".$locale['KROAX224']."\")
}
//Stop hiding script from old browsers -->
</SCRIPT>";

function getparent($parentid,$title)
{
global $db_prefix;
   $result=dbquery("select * from ".$db_prefix."kroax_kategori where cid=$parentid");
   $data = dbarray($result);
   if ($data['title']!="") $title=$data['title']." &raquo; ".$title;
   if ($data['parentid']!=0)
   {
      $title=getparent($data['parentid'],$title);
   }
    return $title;
}


if (isset($step) && $step == "delete") {
$result1 = dbquery("SELECT kroax_url,kroax_tumb FROM ".$db_prefix."kroax WHERE kroax_id='$id'");
$remove = dbarray($result1);
$kroaxurl="".$remove['kroax_url']."";
$kroaxtumb="".$remove['kroax_tumb']."";
@unlink($kroaxurl);
@unlink($kroaxtumb);
$resulta = dbquery("DELETE FROM ".$db_prefix."kroax WHERE kroax_id='$id'");
$resultb = dbquery("DELETE FROM ".$db_prefix."kroax_favourites WHERE fav_id='$id'");
$resultc = dbquery("DELETE FROM ".$db_prefix."comments WHERE comment_item_id='$id'");
$resultd = dbquery("DELETE FROM ".$db_prefix."kroax_ratings  WHERE rating_item_id ='$id'");
redirect("".INFUSIONS."the_kroax/admin/admin.php?a_page=main");

}

if (isset($_POST['save_cat'])) {
$titel = stripinput($_POST['titel']);
$category = stripinput($_POST['cat']);
$visibility_opts = stripinput($_POST['visibility_opts']);
$date = stripinput($_POST['date']);
$embed_code = ($_POST['embed_code']);
$uploader = stripinput($_POST['uploader']);
$lastplayed = stripinput($_POST['lastplayed']);
$approval = stripinput($_POST['approval']);
$url = stripinput($_POST['url']);
$downloads = stripinput($_POST['downloads']);
$hits = stripinput($_POST['hits']);
$description = stripslashes($_POST['description']);
$tumb = stripinput($_POST['tumb']);
$errorreport = stripinput($_POST['errorreport']);
$from = stripinput($_POST['from']);

$yt225 = strpos($url, '.999');
$gv225 = strpos($url, '.998');
$st225 = strpos($url, '.stm');
$em225 = strpos($url, '.emb');

if($yt225 !== false) {$from = "";}
if($gv225 !== false) {$from = "";}
if($st225 !== false) {$from = "";}
if($em225 !== false) {$from = "";}

if (isset($step) && $step == "edit") {
if($visibility_opts == "") $visibility_opts="0";
if($url == "") $url=".emb";
if($embed_code != "") $url=".emb";
$cat_changer = dbquery("SELECT kroax_id,kroax_cat,kroax_access,kroax_access_cat FROM ".$db_prefix."kroax WHERE kroax_id='$id'");
$cat = dbarray($cat_changer);
$a_cat= $cat['kroax_cat'];
$access_cat= $cat['kroax_access_cat'];
$cat_cat = dbquery("SELECT access,title FROM ".$db_prefix."kroax_kategori WHERE title='$cat'");
$test_cat = dbarray($cat_cat);
$a_cat1= $test_cat['access'];
$a_cat2= $test_cat['title'];
if($a_cat1 == "") $a_cat1="0";
$result = dbquery("UPDATE ".$db_prefix."kroax SET kroax_access_cat='$a_cat1', kroax_titel='$titel', kroax_cat='$category', kroax_access='$visibility_opts', kroax_date='$date', kroax_embed='$embed_code', kroax_uploader='$uploader', kroax_lastplayed='$lastplayed', kroax_approval='$approval', kroax_url='$url$from', kroax_downloads='$downloads', kroax_hits='$hits', kroax_description='$description', kroax_tumb='$tumb', kroax_errorreport='$errorreport' WHERE kroax_id='$id'");
} else {
if($url == "") $url=".emb";
if($embed_code != "") $url=".emb";
$cat = stripinput($_POST['cat']);
$cat_cat = dbquery("SELECT access,title FROM ".$db_prefix."kroax_kategori WHERE title='$cat'");
$test_cat = dbarray($cat_cat);
$a_cat1=$test_cat['access'];
if($a_cat1 == "") $a_cat1="0";
if($cat =="") $a_cat1="0";
$result = dbquery("INSERT INTO ".$db_prefix."kroax VALUES('', '$titel', '$cat', '$visibility_opts', '$a_cat1', '$date', '$embed_code', '$uploader', '$lastplayed', '$approval', '$url$from', '$downloads', '$hits', '$description', '$tumb', '$errorreport')");
}
redirect("".INFUSIONS."the_kroax/admin/admin.php?a_page=main");
}

if (isset($step) && $step == "edit") {
$result = dbquery("SELECT * FROM ".$db_prefix."kroax WHERE kroax_id='$id'");
$data = dbarray($result);
$titel = $data['kroax_titel'];
$cat = $data['kroax_cat'];
$visibility_opts = $data['kroax_access'];
$date = $data['kroax_date'];
$embed_code = $data['kroax_embed'];
$uploader = $data['kroax_uploader'];
$lastplayed = $data['kroax_lastplayed'];
$approval = $data['kroax_approval'];
$url = $data['kroax_url'];
$downloads = $data['kroax_downloads'];
$hits = $data['kroax_hits'];
$description = $data['kroax_description'];
$tumb = $data['kroax_tumb'];
$errorreport = $data['kroax_errorreport'];

$formaction = "".INFUSIONS."the_kroax/admin/admin.php?a_page=main&step=edit&id=".$data['kroax_id']."";
} else {
$now = time();
$titel = ""; $cat = ""; $visibility_opts = ""; $date= "".$now.""; $embed_code= ""; $uploader= "".$userdata['user_name'].""; $lastplayed= ""; $approval= ""; $url= ""; $downloads= ""; $hits= ""; $description= ""; $tumb= ""; $errorreport= "";
$formaction = "".INFUSIONS."the_kroax/admin/admin.php?a_page=main";
}
echo"<input type='text' id='query' class='textbox' style=' height: 17px; width: 100px; border: 1px solid #000; background-color: #636363; color: #000; font-size: 12px;' value='".$locale['KROAX109']."' onBlur=\"if(this.value=='') this.value='".$locale['KROAX109']."';\" onFocus=\"if(this.value=='".$locale['KROAX109']."') this.value='';\" onKeyDown=\"if(event.keyCode==13) Search();\"><a onClick=\"javascript:Search();\" class='button'>".$locale['KROAX109']."</a>";

if($lastplayed != "") {
$lstplyd =  date("F j, Y, g:i a", $lastplayed);
} else {
$lstplyd = "";
}

$time = time();
if($date != "") {
$dateadded =  date("F j, Y, g:i a", $date);
} else {
$dateadded =  date("F j, Y, g:i a", $time);
}

echo "<form name=\"addcat\" method=\"post\" action=\"$formaction\">
<table align=\"center\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" class=\"tbl\">
<tr>
<td width=\"40%\" align=\"right\" valign=\"top\">
<table align=\"center\" cellspacing=\"0\" cellpadding=\"0\" class=\"tbl\">
</tr>
<td width=\"49%\" align=\"right\">".$locale['KROAX204']."</td>
<td><input type=\"text\" name=\"titel\" value=\"$titel\" class=\"textbox\" style=\"width:250px;\"></td>
<tr>
<td align=\"right\">".$locale['KROAX208']."</td>
<td><input type=\"text\" name=\"url\" value=\"$url\" class=\"textbox\" style=\"width:250px;\"></td>
</tr>
<tr>
<td align=\"right\">".$locale['KROAX225']."</td>
<td><select name=\"from\" class=\"small\">
          <option value=\"\">General URL</option>
   <option value=\".999\">You Tube</option>
   <option value=\".998\">Google Video</option>
   <option value=\".stm\">Streaming</option>
       </select></td>
</tr>
<tr>
<td align=\"right\">".$locale['KROAX316']."</td>
<td><input type=\"text\" name=\"uploader\" value=\"$uploader\" class=\"textbox\" style=\"width:120px;\"></td>
</tr>
<tr>
<td align=\"right\">".$locale['KROAX317']."</td>
<td>&nbsp;$dateadded<br></td>
</tr>
<tr>
<td align=\"right\">".$locale['MKROAX101']."</td>
<td>&nbsp;$lstplyd<br></td>
</tr>
<tr>
<td align=\"right\">".$locale['KROAX318']."</td>
<td><input type=\"text\" name=\"hits\" value=\"$hits\" class=\"textbox\" style=\"width:50px;\"></td>
</tr>";
echo "<input type=\"hidden\" name=\"date\" value=\"$date\" class=\"textbox\" style=\"width:50px;\">";
echo "<input type=\"hidden\" name=\"lastplayed\" value=\"$lastplayed\" class=\"textbox\" style=\"width:50px;\">";

$visibility_opts = ""; $sel = "";
   $user_groups = getusergroups();
   while(list($key, $user_group) = each($user_groups)){
$sel = ($news_visibility == $user_group['0'] ? " selected" : "");
   $visibility_opts .= "<option value=\"".$user_group['0']."\"$sel>".$user_group['1']." </option>\n";
}
$check = $data['kroax_access'];
$get_group = dbquery("SELECT group_name FROM ".$db_prefix."user_groups WHERE group_id='$check'");
while ($datagroup = dbarray($get_group))
$group = $datagroup['group_name'];
if($check == 101) $group="Member";
if($check == 102) $group="Admin";
if($check == 103) $group="SuperAdmin";
if($check == "0") $group="Public";
if($check == "") $check="0";
echo"
<td align=\"right\">".$locale['CKROAX109']."</td>
<td><select name=\"visibility_opts\" class=\"textbox\">
<option selected value=\"".$check."\">$group
$visibility_opts</select></td>
<tr>
<td align=\"right\" valign=\"top\">".$locale['MKROAX102']."</td>
<td><textarea name=\"embed_code\" cols=\"25\" rows=\"5\" class=\"textbox\">$embed_code</textarea>
</td></tr>
</table></td>
<td width=\"40%\" align=\"right\" valign=\"top\">
<table align=\"center\" cellspacing=\"0\" cellpadding=\"0\" class=\"tbl\">
<tr>
<td align=\"right\" valign=\"top\">".$locale['KROAX112']."</td>
<td><textarea name=\"description\" cols=\"45\" rows=\"10\" class=\"textbox\">$description</textarea>
</td></tr>
<tr>
<td align=\"right\">".$locale['KROAX205']." </td>
<td><input type=\"text\" name=\"tumb\" value=\"$tumb\" class=\"textbox\" style=\"width:200px;\"></td>
</tr>
<input type=\"hidden\" name=\"approval\" value=\"$approval\" readonly>";

echo"</table>";
$resultcat=dbquery("select title,cid from ".$db_prefix."kroax_kategori WHERE cid='$cat'");
$datacat = dbarray($resultcat);

echo "<tr><td align=\"center\" colspan=\"2\">".$locale['KROAX210']." :";
echo "<select class=\"textbox\" name=\"cat\"> <option value=\"".$datacat['cid']."\">".$datacat['title']."</option>";
$result=dbquery("select cid, title, parentid from ".$db_prefix."kroax_kategori order by parentid,title");
while(list($cid, $title, $parentid) = dbarraynum($result))
{
if ($parentid!=0) $title=getparent($parentid,$title);
echo "<option value=\"".$cid."\">".$title."</option>";
}
echo '</select></td></tr>';

echo"<td align=\"center\" colspan=\"2\">


<input type=\"submit\" name=\"save_cat\" value=\"".$locale['KROAX106']."\" class=\"button\"></td><td align=\"right\">
</tr>
</div>
</table>
</form>\n";
tablebreak();
echo "<div id=\"lajv\">";
$orderby = ($sortby == "all" ? "" : " WHERE kroax_titel LIKE '$sortby%'");
$result = dbquery("SELECT * FROM ".$db_prefix."kroax".$orderby."");
$rows = dbrows($result);
if (!isset($rowstart) || !isNum($rowstart)) $rowstart = 0;

if ($rows != 0) {
echo "<table align=\"center\" width=\"100%\" cellspacing=\"0\">
<tr>
<td align=\"left\" class=\"tbl2\" width=\"50%\"><b>".$locale['KROAX212']."</b></td>
<td align=\"center\" class=\"tbl2\" width=\"25%\"><b>".$locale['KROAX213']."</b></td>

<td align=\"center\" class=\"tbl2\" width=\"20%\"><b>".$locale['KROAX210']."</b></td>
<td align=\"right\" class=\"tbl2\" width=\"5%\"><b>".$locale['KROAX207']."</b></td>
</tr>\n";
$result = dbquery("SELECT * FROM ".$db_prefix."kroax".$orderby." ORDER BY kroax_id DESC, kroax_cat LIMIT $rowstart,10");
while ($data = dbarray($result)) {
$cdata = dbarray(dbquery("SELECT * FROM ".$db_prefix."kroax_kategori WHERE cid='".$data['kroax_cat']."' "));
echo "<tr>\n<td class=\"small\" width=\"22%\"><img src=\"".THEME."images/bullet.gif\" alt=\"\"> <a href=\"".INFUSIONS."the_kroax/admin/admin.php?a_page=main&step=edit&id=".$data['kroax_id']."\"><b>".$data['kroax_titel']."</b></a></td>\n";
echo "<td class=\"small\" align=\"center\" width=\"12%\">".$data['kroax_url']."</td>";
echo "<td class=\"small\" align=\"center\" width=\"5%\">".$cdata['title']."</td>";
echo "</td>";
echo "<td class=\"small\" align=\"right\" width=\"7%\"><a href=\"".INFUSIONS."the_kroax/admin/admin.php?a_page=main&step=delete&id=".$data['kroax_id']."\" onClick=\"return confirmdelete();\">".$locale['KROAX207']."</a></td></tr>";
}
echo "</table>\n";
echo "<hr>";
echo "<div align=\"center\" style=\"margin-top:5px;\">".makePageNav($rowstart,10,$rows,3,FUSION_SELF."?sortby=$sortby&")."\n</div>\n";
} else {
echo "<center><br>\n".$locale['KROAX208']." <b>$sortby<b><br><br>\n</center>\n";
}
echo "</div>";

$search = array(
"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R",
"S","T","U","V","W","X","Y","Z","0","1","2","3","4","5","6","7","8","9"
);
echo "<hr><table align=\"center\" cellpadding=\"0\" cellspacing=\"1\" class=\"tbl-border\">\n<tr>\n";
echo "<td rowspan=\"2\" class=\"tbl2\"><a href=\"".INFUSIONS."the_kroax/admin/admin.php?a_page=main&sortby=all\">".$locale['KROAX202']."</a></td>";
for ($i=0;$i < 36!="";$i++) {
echo "<td align=\"center\" class=\"tbl1\"><div class=\"small\"><a href=\"".INFUSIONS."the_kroax/admin/admin.php?a_page=main&sortby=".$search[$i]."\">".$search[$i]."</a></div></td>";
echo ($i==17 ? "<td rowspan=\"2\" class=\"tbl2\"><a href=\"".INFUSIONS."the_kroax/admin/admin.php?a_page=main&sortby=all\">".$locale['KROAX202']."</a></td>\n</tr>\n<tr>\n" : "\n");
}
echo "</table>\n";
?>



Til forsiden  Til toppen af forum  Til bunden af forum
Smokeman
#4 Udskriv indlæg
Lagt på d. 19-03-2016 20:51
Brugers avatar

Super Administrator


Antal indlæg: 12134
Tilmeldt: 25.01.08
Sidst set: 28.01.17
On/Offline: Offline
Status:
Startet så småt op igen..
Dagens humør:

 
Har kigget på det, og fået det til at virke.

Jeg har modificeret to filer:
- /infusions/the_kroax/admin/kroax_admin.php
- /infusions/the_kroax/functions.php

Opload dem til de rette steder, og kør flg. kodestump fra en brugeroprettet side - ved at indsætte koden, angive en tilfældig overskrift, samt skriv dit administratorkodeord. Tryk så Vis siden en enkelt gang. Så bliver der tilføjet et ekstra felt i databasen - kroax_length, som bruges til at gemme dataene om længderne på filmene.

Koden til at køre via en brugeroprettet side:
Download kildekode  Kode
<?php

$data = dbquery("ALTER TABLE `".$db_prefix."kroax`
ADD `kroax_length` VARCHAR(10) NULL DEFAULT NULL AFTER `kroax_titel`");

?>



Smokeman tilknyttede følgende fil:
Download fil laengde_til_kroax.rar Download fil
Redigeret af Smokeman d. 20-03-2016 01:27
Til forsiden  Til toppen af forum  Til bunden af forum
MichaelP
#5 Udskriv indlæg
Lagt på d. 20-03-2016 03:38
Brugers avatar

Junior bruger


Antal indlæg: 22
Tilmeldt: 23.07.08
Sidst set: 07.04.16
On/Offline: Offline
Status:
Ingen status er valgt
Dagens humør:
Ikke valgt
 
Der kommer rigtigt nok en ny linie i Admin delen,
men nu gemmer den pludselig ikke filmen længere,
Redigeret af MichaelP d. 20-03-2016 03:41
Til forsiden  Til toppen af forum  Til bunden af forum
Smokeman
#6 Udskriv indlæg
Lagt på d. 20-03-2016 09:02
Brugers avatar

Super Administrator


Antal indlæg: 12134
Tilmeldt: 25.01.08
Sidst set: 28.01.17
On/Offline: Offline
Status:
Startet så småt op igen..
Dagens humør:

 
Ok - prøv lige at overskrive alle filerne til infusionen - med dem jeg vedhæfter her. For det virker når jeg tester det.

Opload/overskriv alle filerne som jeg vedhæfter - ikke kun de to nævnt i mit tidligere indlæg.

Har i øvrigt kodet det ind i side-elementerne og centerelementet - og random-elementet. Så de også viser længden på filmen.
Smokeman tilknyttede følgende fil:
Download fil the_kroax_76.rar Download fil
Redigeret af Smokeman d. 20-03-2016 09:03
Til forsiden  Til toppen af forum  Til bunden af forum
MichaelP
#7 Udskriv indlæg
Lagt på d. 20-03-2016 10:34
Brugers avatar

Junior bruger


Antal indlæg: 22
Tilmeldt: 23.07.08
Sidst set: 07.04.16
On/Offline: Offline
Status:
Ingen status er valgt
Dagens humør:
Ikke valgt
 
Det virkede, da jeg havde overskrevet filerne OG afinstalleret og installeret infusionen igen.
Eller både og.

Det virker ikke, når man skifter til den visningstilstand jeg gerne vil have.

Jeg har vedhæftet eksempler af de 2 visningstilstande, hvor den der hedder
image1 er den jeg gerne vil have - dog hvor længden af klippet er under selve titlen.

www.lpo-dbschenker.dk/puggi/Image1.gif

www.lpo-dbschenker.dk/puggi/Image2.gif
Til forsiden  Til toppen af forum  Til bunden af forum
Smokeman
#8 Udskriv indlæg
Lagt på d. 21-03-2016 16:29
Brugers avatar

Super Administrator


Antal indlæg: 12134
Tilmeldt: 25.01.08
Sidst set: 28.01.17
On/Offline: Offline
Status:
Startet så småt op igen..
Dagens humør:

 
Jeg prøver at tage et kig på det senere. Tup
Til forsiden  Til toppen af forum  Til bunden af forum
MichaelP
#9 Udskriv indlæg
Lagt på d. 23-03-2016 00:08
Brugers avatar

Junior bruger


Antal indlæg: 22
Tilmeldt: 23.07.08
Sidst set: 07.04.16
On/Offline: Offline
Status:
Ingen status er valgt
Dagens humør:
Ikke valgt
 
Tak
Til forsiden  Til toppen af forum  Til bunden af forum
Smokeman
#10 Udskriv indlæg
Lagt på d. 24-03-2016 21:07
Brugers avatar

Super Administrator


Antal indlæg: 12134
Tilmeldt: 25.01.08
Sidst set: 28.01.17
On/Offline: Offline
Status:
Startet så småt op igen..
Dagens humør:

 
Hvad gør du lige, helt præcist - for at få den visning du har på billedet ?
- og hvor på siden/hvilken sti/url er du på når du ser det på dit billede 1 ?
Til forsiden  Til toppen af forum  Til bunden af forum
MichaelP
#11 Udskriv indlæg
Lagt på d. 24-03-2016 22:28
Brugers avatar

Junior bruger


Antal indlæg: 22
Tilmeldt: 23.07.08
Sidst set: 07.04.16
On/Offline: Offline
Status:
Ingen status er valgt
Dagens humør:
Ikke valgt
 
Til venstre over billederne, lige under søg feltet kan du se 2 ikoner.....Hvis du klikker der, skifter den visning.
Redigeret af MichaelP d. 24-03-2016 22:29
Til forsiden  Til toppen af forum  Til bunden af forum
Smokeman
#12 Udskriv indlæg
Lagt på d. 25-03-2016 00:20
Brugers avatar

Super Administrator


Antal indlæg: 12134
Tilmeldt: 25.01.08
Sidst set: 28.01.17
On/Offline: Offline
Status:
Startet så småt op igen..
Dagens humør:

 
Ok - så er jeg med.

Overskriv functions.php med dette indhold:
Download kildekode  Kode
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright © 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Author: Domi & fetloser
| www.venue.nu                      
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }

$this_lang =  str_replace("/", "", LOCALESET);
   if (file_exists(INFUSIONS."the_kroax/locale/".$this_lang.".php")) {
      include INFUSIONS."the_kroax/locale/".$this_lang.".php";
   } else {
      include INFUSIONS."the_kroax/locale/English.php";
   }

error_reporting(E_ALL -E_NOTICE); // Just if we missed something stupid, we want it to look good with limited time now !

// If register_globals is turned off, extract super globals (php 4.2.0+)
if (ini_get('register_globals') != 1) {
   if ((isset($_POST) == true) && (is_array($_POST) == true)) extract($_POST, EXTR_OVERWRITE);
   if ((isset($_GET) == true) && (is_array($_GET) == true)) extract($_GET, EXTR_OVERWRITE);
}

echo'<script type="text/javascript">
<!--Hide script from old browsers
function confirmreport() {
return confirm("'.$locale['KROAX108'].'")
}
//Stop hiding script from old browsers -->
</script>';


$kroaxsettings = dbarray(dbquery("SELECT * FROM ".$db_prefix."kroax_set WHERE kroax_set_id='1'"));

add_to_head("<link rel='stylesheet' type='text/css' href='".INFUSIONS."the_kroax/css/menu.css' />");
add_to_head("<script type='text/javascript' src='".INFUSIONS."the_kroax/search.js'></script>");

if ($kroaxsettings['kroax_set_ratings'] == "1")
{
if (!isset($p))
{
add_to_head("<link rel='stylesheet' type='text/css' href='".INFUSIONS."the_kroax/css/rating.css' />");
add_to_head("<script type='text/javascript' src='".INFUSIONS."the_kroax/rating.js'></script>");
}
}

if ($kroaxsettings['kroax_set_comments'] == "1")
{
if (!isset($p))
{
add_to_head("<link rel='stylesheet' type='text/css' href='".INFUSIONS."the_kroax/css/comments.css' />");
add_to_head("<script type='text/javascript' src='".INFUSIONS."the_kroax/comments.js'></script>");
add_to_head("<script type='text/javascript' src='".INFUSIONS."the_kroax/cnav.js'></script>");
}
}

function url_exists($url) {
global $data;
return true;
}
function breadcrumb($cid)
{
global $db_prefix,$locale,$data,$cdata;
$bcq=dbquery("select * from ".$db_prefix."kroax_kategori WHERE status='1' AND cid=$cid");
       while($bcd = dbarray($bcq))
      {
      $title=getparentlink($bcd['parentid'],$bcd['title'],$bcd['cid']);
      $title="<a href=\"".FUSION_SELF."\"><strong>Home</strong></a> &raquo;  $title";
      }
      return $title;
}

function getparent($parentid,$title)
{
global $db_prefix,$data;
   $result=dbquery("select * from ".$db_prefix."kroax_kategori where cid=$parentid");
   $data = dbarray($result);
   if ($data['title']!="") $title=$data['title']." &raquo; ".$title;
   if ($data['parentid']!=0)
   {
      $title=getparent($data['parentid'],$title);
   }
    return $title;
}

function getparentlink($parentid,$title,$cid)
{
global $db_prefix,$locale,$data,$cdata;
      $data=dbarray(dbquery("select cid, title, parentid from ".$db_prefix."kroax_kategori where cid=$parentid"));
         if ($data['title']!="")
      {
      $title='<a href="'.INFUSIONS.'the_kroax/kroax.php?category='.$data['cid'].'"><b>'.$data['title'].'</b></a> &raquo;  <a href="'.INFUSIONS.'the_kroax/kroax.php?category='.$cid.'"><b>'.$title.'</b></a>';
      }
      if ($data['parentid']!=0)
      {
         $title=getparentlink($data['parentid'],$title,$cid);
      }
      if ($data['parentid']==0)
      {
         $title='<a href="'.INFUSIONS.'the_kroax/kroax.php?category='.$cid.'"><b>'.$title.'</b></a>';
      }
   return $title;
}



function makeheader() {
global $data,$userdata,$kroaxsettings,$db_prefix,$locale;
echo"
<div class='silver'>
   <div id='nav'>
   <ul>
   <li><a href='".BASEDIR."index.php' title='Video´s index'>Video´s index</a></li>
   <li><a href='".INFUSIONS."the_kroax/kroax.php' title='".$locale['KROAX006']."'>".$locale['KROAX006']."</a></li>";

if ($kroaxsettings['kroax_set_show'] == "1")
{
echo "<li><a href='".INFUSIONS."the_kroax/random.php' title='".$locale['KROAX110']."'>".$locale['KROAX110']."</a></li>";
}
else
{
echo "<li> <a href='#' onclick=window.open('".INFUSIONS."the_kroax/random.php?p=1','Click','scrollbars=yes,resizable=yes,width=800,height=700')>".$locale['KROAX110']."</a></li>";
}
if (($kroaxsettings['kroax_set_allowuploads'] == "1") && (iMEMBER))
{
echo "<li><a href='#' onclick=window.open('".INFUSIONS."the_kroax/uploader/index.php','Uploader','scrollbars=yes,resizable=yes,width=520,height=520')>".$locale['KROAX111']."</a></li>";
}
if (($kroaxsettings['kroax_set_favorites'] == "1") && (iMEMBER))
{
echo "<li><a href='".INFUSIONS."the_kroax/favourites.php' title='".$locale['FKROAX103']."'>".$locale['FKROAX103']."</a></li>";
}
echo "<li><a href='".INFUSIONS."the_kroax/archive.php' title='".$locale['KROAX119']."'>".$locale['KROAX119']."</a></li>";
echo "</ul></div></div>";
echo "<table align='center' width='95%' cellspacing='0' cellpadding='0'>";

echo"<tr><td align='left'><input type='text' id='query' class='textbox'  value='".$locale['KROAX109']."' onblur=\"if(this.value=='') this.value='".$locale['KROAX109']."';\" onfocus=\"if(this.value=='".$locale['KROAX109']."') this.value='';\" onkeydown=\"if(event.keyCode==13) Search();\" /><input type='submit' value='".$locale['KROAX109']."' class='button' onclick='javascript:Search();' /></td>";
$result=dbquery("select cid, title, parentid from ".$db_prefix."kroax_kategori WHERE ".groupaccess('access')." order by parentid,title");
echo "<td align='right'>
<form method='post' action='".INFUSIONS."the_kroax/kroax.php'>
<select name='category' class='textbox' onchange=\"this.form.submit()\">";
echo '<option value="">'.$locale['KROAX320'].'</option>';
while(list($cid, $title, $parentid) = dbarraynum($result))
{
if ($parentid!=0) $title=getparent($parentid,$title);
echo '<option value="'.$cid.'">'.$title.'</option>';
}   

echo "</select></form></td></tr></table>";
}
function makelist() {
global $data,$userdata,$cdata,$kroaxsettings,$db_prefix,$locale,$browser,$pres;

if (isset($_COOKIE['kroaxthumbs']))
{
//thumb view enabled
$cdata = dbarray(dbquery("SELECT * FROM ".$db_prefix."kroax_kategori WHERE cid='".$data['kroax_cat']."'"));
$udata = dbarray(dbquery("SELECT user_id,user_name FROM ".$db_prefix."users WHERE user_name='".$data['kroax_uploader']."' "));
echo "<td align='left'>";
$checkurl = url_exists($data['kroax_tumb']);
$type = substr($data['kroax_url'], -3, 3);
if($type == "mp3")
{
$showimg = "<img src='".INFUSIONS."the_kroax/img/musicstream.jpg' title='".$data['kroax_titel']."' width='".$kroaxsettings['kroax_set_wi']."' height='".$kroaxsettings['kroax_set_hi']."' />";
}
elseif ($checkurl == "1") {
$showimg = "<img src='".$data['kroax_tumb']."' title='".$data['kroax_titel']."' width='".$kroaxsettings['kroax_set_wi']."' height='".$kroaxsettings['kroax_set_hi']."' />";
}
else {
$showimg = "<img src='".INFUSIONS."the_kroax/img/nopic.gif' title='".$data['kroax_titel']."' width='".$kroaxsettings['kroax_set_wi']."' height='".$kroaxsettings['kroax_set_hi']."' />";
}
if ($kroaxsettings['kroax_set_show'] == "1")
{
echo "
<a href='".INFUSIONS."the_kroax/embed.php?url=".$data['kroax_id']."'>".$showimg."</a>";
}
else
{
echo "
<a href='#' title='".$data['kroax_titel']."' onclick=window.open('".INFUSIONS."the_kroax/embed.php?p=1&url=".$data['kroax_id']."','Click','scrollbars=yes,resizable=yes,width=650,height=550')>".$showimg."</a>";
}
echo "<br />
<a href='#' title='".$data['kroax_titel']."' onclick=window.open('".INFUSIONS."the_kroax/embed.php?p=1&url=".$data['kroax_id']."','Click','scrollbars=yes,resizable=yes,width=800,height=700')><img src='".INFUSIONS."the_kroax/img/newwindow.gif' title='".$locale['MKROAX106']."' border='0'></a>";
if ($kroaxsettings['kroax_set_show'] == "1")
{
echo "
<a href='".INFUSIONS."the_kroax/embed.php?url=".$data['kroax_id']."' title='".$data['kroax_titel']."'>".trimlink($data['kroax_titel'], 20)."</a><br /><b>Længde</b> ".$data['kroax_length']."<br />";
}
else
{
echo "
<a href='#' title='".$data['kroax_titel']."' onclick=window.open('".INFUSIONS."the_kroax/embed.php?p=1&url=".$data['kroax_id']."','Click','scrollbars=yes,resizable=yes,width=650,height=550')>".trimlink($data['kroax_titel'], 20)."</a><br />";
}

if ($kroaxsettings['kroax_set_allowuploads'] == "1")
{
echo "<b>".$locale['KROAX114']."</b> <a href='".BASEDIR."profile.php?lookup=".$udata['user_id']."'>".trimlink($data['kroax_uploader'],9)."</a><br />";
}
echo "
<b>".$locale['KROAX115']."</b> ".showdate('forumdate', $data['kroax_date'])."<br />
<b>".$locale['KROAX307']."</b> <a href='kroax.php?category=".$cdata['cid']."'>".$cdata['title']."</a><br />
<b>".$locale['KROAX113']."</b> ".$data['kroax_hits']." </td>
";
}

else
{

$cdata = dbarray(dbquery("SELECT * FROM ".$db_prefix."kroax_kategori WHERE cid='".$data['kroax_cat']."' "));
$udata = dbarray(dbquery("SELECT user_id,user_name FROM ".$db_prefix."users WHERE user_name='".$data['kroax_uploader']."' "));
$pres = nl2br($data['kroax_description']);
$pres = preg_replace("/^(.{255}).*$/", "$1", $pres);
$pres = preg_replace("/([^\s]{25})/", "$1\n", $pres);
echo" <table cellpadding='0' cellspacing='1' border='0' width='200px' align='right' class='tbl-border' style='margin: 0.5em;'>
<tr>
<td width='26%' class='tbl2'>".$locale['KROAX307']."</td>
<td width='26%' class='tbl2'>".$cdata['title']."</td></tr>

<tr>
<td width='26%' class='tbl2'>Længde:</td>
<td width='26%' class='tbl2'>".$data['kroax_length']."</td></tr>

<tr>
<td width='26%' class='tbl2'>".$locale['KROAX113']."</td>
<td width='26%' class='tbl2'>".$data['kroax_hits']."</td>
</tr>";
if ($kroaxsettings['kroax_set_allowuploads'] == "1")
{
echo "
<tr>
<td width='26%' class='tbl2'>".$locale['KROAX114']."</td>
<td width='26%' class='tbl2'><a href='".BASEDIR."profile.php?lookup=".$udata['user_id']."'>".$data['kroax_uploader']."</a></td>
</tr>";
}
echo "
<tr>
<td width='26%' class='tbl2'>".$locale['KROAX115']."</td>
<td width='26%' class='tbl2'>".showdate('forumdate', $data['kroax_date'])."</td>
</tr>
<tr>
<td width='26%' class='tbl2'>".$locale['MKROAX101']."</td>
<td width='26%' class='tbl2'>".showdate('forumdate', $data['kroax_lastplayed'])."</td>
</tr>
</table>";

echo "<table width='69%' align='center' cellspacing='0' style='height: 125px' cellpadding='0' border='0'>";
$checkurl = url_exists($data['kroax_tumb']);
$type = substr($data['kroax_url'], -3, 3);
if($type == "mp3")
{
$showimg = "<img src='".INFUSIONS."the_kroax/img/musicstream.jpg' align='left' width='".$kroaxsettings['kroax_set_wi']."' height='".$kroaxsettings['kroax_set_hi']."' alt='' />";
}
elseif ($checkurl == "1") {
$showimg = "<img src='".$data['kroax_tumb']."' align='left' width='".$kroaxsettings['kroax_set_wi']."' height='".$kroaxsettings['kroax_set_hi']."' alt='' />";
}
else {
$showimg = "<img src='".INFUSIONS."the_kroax/img/nopic.gif' align='left' width='".$kroaxsettings['kroax_set_wi']."' height='".$kroaxsettings['kroax_set_hi']."' alt='' />";
}
if ($kroaxsettings['kroax_set_show'] == "1")
{
echo "
<tr><td align='left' width='8%'><a href='".INFUSIONS."the_kroax/embed.php?url=".$data['kroax_id']."'>".$showimg."</a></td>
<td width='74%' align='center'><a href='".INFUSIONS."the_kroax/embed.php?url=".$data['kroax_id']."'><b>".$data['kroax_titel']."</b></a><br /><br />".stripslashes($pres)."</td></tr>";
}
else
{
echo "
<td align='left' width='8%'><a href='#' onclick=window.open('".INFUSIONS."the_kroax/embed.php?p=1&url=".$data['kroax_id']."','Click','scrollbars=yes,resizable=yes,width=650,height=550')>".$showimg."</a></td>
<td width='74%'><center><a href='#' onclick=window.open('".INFUSIONS."the_kroax/embed.php?p=1&url=".$data['kroax_id']."','Click','scrollbars=yes,resizable=yes,width=650,height=550')><b><u>".$data['kroax_titel']."</b></u /></a><br /><br />".stripslashes($pres)."</td></center>";
}

echo "</table><br /><br />";

$kroax_comment_count = dbcount("(comment_id)", "".$db_prefix."comments", "comment_type='K' AND comment_item_id='".$data['kroax_id']."'");

echo "<table width='95%' align='center' cellspacing='0' cellpadding='0'border='0'>
<td width='20%' class='tbl1' align='center'>";
if ($kroaxsettings['kroax_set_ratings'] == "1")
{
rating_bar($data['kroax_id']);
}
echo "<td width='80%' class='tbl1'>";
if (($kroaxsettings['kroax_set_favorites'] == "1") && (iMEMBER))
{
$row2 = dbquery("SELECT * FROM ".$db_prefix."kroax_favourites WHERE fav_id=".$data['kroax_id']." AND fav_user='".$userdata['user_id']."'");
$fav_id2=dbarray($row2);
$fav_id2 = $fav_id2['fav_id'];
if( $data['kroax_id'] != $fav_id2){
echo "<a href='".INFUSIONS."the_kroax/add_favourite.php?fav_id=".$data['kroax_id']."&fav_user=".$userdata['user_id']."'><b>".$locale['FKROAX107']."</b></a>  ]<br>[ ";
}
}
if ($kroaxsettings['kroax_set_comments'] == "1")
{
echo "<b>".$locale['KROAX302']."</b>($kroax_comment_count) ][ ";
}
if ($kroaxsettings['kroax_set_recommend'] == "1")
{
echo "<a href='#' onclick=window.open('".INFUSIONS."the_kroax/tipafriend.php?movie_id=".$data['kroax_id']."','Tipafriend','scrollbars=yes,resizable=yes,width=350,height=300')><b>".$locale['KROAX303']."</b></a>  ][ ";
}
if ($kroaxsettings['kroax_set_report'] == "1")
{
if (iMEMBER)
{
echo "<a href='".INFUSIONS."the_kroax/report.php?broken_id=".$data['kroax_id']."' target='_blank' onClick='return confirmreport();''><b>".$locale['KROAX304']."</b></a>  ][ ";
}
}
echo"<a href=\"javascript:history.go(-1)\"><b>".$locale['KROAX007']."</b></a>";
echo '</td>';
echo "</td><tr>";
echo "<td colspan='2' height='1px' background='img/line.gif'></tr></td></td></tr></table>";

} //End else from thumb view..

}

function makekroaxCnav($start,$count,$total,$range=0,$sortby){
   global $locale;

   $res="";
   $pg_cnt=ceil($total / $count);
   if ($pg_cnt > 1) {
      $idx_back = $start - $count;
      $idx_next = $start + $count;
      $cur_page=ceil(($start + 1) / $count);
      $res.="<table cellspacing='1' cellpadding='1' border='0' class='tbl-border'>\n<tr>\n";
      $res.="<td class='tbl2'><span class='small'>".$locale['KOM107']." $cur_page ".$locale['KOM108']." $pg_cnt</span></td>\n";
      if ($idx_back >= 0) {
         if ($cur_page > ($range + 1)) $res.="<td class='tbl2'><a class='small' href='#' onclick=\"javascript:makeRequest('sortby.php?sortby=$sortby&rowstart=0')\">&lt;&lt;</a></td>\n";
         $res.="<td class='tbl2'><a class='small' href='#' onclick=\"javascript:makeRequest('sortby.php?sortby=$sortby&rowstart=$idx_back')\">&lt;</a></td>\n";
      }
      $idx_fst=max($cur_page - $range, 1);
      $idx_lst=min($cur_page + $range, $pg_cnt);
      if ($range==0) {
         $idx_fst = 1;
         $idx_lst=$pg_cnt;
      }
      for($i=$idx_fst;$i<=$idx_lst;$i++) {
         $offset_page=($i - 1) * $count;
         if ($i==$cur_page) {
            $res.="<td class='tbl1'><span class='small'><b>$i</b></span></td>\n";
         } else {
            $res.="<td class='tbl1'><a class='small' href='#' onclick=\"javascript:makeRequest('sortby.php?sortby=$sortby&rowstart=$offset_page')\">$i</a></td>\n";
         }
      }
      if ($idx_next < $total) {
         $res.="<td class='tbl2'><a class='small' href='#' onclick=\"javascript:makeRequest('sortby.php?sortby=$sortby&rowstart=$idx_next')\">&gt;</a></td>\n";
         if ($cur_page < ($pg_cnt - $range)) $res.="<td class='tbl2'><a class='small'  href='#' onclick=\"javascript:makeRequest('sortby.php?sortby=$sortby&rowstart=".($pg_cnt-1)*$count."')\">&gt;&gt;</a></td>\n";
      }
      $res.="</tr>\n</table>\n";

   }
   return $res;
}


function rating_bar($id) {
global $data,$db_prefix,$locale;

$query=dbquery("SELECT total_votes, total_value, used_ips FROM ".$db_prefix."kroax_rating WHERE id='$id' ");
$numbers=mysql_fetch_assoc($query);
$count=$numbers['total_votes'];
$current_rating=$numbers['total_value'];
$tense=($count==1) ? "".$locale['VOT303']."" : "".$locale['VOT304']."";
$ip = $_SERVER['REMOTE_ADDR'];
$result=dbquery("SELECT count(*) FROM ".$db_prefix."kroax_rating WHERE used_ips LIKE '%".$ip."%' AND id='$id' ");
$voted = mysql_result($result, 0, 0);
@$rating = number_format($current_rating/$count,1);
?>
      <div id="unit_long<?php echo $id ?>">
      <ul class="unit-rating">
      <li class='current-rating' style="width:<?php echo @number_format($current_rating/$count,2)*30; ?>px;"></li>
<?php
      for ($ncount = 1; $ncount <= 5; $ncount++)
{
?>
   <li><a href="#" title="<?php echo $ncount ?> <?php echo $locale['VOT603']; ?>" class="r<?php echo $ncount ?>-unit" onclick="javascript:sndReq('<?php echo $ncount ?>','<?php echo $id ?>','<?php echo $ip ?>')"><?php echo $ncount ?></a></li>
<?php
   }
      $ncount=0;
      ?>
      </ul>
       <?php echo $locale['VOT306']; ?> <strong> <?php echo @number_format($current_rating/$count,1) ?></strong><?php echo $locale['VOT302']; ?> <?php echo $count ?> <?php echo $tense ?>
         &nbsp;
<?php

}
?>



- og se om det er som forespurgt.
Til forsiden  Til toppen af forum  Til bunden af forum
MichaelP
#13 Udskriv indlæg
Lagt på d. 25-03-2016 07:15
Brugers avatar

Junior bruger


Antal indlæg: 22
Tilmeldt: 23.07.08
Sidst set: 07.04.16
On/Offline: Offline
Status:
Ingen status er valgt
Dagens humør:
Ikke valgt
 
Clap Det virker.

Tusind tak.
Til forsiden  Til toppen af forum  Til bunden af forum
Smokeman
#14 Udskriv indlæg
Lagt på d. 25-03-2016 09:52
Brugers avatar

Super Administrator


Antal indlæg: 12134
Tilmeldt: 25.01.08
Sidst set: 28.01.17
On/Offline: Offline
Status:
Startet så småt op igen..
Dagens humør:

 
Det var da så lidt. Tup
Til forsiden  Til toppen af forum  Til bunden af forum
Spring til debat:
 
Lignende tråde
Debat Forum Svar Nyeste indlæg
Dobbelt menu linie Fejl-rapportering 9 30-09-2013 10:57
Dobbelt linie skift i brugerfelt MOD's og Elementer 3 23-10-2011 10:06
dobbelt linie afstand i navigation MOD's og Elementer v6 3 10-06-2010 12:10
News archive panel, ændring af linie størrelsen? Infusioner 9 08-04-2009 17:18