 |
Forum PHP Romania - Discutii despre PHP, MySQL, Javascript, AJAX, etc Comunitatea PHP Romania
|
| Subiectul anterior :: Subiectul următor |
| Autor |
Mesaj |
draqu03
Data înscrierii: 22/Sep/2008
Mesaje: 3
|
| Trimis: Lun Sep 22, 2008 3:02 am Titlul subiectului: O problema mica... |
|
|
Fatal error: Class 'se_comment' not found in /home/blo/public_html/test4/profile.php on line 33
line 33 : $comment = new se_comment('profile', 'user_id', $owner->user_info[user_id]);
careva vreo idee ? am incercat 'user_id' si 'user_info' da nu vreau... altceva nu stiu. Multumesc mult in avans :D |
|
| Sus |
|
Quber
Data înscrierii: 27/Iun/2006
Mesaje: 807
Locație: localhost
|
| Trimis: Lun Sep 22, 2008 8:28 am Titlul subiectului: |
|
|
| @draqu03, ce nu vezi ca nuti gaseste clasa..! tu incerci sa apelezi o clasa care nici nu exista..! |
|
| Sus |
|
draqu03
Data înscrierii: 22/Sep/2008
Mesaje: 3
|
| Trimis: Lun Sep 22, 2008 2:52 pm Titlul subiectului: |
|
|
| aha... ms mult. Singura problema acuma ii ca noob here :D Deci... unde gasesc clasele si cum o fac pe asta care trebuie ? probabil exista undeva ( ii nu script gata facut ) Foldere din script ( banuiesc ca majoritatea scripturilor sunt la fel - din ce am vazut eu ) : admin / image / include / lang / templates / uploads_admin / uploads_group / upload_user. Sau clasa trebuie sa fie in database ? Anticipated thanks... si sorry. |
|
| Sus |
|
azzuro
Data înscrierii: 05/Iul/2005
Mesaje: 240
|
| Trimis: Lun Sep 22, 2008 6:41 pm Titlul subiectului: |
|
|
| Pai de unde sa stiu eu unde e clasa aia? Clasele nu se gasesc asa pe drumuri. Pune mana si scrie o clasa sau cauta dracu in fisierele tale? :evil: |
|
| Sus |
|
draqu03
Data înscrierii: 22/Sep/2008
Mesaje: 3
|
| Trimis: Lun Sep 22, 2008 8:51 pm Titlul subiectului: |
|
|
<?
$page = "profile";
include "header.php";
if ($user->user_exists == 0 & $setting[setting_permission_profile] == 0)
{
$page = "error";
$smarty->assign('error_header', $profile[1]);
$smarty->assign('error_message', $profile[40]);
$smarty->assign('error_submit', $profile[43]);
include "footer.php";
}
if ($owner->user_exists == 0)
{
$page = "error";
$smarty->assign('error_header', $profile[1]);
$smarty->assign('error_message', $profile[2]);
$smarty->assign('error_submit', $profile[43]);
include "footer.php";
}
$privacy_level = $owner->user_privacy_max($user, $owner->level_info[level_profile_privacy]);
$allowed_privacy = $owner->user_info[user_privacy_profile];
$is_profile_private = 0;
if ($privacy_level < $allowed_privacy)
{
$is_profile_private = 1;
}
if ($is_profile_private == 0)
{
$profile_views = $owner->user_info[user_views_profile] + 1;
$database->database_query("UPDATE se_users SET user_views_profile='$profile_views' WHERE user_id='" . $owner->user_info[user_id] . "'");
}
$owner->user_fields(0, 0, 0, 0, 1);
$comment = new se_comment('profile', 'user_id', $owner->user_info[user_id]);
$total_comments = $comment->comment_total();
$comments = $comment->comment_list(0, 10);
$friends = $owner->user_friend_list(0, 5, 0, 1, "RAND()");
$total_friends = $owner->user_friend_total(0);
$allowed_to_comment = 1;
$comment_level = $owner->user_privacy_max($user, $owner->level_info[level_profile_comments]);
$allowed_comment = $owner->user_info[user_privacy_comments];
if ($comment_level < $allowed_comment)
{
$allowed_to_comment = 0;
}
if ($user->level_info[level_profile_style] != 0 & $is_profile_private == 0)
{
$profilestyle_info = $database->database_fetch_assoc($database->database_query("SELECT profilestyle_css FROM se_profilestyles WHERE profilestyle_user_id='" . $owner->user_info[user_id] . "' LIMIT 1"));
$global_css = $profilestyle_info[profilestyle_css];
}
$is_friend = $user->user_friended($owner->user_info[user_id]);
$friendship_allowed = 1;
switch ($setting[setting_connection_allow])
{
case "3":
break;
case "2":
if ($user->user_info[user_subnet_id] != $owner->user_info[user_subnet_id])
{
$friendship_allowed = 0;
}
break;
case "1":
if ($user->user_friend_of_friend($owner->user_info[user_id]) == FALSE)
{
$friendship_allowed = 0;
}
break;
case "0":
$friendship_allowed = 0;
break;
}
if ($is_friend)
{
$friendship_allowed = 1;
}
$online_users_array = online_users();
if (in_array($owner->user_info[user_username], $online_users_array))
{
$is_online = 1;
}
else
{
$is_online = 0;
}
$actions = $actions->actions_display();
$actions_total = count($actions);
$smarty->assign('tabs', $owner->profile_tabs);
$smarty->assign('comments', $comments);
$smarty->assign('total_comments', $total_comments);
$smarty->assign('friends', $friends);
$smarty->assign('total_friends', $total_friends);
$smarty->assign('friend_ofs', $friend_ofs);
$smarty->assign('total_friend_ofs', $total_friend_ofs);
$smarty->assign('is_friend', $is_friend);
$smarty->assign('friendship_allowed', $friendship_allowed);
$smarty->assign('is_profile_private', $is_profile_private);
$smarty->assign('is_online', $is_online);
$smarty->assign('allowed_to_comment', $allowed_to_comment);
$smarty->assign('total_views', $profile_views);
$smarty->assign('actions', $actions);
$smarty->assign('actions_total', $actions_total);
include "footer.php";
?>
Codul de mai sus ii profile.php, fisierul de la care primesc eroare. Cred ca asa ii mai simplu de inteles la ce ma refer, nu m-am exprimat bine prima data.
Asta-i eroarea :
Fatal error: Class 'se_comment' not found in /home/blo/public_html/test4/profile.php on line 33
Anyone ? Mersi. |
|
| Sus |
|
mihaitha
Data înscrierii: 04/Mai/2007
Mesaje: 1801
Locație: Sibiu
|
| Trimis: Mar Sep 23, 2008 9:09 am Titlul subiectului: |
|
|
draqu03 a scris: aha... ms mult. Singura problema acuma ii ca noob here :D Junior, permite-mi sa te contrazic: nu esti noob, esti nub de-a dreptul! Habar n-ai concepte de baza, nu stii ce e aia o clasa, dar tu vrei sa faci dezvoltare pe Smarty? Fa-ne la toti (inclusiv tie) o favoare si pune mana pe niste tutoriale sau carti de baza de php si de programare. Altfel vei ajunge sa ne enervezi pe toti, vei incepe sa ne injuri ca suntem ingamfati si ne dam superiori, si pana la urma iti vei lua ban permanent. N-ai fi primul.
Nu uita, 'walk you must learn before run you can'. |
|
| Sus |
|
PHPRomania Bot
Bot Member
Data înscrierii: 27/Dec/2007
Mesaje: 1
Locaţie: Server Google |
| Trimis: Mie Dec 26, 2007 7:01 pm Titlul subiectului: Ad |
|
|
|
|
|
| Sus |
|
| |
|