wezze
Members-
Posts
57 -
Joined
-
Last visited
Never
About wezze
- Birthday 08/31/1985
Profile Information
-
Gender
Male
-
Location
Belgium
wezze's Achievements
Member (2/5)
0
Reputation
-
how do i get this <?php echo $lang['']; ?> into this code where the text is? <? /** * Just a little page footer, tells how many registered members * there are, how many users currently logged in and viewing site, * and how many guests viewing site. Active users are displayed, * with link to their user information. */ echo "<center><b>Totaal geregistreerde leden:</b> ".$database->getNumMembers()."<br>"; echo "Er zijn $database->num_active_users registreerde leden en "; echo "$database->num_active_guests bezoekers online.<br><br></center>"; include("../../www/log/view_active.php"); ?> thx
-
lol idd there was alrdy a table with home in it next time ill drop it 1. thx allot
-
Hi i need the following db for mutli language script but i get the following error #1062 - Duplicate entry 'home' for key 'id' this is the .sql CREATE TABLE IF NOT EXISTS `modlang` ( `id` varchar(15) NOT NULL, `en` text NOT NULL, `fr` text NOT NULL, `nl` text NOT NULL, UNIQUE KEY `id` (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `modlang` -- INSERT INTO `modlang` (`id`, `en`, `fr`, `nl`) VALUES ('home', 'Home', 'Accueill', 'Home'), ('members', 'Members', 'Membre', 'Leden'), ('album', 'Album', 'Album', 'Album'), ('calender', 'Calender', 'Calendrier', 'Kalender'), ('contact', 'Contact', 'Contact', 'Contact'), ('register', 'Register', 'S inscrire', 'Inschrijven'), ('guestbook', 'Guestbook', 'Livre d or', 'Gastenboek'), ('movies', 'Movies', 'Film', 'Filmen'), ('link', 'Link', 'Lien', 'Links'), ('welcome', 'Welcome', 'Bienvenue', 'Welkom'), ('info', 'Info', 'Info', 'Info'), ('member', 'Member', 'Membre', 'Lid'), ('fillout', 'Fill out the form below and we will contact you as soon possible.', 'Remplissez le formulaire ci-dessous et nous vous contacterons d?s possible', 'Vul dan snel onderstaand formulier in en wij contacteren u zo snel mogenlijk.'), ('name:', 'Name:', 'Nom:', 'Naam:'), ('birth date:', 'Birth date:', 'Date de naissance:', 'Geboorte datum:'), ('sex:', 'Sex:', 'Sexe:', 'Geslacht:'), ('city:', 'City:', 'Ville:', 'Stad:'), ('country:', 'Country:', 'Pays:', 'Land:'), ('postal:', 'Postal code:', 'Code postal:', 'Postcode:'), ('street:', 'Street:', 'Rue:', 'Straat:'), ('back', 'Back', 'Retour', 'Terug'), ('next', 'Next', 'Suivenant', 'Volgende'), ('login', 'Login', 'login', 'Inloggen'), ('password', 'Password', 'Mot de passe', 'Wachtwoord'), ('fw', 'Forgot password?', 'Mot de passe oubli??', 'Wachtwoord vergeten?'); i dont get why i cant use an entry multi times. thx
-
i found a solution of a multi language script with ajax,mysql,php im trying to understand it but the menu problem is solved. thx
-
what about 2 languages would this causse any problems? /name /www /nl index.php /fr index.php /js /includes /nl /fr /images /css /lightbox thanks
-
ok im working on my new folder structure now. but stuff like lightbox where do i put that do i strip that folder too, so js, css ,images do i put them within my js, css, images folder or do i leave it like that? made this up till now /name /www index.php /js /includes /images /css The reason my folder structure was like this is because of...lazzynes?
-
so the only file that needs to be in my root is index.php? and stuff like admin center? what do you mean with autoload files?? thx
-
Hi im using includes for my menu's now the problem i have is when files are in the same folder its easy i just use <a href=\"test1.php\">test1</a> when sub folder <a href=\"../test1.php\">test1</a> but what to do with this?? lets say your this is my menu if($session->isAdmin()) { echo "<li><a href=\"../test.php\">test</a></li>"; echo "<li><a href=\"test1.php\">test1</a></li>"; echo "<li><a href=\"../test2.php\">test2</a></li>"; echo "<li><a href=\"../testfolder/test3.php\">test3</a></li><br>"; } now lets say im on page test1 and click the test3 page ill go to test3 page, now heres my problem when on page test3 and clicking page test i get an error causse i use the same menu as include for everything is there a way to fix this?? hope my example makes any sense thx
-
cant find it :s i geusse ill look for something else or try to find some tutorials thx anyway
-
<? if($session->logged_in){ echo "<h3>Menu</h3>"; echo "<li><a href=\"userinfo.php?user=$session->username\">Mijn Account</a></li>" ."<li><a href=\"useredit.php\">Instellingen</a></li>"; echo "<p> </p>"; if($session->isAdmin()){ echo "<li><a href=\"filmen_leden.php\">Filmen</a></li>" ."<li><a href=\"links.php\">links</a></li>" ."<li><a href=\"upload_kalender/upload.form.php\">upload kalender</a></li>" ."<li><a href=\"../livre d'or/admin/index.php\">livre d'or</a></li>" ."<li><a href=\"../gastenboek/admin/index.php\">Gastenboek</a></li>" ."<li><a href=\"admin/index.php?id=1\">Admin Center</a></li>"; } echo "<p> </p>" ."<li><a href=\"process.php\">Logout</a></li>"; } ?> you mean this? atm its still set for users and admin only.
-
<?php if( $session->=(3)(5)(7)){ // but then it doesnt matter what lvl they are thell all see the same here? if( $session->isAdmin()){ // do something } } thx
-
ok but if i do it otherwise and the user isnt admin the script wont bother to look for 7, 5 ect and if i would use elseif would that do the trick? like <?php if( $session->Logged_in){ // do something if( $session->isAdmin()){ // do something elseif($session->isUserlevel(7)){ // do something } } } thx
-
i dont need any1 to do it for me i only need a little puch in the right direction. ive been google-ing like hell on this subject and cant find anything thats why i posted here. i rlly dont get why the script stops at the first if session. thx
-
ok but how? thx