Onderwerp bekijken
Vragen/Problemen in verband met infusions
 Onderwerp afdrukken
[Opgelost] Birthday infusion : Error
Tivano
Hee, ik heb de Birthday infusion op me site met sucses geinstaleerd. Maar toen ik wou testen deed zich deze foutmelding voor:

Notice: Use of undefined constant USERGOLD - assumed 'USERGOLD' in /home/RKFjxMEqHN/domains/magiclives.nl/public_html/infusions/birthday_panel/birthday_panel.php on line 52

Hoe kan ik dit verhelpen
Gewijzigd door Steff op 25 February 2009, 08:28
 
Steff
Deze infuion werkt enkel in combinatie met User Gold 3 van starsheaven. Smile je kan deze functies eruit halen en enkel het birthday panel erin laten.
Kopier de inhoud van het paneel hier en ik zal er naar kijken;
Gewijzigd door Steff op 24 February 2009, 16:56
 
http://renders.me/
Tivano

if (!defined("IN_FUSION")) { die("Access Denied"); }

// Check if locale file is available matching the current site locale setting.
if (file_exists(INFUSIONS."birthday_panel/locale/".$settings['locale'].".php")) {
   // Load the locale file matching the current site locale setting.
   include INFUSIONS."birthday_panel/locale/".$settings['locale'].".php";
} else {
   // Load the infusion's default locale file.
   include INFUSIONS."birthday_panel/locale/English.php";
}

$result=dbquery("SELECT user_id, user_name, user_avatar,
   DATE_FORMAT(user_birthdate, '%d') AS birth_day,
   EXTRACT(MONTH FROM user_birthdate) AS birth_month
   FROM ".DB_USERS."
   WHERE (EXTRACT(MONTH FROM user_birthdate)=EXTRACT(MONTH FROM NOW())
   AND EXTRACT(DAY FROM user_birthdate)=EXTRACT(DAY FROM NOW()))
   ORDER BY birth_month , birth_day LIMIT 0,15"
);

$rows = dbrows($result);
if ($rows != 0) {
   @openside($locale['bdp_title']);
   echo "\n";
   @closeside();
} else {
   openside($locale['bdp_001']);
   echo "
'".$locale['bdp_001']."'\n";
   echo "
\n";
   echo "Geen jarigen vandaag\n";
   echo "
\n";
   closeside();
}
?>

Gewijzigd door Puma op 24 February 2009, 20:15
 
Steff
[geshi=php]if (!defined("IN_FUSION")) { die("Access Denied"); }

// Check if locale file is available matching the current site locale setting.
if (file_exists(INFUSIONS."birthday_panel/locale/".$settings['locale'].".php")) {
// Load the locale file matching the current site locale setting.
include INFUSIONS."birthday_panel/locale/".$settings['locale'].".php";
} else {
// Load the infusion's default locale file.
include INFUSIONS."birthday_panel/locale/English.php";
}

$result=dbquery("SELECT user_id, user_name, user_avatar,
DATE_FORMAT(user_birthdate, '%d') AS birth_day,
EXTRACT(MONTH FROM user_birthdate) AS birth_month
FROM ".DB_USERS."
WHERE (EXTRACT(MONTH FROM user_birthdate)=EXTRACT(MONTH FROM NOW())
AND EXTRACT(DAY FROM user_birthdate)=EXTRACT(DAY FROM NOW()))
ORDER BY birth_month , birth_day LIMIT 0,15"
);

$rows = dbrows($result);
if ($rows != 0) {
@openside($locale['bdp_title']);
echo "
'".$locale['bdp_title']."'\n";
echo "
\n";
if(dbrows($result)!=0) {
$months=explode("|", $locale['shortmonths']);
while($data=dbarray($result)) {
//echo "\n";
if(!empty($data['user_avatar'])) {
$avatar = "'".$data['user_name']."'\n";
} else {
$avatar = "\n";
}
$username = $data['user_name'];
echo "
$avatar

\n";
echo "".$username."
\n";
}
}
echo "
\n";
@closeside();
} else {
openside($locale['bdp_001']);
echo "
'".$locale['bdp_001']."'\n";
echo "
\n";
echo "Geen jarigen vandaag\n";
echo "
\n";
closeside();
}
?> [/geshi]
 
http://renders.me/
Tivano
Dankuwel =)
 
Spring naar forum:
Nieuw onderwerp Antwoorden
Gebruik BBcode of HTML om naar; '[Opgelost] Birthday infusion : Error', te verwijzen!
BBcode:
HTML:
Vergelijkbare onderwerpen
Onderwerp Forum         Laatste bericht
403 error Algemene v7 support : 4 29 Feb 2020, 10:26
setup error Algemene v7 support : 2 10 Oct 2019, 18:22
Autonews Infusion Infusions : 22 11 Jun 2019, 02:13
infusion aanpassen via phpmyadmin Infusions : 12 19 Feb 2017, 07:28
nieuwe infusion Infusions : 1 18 Feb 2017, 22:05