Simple Machines Community Forum

Customizing SMF => Bridges and Integrations => Topic started by: DonGiovanni on September 03, 2009, 11:16:03 AM

Title: Bridge - SMF & AVArcade
Post by: DonGiovanni on September 03, 2009, 11:16:03 AM
SMF integration with game script:

You can find whole instruction with code in the zip file.

Bridge Installation
1. Install AV Arcade script (http://www.avscripts.net/avarcade/)
2. Download SMF (Simple Machines Forum) - http://download.simplemachines.org/

Functionality
1. You don't need to register on both places (forum and game script). When you register on one place, script will register you on both places. So you will need to login and logout at only one place.
2. When you delete a member from the forum it will be deleted from the game script too (be careful).
3. Changing profile in the forum will change the game script profile.
4. Some basic functions

You can see how it works here :
Site: http://www.ineedtoplay.com
Forum : http://www.ineedtoplay.com/forum

Download here(SMF 1.1.10) : http://www.ineedtoplay.com/bridgesmf.zip
Download here(SMF 2.0 RC1.2) : http://www.ineedtoplay.com/bridgesmf2.0.zip

Download here(SMF 2.0.2 and AvArcade v5.4.4) : http://www.ineedtoplay.com/bridge_AvArcade_SMF-v3.1.zip (http://www.ineedtoplay.com/bridge_AvArcade_SMF-v3.1.zip)

----------------------------------------------------------------------------------------------------------------
Update 5.1.2012 : (Version 3 for AvArcade v5 and SMF 2.0.1)
-----------------------------------------------------------------------------------------------------------------
Update 14.9.2009 : (Download again and update your script)

Update 5.9.2009 :
Title: Re: Bridge - SMF & AVArcade
Post by: Orstio on September 03, 2009, 06:20:57 PM
Good job! :)
Title: Re: Bridge - SMF & AVArcade
Post by: JBlaze on September 03, 2009, 06:28:06 PM
Very nice indeed!

I'll definately be testing this out later on this week.
Title: Re: Bridge - SMF & AVArcade
Post by: nend on September 04, 2009, 12:10:07 PM
Server down? None of the links work, looks like a good mod though. An alternative to SMF arcade. What type of game builds does this arcade support?
Title: Re: Bridge - SMF & AVArcade
Post by: DonGiovanni on September 04, 2009, 01:01:12 PM
Quote from: nend on September 04, 2009, 12:10:07 PM
Server down? None of the links work, looks like a good mod though. An alternative to SMF arcade. What type of game builds does this arcade support?

Hosting provider working on server. It will be fixed soon. Flash games :)

EDIT:Fixed :)
Title: Re: Bridge - SMF & AVArcade
Post by: Dzonny on September 06, 2009, 07:03:06 AM
Good work DonGiovanni, i like it.. :D
Title: Re: Bridge - SMF & AVArcade
Post by: shed on October 08, 2009, 04:06:54 PM
is there any way of doing this in reverse i.e smf in root and folder titled 'arcade' instead? if i put all of the forum files in a folder, the forum doesnt work :(
Title: Re: Bridge - SMF & AVArcade
Post by: littenburg on December 16, 2009, 02:42:01 AM
i have just installed avarcade, is there a way you can explain how to edit this so i can run:
the forum as the home page, with a different database as av arcade which is in a sub folder called flash.

thankyou so much for creating this!
Title: Re: Bridge - SMF & AVArcade
Post by: Bob123Bob on February 02, 2010, 03:51:59 PM
Hi

Can you get this to work with SMF RC2.0 please?  :)

Thanks
Title: Re: Bridge - SMF & AVArcade
Post by: Johnl17 on September 10, 2011, 11:54:33 AM
Does this work with the latest version of smf?
Title: Re: Bridge - SMF & AVArcade
Post by: Kindred on September 10, 2011, 11:36:53 PM
almost certainly not...
Title: Re: Bridge - SMF & AVArcade
Post by: DonGiovanni on October 08, 2011, 10:01:10 AM
Here is new update for AvArcade v5 and SMF 2.0.1

(Also you can find it in first post)
Download here(SMF 2.0.1 and AvArcade v5) : http://www.ineedtoplay.com/bridge_AvArcade_SMF-v3.zip (http://www.ineedtoplay.com/bridge_AvArcade_SMF-v3.zip)
Title: Re: Bridge - SMF & AVArcade
Post by: JohnWayne999 on October 24, 2011, 09:21:31 PM
Do any of these games allow multiplayers? For example 3 members from same forum coming together to play same card game against each other and with 4th player being computer, or something like that.
Title: Re: Bridge - SMF & AVArcade
Post by: smartblogz on November 02, 2011, 05:04:43 AM
Lemme try this out. Looks nice.
Title: Re: Bridge - SMF & AVArcade
Post by: Mr. Pirate on December 24, 2011, 09:01:27 PM
Everything works great except one small error. When people register using the forum, then urls have to be recalculated in Avarcade for their profile to be visible. I can't setup a cron for it either because it doesn't recognize it as admin. When people register using Avarcade everything seems to work fine. How can I fix this?

Thanks
Title: Re: Bridge - SMF & AVArcade
Post by: DonGiovanni on January 07, 2012, 09:29:28 AM
based on Mr.Pirate report here is a new fixed version for download : http://www.ineedtoplay.com/bridge_AvArcade_SMF-v3.1.zip
Title: Re: Bridge - SMF & AVArcade
Post by: duckydan69 on January 10, 2012, 12:52:34 PM
Is there any way to shift existing forum members into the arcade?  (The forum I'm running is a year old and just got the arcade.  If possible I'd like to link the two so everyone can have their existing username / password / profile work)
Title: Re: Bridge - SMF & AVArcade
Post by: DonGiovanni on January 11, 2012, 06:47:11 PM
Quote from: duckydan69 on January 10, 2012, 12:52:34 PM
Is there any way to shift existing forum members into the arcade?  (The forum I'm running is a year old and just got the arcade.  If possible I'd like to link the two so everyone can have their existing username / password / profile work)

Here it is: http://www.ineedtoplay.com/forum/index.php?topic=45.0
Title: Re: Bridge - SMF & AVArcade
Post by: rocknroller on March 12, 2012, 11:05:48 AM
congratz, good work!
Title: Re: Bridge - SMF & AVArcade
Post by: rocknroller on March 12, 2012, 12:08:59 PM
Not work with AV Arcade 5.5.1, all good til the last part In avArcadeChanges.txt i made smallchanges to make it work.

Open file /includes/misc/edit_profile.php

Find line:
if ($pass != '') {

Add after that line add this code:

/** SMF password change **/
$newpass = $_POST['new_password'];
$testSMFQuery = mysql_query('Select * from smf_members where member_name="'.$_COOKIE['ava_username'].'"') or die(mysql_error());
if(mysql_num_rows($testSMFQuery)==1){
$userArray = mysql_fetch_assoc($testSMFQuery);
$smfPass =  sha1(strtolower($userArray['member_name']) . htmlspecialchars(stripslashes($newpass)));
$passwordSalt = substr(md5(mt_rand()), 0, 4);
$userArray['id_member'];
mysql_query('UPDATE smf_members set passwd="'.$smfPass.'" , password_salt="'.$passwordSalt.'" where id_member='.$userArray['id_member'].'') or die(mysql_error());
$_SESSION = array();
setcookie($_COOKIE[session_name()],"",time()-25920000,'/');
@session_destroy();
}


Open file /login.php
Find line:

header("Location: index.php");

Add after that line add this code:

if ($_COOKIE[session_name()]) setcookie(session_name(), "", time()-60*60*24*100);
session_destroy();

Title: Re: Bridge - SMF & AVArcade
Post by: rocknroller on March 12, 2012, 02:41:03 PM
still seems in AV Arcade 5.5.1 do not work all functions eg

*When you delete member from smf it wil also delete him from avarcade
*migrate_to_smf

:(
Title: Re: Bridge - SMF & AVArcade
Post by: dusst on July 11, 2012, 03:35:44 PM
someone tested with SMF 2.0.2 and AV Arcade 5.6.2
Title: Re: Bridge - SMF & AVArcade
Post by: noxe on September 16, 2012, 01:48:46 AM
rocknroller - is it possible to have the forum in root/main directory and AV Arcade installed in a subdirectory and use this bridge to integrate?
Title: Re: Bridge - SMF & AVArcade
Post by: rocknroller on September 16, 2012, 12:25:50 PM
Quote from: noxe on September 16, 2012, 01:48:46 AM
rocknroller - is it possible to have the forum in root/main directory and AV Arcade installed in a subdirectory and use this bridge to integrate?

I think it's only way, I dunno.
Title: Re: Bridge - SMF & AVArcade
Post by: Marcooo92 on September 24, 2012, 08:43:03 AM
This change can go well with the PRO version of avarcade?