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)
- Bug fix - profile link bug
- Working version for AvArcade v5.4.3 and SMF 2.0.1 (tested)
-----------------------------------------------------------------------------------------------------------------
Update 14.9.2009 : (Download again and update your script)
- Bug fix - problems with registration date after forum registration fixed.
- Bug fix - after registration in SMF update avarcade cookies so user can normally browse homepage
Update 5.9.2009 :
- Bug fix - problems using different database for smf and for avarcade fixed
- Bug fix - changing password in SMF didn't change password in avarcade for SMF 2.0 (now fixed)
- Bug fix - after changing password in SMF update avarcade cookies so user can normally browse homepage
Good job! :)
Very nice indeed!
I'll definately be testing this out later on this week.
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?
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 :)
Good work DonGiovanni, i like it.. :D
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 :(
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!
Hi
Can you get this to work with SMF RC2.0 please? :)
Thanks
Does this work with the latest version of smf?
almost certainly not...
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)
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.
Lemme try this out. Looks nice.
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
based on Mr.Pirate report here is a new fixed version for download : http://www.ineedtoplay.com/bridge_AvArcade_SMF-v3.1.zip
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)
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
congratz, good work!
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();
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
:(
someone tested with SMF 2.0.2 and AV Arcade 5.6.2
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?
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.
This change can go well with the PRO version of avarcade?