Jump to content

Ziddia

New Members
  • Posts

    8
  • Joined

  • Last visited

    Never

Everything posted by Ziddia

  1. Okay, I've made a new webpage for phpBB3, and it was working until about lunchtime yesterday. The next time I edited it, the page didn't update. I have tried several times to update it since, but it won't work. Here's my portal.php code: <?php define('IN_PHPBB', true); $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './'; $phpEx = substr(strrchr(__FILE__, '.'), 1); include($phpbb_root_path . 'common.' . $phpEx); // Start session management $user->session_begin(); $auth->acl($user->data); $user->setup(); page_header('phpBB3 Portal Public Test!'); $template->set_filenames(array( 'body' => 'portal_style.html', )); make_jumpbox(append_sid("{$phpbb_root_path}viewforum.$phpEx")); page_footer(); ?> Here's my portal_style.html: <!-- INCLUDE overall_header.html --> <script src="/port/scripts/getannounce.php"> </script> <h2><div align="center">Announcement!</div></h2> <div class="panel"> <div class="inner"><span class="corners-top"><span></span></span> <div class="content" align="center"> <script type="text/javascript" src="announce1.php"> </script> </div> <span class="corners-bottom"><span></span></span></div></div> <h2><div align="center">Announcement!</div></h2> <div class="panel"> <div class="inner"><span class="corners-top"><span></span></span> <div class="content" align="center"> <script src="/port/scripts/announce1.php"> </script> </div> <span class="corners-bottom"><span></span></span></div> </div> <h2><div align="center">Announcement!</div></h2> <div class="panel"> <div class="inner"><span class="corners-top"><span></span></span> <div class="content" align="center"> <script src="/port/scripts/announce3.php"> </script> </div> <span class="corners-bottom"><span></span></span></div></div> <h2><div align="center">Announcement!</div></h2> <div class="panel"> <div class="inner"><span class="corners-top"><span></span></span> <div class="content" align="center"> <script src="/port/scripts/announce4.php"> </script> </div> <span class="corners-bottom"><span></span></span></div></div> <h2><div align="center">Announcement!</div></h2> <div class="panel"> <div class="inner"><span class="corners-top"><span></span></span> <div class="content" align="center"> <script src="/port/scripts/announce5.php"> </script> </div> <span class="corners-bottom"><span></span></span></div></div> <!-- INCLUDE jumpbox.html --> <!-- INCLUDE overall_footer.html --> I will provide the others if you need them. Why would this be happening? Thanks!
  2. Hi! I have created a new radio button and a new onclick button which should send you to one page if the radio button is depressed and another if it is not pressed. Eg if (code for button depressed) { //a link I cans be bothered writing } else { //a different link. } Just the one radio button. Just the one submission button. I can't use PHP for it. Also, just as a side note, is it possible to connect to mySQL using JavaScript so that I can register whether that button has been pressed? So that it is saved for the entire website. Thanks!
  3. C++ is probably your best and safest bet, but I personally like java despite its failures because I learnt java first. It all depends on what you know best really.
  4. Ziddia

    Ziddia

    Hi, I am a new PHP coder, and I am set on modding phpbb3. I am proficient in Java, HTML, and JavaScript, and I am okay at PHP, although advanced PHP is still very difficult for me. I came here hoping to help others out and get a few of my own questions answered as well. Thanks for taking the time to read this, and hello, PHPFreaks. From Ziddia
  5. Despite a lot of work to get it good, the page will not update. Anyone know why? The page can be found at http://newportal.zidmc.x10.bz/nportal.php
  6. Urk... Sorry im obviously not thinking straight right now. I fixed it but the page refuses to update itself.
  7. Thanks- I have another problem. And I don't know what's causing it. Even though I have updated my document, the webpage stays exactly the same. Is this just a slow connection or what? Here's the updated code: <!-- INCLUDE overall_header.html --> <?php $a1=file_get_contents("/port/announce/announce1.txt", "r"); $a2=file_get_contents("/port/announce/announce2.txt", "r"); $a3=file_get_contents("/port/announce/announce3.txt", "r"); $a4=file_get_contents("/port/announce/announce4.txt", "r"); $a5=file_get_contents("/port/announce/announce5.txt", "r"); ?> <h2>Announcement!</h2> <div class="panel"> <div class="inner"><span class="corners-top"><span></span></span> <div class="content"> <?php echo $a1; ?> </div> <span class="corners-bottom"><span></span></span></div></div> <h2>Announcement!</h2> <div class="panel"> <div class="inner"><span class="corners-top"><span></span></span> <div class="content"> <?php echo $a2; ?> </div> <span class="corners-bottom"><span></span></span></div> </div> <h2>Announcement!</h2> <div class="panel"> <div class="inner"><span class="corners-top"><span></span></span> <div class="content"> <?php echo $a2; ?> </div> <span class="corners-bottom"><span></span></span></div></div> <h2>Announcement!</h2> <div class="panel"> <div class="inner"><span class="corners-top"><span></span></span> <div class="content"> <?php echo $a3; ?> </div> <span class="corners-bottom"><span></span></span></div></div> <h2>Announcement!</h2> <div class="panel"> <div class="inner"><span class="corners-top"><span></span></span> <div class="content"> <?php echo $a4; ?> </div> <span class="corners-bottom"><span></span></span></div></div> <h2>Announcement!</h2> <div class="panel"> <div class="inner"><span class="corners-top"><span></span></span> <div class="content"> <?php echo $a5; ?> </div> <span class="corners-bottom"><span></span></span></div></div> <!-- INCLUDE jumpbox.html --> <!-- INCLUDE overall_footer.html --> And here's the webpage: http://newportal.zidmc.x10.bz/nportal.php Mind looking and telling me why this would happen?
  8. Hi, I am modding phpBB3 and I want to make the contents of a text documents appear in a border. This is what I have in my portal_style.html: <!-- INCLUDE overall_header.html --> <?php $a1=fopen("/port/announce/announce1.txt", "r"); $a2=fopen("/port/announce/announce2.txt", "r"); $a3=fopen("/port/announce/announce3.txt", "r"); $a4=fopen("/port/announce/announce4.txt", "r"); $a5=fopen("/port/announce/announce5.txt", "r"); ?> <h2>Announcement!</h2> <div class="panel"> <div class="inner"><span class="corners-top"><span></span></span> <div class="content"> <?php echo $a1; ?> </div> <span class="corners-bottom"><span></span></span></div></div> <h2>Announcement!</h2> <div class="panel"> <div class="inner"><span class="corners-top"><span></span></span> <div class="content"> <?php echo $a2; ?> </div> <span class="corners-bottom"><span></span></span></div> </div> <!-- INCLUDE jumpbox.html --> <!-- INCLUDE overall_footer.html --> Anyone mind showing me how to make it work? Thanks.
×
×
  • 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.