Jump to content
MakeWebGames

Recommended Posts

Posted

GANG REPLACEMENT

This is a replacement for Mccodes V2 gangs. It replaces all of the gang pages except for the organized crimes. If you are looking for a gang script that has none of the same old bugs that plague mccodes, then you have found the solution right here!

The same programming excellence that has made the Horizons Game Engine the most secure browser game engine, has created the new fantastic gang replacement mod.

Without further ado, the mod can be downloaded at the following link:

http://makewebgames.io/index.php?page=DownloadDBData&dataID=33

SCREENSHOTS

[tabmenu]

[tab=Public Gang Pages]

The list of gangs (note that it is paginated, and can be filtered by the gang's first letter of their name.

th_list.png

Gang war list:

th_wars_2.png

Another view of the gang war list:

th_wars_1.png

A gang's public profile page:

th_profile.png

[tab=Private Gang Pages]

Donation page:

th_donate.png

Your gang's member list:

th_members.png

Your gang's index page:

th_my_gang.png

Your gang's summary:

th_summary.png

Your gang's wars:

th_wars.png

[tab=Gang Staff Pages]

War management:

th_war.png

Vault management:

th_vault.png

Staff management:

th_staff.png

Gang settings management:

th_settings.png

Gang staff menu:

th_menu.png

[tab=Official Plugins]

  • Organized Crimes -- [go]
  • Hit and Run -- [go] Coming soon!

[/tabmenu]

FEATURES

Designed as a drop in replacement for mccodes version 2 gangs.

Has a plugin design that allows new gang content to be dropped into the gangs.

Gangs with no members are automatically deleted when a user attempts to view that gang.

Players listed as being in a gang that doesn't exist are automatically reset.

Gang wars between gangs that don't exist are automatically deleted.

The page that lists all gangs is paginated and grouped alphabetically. No more mile long lists of gangs!

Players are limited to a predetermined number of applications that can be pending at any given time. Therefore they can not apply to more gangs than the "max_application" setting. Players have the ability to see the applications they have submitted and they can cancel them as well.

Gang files are consolidated into fewer files. Files like creategang.php, gangcentral.php, gangwars.php. You only need to keep gangs.php and yourgang.php. gangs.php is the portal to all public gang pages. yourgang.php is the portal to all private (my gang/my gang staff) pages.

Players are asked for confirmation before kicking gang members, leaving the gang, or disbanding the gang.

There are too many more features to list here!

INSTALLATION

First and foremost, this is a drop in replacement for mccodes gangs, and as such, you simply copy the files into your game. Make sure to preserve the relative paths. There are subfolders for most of the gang scripts.

Secondly, the gangs.php and yourgang.php has an mccodes lite header code in it. You need to replace with your own header code. This is pretty straighforward, and pretty much means simply adding this:

 

You're unable to view this code.

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

 

SUPPORT

This mod is fully supported. Any bugs/errors will be addressed by an update/patch if needed. Errors arising from problems caused by the installation, or customizations resulting in incompatibility with the mod are not covered. The mod is distributed as is. You can pretty much do what you want with it. The only caveat is that any derived works must be distributed with a copy of software.

Any plugins that are files that were not part of the "official" gang replacement mod can be distributed without any caveat. It's only when you edit one of the files that is included in the official mod, or you edit a file which is a descendant of a file that is included in the official mod that you need to distribute the software with your new file.

FEEDBACK

If you download this mod, please post some feedback here whether your feedback is positive or critical. I would love to hear your thoughts on this mod.

TRY BEFORE YOU INSTALL

You can see the mod in action by going here:

PHP Horizons Mccode Mods

Enjoy!

 

VERSION HISTORY

1.0.0 Initial Release

1.0.1 Added a new css style

------- Fixed two php 4 compatibility issues

------- Added a call to $h->endpage() in gangs.php and yourgang.php

------- Added an instruction to the README to clarify the installation process.

1.0.2

------- Fixed one php 4 compatibility issue

1.0.3 NOT YET RELEASED

------- Will hopefully fix any remaining php 4 compatibility issues.

------- This update will be available very soon.

Posted

Downloaded it to check it out, and had a few minor issues with the display of it.

First thing I noticed is the endpage() wasn't called once the gangs system was loaded. Caused my layout to a bit wacko but simple fix for that.

Also had an issue with the table headers maxing out the screen width.

Floydian had a quick fix via IRC

Added this to the gang_get_css_styles function for the style in /gangs/content.php

You're unable to view this code.

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

 

Very nice replacement for the standard gangs systems.

Awesome work Floydian

Posted

Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$' in /home/*******/public_html/gangs/plugins/public/gang_list.php on line 152

 

i get this error when i go to gangs.php

 

Fatal error: Call to undefined function: array_diff_key() in /home/*******/public_html/gangs/plugins/private/gang_staff.php on line 440

 

This in war management from staff menu

Posted
Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$' in /home/*******/public_html/gangs/plugins/public/gang_list.php on line 152

 

i get this error when i go to gangs.php

 

Fatal error: Call to undefined function: array_diff_key() in /home/*******/public_html/gangs/plugins/private/gang_staff.php on line 440

 

This in war management from staff menu

I've tested this on MCCodes and it runs fine, Replace the files again, make sure you have a gang ect

 

@CJ; You can change the colours through the /gangs/ folder

Posted

Thanks for reporting the errors mixerman212. That was very helpful.

I didn't realize array_diff_key() is only available in php 5.1 or greater.

Both of those errors are php 4 compatibility issues. I'll look into a workaround for this. The array diff key one will take some time, but the first one can be fixed by finding this code in the public/gang_list.php file:

You're unable to view this code.

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

 

Replace the code above with the code below:

You're unable to view this code.

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

 

This edit is only necessary for folks running php 4. If you're running php 5, this edit is not needed.

I'll post a fix for the other one, and include these in a 1.1 version very soon.

Posted

Alrighty, to fix the array_diff_key error, find this code at the very top of yourgang.php:

 

You're unable to view this code.

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

 

Replace that with this code:

 

You're unable to view this code.

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

 

This fix is only needed for folks using php < 5.1

So if you're using php 5.0.x or php 4.x.x, you need this fix.

This will also be included in the 1.1 release.

Cheers

Posted

The gangs.php seems to be fine now but still with the war section when i click the war link i get

Fatal error: Call to undefined function: array_fill_keys() in /home/******/public_html/gangs/plugins/private/gang_mygang.php on line 206

I applied the same fix as the other file and the error jumped to line 219

Posted

Fatal error: Call to undefined function: array_combine() in /home/******/public_html/gangs/plugins/private/gang_mygang.php on line 18

 

lol i guess php4 is somewhat different maybe i should upgrade my version :D

Posted

Excellent job Floydian

And I totally agree with Zero. Gang right now for V2 Are getting popular around most game and to see a superb mod on there game like this would be awesome. 8)

Keep the good work up. :thumbsup:

Posted
Fatal error: Call to undefined function: array_combine() in /home/******/public_html/gangs/plugins/private/gang_mygang.php on line 18

 

lol i guess php4 is somewhat different maybe i should upgrade my version :D

Add this after the other functions you added:

You're unable to view this code.

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

Posted

@CrimGame.com: flattery will get you nowhere :P

Thanks for the compliments.

@Rasheed Saeed: Again, thanks for the compliments.

@reek13: What character encoding is that page using? I need to know the character encoding that the browser uses. If you know how to change that, set it to UTF-8

@Enuf: Thanks for the suggestion. This is a replacement for the ***stock*** gangs. Therefore, it cannot have features the stock gangs do not have. However, there is a plugin system built into this mod and you are more than welcome to make a gang image staff menu plugin for this. Once they plugin is made, people that use your plugin would only need to edit their gang list to show these images, and add a field to the db.

I'll definitely check out your work, if you rise to the task of making the plugin.

Cheers

Posted

Flattery got me free hosting for 5 years with a unlimited package so i believe it gets me everywhere mate :P

Now get to work for me for free :P look into my eyes not around my eyes but into my eyes, you gone, when i click my fingers you'll imagine i give you 2 grand and do that much work for me. *clicks fingers*.

But seriously i've always admired your work, keep it up mate.

Posted

I have to say, Floy's a programmer who I could follow around and watch code, His code is organised, Nice, Neat & secure

 

It's not often I'll say this, but You have too be one the best I've seen around, Even you're engine is coded great

  • 2 weeks later...
Posted

For some reason when a gang owner accepts an application it is not setting the gang field in the user table for the player that submitted the application.

Here is the function I have, which is unedited from original:

You're unable to view this code.

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

 

any ideas?

Never Mind, I just found the error. Surprised this hasn't been mentioned.

You're unable to view this code.

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

 

should be "update" instead of udpate... lol

also didn't see anywhere that $q_set is ran through a query to the DB..

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