Jump to content
MakeWebGames

[mccode] adding a crime panel in admin panel


Recommended Posts

Posted

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.

Posted

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)

Posted

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.

Posted

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 ^^

Posted

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

Posted

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

Posted

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 :)

Posted

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.

Posted

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.

Posted

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?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...