Advertisement:

Author Topic: Flash message problem after upgrading to 3.0.1  (Read 1658 times)

Swede

  • Sr. Member
  • ****
  • Posts: 388
Flash message problem after upgrading to 3.0.1
« on: September 05, 2012, 03:02:40 pm »
The flashmessages on my site does not show up on the top of the side after upgrading to 3.0.1
They show up as plain text down at the left side of the site (see attached pic).

The site has been unused since i upgraded to 3.0 so i dont know if this was a problem in 3.0 also

I´m using Explorer 8

What to do?
« Last Edit: September 05, 2012, 03:05:58 pm by Swede »

mmcsus

  • Hero Member
  • *****
  • Posts: 704
  • Open Source
Re: Flash message problem after upgrading to 3.0.1
« Reply #1 on: September 06, 2012, 12:07:47 am »
Swede,

                        You need to update your style.css.
 Look here--> http://dev.osclass.org/2012/07/10/pagination-in-v3-0/

If you take a look at style.css in 2.4.1 at the beginning of the file and then compare it to 3.0.1 you will see.

Swede

  • Sr. Member
  • ****
  • Posts: 388
Re: Flash message problem after upgrading to 3.0.1
« Reply #2 on: September 06, 2012, 03:07:13 am »
Thx mmcsus!
I cant get my head around this... i see alot of diffs, but i dont understand what to change to get this to work...
Im using the bcute theme.

Thx for your help!

maxo

  • Sr. Member
  • ****
  • Posts: 285
« Last Edit: September 06, 2012, 07:40:54 am by maxo »

Swede

  • Sr. Member
  • ****
  • Posts: 388
Re: Flash message problem after upgrading to 3.0.1
« Reply #4 on: September 12, 2012, 04:46:59 pm »
Thx, Maxo!

What i did was:

1. I placed the code <?php osc_show_flash_message() ; ?> at the very end of header.php

2. I changed the string #FlashMessage to #flashmessage in global.js

3. I then deleted the code <?php osc_show_flash_message() ; ?> from all relevant files such as user-login.php, user-register.php, user-items.php etc... 17 files in total...

4. And at last i changed the style.css from line 43 to 49 from FlashMessage to flashmessage

And now it works!

But i don´t know how to get rid of that X in front of the flashmessage (see attached pic).
Any suggestions are welcome!

maxo

  • Sr. Member
  • ****
  • Posts: 285
Re: Flash message problem after upgrading to 3.0.1
« Reply #5 on: September 14, 2012, 09:39:42 pm »
Hi Swede: I ended up just borrowing the CSS for flash messages from the latest osclass modern theme. What you see below is what I replaced the old CSS on my bcute theme with. As far as the style and placement of the X (close message icon), I think if you experiment changing the CSS values for .flashmessage .ico-close that will fix the problem. I got the X placed on the right side of the message in the corner, and when mouse hovers over it appears that some action will take place, but when click on the X the message does not close. I don't know if it's a CSS thing or a Java thing :( Any help on that would be appreciated too. Thanks, hope this helps.

/* begin flash message */
.flashmessage,
.flashmessage {
    font-size: 22px;
    padding: 10px 0px 10px 0px;
    width: 100%;
    top: 0px;
    z-index: 999;
    text-align: center;
}
.flashmessage-warning {
    background-color: #FF0000;
    border: solid 0px #FBEED5;
    color: #FFF;
}
.flashmessage-error {
    background-color: #FF0000;
    border: solid 0px #EED3D7;
    color: #FFF;
}
.flashmessage-info,
.flashmessage-ok {
    background-color: #FF0000;
    border: solid 0px #BCE8F1;
    color: #FFF;
}
.flashmessage .ico-close {
    position: absolute;
    top: 14px;
    right: 17px;
    float: right;
    font-size: 20px;
    line-height: 18px;
    color: #FFF;
    text-shadow:none;
    text-decoration:none;
    font-weight: bold;
    cursor: pointer;
}
.flashmessage-error .close {
    color: #B94A48;
}
.flashmessage-warning .close {
    color: #000;
}
.flashmessage-success .close,
.flashmessage-information .close {
    color: #3A87AD;
}
/* end flash message */