[ABD] Friend Codes Mod 0.9.1

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
t27duck
Registered User
Posts: 131
Joined: Sun May 20, 2007 11:43 pm

[ABD] Friend Codes Mod 0.9.1

Post by t27duck »

MOD Name: Friend Code Mod
MOD Version: 0.9.1
Author: t27duck
MOD Description: Adds a Nintendo Friend Code area to your forum allowing users to post their friend codes
phpBB Ver: RC4+

supported styles:
proSilver
subsilver2 (works best in subsilver2)

Languages: English

License: GNU General Public License v2


Installation Level: Easy
Installation Time: ~5 Minutes
Format: MODX

Download: Here

Live Demo: Here

Login: (username/password)
Prosilver - test1/test1
subsilver2 - test2/test2

Features:
- User must be registered and logged in to view friend codes
- Users can add/remove their own friend codes via the UCP*
- Admins can delete a code at any time
- Admins can add/remove systems (DS, Wii, etc.) and games (Mario Kart, etc) via the ACP*

* = Once the Mod is installed, you must add and enable the Friend Code ACP and UCP Modules. Module Management can be found under System -> Module Management

Change Log:
0.9.0
- Initial Release

0.9.1
- Fixed Bug Where Adding a Game with an apostrophe caused a SQL error

Information for updating from 0.9.0 is included in the package.
Last edited by t27duck on Sat Oct 13, 2007 10:34 pm, edited 3 times in total.
Always have a back up plan for your back up plan.
SpongeFreak52
Registered User
Posts: 83
Joined: Tue May 23, 2006 12:54 am
Contact:

Re: [RC] Friend Codes Mod 0.9.0

Post by SpongeFreak52 »

Dude, this is GREAT! I'm just about to open my new gaming site, and this is EXACTLY what the site needs! Great job! :)

One thing though, was the file "adminfc.php" supposed to be included? I can't delete any games without it.
t27duck
Registered User
Posts: 131
Joined: Sun May 20, 2007 11:43 pm

Re: [RC] Friend Codes Mod 0.9.0

Post by t27duck »

Aw crud. Knew I'd miss one of them.

Open adm/style/acp_fc.html

Find

Code: Select all

<form id="delgame" method="post" action="adminfc.php?sid={SESSION_ID}">
Replace With

Code: Select all

<form id="delgame" method="post" action="">
Download will be updated momentarily. Sorry. This was left over from when I first put it together.


EDIT: Download has been updated.
Always have a back up plan for your back up plan.
SpongeFreak52
Registered User
Posts: 83
Joined: Tue May 23, 2006 12:54 am
Contact:

Re: [RC] Friend Codes Mod 0.9.0

Post by SpongeFreak52 »

Another thing I noticed. I get an SQL error, but only when I type this in:

Tony Hawk's American Sk8land

and the console is Nintendo DS.
Any reason why that would happen? Sorry if I'm sounding picky, I just want to help make this MOD better. ;)
t27duck
Registered User
Posts: 131
Joined: Sun May 20, 2007 11:43 pm

Re: [RC] Friend Codes Mod 0.9.0

Post by t27duck »

The issue has been found and fixed. The fix will be included in 0.9.1 (which will just be bugfixes as I really can't think of any more features).

To fix it now, in indluces/acp/acp_fc.php...

FIND

Code: Select all

$sql = "INSERT INTO ".FC_GAMES." (systemid, gamename) VALUES ('".$systemid."', '".$gamename."')";
Replace With:

Code: Select all

$sql_ary = array(
				'systemid'	=> $systemid,
				'gamename'	=> $gamename
				);
				
			$sql = "INSERT INTO ".FC_GAMES." ".$db->sql_build_array('INSERT', $sql_ary);
I meant to change all of my inserts like that but I guess I forgot. In 0.9.1, all database queries will be updated if need be.
Always have a back up plan for your back up plan.
SpongeFreak52
Registered User
Posts: 83
Joined: Tue May 23, 2006 12:54 am
Contact:

Re: [RC] Friend Codes Mod 0.9.0

Post by SpongeFreak52 »

Alrighty, thanks!
User avatar
heatherw_01
Registered User
Posts: 164
Joined: Sun Oct 06, 2002 1:29 am
Location: UK
Contact:

Re: [RC] Friend Codes Mod 0.9.0

Post by heatherw_01 »

Nevermind, figured it out.

Great mod!
User avatar
Myspoonistoobig
Registered User
Posts: 30
Joined: Fri Mar 25, 2005 8:05 am

Re: [RC] Friend Codes Mod 0.9.0

Post by Myspoonistoobig »

You might want to fix the permissions on your board: Anonymous can download the files you post there, but not the logged in demo user?

Not like we can't just download it here, though
t27duck
Registered User
Posts: 131
Joined: Sun May 20, 2007 11:43 pm

Re: [RC] Friend Codes Mod 0.9.1

Post by t27duck »

Version 0.9.1 is out. It mainly just includes the two fixes I mentioned in my above posts.

Information for updating from 0.9.0 is included in the package.

Also, permissions for test1 and test2 on my server have been fixed. You can now download while logged on as them.
Always have a back up plan for your back up plan.
User avatar
heatherw_01
Registered User
Posts: 164
Joined: Sun Oct 06, 2002 1:29 am
Location: UK
Contact:

Re: [RC] Friend Codes Mod 0.9.1

Post by heatherw_01 »

Can I use this with a different template other than prosilver or subsilver?
t27duck
Registered User
Posts: 131
Joined: Sun May 20, 2007 11:43 pm

Re: [RC] Friend Codes Mod 0.9.1

Post by t27duck »

heatherw_01 wrote:Can I use this with a different template other than prosilver or subsilver?
As long as the template is based off of prosilver or subsilver, the Mod will work.

If not, you'll have to create the template files for this Mod to fit your style.
Always have a back up plan for your back up plan.
User avatar
heatherw_01
Registered User
Posts: 164
Joined: Sun Oct 06, 2002 1:29 am
Location: UK
Contact:

Re: [RC] Friend Codes Mod 0.9.1

Post by heatherw_01 »

Brilliant, thanks so much

Great mod
Exorcizer
Registered User
Posts: 12
Joined: Tue Oct 03, 2006 2:41 am

Re: [RC] Friend Codes Mod 0.9.1

Post by Exorcizer »

Well, I encountered an error while installing it, and it was a typo. :P

On line 84, of ucp/ucp_fc.php

Code: Select all

				'gameid'	=>	$gamdid,
should be

Code: Select all

				'gameid'	=>	$gameid,
t27duck
Registered User
Posts: 131
Joined: Sun May 20, 2007 11:43 pm

Re: [RC] Friend Codes Mod 0.9.1

Post by t27duck »

Exorcizer wrote:Well, I encountered an error while installing it, and it was a typo. :P

On line 84, of ucp/ucp_fc.php

Code: Select all

				'gameid'	=>	$gamdid,
should be

Code: Select all

				'gameid'	=>	$gameid,

Thanks, I'll fix it for the next version (if I remember to do so hopefully ;) )

Ok, just got back from my convention so I can start to work on the Mod again off and on (classes start this Wednesday for me).
Always have a back up plan for your back up plan.
ndss
Registered User
Posts: 28
Joined: Wed Jul 25, 2007 12:13 pm

Re: [RC] Friend Codes Mod 0.9.1

Post by ndss »

Thanks for this mod, I'm using it from now on! :D
Locked

Return to “[3.0.x] Abandoned MODs”