Jump to content

adamscybot

Members
  • Posts

    10
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

adamscybot's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Just to keep you updated - here is what Ive added so far for v0.5. I hope after this release, we can see about getting the delete/editing working. Added: * Check that at least the username has been entered - javascript used. * Error page displayed when insert.php, updated.php or deleted.php is opened without submitting on signup.php or collect.php first. URL of error page defined in private.inc.php. * URL of roster page defined in private.inc.php. * New layout for collect.php and signup.php. * A few other tweaks Soon to come: * Main page - index.php * Split results on roster.php - amount of results defined in private.inc.php. * Backup/mass delete options * Login using sessions We still need some things doing though. Like: * An output page. A different roster.php without the add member and edit buttons that can be easily arranged in terms of rank. You then use php include to put it on your website. * Edit/delete functions - working * Some other bits and bobs Adam
  2. Brilliant! I have the insert.php check working. I will now complete the form checks and give you it as V0.5 soon. Here is what I did for the insert.php check if you want to know: First I added the error1 variable in private.inc.php. You might see some more added variables in there on V0.5. In signup.php add: [code]<input type="hidden" name="_submit_check" value="1"/> [/code] After: [code]<input type="Submit">[/code] In insert.php add: [code]if (array_key_exists('_submit_check', $_POST)) {[/code] Before: [code]$user=$_POST['user'];[/code] Add: [code]} else {         header("Location: $error1"); }[/code] After: [code]mysql_close();[/code] In my case, you add that after "header("Location: $rosterpage");" which is a redirect ive added to a variable of the roster.php stored in private.inc.php. I will soon finish V0.5! I am also on planning creating an index.php with login and links to all the pages. Adam PS Does your CSS clan have a server or a teamspeak?
  3. Im having some trouble. To stop the user going on insert.php I did the following: Add: [code]if (isset($_POST['Submit'])) {[/code] Before: [code]$user=$_POST['user'];[/code] Add: [code]} else {         header("Location: $error1"); }[/code] After: [code]mysql_close();[/code] What this should do is check that information has been submitted and if so, insert it. If not, redirect the user to $error1 (which ive stored in provate.inc.php). It does work, but it works too much!! Everytime I submit info on signup.php it leads me to error1. I cant find a way to make this work... I have also added redirects on insert.php so when information is submitted you go back to the roster. The redirect code is: [code]header("Location: YOURPAGE");[/code] Hopefully, I can get the insert.php check working and add more checks to make sure at least the username and rank is filled in before submitting. I probably use javascript for that. In the mean time, I hope you can get the update/delete options working! Thanks, Adam
  4. Thanks again. Im integrating some checks to stop users direct linking to insert.php causing a blank entry. Adding more too, Adam
  5. Thanks very, very much. The text is now inputted corectly into the database and is viewed correct to. However, Im not sure how to work the update/delete function. When I visit collect.php - a form is shown. What do I put here? I tried putting anytihng and it says 'roster updated'. However, nothing changes in the database so how do I update/delete people. Is it possible to make it so on collect.php it shows all the members in the database and next to each one is an update/delete button. More importantly, do you know of a way to output roster.php in categories. So down the page you have the headings and then roster.php automatically puts the emmebrs under them in terms of rank? Like the one shown in the link on the first post. Thanks. You have been so much of a help. Adam
  6. A very kind person fulfilled my request to make a script to amanage the matches a roster pages of my website. Here is the original thread: [a href=\"http://www.phpfreaks.com/forums/index.php?act=ST&f=12&t=91923&st=0#entry368923\" target=\"_blank\"]http://www.phpfreaks.com/forums/index.php?...t=0#entry368923[/a] As you can see, I am having a problem with the script which no matter how many times I look or where I look, i cant understand. I have provided a link to the unfiinished script in that last post on that thread. If anyone coudl complete this script or even add onto it with the matches backend I mentioned, I would be so grateful. Just a simple fix would make me happy. Read the whole post (it isnt that long) to understand what my problem is. Many, many thanks, Adam
  7. Hmmmm, not sure if it is working at all? I have not linksed any of the pages or anything because it doesnt seemt o be adding stuff into the database at all. The database is created and all and when I try to insert something it just goes to the blank page as expected. I then check the database and theres nothing. When I look at roster.php this is what I get: [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]Roster [Add member] "; $i=0; while ($i < $num) { $user=mysql_result($result,$i,"user"); $firstname=mysql_result($result,$i,"firstname"); $lastname=mysql_result($result,$i,"lastname"); $position=mysql_result($result,$i,"position"); $email=mysql_result($result,$i,"email"); $rank=mysql_result($result,$i,"rank"); echo "Player Name:$user Real Name: $firstname $lastname Position: $position Email: $email Rank: $rank "; $i++; } ?>[/quote] Is this ment to happen? Im not sure how to link collect.php (thats what i called it) to update.php and delete.php either. Here is the compiled files in a .rar which are completely unchanged (except for the roster.php - the 'add member' link pointed to signup.php and not signup.html). LINK REMOVED - SEE BELOW POST I know a lot of clans want something like this, something where you can simply use php include to make it suitable for any page and not to be forced to use php nuke and all. This could certainly be the only script around to do this! EDIT: Hmmmm, roster .php just seems to display the 2 end characters (" and ;) on line 33 and everything after line 33. There doesnt seem to be an error? Deleteting line 33 gives me this on roster.php: [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--] Player Name:$user Real Name: $firstname $lastname Position: $position Email: $email Rank: $rank "; $i++; } ?>[/quote] Still not right. Its displaying the code! May I also ask what the 'Clan position' is for on signup.html! Im not sure what to put it in there as youve already got 'rank'. Is it safe to remove? Adam
  8. Thank you ever so much. i can't thank you enough. I will compile this now and add anything I think I might need toedit. I will then give you the compiled code if you wish ;) Adam
  9. If someone could give me examples for the following I would appreciate it so much. ima newbie in PHP and you uber people will find this easy. Basically, I have 2 pages which I want a small admin panel for so i can quickly and easily edit them. These 2 pages are here: 1. [a href=\"http://sws.vxcomputers.com/civilclan/roster.php\" target=\"_blank\"]http://sws.vxcomputers.com/civilclan/roster.php[/a] 2. [a href=\"http://sws.vxcomputers.com/civilclan/matches.php\" target=\"_blank\"]http://sws.vxcomputers.com/civilclan/matches.php[/a] At the moment, I need an admin panel for (1) more than (2). So what i want is to be be able to log in, type a memebers name in the text box and then select his rank in a text box. I then click add and its added to the roster page under the correct heading. E.g. I put a member named 'steven' in the box and select 'on trial.' I then check the rosters page and steven's name is under on trial. The script should allow me to list the members and let me edit there status (e.g. from 'on trial' to 'member'). It should also allow me to delete a member and edit the players name. Also, on the main page (http://sws.vxcomputers.com/civilclan/) I have a small box on the left telling of new members. The admin panel should automatically add the player to this (preferably only if there rank is 'member' or higher) and then remove it after 30 days or so. This part only needs to show their name. I realise im asking for a lot to be done. I would be so, very, very, very grateful. I cant express who much it would help. hey, if you play CSS or HL2: DM you can join the clan! Many thanks, Adam
×
×
  • 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.