seanybob Posted September 20, 2006 Posted September 20, 2006 thanks to everyone who contributed to this, including Dougk and tranz_fusion *note-this requires that the mod for adding items to crimes is up and running, it can be found here http://www.criminalexistence.com/viewtopic.php?t=1392 first open up global_func.php find You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. after that add You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. now open up admin.php find You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. after it add You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. find You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. after it add You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. find You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. after that add You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
seanybob Posted September 20, 2006 Author Posted September 20, 2006 adding a crime panel in admin panel anyone who wants to add to this, or sees a way to change something for the better, post!!! lol, i dont claim to be perfect, and to admit it i did this half drunk (although sometimes i find that the best time to code is while drinking) Quote
Hatchet Posted September 20, 2006 Posted September 20, 2006 adding a crime panel in admin panel might want to change You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. to You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
seanybob Posted September 20, 2006 Author Posted September 20, 2006 adding a crime panel in admin panel added. but how do u set a value to a textarea field? Quote
DJStreetz Posted September 20, 2006 Posted September 20, 2006 adding a crime panel in admin panel did what u said and i get You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
seanybob Posted September 20, 2006 Author Posted September 20, 2006 adding a crime panel in admin panel ooops DJ i accidentally hit enter while typing the crime dropdown box, fixed it now, copy/paste code again Quote
DJStreetz Posted September 20, 2006 Posted September 20, 2006 adding a crime panel in admin panel naw i seen and fixed that but its still ther Quote
bored292 Posted September 20, 2006 Posted September 20, 2006 adding a crime panel in admin panel Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\wamp\www\codes\global_func.php on line 113 i get it but on a diff line ^^ Quote
Hatchet Posted September 20, 2006 Posted September 20, 2006 adding a crime panel in admin panel You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Just need to add an s to crime on the mysql query. Quote
seanybob Posted September 20, 2006 Author Posted September 20, 2006 adding a crime panel in admin panel *smacks head* its always the little things fixed now :burp: Quote
Decepti0n Posted September 20, 2006 Posted September 20, 2006 adding a crime panel in admin panel You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. for the value of a textarea (me thinks) Quote
spellbyte ® Posted September 20, 2006 Posted September 20, 2006 adding a crime panel in admin panel Is the original post by seanybob upto date and fully working now Quote
seanybob Posted September 20, 2006 Author Posted September 20, 2006 adding a crime panel in admin panel should be... Quote
spellbyte ® Posted September 20, 2006 Posted September 20, 2006 adding a crime panel in admin panel cool i'll add this later :) Quote
spellbyte ® Posted September 20, 2006 Posted September 20, 2006 adding a crime panel in admin panel is there any way that this mod can have this added. for the crime group could it have a dropdown box that reads from the db and displays the current crime groups that are currently in there? im not sure how it would go or even how hard it would be to do it Quote
Astra Posted September 20, 2006 Posted September 20, 2006 adding a crime panel in admin panel hmm when you go into edit crime nothing is displayed in CrimeITEXT but apart from that its great means I can add new crimes at school now as my cpanel is blocked Quote
bored292 Posted September 20, 2006 Posted September 20, 2006 adding a crime panel in admin panel w00t got it working thanks so much!!!!! Quote
seanybob Posted September 20, 2006 Author Posted September 20, 2006 adding a crime panel in admin panel ok, when ill get home ill fix editcrime so it shows IText, and also ill work on making a crimegroups thing for admin.php. shouldnt be too hard, just gotta edit a few things what i already posted :) Quote
spellbyte ® Posted September 20, 2006 Posted September 20, 2006 adding a crime panel in admin panel cool i look forward to the addition :) Quote
Astra Posted September 20, 2006 Posted September 20, 2006 adding a crime panel in admin panel same it is great Quote
DougK Posted September 20, 2006 Posted September 20, 2006 adding a crime panel in admin panel hmm when you go into edit crime nothing is displayed in CrimeITEXT but apart from that its great means I can add new crimes at school now as my cpanel is blocked You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. You need to make a small change to the edit crime form func to make it work. I also changed the success and failure text textboxes into textareas, as you can see. Quote
tranz_fusion Posted September 20, 2006 Posted September 20, 2006 adding a crime panel in admin panel is there any way that this mod can have this added. for the crime group could it have a dropdown box that reads from the db and displays the current crime groups that are currently in there? im not sure how it would go or even how hard it would be to do it do this... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Tested / Working. Quote
DougK Posted September 20, 2006 Posted September 20, 2006 adding a crime panel in admin panel OK, I just tested out this mod. It seems that SQL/PHP does not like it when a quote shows up in one of the text boxes (in my case, text areas). Is there any way to make it so this works no matter what goes in the text boxes? Or is this just something I will have to train the admins on when editing a crime? Quote
Tunk Posted September 20, 2006 Posted September 20, 2006 adding a crime panel in admin panel either use addslashes or mysql_real_escape_string on the input and that should cure the problem. Quote
DougK Posted September 20, 2006 Posted September 20, 2006 adding a crime panel in admin panel Could you give me an example of how you would use either? inside the SQL command? etc Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.