Deaktivering af Kroax giver fejli i mit forum
|
CS_DK |
Lagt på d. 11-07-2012 17:58
|
Medlem
Antal indlæg: 143
Tilmeldt: 05/02/2007 17:17
|
Hvorfor får jeg denne fejl, i min forumoversigt, når jeg Deaktivere mit Kroax sidebanner
Notice: Undefined variable: class in /home/www/nygaard12.cs-webdesign.dk/infusions/forum_threads_list_panel/forum_threads_list_panel.php on line 75
Her er koden fra forum_threads_list_panel.php
Kode <?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2007 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------+
/*---------------------------------------------------+
| Advanced Forum Threads List Panel - (AFTLP)
+----------------------------------------------------+
| Modder: Shedrock / Xandra - Fuzed Themes
| Special Credit: Xandra - Thank you for all your help
| Support: http://phpfusion-themes.com
|----------------------------------------------------+
| Converted to PHP-Fusion v7 by Smokeman
| PHPFusion-Tips.dk
| Website: http://www.phpfusion-tips.dk
| Optimisation & Additional Love: moozaad
+----------------------------------------------------+
| Modded by Tutsi
| It-Testeren.dk
| Website: http://it-testeren.dk
+----------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
if (file_exists(INFUSIONS."forum_threads_list_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."forum_threads_list_panel/locale/".$settings['locale'].".php";
} else { include INFUSIONS."forum_threads_list_panel/locale/English.php"; }
require(LOCALE.LOCALESET."forum/main.php");
if (!isset($lastvisited) || !isnum($lastvisited)) $lastvisited = time();
$min = 5; // minimum visible posts in first level.
$max = 5; // maximum number of posts in second level (hidden).
echo "<script type='text/javascript' language='JavaScript' src='".INFUSIONS."forum_threads_list_panel/ft_boxover.js'></script>";
$imageold = get_image("folder",$locale['561'],"",$locale['561']);
$imagenew = get_image("foldernew",$locale['560'],"",$locale['560']);
$result = dbquery(
"SELECT
tf.forum_name,tf.forum_id,
tt.thread_id,tt.thread_locked,tt.thread_subject,tt.thread_author,tt.thread_views,
tt.thread_lastpost,tt.thread_lastuser, tt.thread_postcount, tt.thread_lastpostid as last_id,
if(tt.thread_lastpost>$lastvisited,1,0) as new_post,
tu.user_id, tu.user_name as user_name,
tau.user_name as author,
tp.post_message, tp.post_smileys
FROM ".DB_THREADS." tt
INNER JOIN ".DB_FORUMS." tf USING(forum_id)
INNER JOIN ".DB_POSTS." tp USING(thread_id)
INNER JOIN ".DB_USERS." tu ON tt.thread_lastuser=tu.user_id
INNER JOIN ".DB_USERS." tau ON tt.thread_author=tau.user_id
WHERE ".groupaccess('forum_access')."
AND tt.thread_lastpostid = tp.post_id
ORDER BY tt.thread_lastpost DESC LIMIT ".($min + $max)
);
if (dbrows($result) != 0) {
$i = 0;
opentable($locale['ftl100']);
echo "<table style='width:100%; empty-cells:hide; border-spacing:1px;' class='tbl-border2 forum_table'>
<tr>
<td align='center' class='$class' height='14' width='5%'> </td>
<td align='center' class='$class' height='14' width='5%'> </td>
<td align='center' class='$class'><span class='small'><b>".$locale['ftl120']."</b></span></td>
<td align='center' class='$class'><span class='small'><b>".$locale['ftl124']."</b></span></td>
<td align='center' class='$class'><span class='small'><b>".$locale['ftl123']."</b></span></td>
<td align='center' class='$class'><span class='small'><b>".$locale['ftl107']."</b></span></td>
<td align='center' class='$class'><span class='small'><b>".$locale['ftl108']."</b></span></td>
</tr>\n";
while ($data = dbarray($result)) {
if ($i == $min) {
echo "</table><br />
<div align='left'>
<img src='".INFUSIONS."forum_threads_list_panel/images/icon_displaymore.gif' alt='' /> <a href=\"javascript:void(0)\" onclick=\"toggle_smt();\"><span id='show_more_threads_text'><b>".$locale['ftl113']."</b></span></a>
</div>
<div id='show_more_threads' style='display: none;'><br />
<table style='width:100%; empty-cells:hide; border-spacing:1px;' class='tbl-border2 forum_table'>
<tr>
<td align='center' class='$class' height='14' width='5%'> </td>
<td align='center' class='$class' height='14' width='5%'> </td>
<td align='center' class='tbl1'><span class='small'><b>".$locale['ftl120']."</b></span></td>
<td align='center' class='tbl1'><span class='small'><b>".$locale['ftl124']."</b></span></td>
<td align='center' class='tbl1'><span class='small'><b>".$locale['ftl123']."</b></span></td>
<td align='center' class='tbl1'><span class='small'><b>".$locale['ftl107']."</b></span></td>
<td align='center' class='tbl1'><span class='small'><b>".$locale['ftl108']."</b></span></td>
</tr>\n";
}
if ($i % 2 == 0) { $row_color = "tbl1"; } else { $row_color = "tbl2"; }
//problem solved
$result_s = dbquery("SELECT * FROM ".DB_POSTS." WHERE thread_id=".$data['thread_id']."");
$data_s = dbarray($result_s);
if ($data_s['post_solved'] == 1) {
$mark = INFUSIONS."forum_threads_list_panel/images/cmark.gif";
$alt = "".$locale['ftl130']."";
} else {
$mark = INFUSIONS."forum_threads_list_panel/images/blank.gif";
$alt = "".$locale['ftl131']."";
}
//problem solved
$post_message = trimlink($data['post_message'],250);
if($data['post_smileys'])$post_message=parsesmileys($post_message);
$post_message = phpentities(nl2br(parseubb($post_message)));
//.93|1234180289|8 - thread_id | time | forum_id
if ($data['new_post']){
$thread_match = $data['thread_id']."|".$data['thread_lastpost']."|".$data['forum_id'];
if (iMEMBER && strpos($userdata['user_threads'],$thread_match)!==FALSE){
//preg_match("(^\.{$thread_match}$|\.{$thread_match}\.|\.{$thread_match}$)", $userdata['user_threads'])) {
$folder_image = $imageold;
}else $folder_image = $imagenew;
}else $folder_image = $imageold;
echo "<tr>
<td align='center' class='$row_color' width='1%' height='14'><img src='".$mark."' alt='".$alt."' border='0' /></td>
<td align='center' class='$row_color'>$folder_image</td>
<td width='35%' class='$row_color'>
<span class='small forum_thread_title'><a href='".FORUM."viewthread.php?forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."&pid=".$data['last_id']."#post_".$data['last_id']."' title=\"header=[ ".str_replace("]", "]]", str_replace("[", "[[", trimlink($data['thread_subject'], 30)))."] body=[".str_replace("]", "]]", str_replace("[", "[[", $post_message))."] delay=[0] fade=[on]\">".trimlink($data['thread_subject'], 30)."</a></span>
</td>
<td align='center' class='$row_color'><a href='".BASEDIR."profile.php?lookup=".$data['thread_author']."'>".$data['author']."</a></td>
<td align='center' width='40' class='$row_color'><span class='small'>".$data['thread_views']."</span></td>
<td align='center' width='45' class='$row_color'><span class='small'>".($data['thread_postcount']-1)."</span></td>
<td align='center' width='25%' class='$row_color'>
<span class='small'>".showdate("forumdate", $data['thread_lastpost'])."</span><br />
<span class='small'><a href='".BASEDIR."profile.php?lookup=".$data['thread_lastuser']."'>".$data['user_name']."</a></span><a href='".FORUM."viewthread.php?forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."&pid=".$data['last_id']."#post_".$data['last_id']."' title='".$locale['ftl125']."'><img src='".INFUSIONS."forum_threads_list_panel/images/icon_minipost_new.gif' alt='' border='0' /></a>
</td>
</tr>\n";
$i ++;
}
if ($i > $min) { echo "</table><br /><script type='text/javascript'>
<!--
function toggle_smt() {
var smt = document.getElementById('show_more_threads');
var smttxt = document.getElementById('show_more_threads_text');
if (smt.style.display == 'none') {
smt.style.display = 'block';
smttxt.innerHTML = '".$locale['ftl114']."';
} else {
smt.style.display = 'none';
smttxt.innerHTML = '".$locale['ftl113']."';
}
}
//-->
</script></div>\n"; }
else { echo "</table><br />\n"; }
}
else {
opentable($locale['ftl100']);
echo "<center><b>".$locale['ftl136']."</b></center>";
}
echo "<table width='100%'><tr>\n";
echo "<td align='center' valign='middle' class='forum'><img src='".INFUSIONS."forum_threads_list_panel/images/cmark.gif' alt='".$locale['ftl132']."' /> <span class='small'>".$locale['ftl132']."</span> <img src='".INFUSIONS."forum_threads_list_panel/images/blank.gif' alt='".$locale['ftl133']."' /> <span class='small'>".$locale['ftl133']."</span> <img src='".THEME."forum/foldernew.gif' alt='".$locale['ftl134']."' /> <span class='small'>".$locale['ftl134']."</span> <img src='".THEME."forum/folder.gif' alt='".$locale['ftl135']."' /> <span class='small'>".$locale['ftl135']."</span>\n</td>\n";
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='1' width='100%'>\n<tr>\n";
echo "<td align='right' valign='top' class='forum'>\n";
echo "<form name='searchform' method='get' action='".BASEDIR."search.php?stype=forums'><span class='small'>".$locale['ftl104']."</span>\n";
echo "<input type='hidden' name='stype' value='forums' />\n";
echo "<input type='text' name='stext' class='textbox' style='width:150px' />\n";
echo "<input type='submit' name='search' value='".$locale['550']."' class='button' />\n";
echo "</form>\n</td>\n";
echo "</tr>\n</table>\n";
if (iMEMBER) {
echo "<hr /><p style='text-align:center; vertical-align:middle; margin-top: 6px;'>
<img src='".BASEDIR."infusions/forum_threads_list_panel/images/icon_threads.gif' alt='' border='0' /> <span class='small'><a href='".INFUSIONS."forum_threads_list_panel/my_threads.php'>".$locale['ftl110']."</a></span>
<img src='".BASEDIR."infusions/forum_threads_list_panel/images/icon_threads.gif' alt='' border='0' /> <span class='small'><a href='".INFUSIONS."forum_threads_list_panel/my_posts.php'>".$locale['ftl111']."</a></span>
<img src='".BASEDIR."infusions/forum_threads_list_panel/images/icon_threads.gif' alt='' border='0' /> <span class='small'><a href='".INFUSIONS."forum_threads_list_panel/newposts.php'>".$locale['ftl112']."</a></span></p>";
}
closetable();
?>
|
|
|
|
|
|
|
Skrevet d. 22-11-2024 14:05
|
Reklame Agent
Antal indlæg: n^x
Tilmeldt: Altid
|
|
IP: localhost |
|
|
assensvej |
Lagt på d. 12-07-2012 20:57
|
Superadministrator
Antal indlæg: 1735
Tilmeldt: 15/01/2006 11:36
|
Jeg har kigget men kunne ikke finde fejlen
jeg kan også se at det er noget Tutsi har pillet ved engang så måske ved hun det
+----------------------------------------------------+
| Modded by Tutsi
| It-Testeren.dk
| Website: http://it-testere...
+----------------------------------------------------*/
HUSK at læse reglerne for Brug af Debatten - Spørgsmål i privat beskeder og på msn, besvares ikke uden aftale.
Ekspert.
En ekspert er en, der har begået om ikke alle, så i hvert fald de groveste fejltagelser inden for sit felt
Niels Bohr, atomfysiker, 1865-1962
|
|
|
|
|
|
CS_DK |
Lagt på d. 13-07-2012 17:19
|
Medlem
Antal indlæg: 143
Tilmeldt: 05/02/2007 17:17
|
Ja måske kan hun se det? Men det kan vil også være i Kroax der er et problem??
Men tak! |
|
|
|
|
|
Tutsi |
Lagt på d. 15-07-2012 10:17
|
Superadministrator
Antal indlæg: 2409
Tilmeldt: 24/02/2009 19:12
|
Jeg kan se jeg har moddet i forum filen, men jeg har ikke lavet noget der har forbindelse med Kroax. Den har jeg ikke lavet noget i. Hvis jeg skal finde fejlen, skal jeg vist have et admin login til siden.
______________________________
Hilsen Ellen
______________________________
www.jensens-madbl...
"Den som opfatter sig som færdiguddannet, er mere færdig end uddannet"
|
|
|
|
|
|
CS_DK |
Lagt på d. 03-08-2012 16:15
|
Medlem
Antal indlæg: 143
Tilmeldt: 05/02/2007 17:17
|
Hej Ellen!!!
Håber du har haft en kanon freri? Jeg er lige kommet hjem fra min, som var kanon. Jeg sender dig en kode på en PM
/Simon |
|
|
|
|
|
Tutsi |
Lagt på d. 03-08-2012 17:52
|
Superadministrator
Antal indlæg: 2409
Tilmeldt: 24/02/2009 19:12
|
Er midt i ferie, så er ikke ret aktiv for tiden.
______________________________
Hilsen Ellen
______________________________
www.jensens-madbl...
"Den som opfatter sig som færdiguddannet, er mere færdig end uddannet"
|
|
|
|
|
|
CS_DK |
Lagt på d. 21-08-2012 13:12
|
Medlem
Antal indlæg: 143
Tilmeldt: 05/02/2007 17:17
|
Tutsi skrev:
Er midt i ferie, så er ikke ret aktiv for tiden.
Hej Ellen!!
Håber du har haft en kanon ferie |
|
|
|
|
|
CS_DK |
Lagt på d. 21-08-2012 13:13
|
Medlem
Antal indlæg: 143
Tilmeldt: 05/02/2007 17:17
|
Tutsi skrev:
Er midt i ferie, så er ikke ret aktiv for tiden.
Hej Ellen!!
Håber du har haft en kanon ferie |
|
|
|
|
|
Tutsi |
Lagt på d. 27-08-2012 22:57
|
Superadministrator
Antal indlæg: 2409
Tilmeldt: 24/02/2009 19:12
|
Jo tak, har haft alle tiders ferie, men nu er den slut, og hverdagen har meldt sig. Jeg er jo ikke god til at sige nej, så har lidt mange ting i gang for tiden. Men jeg må jo lære det.
______________________________
Hilsen Ellen
______________________________
www.jensens-madbl...
"Den som opfatter sig som færdiguddannet, er mere færdig end uddannet"
|
|
|
|
|