Jump to content
MakeWebGames

Gang Requirements


peterisgb

Recommended Posts

this is only a little mod, but as i aint that good its ok i suppose, but some1 might like it and use it,

this allows the gang owner to set level requirements for users wishing to join the gang see on the view gang page before they join to save them putting it in descriptions ?

ok open creategang.php and find

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

and replace with

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

the save and close, then open yourgang.php and find

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

and below add

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

and the link of course below "Change Gang Requirements.

" then look for

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

below that add

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

then save that file,

then open gangs.php and look for

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

below that add

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

then save that file then import this into your phpmyadmin

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Edited by peterisgb
Fixed Broken Code and Cleaned it up.
Link to comment
Share on other sites

Nice little update here.

No offence not alot of the code has been changed or improved, but nice update. Also a ` needs to be removed on the SQL.

the ' has been removed, and yh ino its a basic mod but there some people that aint that good, and/or havent though of it but as i am learning i though i woud put some of the work i am doing as i go along
Link to comment
Share on other sites

  • 2 months later...
ALTER TABLE `gangs` ADD `gangREQ` text NOT NULL,
ok please do not get mad at me about this im still learning but i THINK this may be correct...

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

it wouldnt let me use ALTER TABLE `gangs` ADD `gangREQ` text NOT NULL, so what i did was go in create it manually...

it was my first time doing it but yeah thats the only difference i seen i dont know if that was the reason or not

Cool mod bro keep it up

Thanks

Shad

Link to comment
Share on other sites

  • 2 weeks later...
  • 5 years later...

My version. *Tweaked*

most of the stuff is the same, but replace the yourgang.php function with this.

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Then find function gang_applysubmit

remove the $gangdata from globals. As the global version doesn't apply here anyways. -.-

Second find

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

in that function

and replace just that part with:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

You also need to place a

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

at the last line of that function.

My stats are called strength, agility, defense, and reflex. If you use different names such as labour and guard, etc you will need to modify the code to match your labels.

Fully tested and working. Not secured though. No clue what should be done to secure things lol. But there's the code for ya :P

Edited by boionfire81
Link to comment
Share on other sites

  • 1 month later...

Suggestion, add gang requirements to their own table (easier to expand in the long run)

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

 

NOTE: This code has not been tested

Please add any bugs here and I'll repair

Edit yourgang.php

Find:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

 

Replace with:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

 

Add to second switch() statement (the $_GET['act2'] switch):

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

 

Add a link in the gang staff management panel: yourgang.php?action=staff&act2=reqs

Find (end of file):

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

 

Add above:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

 

Edit gangs.php

Find:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

 

Add below:

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.

 

 

Replace with:

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.

 

 

Replace with:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

 

Find (in gang_view()):

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

 

Replace with:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

 

Find (in gang_view()):

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

 

Replace with:

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.

 

 

Replace with:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

 

Edit staff_items.php

Find (in new_item_form()):

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

 

Add below:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

 

Find (in new_item_submit()):

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

 

Add below:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

 

Find (in new_item_submit()):

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

 

Replace with:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

 

Find (in edit_item_form()):

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

 

Add below:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

 

Find (in edit_item_sub()):

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

 

Add below:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

 

Find (in edit_item_sub()):

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

 

Replace with:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 
Edited by Magictallguy
Updated code
  • Like 1
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...