Jump to content

codefossa

Members
  • Posts

    583
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by codefossa

  1. I guess I should say that I didn't create that, just edited someone elses as I'm not great with JQuery, but something that simple I could have easily handled, but that was a long time ago before I learned it. Either way, knowing it or not, I copy and paste. I forget where it originally came from.
  2. Well, luckily for you I have it already which I reuse all the time? Just needs simple edits. <script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.min.js"></script> <script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery.validate/1.7/jquery.validate.min.js"></script> <style> label.error { width: 250px; display: inline; color: red;} </style> <script type="text/javascript"> function ahah(url, target) { if (window.XMLHttpRequest) { req = new XMLHttpRequest(); } else if (window.ActiveXObject) { req = new ActiveXObject("Microsoft.XMLHTTP"); } if (req != undefined) { req.onreadystatechange = function() {ahahDone(url, target);}; req.open("GET", url, true); req.send(""); } } function ahahDone(url, target) { if (req.readyState == 4) { if (req.status == 200) { document.getElementById(target).innerHTML = req.responseText; } else { document.getElementById(target).innerHTML=" AHAH Error:\n"+ req.status + "\n" +req.statusText; } } } function load(name, div) { ahah(name,div); return false; } </script>
  3. Here's a screenshot of what I'm talking about: http://c.imagehost.org/0080/PHP_Help_PHP_Freaks_Forums_Index_PHP_Freaks_1295694290260.png Also, this is fixed in: ./Themes/default/index.template.php
  4. I'm not 100% sure of what you're asking, but here's what I believe you are asking. You basically want to have two types of ID's in a single table. (Students & Staff) To do this, I would just add an extra column which would be named 'type' or 'staff', whatever you want. Then make sure it's an int, and just use 0 & 1 to represent student or staff. If it's not what you wanted, then sorry.
  5. You could always use JQuery and a separate page for the function you wish to call on. That avoids the need to refresh the page, you can just add the content to a div.
  6. In your layout, where announcements show in the header with the grey box, you have a break as well as in the footer. I would suggest simply adding a br tag to the header and footer to solve this. I'm not sure if it's in all OS's, but I know it happens in Linux Ubuntu using Firefox, which happens to be what I use.
  7. codefossa

    Hello

    Hey, I'm Kira or more well known as "IceXaos". I own a community which uses SMF 2.0 RC3 which happens to be the same software used here, with one upgrade. My community is name Runedev, found at http://runedev.info and we're a gaming / cheating community. I'm pretty decent in HTML, CSS, PHP, and a bunch more, so since I've known about this community for quite a while now, I finally thought I'd join. I don't normally even do introductions, but there it is.
×
×
  • 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.