News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Bridge - SMF & AVArcade

Started by DonGiovanni, September 03, 2009, 11:16:03 AM

Previous topic - Next topic

DonGiovanni

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

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


JBlaze

Very nice indeed!

I'll definately be testing this out later on this week.
Jason Clemons
Former Team Member 2009 - 2012

nend

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?

DonGiovanni

#4
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 :)

Dzonny

Good work DonGiovanni, i like it.. :D

shed

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 :(

littenburg

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!

Bob123Bob

Hi

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

Thanks

Johnl17

Does this work with the latest version of smf?
I wrote my own OS just by slamming my head on my keyboard. Unfortunately it turned out to be Windows ME


Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

DonGiovanni

#11
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

JohnWayne999

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.

smartblogz

Lemme try this out. Looks nice.

Mr. Pirate

#14
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

DonGiovanni

based on Mr.Pirate report here is a new fixed version for download : http://www.ineedtoplay.com/bridge_AvArcade_SMF-v3.1.zip

duckydan69

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)

DonGiovanni

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

rocknroller


rocknroller

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();


Advertisement: