Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Tutorials and Tips

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 07-02-2011, 06:38 AM
Chibi_Chicken Chibi_Chicken is offline
Niwatori Kami
 
Join Date: Jun 2011
Posts: 63
Gender: Unknown/Other
Credits: 4,941
Chibi_Chicken is on a distinguished road
Default phpbb integration

So I thought I would share some of my chicken scratching with you about getting a forum install with Mysidia.
Back when it was just Rusnak I was able to integrate the forums user logins, it has been a little trickier for me with the
updated scripts but I love me some google'n problem fixing. This is what I have so far.

looking at
http://www.phpbb.com/community/viewt...?f=46&t=719055
as the starting off point and looking in to
http://startrekguide.com/community/v...t=9456&start=0
lead me to this as a possible solution.

first I built a page in the root folder called phpbb.php
Code:
<?php
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './phpbb3/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include("inc/functions.php");
include("inc/bbcode.php");

// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
?>
Then I edited every adoptable page replacing the old includes to
include("phpbb3.php")
From their if I wanted to check if the user is logged on(from any of the adopt pages)
Code:
	if ($user->data['user_id'] == ANONYMOUS)
{
   echo = 'Please login!';
}

else
{
   echo = 'Thanks for logging in, ' . $user->data['username_clean'];
}
If I wanted to run that same code from a function I would need to just set the global variable $user.
That is what I have so far I am unsure if I just want a 'lite' integration where it just checks if the the user is logged in or more like the "phpBB3 Website Integration Framework."
I installed that to the adopt script and got the index page to load up but their would be a lot of editing involved to make it full work with Mysidia.
Reply With Quote
  #2  
Old 07-02-2011, 01:57 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 327,539
Hall of Famer is on a distinguished road
Default

Nice tutorial, Chibi_chicken. I remember Kaeliah had a phpbb bridge on her old site, wonder if the mechanism was the same as yours. I am sure this will help many members here!
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #3  
Old 07-02-2011, 09:40 PM
Chibi_Chicken Chibi_Chicken is offline
Niwatori Kami
 
Join Date: Jun 2011
Posts: 63
Gender: Unknown/Other
Credits: 4,941
Chibi_Chicken is on a distinguished road
Default

I hope it does. I think forums are one of the missing elements of this script. either a plug in or a built in one so people can have a place to show off their pets and the owner can interact with them as a group.
Reply With Quote
  #4  
Old 07-03-2011, 03:51 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 327,539
Hall of Famer is on a distinguished road
Default

Well a sample forum script is planned for Mys v1.3.0, but integration with existing forum softwares is definitely appreciated since many members have forums of their own already and may not wish to use a built-in forum engine. Not mentioning its almost impossible for the built-in forum to function as perfectly as vbulletin.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #5  
Old 07-04-2011, 12:49 AM
AlkseeyaKC's Avatar
AlkseeyaKC AlkseeyaKC is offline
Member
 
Join Date: Jan 2009
Location: Planet Kalzy
Posts: 72
Gender: Female
Credits: 9,249
AlkseeyaKC
Send a message via AIM to AlkseeyaKC
Default

Man I am not sure if I should try to use this tutorial or wait for v1.3.0. Thank you so much for posting this though! =3 I'm considering it.
__________________
Call me KC!
http://alkseeyakc.deviantart.com/
Reply With Quote
  #6  
Old 07-04-2011, 11:17 AM
Chibi_Chicken Chibi_Chicken is offline
Niwatori Kami
 
Join Date: Jun 2011
Posts: 63
Gender: Unknown/Other
Credits: 4,941
Chibi_Chicken is on a distinguished road
Default

Depends on how much work you want to do. :p
altering these would get your uses to only need one log in for both sites.
logincheck()
getsidebar()
forgotpass.php
login.php
logout.php
account.php
Still would need to decide how to alter the registering of new users.
Reply With Quote
  #7  
Old 07-04-2011, 04:07 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 327,539
Hall of Famer is on a distinguished road
Default

Well perhaps it will be compatible with Mys v1.3.0, you have to try it to figure out. XD
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #8  
Old 07-04-2011, 06:05 PM
Chibi_Chicken Chibi_Chicken is offline
Niwatori Kami
 
Join Date: Jun 2011
Posts: 63
Gender: Unknown/Other
Credits: 4,941
Chibi_Chicken is on a distinguished road
Default

So with the next update the login functions will be different then?
I would assume so since their is going to be more security.
Reply With Quote
  #9  
Old 10-24-2011, 08:01 PM
Lopels Lopels is offline
Member
 
Join Date: Oct 2011
Posts: 11
Gender: Female
Credits: 944
Lopels is on a distinguished road
Default

does this make it where ur members don't have to re-register on the forums?
Reply With Quote
Reply

Tags
forum, tutorial

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
include page phpBB problem with Mysidia site teogk89 Questions and Supports 1 10-09-2015 04:41 AM
Forum Integration coolgem923 Questions and Supports 2 10-07-2014 02:23 PM
How easy would it be to incorporate phpbb with mysida? LucasA33 Questions and Supports 7 04-03-2014 05:04 PM
Installing phpBB Forums, 000webhost? TheBigBlack Questions and Supports 6 09-19-2012 09:02 AM
phpbb integration Flexxall Questions and Supports 2 08-09-2009 06:03 PM


All times are GMT -5. The time now is 04:15 PM.

Currently Active Users: 460 (0 members and 460 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636