Jump to content

KFredje

Members
  • Posts

    19
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

KFredje's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi, So short intro: I got my index.php and I want to load my register.php in a sort of popup like on ogame(.org) if you press on screenshots I already tried to find out how it works by searching what do what but I failed to find it So could somebody give me some tut's, hints on how to do this? I already found fancybox(.net) to load my page but when there appears an error or it confirms to send it still loads another page instead of staying in the popuped window. I to don't wanne work with real popups cause thay are most of the time blocked. I would appreciate it if somebody could get me started. tnx
  2. well, make a file index.php or whatever name you want and a file what you want to load in index.php, something like home.html past in index.php the following stuff: <html> <head> <?php switch($_GET['example1']) { case "inhoud": $page="content.html";break; default: $page="home.html";break; } ?> </head> <body> <div id="nav"> <a href="?example1=home"></a> <a href="?example1=inhoud"></a> </div> <div id="in this div your pages get loaded"> <?php include $page; ?> </div> </body> </html> K, now I'll explain ya each part. <head> <?php switch($_GET['page']) { case "inhoud": $page="content.html";break; default: $page="home.html";break; } ?> </head> as you see, here are the links defined. the word "example1" in switch($_GET['page']) { can be given any name you want, just make sure you give the same name to the links in the body. the worth after case can also be changed in anything you like, here it's "inhoud". Also your default page you want to load have to be set, here it's home.html. This page will be loaded when you load your site. <div id="nav"> <a href="?example1=home"></a> <a href="?example1=inhoud"></a> </div> here are the links you've set in the header. I guess you will figure out how to use it. <div id="in this div your pages get loaded"> <?php include $page; ?> </div> and here is your page loaded in. just past it on the right place and don't change it. Hope you understand. example1 isn't used from your previous post, just that you know. If you have more questions, just ask ^^
  3. I'm doing it like this: put this in your head according to your site: <?php switch($_GET['pagina']) { case "inhoud": $page="BEinhoud.html";break; case "logboek": $page="BElogboek.html";break; case "profielen": $page="BEprofielen.html";break; case "kalender": $page="BEkalender.html";break; case "gastenboek": $page="guestbook/list.php?page=1&order=asc";break; default: $page="BEhome.html";break; } ?> links like this (already in body): <a href="?pagina=profielen"></a> and then this in body where you wanne let the content load: <?php include $page; ?> In your pages you wanne load in another you have to delete everything exept your stuff what is in body. switch($_GET['pagina']) { -> you can change the word "pagina" (without "") to anything you like but do it then also in your links.
  4. You can use this website to see how your website looks in various versions of IE. @redarrow: I'm working on antispam
  5. i know, srry but seems to be fixed in IE by adding this: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> one prob now, can't check anymore in IE7 now since I installed IE8
  6. tnx, but it doesn't look that good -.-" http://validator.w3.org/check?uri=http%3A%2F%2Fwww.ludo.creative-j.org%2FV4%2Fguestbook%2Fguestbook.php&charset=%28detect+automatically%29&doctype=Inline&group=0
  7. hi, I downloaded a script for a guestbook which is compatible with FF and IE7 but not IE8. Is there an easy way to fix this? This are the pages (some of them): header.php <?php session_start(); ?> <!-- NOTE: PLEASE DO NOT REMOVE THE BELLOW 3 LINES FROM YOUR HEADER FILE --> <?php include("gbclass.php"); include("config.php"); include("language/$default_language"); ?> <!-- NOTE: PLEASE DO NOT REMOVE THE ABOVE 3 LINES FROM YOUR HEADER FILE --> <html> <head> <title>Windmolentechnologie</title> <link rel="STYLESHEET" type="text/css" href="style.css"> <LINK HREF="../css/ENnav.css" REL="stylesheet" TYPE="text/css" /> <LINK HREF="../css/ENcontent.css" REL="stylesheet" TYPE="text/css" /> <!--[if lte IE 7]> <LINK HREF="../css/ie7.css" REL="stylesheet" TYPE="text/css" /> <![endif]--> <script type="text/javascript" src="../js/klok.js"></script> <?php switch($_GET['pagina']) { case "inhoud": $page="../ENinhoud.html";break; case "logboek": $page="../ENlogboek.html";break; case "profielen": $page="../ENprofielen.html";break; case "kalender": $page="../ENkalender.html";break; case "gastenboek": $page="guestbook.php";break; default: $page="../ENhome.html";break; } ?> <?php $myvar=file_get_contents("../text.txt"); $myvar2=explode("\n",$myvar); ?> </head> <body> <div id="container"> <div id="NavTop"><a href="../BEindex.php"><img class="be" src="../images/be.gif"></a><a href="../FRindex.php"><img class="fr" src="../images/fr.gif"></a><a href="../ENindex.php"><img class="en" src="../images/en.gif"></a></div> <div id="NavTitle"></div> <div id="NavHome"><a href="../ENindex.php?pagina=home"><img src="../images/transparent.gif" class="transparent"></a></div> <div id="NavInhoud"><a href="../ENindex.php?pagina=inhoud"><img src="../images/transparent.gif" class="transparent"></a></div> <div id="NavLogboek"><a href="../ENindex.php?pagina=logboek"><img src="../images/transparent.gif" class="transparent"></a></div> <div id="NavProfielen"><a href="../ENindex.php?pagina=profielen"><img src="../images/transparent.gif" class="transparent"></a></div> <div id="NavKalender"><a href="../ENindex.php?pagina=kalender"><img src="../images/transparent.gif" class="transparent"></a></div> <div id="NavGastenboek"><a href="guestbook.php"><img src="../images/transparent.gif" class="transparent"></a></div> <div id="NavBlank"></div> <div id="NavBanner"></div> <div id="midden"> <div id="ContentLeft"> <table id="klok"><tr> <td id="kloktd"> <img src="../dg8.gif" name="hr1"><img src="../dg8.gif" name="hr2"><img src="../dgc.gif" name="c"><img src="../dg8.gif" name="mn1"><img src="../dg8.gif" name="mn2"><img src="../dgc.gif" name="c"><img src="../dg8.gif" name="se1"><img src="../dg8.gif" name="se2"> </td></tr></table> <div id="nieuws"><?php echo $myvar2[4]; ?></div> </div> <div id="ContentRight"> <div id="ContentRightGastenboek"> <center> <center> [ <a href="guestbook.php"><b><?php echo $addentrytxt ?></b></a> ] [ <a href="list.php?page=1&order=asc"><b><?php echo $viewguestbooktxt ?></b></a> ]<br> [ <a href="list.php?page=1&order=asc"><?php echo $newpostfirsttxt ?></a> ] [ <a href="list.php?page=1&order=desc"><?php echo $newpostlasttxt ?></a> ]</center> <br> footer.php </td></tr></table> </center> </div> </div> <div id="Footer"></div> </div> </div> guestbook.php <?php include("header.php"); //include("language/language.php"); ?> <script language="JavaScript" type="text/javascript"> function emoticon(text) { var txtarea = document.post.yourmessage; text = ' ' + text + ' '; if (txtarea.createTextRange && txtarea.caretPos) { var caretPos = txtarea.caretPos; caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? caretPos.text + text + ' ' : caretPos.text + text; txtarea.focus(); } else { txtarea.value += text; txtarea.focus(); } } function bbcode(text) { var txtarea = document.post.yourmessage; text = ' ' + text + ' '; if (txtarea.createTextRange && txtarea.caretPos) { var caretPos = txtarea.caretPos; caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? caretPos.text + text + ' ' : caretPos.text + text; txtarea.focus(); } else { txtarea.value += text; txtarea.focus(); } } </script> <table bgcolor=#EFEFEF bordercolor=#C0C0C0 border=1 width=500 cellspacing=0 cellpadding=10><tr><td background="images/toolbar.jpg" height="20"></td></tr><tr><td> <!-- Smiley List Starts Here --> <center> <table width="100" border="0" cellspacing="0" cellpadding="5"> <tr align="center" valign="middle"> <td><a href="javascript:emoticon('')"><img src="images/icon_biggrin.gif" border="0" alt="Very Happy" title="Very Happy"></a></td> <td><a href="javascript:emoticon('')"><img src="images/icon_smile.gif" border="0" alt="Smile" title="Smile"></a></td> <td><a href="javascript:emoticon('')"><img src="images/icon_sad.gif" border="0" alt="Sad" title="Sad"></a></td> <td><a href="javascript:emoticon('')"><img src="images/icon_surprised.gif" border="0" alt="Surprised" title="Surprised"></a></td> <td><a href="javascript:emoticon(':shock:')"><img src="images/icon_eek.gif" border="0" alt="Shocked" title="Shocked"></a></td> <td><a href="javascript:emoticon(':?')"><img src="images/icon_confused.gif" border="0" alt="Confused" title="Confused"></a></td> <td><a href="javascript:emoticon(':cool:')"><img src="images/icon_cool.gif" border="0" alt="Cool" title="Cool"></a></td> <td><a href="javascript:emoticon('')"><img src="images/icon_lol.gif" border="0" alt="Laughing" title="Laughing"></a></td> <td><a href="javascript:emoticon(':x')"><img src="images/icon_mad.gif" border="0" alt="Mad" title="Mad"></a></td> <td><a href="javascript:emoticon('')"><img src="images/icon_razz.gif" border="0" alt="Razz" title="Razz"></a></td> </tr> <tr align="center" valign="middle"> <td><a href="javascript:emoticon(':oops:')"><img src="images/icon_redface.gif" border="0" alt="Embarassed" title="Embarassed"></a></td> <td><a href="javascript:emoticon('')"><img src="images/icon_cry.gif" border="0" alt="Crying" title="Crying"></a></td> <td><a href="javascript:emoticon(':evil:')"><img src="images/icon_evil.gif" border="0" alt="Evil or Very Mad" title="Evil or Very Mad"></a></td> <td><a href="javascript:emoticon(':twisted:')"><img src="images/icon_twisted.gif" border="0" alt="Twisted Evil" title="Twisted Evil"></a></td> <td><a href="javascript:emoticon(':roll:')"><img src="images/icon_rolleyes.gif" border="0" alt="Rolling Eyes" title="Rolling Eyes"></a></td> <td><a href="javascript:emoticon(':wink:')"><img src="images/icon_wink.gif" border="0" alt="Wink" title="Wink"></a></td> <td><a href="javascript:emoticon(':!:')"><img src="images/icon_exclaim.gif" border="0" alt="Exclamation" title="Exclamation"></a></td> <td><a href="javascript:emoticon(':?:')"><img src="images/icon_question.gif" border="0" alt="Question" title="Question"></a></td> <td><a href="javascript:emoticon('')"><img src="images/icon_idea.gif" border="0" alt="Idea" title="Idea"></a></td> <td><a href="javascript:emoticon(':arrow:')"><img src="images/icon_arrow.gif" border="0" alt="Arrow" title="Arrow"></a></td> </tr> </table> </center><center> <table width="100" border="0" cellspacing="0" cellpadding="5"> <tr align="center" valign="middle"> <td><input type="button" class="button" value=" Bold " style="font-weight:bold; width: 50px" onClick="javascript:bbcode('[b] [/b]')"></td> <td><input type="button" class="button" value=" Underline " style="font-weight:bold; width: 80px" onClick="javascript:bbcode('[u] [/u]')"></td> <td><input type="button" class="button" value=" Italic " style="font-weight:bold; width: 50px" onClick="javascript:bbcode('[i] [/i]')"></td> <td><input type="button" class="button" value=" Center " style="font-weight:bold; width: 70px" onClick="javascript:bbcode(' [center] [/center] ')"></td> </tr> </table> </center> <!-- Smiley List Stops Here --> <br> <form name="post" action="add.php" method="post"> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td> <p><b><font size="2"><?php echo $yournametxt; ?></font></b></p> </td> <td><input type="text" name="yourname" size="20"></td> </tr> <tr> <td> <p><b><font size="2"><?php echo $youremailtxt; ?></font></b></p> </td> <td><input type="text" name="youremail" size="20" value=""></td> </tr> <?php if($image_verify == 1) { echo '<tr><td><p><b><font size="2">Verify:</font></b></p></td><td><input type="text" name="txtNumber" size="20" value=""><img src="random.php"></td></tr>'; } ?> <tr> <td> <p><b><font size="2"><?php echo $yourMessagetxt; ?></font></b></p> </td> <td> <div align="right"> <textarea name="yourmessage" cols="45" rows="10"></textarea></div> </td> </tr> <tr> <td></td> <td> <div align="right"> <input type="submit" name="ok" value="<?php echo $submitbutton; ?>"> </td> </tr> </table> </form> </td></tr></table><!-- End of toolbar table --> <?php include("footer.php"); ?>
  8. I just putted my BEindex.php in my header.php of the guestbook. since BEindex.php is modified by another file is it easy to just copy the codes in there. The only problem is now that my page stops working in IE8
  9. tnx, but I fixed it another way ^^ but now there's a shity problem in IE8 :S my page don't load there. In FF and IE7 it works perfect. http://www.ludo.creative-j.org/V4/guestbook/guestbook.php
  10. tnx for replay but I don't understand it :S I'm thinking of another solution. Is it possible to load a css life without the <head></head> ?
  11. Hi, I want to load my guestbook in my page but there is something I can't fix myself. If you look on this page: http://www.ludo.creative-j.org/V4/BEindex.php?pagina=gastenboek you see an error: Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/ludo/domains/ludo.creative-j.org/public_html/V4/BEindex.php:14) in /home/ludo/domains/ludo.creative-j.org/public_html/V4/guestbook/header.php on line 2 I know it's cause <html> is already started at BEindex.php : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <HTML> <HEAD> <TITLE>Windmolentechnologie</TITLE> <LINK HREF="css/BEnav.css" REL="stylesheet" TYPE="text/css" /> <LINK HREF="css/BEcontent.css" REL="stylesheet" TYPE="text/css" /> <!--[if lte IE 7]> <LINK HREF="css/ie7.css" REL="stylesheet" TYPE="text/css" /> <![endif]--> <script type="text/javascript" src="js/klok.js"></script> <?php switch($_GET['pagina']) { case "inhoud": $page="BEinhoud.html";break; case "logboek": $page="BElogboek.html";break; case "profielen": $page="BEprofielen.html";break; case "kalender": $page="BEkalender.html";break; case "gastenboek": $page="guestbook/guestbook.php";break; default: $page="BEhome.html";break; } ?> <?php $myvar=file_get_contents("text.txt"); $myvar2=explode("\n",$myvar); ?> </HEAD> <BODY> <div id="container"> <div id="NavTop"><a href="BEindex.php"><img class="be" src="images/be.gif"></a><a href="FRindex.php"><img class="fr" src="images/fr.gif"></a><a href="ENindex.php"><img class="en" src="images/en.gif"></a></div> <div id="NavTitle"></div> <div id="NavHome"><a href="?pagina=home"><img src="images/transparent.gif" class="transparent"></a></div> <div id="NavInhoud"><a href="?pagina=inhoud"><img src="images/transparent.gif" class="transparent"></a></div> <div id="NavLogboek"><a href="?pagina=logboek"><img src="images/transparent.gif" class="transparent"></a></div> <div id="NavProfielen"><a href="?pagina=profielen"><img src="images/transparent.gif" class="transparent"></a></div> <div id="NavKalender"><a href="?pagina=kalender"><img src="images/transparent.gif" class="transparent"></a></div> <div id="NavGastenboek"><a href="?pagina=gastenboek"><img src="images/transparent.gif" class="transparent"></a></div> <div id="NavBlank"></div> <div id="NavBanner"></div> <div id="midden"> <div id="ContentLeft"> <table id="klok"><tr> <td id="kloktd"> <img src="dg8.gif" name="hr1"><img src="dg8.gif" name="hr2"><img src="dgc.gif" name="c"><img src="dg8.gif" name="mn1"><img src="dg8.gif" name="mn2"><img src="dgc.gif" name="c"><img src="dg8.gif" name="se1"><img src="dg8.gif" name="se2"> </td></tr></table> <div id="nieuws"><?php echo $myvar2[4]; ?></div> </div> <div id="ContentRight"> <?php include $page; ?> </div> <div id="Footer"></div> </div> </div> </BODY> </HTML> and this is header.php of my guestbook which make the error: <?php session_start(); ?> <!-- NOTE: PLEASE DO NOT REMOVE THE BELLOW 3 LINES FROM YOUR HEADER FILE --> <?php include("gbclass.php"); include("config.php"); include("language/$default_language"); ?> <!-- NOTE: PLEASE DO NOT REMOVE THE ABOVE 3 LINES FROM YOUR HEADER FILE --> <html> <head> <title>Powered by DigiOz Guestbook Version 1.7.2</title> <link rel="STYLESHEET" type="text/css" href="style.css"> </head> <body bgcolor="#FFFFFF" text="#000000" link="#8080ff" vlink="#0000ff" alink="#ffff00"><center> <h1><?php echo $headingtitletxt ?></h1> <br><br> <center> [ <a href="guestbook.php"><b><?php echo $addentrytxt ?></b></a> ] [ <a href="list.php?page=1&order=asc"><b><?php echo $viewguestbooktxt ?></b></a> ]<br> [ <a href="list.php?page=1&order=asc"><?php echo $newpostfirsttxt ?></a> ] [ <a href="list.php?page=1&order=desc"><?php echo $newpostlasttxt ?></a> ]</center> <br> <form action="search.php" method=post> <table border=0 cellpadding=2> <tr> <td><font size="1">Enter Search <b>WORD</b>:</font></td> <td align=left><input type="text" name="search_term" size=20 maxlength=50><input type=submit value="Find Now!"></td> </tr> </table> </form> <br> How can i let the header work?
  12. Hi, I'm looking for a script where I can add in td's in a table. For example take this code: <table class="LogboekTabel"> <tr><td class="LogboekDate">Datum</td><td class="LogboekTijd">Tijd</td><td class="LogboekOmschrijving">Omschrijving</td></tr> <tr><td class="datlog2">11-07-2009</td><td class="tijdlog2">3 uur</td><td>Bezoek opening Evolis</td></tr> <tr><td class="datlog2">13-07-2009</td><td class="tijdlog2">6 uur</td><td>Site V1.0 Online</td></tr> <tr><td class="datlog2">19-07-2009</td><td class="tijdlog2">4 uur</td><td>Site V1.1 Online</td></tr> <tr><td class="datlog2">20-07-2009</td><td class="tijdlog2">1 uur</td><td>Nieuwe klok toegevoegd</td></tr> <tr><td class="datlog2">06-08-2009</td><td class="tijdlog2">30 minuten</td><td>Layout default.css herschreven</td></tr> <tr><td class="datlog2">30-08-2009</td><td class="tijdlog2">30 minuten</td><td>Profiel foto's toegevoegd</td></tr> <tr><td class="datlog2">01-09-2009</td><td class="tijdlog2">1 uur</td><td>Startformulier ingevuld + informatie en contacten gezocht</td></tr> <tr><td class="datlog2">03-09-2009</td><td class="tijdlog2">100 minuten</td><td>Informatie en contacten gezocht</td></tr> <tr><td class="datlog2">04-09-2009</td><td class="tijdlog2">15 minuten</td><td>Site V1.2 Online</td></tr> <tr><td class="datlog2">05-09-2009</td><td class="tijdlog2">5 uur</td><td>Site V1.3 Online<br>Informatie verzamelen + boeken zoeken</td></tr> <tr><td class="datlog2">06-09-2009</td><td class="tijdlog2">2 uur</td><td>Site V1.4 Online</td></tr> <tr><td class="datlog2">07-09-2009</td><td class="tijdlog2">1 uur</td><td>Site V1.5 Online</td></tr> <tr><td class="datlog2">08-09-2009</td><td class="tijdlog2">1 uur</td><td>Site V1.6 Online (BE)</td></tr> <tr><td class="datlog2">09-09-2009</td><td class="tijdlog2">3 uur</td><td>Bib + inhoudstabel maken + contacten gezocht</td></tr> <tr><td class="datlog2">09-09-2009<br>10-09-2009</td><td class="tijdlog2">8 uur</td><td>Site V2.0 Online (BE)</td></tr> <tr><td class="datlog2">10-09-2009<br>-<br>17-09-2009</td><td class="tijdlog2">10 uur</td><td>Site V2.2 Online: vertaling Engels, Frans + Gastenboek toegevoegd</td></tr> <tr><td class="datlog2">11-09-2009</td><td class="tijdlog2">1 uur</td><td>Getelefoneerd naar aantal bedrijven + Technische informatie</td></tr> <tr><td class="datlog2">16-09-2009</td><td class="tijdlog2">3 uur</td><td>Informatie zoeken<br>Windmolenbezoek zelfgebouwde windmolen<br>Telefoneren voor afspraken</td></tr> </table> I would like to have or make a script in php which can automatically add or delete lines in the file where the above is in. So I have to type in the date, time and description and then add it to the file: <tr><td class="datlog2">16-09-2009</td><td class="tijdlog2">3 uur</td><td>Informatie zoeken<br>Windmolenbezoek zelfgebouwde windmolen<br>Telefoneren voor afspraken</td></tr> (sorry for dutch language in the codes) can it be easily done? greetings
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.