Advertisement:

Author Topic: [FIX] How to fix "function_show_flash_message"  (Read 6567 times)

volunteer

  • Full Member
  • ***
  • Posts: 241
Re: [FIX] How to fix "function_show_flash_message"
« Reply #15 on: March 18, 2014, 04:45:53 am »
and......... YOU CRACKED IT!  8)  WORKS PERFECTLY

my other problem remains but will open another thread for that, any experience migrating osclass to a new server?  ::)

ikrougovoi

  • Newbie
  • *
  • Posts: 15
Re: [FIX] How to fix "function_show_flash_message"
« Reply #16 on: March 18, 2014, 07:05:35 am »
I didn't fully crack it.
I don't like how it appends all of the error messages into one <div>...
It's not easy for a user to understand that the message is actually 3 errors, or 2...

So if I don't fill in a title, and a don't fill in a description the error likes like so:

Title too short (en_US). Description too short (en_US). Email invalid.

This is three error messages, all concatenated into one... It's not easy to understand for a user...

Final note: to make your mouse a link pointer when you hover of the "X" to close the message, add this to your custom.css:
Code: [Select]
.close {
cursor:pointer;
}
(It looks better than the text selector pointer)

As for migrating.. The ROOT directory has a "config.php"..
Ensure you have everything in there set up properly..

Do you also need to migrate mysql databases?
« Last Edit: March 18, 2014, 07:15:50 am by ikrougovoi »

volunteer

  • Full Member
  • ***
  • Posts: 241
Re: [FIX] How to fix "function_show_flash_message"
« Reply #17 on: March 18, 2014, 01:32:09 pm »
we went from no messages to 3 messages in 1 :) not bad..

I did edit the config.php and the .htaccess  also the oc-admin/login.php  with the new info of the new server and new domain, everything works except for admin login.. didn't find anything like that in the forums

design

  • Hero Member
  • *****
  • Posts: 2619
  • Osclass 3.5 MAC/PC w/ Modern Browsers
Re: [FIX] How to fix "function_show_flash_message"
« Reply #18 on: March 18, 2014, 05:54:57 pm »
you can change it in your database temporarily.

volunteer

  • Full Member
  • ***
  • Posts: 241
Re: [FIX] How to fix "function_show_flash_message"
« Reply #19 on: March 18, 2014, 06:07:33 pm »
change what in the database?

design

  • Hero Member
  • *****
  • Posts: 2619
  • Osclass 3.5 MAC/PC w/ Modern Browsers
Re: [FIX] How to fix "function_show_flash_message"
« Reply #20 on: March 18, 2014, 06:39:59 pm »
your admin name, so you can log in

volunteer

  • Full Member
  • ***
  • Posts: 241
Re: [FIX] How to fix "function_show_flash_message"
« Reply #21 on: March 18, 2014, 08:22:57 pm »
in t_admin table the admin name is correct.. and the encrypted pass is the same as the sql in my old server

what kind of encryption has the password in the sql to use the same and try to create a new one?

design

  • Hero Member
  • *****
  • Posts: 2619
  • Osclass 3.5 MAC/PC w/ Modern Browsers
Re: [FIX] How to fix "function_show_flash_message"
« Reply #22 on: March 18, 2014, 08:38:49 pm »
sha1

try this in sql, make sure it's your id # i

UPDATE osc_t_admin SET `s_password` = sha1('your password') WHERE `pk_i_id` = 1;

http://forums.osclass.org/general-help/admin-password-retrieval/
« Last Edit: March 18, 2014, 08:40:25 pm by design »

volunteer

  • Full Member
  • ***
  • Posts: 241
Re: [FIX] How to fix "function_show_flash_message"
« Reply #23 on: March 18, 2014, 11:14:33 pm »
tried that SQL order, hash pass changed, `pk_i_id` was 1 already so didn't change
still can't login  :-\

UPDATE osc_t_admin SET `s_password` = sha1('your password') WHERE `pk_i_id` = 1;