|
|
Latest News |
Latest Threads |
|
 |
56.490 Posts & 4.945 Themen in 78 Foren |
|
|
|
 |
Forensuche |
|
Suchbegriff |
Benutzerauswahl |
Ergebnisse anzeigen |
 |
 |
ERROR IN: SELECT * FROM WHERE config_id='1' 25 Beiträge in diesem Thema |
|
|
 |
|
|
 |
|
 |
02.01.2007 - 21:49 Uhr |
|
|
|
Das problem ist, dass boogt die prefix var "$px" vom 1.6.03 nahm und nicht die "$prefix" vom 1.6.1
Hier der richtige code:
Hier klicken zum aufklappen 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 | | PHP-Quelltext <?php
/*
* E-Mail : EvilDragon@CodeDragon.de
* Homepage: http://www.codedragon.de
* Update der V. 1.5 by WEBI
* E-Mail : webmaster@hth-c.com
* Homepage: http://www.hth-c.com
* Date: 08.09.2006
* Version: 2.0
*/
##################### Ab hier nichts mehr ändern ##################
$ausgabe = '';
$script = "Steckbrief Add0n";
$version = "2.0";
$entwickler = "EvilDragon & WEBI";
$url = "http://www.codedragon.de";
$url2 = "http://www.hth-c.com";
$pf = $prefix;
$tabellenname = $pf."_cd_steckbrief"; // zu erstellnde Tabelle
$query="CREATE TABLE ".$tabellenname." (
sb_user_id int(14) unsigned NOT NULL,
sb_teilnahme int(1),
sb_r INT(1) default '0',
sb_d INT(1) default '0',
sb_t INT(1) default '0',
sb_suche_f INT(1) default '0',
sb_suche_m INT(1) default '0',
sb_suche_p INT(1) default '0',
sb_suche_e INT(1) default '0',
sb_beziehung_ch INT(1) default '0',
sb_beziehung_fe INT(1) default '0',
sb_beziehung_se INT(1) default '0',
sb_beziehung_sp INT(1) default '0',
sb_beziehung_er INT(1) default '0',
sb_kgroesse INT(3) default '0',
sb_haarfarbe INT(1) default '0',
sb_augfarb INT(1) default '0',
sb_kgewicht INT(3) default '0',
sb_ausbildung INT(1) default '0',
sb_fstand INT(1) default '0',
sb_zname varchar(255),
sb_charakter text,
sb_abneigung text,
sb_essen varchar(255),
sb_band varchar(255),
sb_film varchar(255),
sb_darsteller varchar(255),
sb_buch varchar(255),
sb_anzeige INT(10) default '0',
KEY `sb_user_id` (`sb_user_id`)
);";
$update = "ALTER TABLE ".$db_tab['config']." ADD sb_aktiv Int(2) default '0'";
if($DB->query($query)) {
$ausgabe .= "<i>$tabellenname</i> Tabelle erstellt. <br /> <br />Bitte löschen sie nun die <b>install_sb.php</b>"; // meldung eok
$DB->query($update);
}
else {
$ausgabe .= "<i>".$tabellenname."</i> konnte nicht erstellt werden.".mysql_error();
}
?>
<html>
<head>
<title>Steckbrief 2.0 Installation</title>
</head>
<body link="#FF0000" vlink="#FF0000" alink="#FF0000" bgstyle="color: #DADADA; font-family: 'Courier New';">
<div align="center">
<table border="0" width="100%" id="table1" height="100%">
<tr>
<td align="center">
<b><font size="4"><?=$script?></font></b> v.<?=$version?><br /><br />
<b>Entwickler</b>: <?=$entwickler?><br />
<b>Homepage</b>: <a href="<?=$url?>" target="_blank" alt="Homepage von <?=$entwickler?>" title="Homepge von <?=$entwickler?>"><?= $url?></a> & <a href="$url2" target="_blank" alt="Homepge von <?=$entwickler?>" title="Homepage von <?=$entwickler?>"> <?=$url2?></a><br />
<br /><b>Status</b>:<br/> <?=$ausgabe?>
</td>
</tr>
</table>
</div>
</body>
</html> | |  |
Diese musst du über das phpkit aufrufen d.h. include.php?path=install_sb.php
|
|
|
|
|
|
|
 |
WEBI Unberechenbares Urgestein |
 |
|
|
|
|
|
|
|
|
 |
02.01.2007 - 22:21 Uhr |
|
|
|
Super phpogo, was mir dazu einfällt ist aber auch das es schon klappt, BooGT hatte sich letztens der Sache schnell angenommen, aber wie man sieht wurde hier keine Antwort zu abgegeben, schade soetwas, aber naja, soweit ich weiss lag es am präfix, genau. 
|
|
|
|
|
|
|
 |
|
 |
03.01.2007 - 14:51 Uhr |
|
|
|
Trotzdem danke PHpogo weil hätte ich es da nich geschafft hätte ich es nun gewusst ^^
Hatte da nich dran gedacht.
|
|
|
|
|
|
|
 |
|
 |
04.01.2007 - 11:35 Uhr |
|
|
|
;)
|
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von PHpogo - 04.01.2007 - 11:36 Uhr |
|
|
|
|
|
|
|
 |
|
 |
10.06.2007 - 04:13 Uhr |
|
|
|
ich habe alles wie hier beschrieben gemacht aber wenn i auf mein profil gehe habe ich immernoch diese fehlermeldung.
ERROR IN: SELECT * FROM WHERE id='1'
you have an error in your sql syntax; check the manual that corresponds to your mysql server version for the right syntax to use near 'where id='1'' at line 1
die tabelle is vorhanden und in der inc.dbtabs.php ist auch alles richtig drinne.
aber leider is der fehler immernoch wie könnte man es noch beheben?
mfg sofix
|
|
|
|
|
|
|
 |
WEBI Unberechenbares Urgestein |
 |
|
|
|
|
|
|
|
|
 |
10.06.2007 - 12:56 Uhr |
|
|
|
Versions Nummer des PHPKits ?
Und poste hier mal den Inhalt ( komplett ) deiner admin/config/inc.dbtabs.php, und Link zu der Seite würde helfen, inkl den Rechten, das Gäste sich Profile ansehen können.
|
|
|
|
|
|
|
 |
|
 |
10.06.2007 - 14:32 Uhr |
|
|
|
Meine version vom phpkit 1.6.1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | | PHP-Quelltext <?php
##################################################################
# #
# #
# PHPKIT #
# -------------------------------------------- #
# Copyright (c) 2002-2003 Gersöne & Schott GbR #
# #
# #
# ############################################################## #
# #
# Diese Datei / die PHPKIT-Software ist keine Freeware! #
# Für weitere Information besuchen Sie bitte unsere Webseite #
# oder kontaktieren uns per E-Mail: #
# #
# This file / the PHPKIT-software is not freeware! #
# For further informations please vistit our website #
# or contact us via email: #
# #
# Website: http://www.phpkit.de #
# Email: info@phpkit.de #
# #
# ############################################################## #
# #
# File: /admin/config/inc.dbtabs.php #
# Author: Pierre Gersöne #
# Created: Version 1.6.1 - 2004-05-09 #
# Last Modified: Version 1.6.1 - 2004-05-09 #
# Description: not available for this file #
# #
# ############################################################## #
# #
# SIE SIND NICHT BERECHTIGT, UNRECHTMÄSSIGE KOPIEN DIESER #
# DATEI ZU ERSTELLEN UND/ODER DIESE INFORMATIONEN ZU ENTFERNEN #
# #
# YOU ARE NOT AUTHORISED TO CREATE ILLEGAL COPIES OF THIS #
# FILE AND/OR TO REMOVE THIS INFORMATIONS #
# #
##################################################################
# define SQL-tablenames
$sqlprefix=(!isset($sqlprefix) || empty($sqlprefix)) ? 'phpkit' : $sqlprefix;
define('pkSQLTAB_ADVIEW', $db_tab['adview']=$sqlprefix.'_adview');
define('pkSQLTAB_BLACKLIST', $db_tab['blacklist']=$sqlprefix.'_blacklist');
define('pkSQLTAB_USER_FRIENDLIST', $db_tab['buddy']=$sqlprefix.'_buddy');
define('pkSQLTAB_CALENDAR', $db_tab['calender']=$sqlprefix.'_calender');
define('pkSQLTAB_COMMENT', $db_tab['comment']=$sqlprefix.'_comment');
define('pkSQLTAB_CONFIG', $db_tab['config']=$sqlprefix.'_config');
define('pkSQLTAB_CONTENT', $db_tab['content']=$sqlprefix.'_content');
define('pkSQLTAB_CONTENT_CATEGORY', $db_tab['contentcat']=$sqlprefix.'_contentcat');
define('pkSQLTAB_CONTENT_THEME', $db_tab['contenttheme']=$sqlprefix.'_contenttheme');
define('pkSQLTAB_CONTENT_SUBMIT', $db_tab['content_submited']=$sqlprefix.'_content_submited');
define('pkSQLTAB_USER_PRIVATEMESSAGE', $db_tab['im']=$sqlprefix.'_im');
define('pkSQLTAB_FAQ', $db_tab['faq']=$sqlprefix.'_faq');
define('pkSQLTAB_FAQ_CATEGORY', $db_tab['faqcat']=$sqlprefix.'_faqcat');
define('pkSQLTAB_FORUM_CATEGORY', $db_tab['forumcat']=$sqlprefix.'_forumcat');
define('pkSQLTAB_FORUM_THREAD', $db_tab['forumthread']=$sqlprefix.'_forumthread');
define('pkSQLTAB_FORUM_POST', $db_tab['forumpost']=$sqlprefix.'_forumpost');
define('pkSQLTAB_FORUM_NOTIFY', $db_tab['forumnotify']=$sqlprefix.'_forumnotify');
define('pkSQLTAB_FORUM_FAVORITE', $db_tab['forumfav']=$sqlprefix.'_forumfav');
define('pkSQLTAB_FORUM_RANK', $db_tab['forumrank']=$sqlprefix.'_forumrank');
define('pkSQLTAB_FORUM_INFO', $db_tab['foruminfo']=$sqlprefix.'_foruminfo');
define('pkSQLTAB_GUESTBOOK', $db_tab['gbook']=$sqlprefix.'_gbook');
define('pkSQLTAB_GUEST', $db_tab['guest']=$sqlprefix.'_guest');
define('pkSQLTAB_NAVIGATION', $db_tab['navigation']=$sqlprefix.'_navigation');
define('pkSQLTAB_NAVIGATION_CATEGORY', $db_tab['navigationcat']=$sqlprefix.'_navigationcat');
define('pkSQLTAB_USER_PROFILEFIELDS', $db_tab['profilefields']=$sqlprefix.'_profilefields');
define('pkSQLTAB_RECORD', $db_tab['record']=$sqlprefix.'_record');
define('pkSQLTAB_RECORD_IP', $db_tab['recordip']=$sqlprefix.'_recordip');
define('pkSQLTAB_SESSION', $db_tab['session']=$sqlprefix.'_session');
define('pkSQLTAB_SMILES', $db_tab['smilies']=$sqlprefix.'_smilies');
define('pkSQLTAB_STYLE', $db_tab['style']=$sqlprefix.'_style');
define('pkSQLTAB_TEMPLATE' , $db_tab['templates']=$sqlprefix.'_templates');
define('pkSQLTAB_TEMPLATE_PACK', $db_tab['templatepack']=$sqlprefix.'_templatepack');
define('pkSQLTAB_USER', $db_tab['user']=$sqlprefix.'_user');
define('pkSQLTAB_USER_FIELDS', $db_tab['userfields']=$sqlprefix.'_userfields');
define('pkSQLTAB_USER_GROUP', $db_tab['usergroup']=$sqlprefix.'_usergroup');
define('pkSQLTAB_POLL', $db_tab['vote']=$sqlprefix.'_vote');
define('pkSQLTAB_POLL_TOPIC', $db_tab['votetheme']=$sqlprefix.'_votetheme');
define('pkSQLTAB_VOTE_COUNT', $db_tab['vote_rated']=$sqlprefix.'_vote_rated');
// Wunschbox
// ----------------
define('pkSQLTAB_WUNSCHBOX', $db_tab['wunschbox']=$sqlprefix.'_wunschbox');
//********************* Job Hack Anfang *******************
define('pkSQLTAB_JOBS', $db_tab['jobs']=$sqlprefix.'_jobs');
define('pkSQLTAB_JOBS_POSITIONS', $db_tab['jobs_positions']=$sqlprefix.'_jobs_positions');
//********************* Job Hack Ende *********************
// ED Story Anfang
define('pkSQLTAB_PROFIL_COM_FLIRT_FELDER', $db_tab['storyaddon']=$sqlprefix."_storyaddon");
define('pkSQLTAB_PROFIL_COM_FLIRT_FELDER_AUSWAHL', $db_tab['story_config']=$sqlprefix."_story_config");
// ED Story Ende
define('pkSQLTAB_GAL_CONFIG', $db_tab['gal_config']=$sqlprefix.'_gal_config');
define('pkSQLTAB_GAL_CAT', $db_tab['gal_cat']=$sqlprefix.'_gal_cat');
define('pkSQLTAB_GAL_PICS', $db_tab['gal_pics']=$sqlprefix.'_gal_pics');
define('pkSQLTAB_GAL_COMMENT', $db_tab['gal_comment']=$sqlprefix.'_gal_comment');
define('pkSQLTAB_GAL_RATE', $db_tab['gal_rate']=$sqlprefix.'_gal_rate');
define('pkSQLTAB_GAL_ECARD', $db_tab['gal_ecard']=$sqlprefix.'_gal_ecard');
define('pkSQLTAB_STECKBRIEF', $db_tab['cd_steckbrief']=$sqlprefix.'_cd_steckbrief'); // Steckbrief 2.0
?> | |  |
zur hp
mfg sofix
|
|
|
|
|
|
|
 |
WEBI Unberechenbares Urgestein |
 |
|
|
|
|
|
|
|
|
 |
10.06.2007 - 15:20 Uhr |
|
|
|
Gut, also hat aber nicht mit dem Steckbrief zu tun oder sonstigem, bitte poste den Code deiner login/userinfo.php.
|
|
|
|
|
|
|
 |
|
 |
10.06.2007 - 15:48 Uhr |
|
|
|
okay habe den fehler denke ich gefunden da es jetzt geht dieser code stand noch in der userinfo.php von dem alten steckbrief drinne.
| PHP-Quelltext // ED Steckbrief Anfang
$cmf_info=$DB->fetch_array($DB->query("SELECT * FROM ".$db_tab['profil_com_flirt_setup']." WHERE id='1'"));
if ($cmf_info['cmf_aktiv']==1) {
eval ("$showuser_cmf.= "".getTemplate("modul/cmf/showuser_cmf","")."";");
}
// ED Steckbrief Ende | |  |
und hier meine userinfo.php nachdem ich dieses rausgenommen habe vom alten steckbriefaddon.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 | | PHP-Quelltext <?php
if (getrights($config['member_infoshow'])=="true") {
if (!$_REQUEST['id'] && $USER['id']!=0) $id=$USER['id'];
else $id=$_REQUEST['id'];
$userinfo=$DB->fetch_array($DB->query("SELECT * FROM ".$db_tab['user']." where user_id='".$id."' LIMIT 1"));
$info_nick=$userinfo['user_nick'];
if ($userinfo['user_bd_day']!=0 && $userinfo['user_bd_month']!=0 && $userinfo['user_bd_year']!=0) {
$info_birthday=$userinfo['user_bd_day'].". ";
$month=$lang['all_month'];
$month=$month[$userinfo['user_bd_month']];
$info_birthday.=$month[1]." ";
$info_birthday.=$userinfo['user_bd_year']." - ".$lang['age'].": ".getAge($userinfo[user_bd_day],$userinfo[user_bd_month],$userinfo[user_bd_year]);
}
else {$info_birthday=$lang['not_specified'];}
if ($userinfo['user_sex']=="w") $info_sex=$lang['female'];
elseif ($userinfo['user_sex']=="m") $info_sex=$lang['male'];
else $info_sex=$lang['not_specified'];
if ($userinfo[user_country]!="") {eval ("$info_country= "".getTemplate("member_country_text_".$userinfo[user_country]."")."";");}
else {$info_country=$lang['not_specified'];}
$info_signin=formattime($userinfo['signin'],'','date');
if ($userinfo['logtime']>0) {$info_logtime=formattime($userinfo['logtime']);}
else {$userinfo_logtime=" - ";}
if ($userinfo[user_status]=="admin") {if ($userinfo[user_sex]=="w") {$info_userstatus=$lang['admin_female'];} else {$info_userstatus=$lang['admin'];}}
elseif ($userinfo[user_status]=="mod") {if ($userinfo[user_sex]=="w") {$info_userstatus=$lang['mod_female'];} else {$info_userstatus=$lang['mod'];}}
elseif ($userinfo[user_status]=="member") {if ($userinfo[user_sex]=="w") {$info_userstatus=$lang['member_female'];} else {$info_userstatus=$lang['member'];}}
elseif ($userinfo[user_status]=="user") {if ($userinfo[user_sex]=="w") {$info_userstatus=$lang['user_female'];} else {$info_userstatus=$lang['user'];}}
elseif ($userinfo[user_status]=="ban") {$info_userstatus=$lang['banned'];}
if ($userinfo['user_groupid']!=0) {
$group=$DB->fetch_array($DB->query("SELECT usergroup_name FROM ".$db_tab['usergroup']." WHERE usergroup_id='".$userinfo['user_groupid']."' LIMIT 1"));
if (trim($group[0])!='') $info_usergroup=$group[0];
else eval ("$info_usergroup= "".getTemplate("userinfo_nousergroup")."";");
}
else eval ("$info_usergroup= "".getTemplate("userinfo_nousergroup")."";");
if (isonline($userinfo['user_id'])) $info_os=$lang['online'];
else $info_os=$lang['offline'];
$userfields=$DB->fetch_array($DB->query("SELECT * FROM ".$db_tab['userfields']." WHERE userid='".$userinfo['user_id']."' LIMIT 1"));
$info_extended='';
$getprofilefields=$DB->query("SELECT * FROM ".$db_tab['profilefields']." ORDER by profilefields_order ASC");
while ($profilefields=$DB->fetch_array($getprofilefields)) {
$f="field_".$profilefields['profilefields_id'];
if (($fieldcontent=htmlentities($userfields[$f]))=='') $fieldcontent=$lang['not_specified'];
$fieldname=$profilefields['profilefields_name'];
eval ("$info_extended.= "".getTemplate("userinfo_ext")."";");
}
if ($userinfo[user_emailshow]==1) {
if ($config[member_mailer]==1) {eval ("$info_email= "".getTemplate("member_email_textlink2")."";");}
else {eval ("$info_email= "".getTemplate("member_email_textlink")."";");}
}
else {$info_email=$lang['not_specified'];}
if ($userinfo[user_imoption]==1) {eval ("$info_im= "".getTemplate("member_sendim_textlink")."";");}
else {$info_im=$lang['receiving_not_wanted'];}
// MSN
if ($userinfo[user_msn]!="") {eval ("$info_msn= "".getTemplate("member_msn_textlink")."";");}
else {$info_msn=$lang['not_specified'];}
// Skype
if ($userinfo[user_skype]!="") {eval ("$info_skype= "".getTemplate("member_skype_textlink")."";");}
else {$info_skype=$lang['not_specified'];}
// Xfire
if ($userinfo[user_xfire]!="") {eval ("$info_xfire= "".getTemplate("member_xfire_textlink")."";");}
else {$info_xfire=$lang['not_specified'];}
// Realname
if ($userinfo[user_realname]!="") {eval ("$info_realname= "".getTemplate("member_realname")."";");}
else {$info_realname=$lang['not_specified'];}
// Körpergröße
if ($userinfo[user_grow]!="") {eval ("$info_grow= "".getTemplate("member_grow")."";");}
else {$info_grow=$lang['not_specified'];}
// Postleitzahl
if ($userinfo[user_plz]!="") {eval ("$info_plz= "".getTemplate("member_plz")."";");}
else {$info_plz=$lang['not_specified'];}
// Stadt
if ($userinfo[user_town]!="") {eval ("$info_town= "".getTemplate("member_town")."";");}
else {$info_town=$lang['not_specified'];}
if ($userinfo[user_icqid]!=0) {eval ("$info_icq= "".getTemplate("member_icq_iconlink_2")."";");}
else {$info_icq=$lang['not_specified'];}
if ($userinfo[user_ts]!="") {eval ("$info_ts= "".getTemplate("member_ts_textlink")."";");}
else {$info_ts=$lang['not_specified'];}
if ($userinfo[user_aimid]!="") {eval ("$info_aim= "".getTemplate("member_aim_textlink")."";");}
else {$info_aim=$lang['not_specified'];}
if ($userinfo[user_yim]!="") {eval ("$info_yim= "".getTemplate("member_yim_textlink")."";");}
else {$info_yim=$lang['not_specified'];}
if ($userinfo[user_hpage]!="") {
if (ereg("http://",$userinfo[user_hpage])) {$info_link=$userinfo[user_hpage];}
else {$info_link="http://".$userinfo[user_hpage];}
eval ("$info_hpage= "".getTemplate("member_hpage_textlink")."";");
}
else {$info_hpage=$lang['not_specified'];}
eval ("$info_buddie= "".getTemplate("member_buddie_textlink")."";");
if ($userinfo[user_qou]!="") {$info_qoute=$PARSE->parse($userinfo[user_qou], 0, $config[text_ubb], $config[text_smilies], $config[text_images],1);}
else {$info_qoute=$lang['not_specified'];}
if ($userinfo[user_hobby]!="") {$info_hobby=$PARSE->parse($userinfo[user_hobby], 0, $config[text_ubb], $config[text_smilies], $config[text_images],1);}
else {$info_hobby=$lang['not_specified'];}
if ($userinfo[user_sig]!="") {$info_sig=$PARSE->parse($userinfo[user_sig], 0, $config[text_ubb], $config[text_smilies], $config[text_images],1);}
else {$info_sig=$lang['not_specified'];}
if ($config[avatar_eod]!=0) {
if ($userinfo[user_avatar]!="" && @filecheck($config['avatar_path']."/".$userinfo[user_avatar])) {$avatar_dimension[3]=@getimagesize("images/avatar/$userinfo[user_avatar]"); eval ("$avatar_show= "".getTemplate("user_avatar_show","")."";");}
else {$avatar_show=$lang['no_avatar_selected'];}
eval ("$avatar_eod= "".getTemplate("userinfo_avatar")."";");
}
else {eval ("$avatar_eod= "".getTemplate("userinfo_avatar_off")."";");}
// Foto-Modifikation Start
if ($config['foto_eod']!="0" && $config['foto_eod']!="") {
if ($userinfo[user_foto]!="" && @filecheck($config['avatar_path']."/".$userinfo[user_foto]))
{
$foto_dimension=@getimagesize("images/avatar/$userinfo[user_foto]");
eval ("$foto_show= "".getTemplate("user_foto_show","")."";");
}
else eval ("$foto_show= "Kein Foto vorhanden";");
eval ("$foto_eod= "".getTemplate("userinfo_foto")."";");
}
else {eval ("$foto_eod= " ";");}
// Foto-Modifikation Ende
if ($config[forum_eod]==1) {
$info_userposts=($userinfo[user_posts]+$userinfo[user_postdelay]);
if ($info_userposts<0) {$info_userposts=0;}
if ($info_userposts>0) {
$posts_per_day=number_format(($info_userposts/(ceil(($time_now-$userinfo['signin'])/86400))),1,",",".");
$threadcount=$DB->fetch_array($DB->query("SELECT COUNT(*) FROM ".$db_tab['forumthread']." WHERE forumthread_autorid='".$userinfo['user_id']."'"));
$info_threadcount=$threadcount[0];
$forumrank=$DB->fetch_array($DB->query("SELECT forumrank_title FROM ".$db_tab['forumrank']." WHERE forumrank_post<='".$info_userposts."' ORDER by forumrank_post DESC"));
$forumrank=$forumrank['forumrank_title'];
$lastpost=$DB->fetch_array($DB->query("SELECT ".$db_tab['forumpost'].".forumpost_threadid, ".$db_tab['forumpost'].".forumpost_id FROM ".$db_tab['forumpost']." LEFT JOIN ".$db_tab['forumthread']." ON ".$db_tab['forumthread'].".forumthread_id=".$db_tab['forumpost'].".forumpost_threadid LEFT JOIN ".$db_tab['forumcat']." ON ".$db_tab['forumcat'].".forumcat_id=".$db_tab['forumthread'].".forumthread_catid WHERE (".sqlrights("".$db_tab['forumcat'].".forumcat_rrights")." OR ".$db_tab['forumcat'].".forumcat_mods LIKE '%-".$user_id."-%' OR ".$db_tab['forumcat'].".forumcat_user LIKE '%-".$user_id."-%') AND ".$db_tab['forumpost'].".forumpost_autorid=".$userinfo['user_id']." ORDER BY ".$db_tab['forumpost'].".forumpost_time DESC LIMIT 1"));
if ($lastpost[0]!="") {
$forumthread=$DB->fetch_array($DB->query("SELECT forumthread_id, forumthread_title, forumthread_catid FROM ".$db_tab['forumthread']." WHERE forumthread_id='".$lastpost['forumpost_threadid']."'"));
$forumcat=$DB->fetch_array($DB->query("SELECT forumcat_id, forumcat_name FROM ".$db_tab['forumcat']." WHERE forumcat_id='".$forumthread['forumthread_catid']."'"));
eval ("$forumpost_info= "".getTemplate("userinfo_foruminfo_lastthread")."";");
}
else {$forumpost_info='-';}
}
else {
$forumrank='-';
$forumpost_info='-';
$info_threadcount='-';
}
eval ("$foruminfo= "".getTemplate("userinfo_foruminfo")."";");
}
else {unset($foruminfo);}
if ($config[member_gbook]==1 && getrights("user")=="true") {eval ("$info_user_gbook= "".getTemplate("userinfo_gbook_linkbox")."";");}
include ("login/inc.nav_user.php");
eval ("$site_body.= "".getTemplate("userinfo","")."";");
}
else {$event=1; include("admin/config/event.php");}
?> | |  |
ich hoffe das dies jetzt so richtig ist.
mfg sofix
|
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von sofix - 10.06.2007 - 15:49 Uhr |
|
|
|
|
|
|
|
 |
|
 |
27.09.2007 - 12:37 Uhr |
|
|
|
Huhu, danke nochmal für eure Hilfe bin über google auf diesen Link hier gekommen und hab gemerkt das ich mich noch gar net bedankt habe.
Bin jetzt auf Joomla umgestiegen Das ist um einiges besser, wenn man ein paar Komponenten installiert.
greetz
|
|
|
|
|
|
|
 |
Ähnliche Themen |
|
Es wurden keine ähnlichen Themen gefunden.
|
|
|
|
ERROR IN: SELECT
forumthread_id,
forumthread_catid,
forumthread_lastreply_time,
forumthread_lastreply_autor,
forumthread_title,
forumthread_autor
FROM
phpkit_forumthread
WHERE
MATCH (forumthread_title)
AGAINST ('%ERROR IN: SELECT * FROM WHERE config_id='1'%') && forumthread_id != '422'
you have an error in your sql syntax; check the manual that corresponds to your mariadb server version for the right syntax to use near '1'%') && forumthread_id != '422'' at line 12
|
|
|
|
|
|