Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Community Board > Mysidia Adoptables Official Announcement

Closed Thread
 
Thread Tools Display Modes
  #21  
Old 03-18-2012, 07:58 PM
Chibi_Chicken Chibi_Chicken is offline
Niwatori Kami
 
Join Date: Jun 2011
Posts: 63
Gender: Unknown/Other
Credits: 1,913
Chibi_Chicken is on a distinguished road
Default

So I have started with a fresh install of myBB 1.6.6 and Mysidia 1.3.0
I put myBB in root/forum and Mysidia in root/mys130

I made the changes to the config_forum.php

Now when I am on the forums I can still create a new account.
When I jump to the mysidia registration page I can create a new accout. The info is created to both databases.

I can log in to both sites however when I log in to one it doesnt show up in the other.

When logged in to the mysidia portion of the site I can change my email and the effects take place on the adopt db but not the forum db. I can not seem to change my password.
When i go to the forum user CP I can change my password. The new password only works for the forum login but not the mysidia login.


Also on the mysidia site I can not view my profile I get:
( ! ) Notice: Undefined index: page in C:\wamp\www\mys130\profile.php on line 18
Call Stack
# Time Memory Function Location
1 0.0011 456936 {main}( ) ..\profile.php:0

( ! ) Parse error: syntax error, unexpected $end in C:\wamp\www\mys130\inc\tabs.php on line 20
Call Stack
# Time Memory Function Location
1 0.0011 456936 {main}( ) ..\profile.php:0


When I try to jump to the forum from the mysidia top tabs I get
404
Not Found

The requested URL /mys130/forum.php was not found on this server.


My main question is how do I set up the two software so it can reconizie that I have logged in to the forum login and dont need to do it in the mysidia site or vice versa. I am guessing it is the cookies but I am not sure.

Oh and I am useing wamp
Apache Version :
2.2.21
PHP Version :
5.3.8
MySQL Version :
5.5.16
  #22  
Old 03-18-2012, 08:09 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is online now
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: Somerville
Posts: 4,388
Gender: Male
Credits: 126,302
Hall of Famer is on a distinguished road
Default

@ Corsair:
It is weird though... Does this happen to your admin user, or every registered user? Check your /functions/functions.php file and see if the passencr() function is missing or malfunctioning.

@ Silverdragontears:
Well '->' is the most basic operator used to access object properties and methods, while $stmt is just like $result we had before. This script is moving towards the direction we called object-oriented programming. I did it for the security release 'cause I am making a point clear what directions new Addons/Mods for Mys v1.3.x. should follow. But yeah I agree creating addons/mods may be more difficult for beginners nowadays, you need intermediate programming skills to interpret objects and OOP design.

@ Chibi_Chicken:
For now the only thing Mybb forum integration does is to create user in both adoptables and forums database. In future I will make a better bridge between Mys and MyBB, and perhaps adding another tab to user profiles to show users forum activities. I still need to browse more into MyBB's database structure and programming conventions at this point.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
  #23  
Old 03-18-2012, 09:17 PM
AlexC's Avatar
AlexC AlexC is offline
Moderator
 
Join Date: Dec 2009
Location: Canada
Posts: 753
Gender: Unknown/Other
Credits: 23,249
AlexC is an unknown quantity at this point
Default

Apparently I'm having trouble with registering? My account works fine on both forums, it appears - but when I try to make a new account via the adoptable site, I get this message;

Deprecated: Function eregi() is deprecated in /home/gloometh/public_html/register.php on line 81
Failed to create forum account

However, I do have a new user on the adoptable site.
  #24  
Old 03-18-2012, 09:25 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is online now
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: Somerville
Posts: 4,388
Gender: Male
Credits: 126,302
Hall of Famer is on a distinguished road
Default

umm what version of PHP are you using? It seems that function eregi() is used to validate email addresses but for certain version of PHP it aint working. No idea why it happens, but at times...
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
  #25  
Old 03-19-2012, 12:25 AM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,090
Gender: Female
Credits: 26,001
SilverDragonTears is on a distinguished road
Default

How do I get a number for this? Now that I can't use this format :/
Code:
$query = "SELECT * FROM ".$prefix."owned_adoptables WHERE owner='".$loggedinname."' AND currentlevel<='3' AND isfrozen='no'";
$result = mysql_query($query);
$num = mysql_num_rows($result);

if($num >= 5){
$canadopt = "no";
$article_title = "Too many eggs!";
$article_content = "You already have too many eggs to take care of! Come back once you have hatched an egg!";
}
__________________
  #26  
Old 03-19-2012, 12:31 AM
fadillzzz fadillzzz is offline
Dev Staff
 
Join Date: Jan 2010
Posts: 501
Gender: Male
Credits: 19,502
fadillzzz is an unknown quantity at this point
Default

Quote:
Originally Posted by Hall of Famer View Post
umm what version of PHP are you using? It seems that function eregi() is used to validate email addresses but for certain version of PHP it aint working. No idea why it happens, but at times...
HoF, just change eregi() to preg_match(), then it will go away
  #27  
Old 03-19-2012, 01:21 AM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is online now
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: Somerville
Posts: 4,388
Gender: Male
Credits: 126,302
Hall of Famer is on a distinguished road
Default

@ Silverdragontears:
You mean to count number of rows? With the new script you will have to write these:

PHP Code:
$stmt $adopts->query("SELECT * FROM ".$prefix."owned_adoptables WHERE owner='".$loggedinname."' AND currentlevel<='3' AND isfrozen='no'");
$data $stmt->fetchAll();
$num count($data);

if(
$num >= 5){ 
$canadopt "no"
$article_title "Too many eggs!"$article_content "You already have too many eggs to take care of! Come back once you have hatched an egg!"

In future we will implement a database class that comes with a num_rows() method so you can call easily.

@Fadillzzz:
I see, its weird how I never noticed eregi() being used in the script right from the start. Was it deprecated in the new PHP versions? If so, we have to update the script asap.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
  #28  
Old 03-19-2012, 01:38 AM
fadillzzz fadillzzz is offline
Dev Staff
 
Join Date: Jan 2010
Posts: 501
Gender: Male
Credits: 19,502
fadillzzz is an unknown quantity at this point
Default

@HoF:
Yes, it's deprecated since PHP 5.3
I guess Gloometh is using PHP 5.3+
  #29  
Old 03-19-2012, 01:46 AM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is online now
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: Somerville
Posts: 4,388
Gender: Male
Credits: 126,302
Hall of Famer is on a distinguished road
Default

I see, should have tested the script on my new server then. XD It worked flawlessly on the old one using PHP 5.2.17, lol.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
  #30  
Old 03-19-2012, 03:31 AM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,090
Gender: Female
Credits: 26,001
SilverDragonTears is on a distinguished road
Default

Thanks for the code HoF :)
__________________

Last edited by SilverDragonTears; 03-19-2012 at 02:27 PM.
Closed Thread

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
Mysidia Adoptables v1.3.3[Security Release] Hall of Famer Mysidia Adoptables Official Announcement 122 05-18-2013 04:02 PM
Mysidia Adoptables v1.3.1[Security Release] Hall of Famer Mysidia Adoptables Official Announcement 109 08-24-2012 04:50 AM
Mysidia Adoptables v1.2.0[Security Release] Hall of Famer Mysidia Adoptables Official Announcement 21 03-22-2011 04:13 PM
Mysidia Adoptables v1.1.4[Security Release] Hall of Famer Mysidia Adoptables Official Announcement 15 01-28-2011 12:48 PM
Mysidia Adoptables v1.1.3[Security Release] Hall of Famer Mysidia Adoptables Official Announcement 27 01-26-2011 03:59 PM


All times are GMT -5. The time now is 04:02 AM.

Currently Active Users: 214 (1 members and 213 guests)
Threads: 3,943, Posts: 31,409, Members: 15,530
Welcome to our newest members, ancrsbys01.
BER





What's New?

What's Hot?

What's Popular?


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