Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
Can you tell me which parts to add for the auto log in to the forum when they log into the site?
|
#2
|
||||
|
||||
Well copy/paste the functions_forums to your functions directory, and look into the script files login.php and register.php.
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#3
|
||||
|
||||
omg. Now I'm back to
Could not connect to database, the following error has occurred: SQLSTATE[HY000] [2005] Unknown MySQL server host 'DBHOST' (1) |
#4
|
||||
|
||||
I'm getting this now when I try to login
Fatal error: Call to undefined method PDO::select() in /home/taleofdr/public_html/login.php on line 63 |
#5
|
||||
|
||||
Oh this is because you are missing the database class. Copy/paste the class_database.php and functions.php files to your site and it should work. Note you do not have to use select() or other database methods introduced in Mys v1.3.1, the old $adopts->query() and $stmt->fetchObject() still works.
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#6
|
||||
|
||||
Could not connect to database, the following error has occurred:
SQLSTATE[HY000] [2005] Unknown MySQL server host 'DBHOST' (1) Did you make major changes or something? It's hard for me to upgrade b.c I have so many customizations. Now I'm all screwed up. |
#7
|
||||
|
||||
Yeah I did, the config file now uses PHP constants instead of variables. The new database class is being used everywhere. I can help you get rid of the constants though, and then it should be backward-compatible with Mys v1.3.0.
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#8
|
||||
|
||||
Ok just tell me what to do...
|
#9
|
||||
|
||||
Do you have the old functions file? If so, just replace this line below:
PHP Code:
PHP Code:
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#10
|
||||
|
||||
No, you told me to replace it with the new one.
|
|
|
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.0[Security Release] | Hall of Famer | Mysidia Adoptables Official Announcement | 180 | 04-01-2012 10:16 PM |
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 11:48 AM |
Mysidia Adoptables v1.1.3[Security Release] | Hall of Famer | Mysidia Adoptables Official Announcement | 27 | 01-26-2011 02:59 PM |
What's New? |
What's Hot? |
What's Popular? |