Jump to content
MakeWebGames

[mccode] adding a crime panel in admin panel


seanybob

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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