Osclass forums

Development => Development => Topic started by: jaspreet on January 25, 2013, 08:42:56 pm

Title: flash massage
Post by: jaspreet on January 25, 2013, 08:42:56 pm
how to add flash massage when people resignation and show to bar check your email and active your account please tel me 
Title: Re: flash massage
Post by: jaspreet on January 26, 2013, 10:48:31 am
 :-\ please reply me i want need your help
Title: Re: flash massage
Post by: shree on January 26, 2013, 04:56:18 pm
It is already showing in modern theme, which theme you use ?
Title: Re: flash massage
Post by: jaspreet on January 27, 2013, 06:15:06 pm
how to show flash message like this top bar
Title: Re: flash massage
Post by: jaspreet on January 27, 2013, 08:30:07 pm
sir it's image i want to create yellow top bar pop on how to create it please tel me 
Title: Re: flash massage
Post by: jaspreet on January 27, 2013, 08:37:47 pm
like this image  i want flash message pop on on top bar how to create like this image pop top ?
Title: Re: flash massage
Post by: jaspreet on January 27, 2013, 08:57:12 pm
i don't understand can you write here what you can say
Title: Re: flash massage
Post by: jaspreet on January 27, 2013, 09:15:44 pm
you can check this site click post your ad you see pop on top i want to like this pop on

Quote
http://www.quickpostindia.com/
Title: Re: flash massage
Post by: mmcsus on January 27, 2013, 09:21:19 pm
Like Shree said before, that is built-in to Osclass.

Goto admin--> Listing-->Settings   and check the box "Only logged in users can post listings"
Title: Re: flash massage
Post by: jaspreet on January 27, 2013, 09:25:24 pm
sir you can't get my point sir i want pop on top bar flash message like i'm share site
Title: Re: flash massage
Post by: jaspreet on January 28, 2013, 06:30:46 am
please reply me anyone i want need your help  :(
Title: Re: flash massage
Post by: jaspreet on January 29, 2013, 09:01:36 pm
please help me
Title: Re: flash massage
Post by: trains58554 on January 29, 2013, 09:26:08 pm
Hi jaspreet,

What exactly are you looking for? It looks to me as shree and mmcsus have answered your question. Maybe you could explain more that way it would be easier for us to understand what you are looking for.

Jay
Title: Re: flash massage
Post by: jaspreet on January 29, 2013, 09:35:47 pm
sir i want flash message show on top bar like this site http://www.bechlo.com/ and close automatically you check this
Title: Re: flash massage
Post by: trains58554 on January 29, 2013, 09:42:26 pm
Which version of Osclass are you using? Also which theme are you using?

Jay
Title: Re: flash massage
Post by: jaspreet on January 29, 2013, 09:45:38 pm
i'm using latest version 3.0.2 and theme modern
Title: Re: flash massage
Post by: trains58554 on January 29, 2013, 09:47:48 pm
Then the flash messages should be working just fine can you post your site url?

Jay
Title: Re: flash massage
Post by: jaspreet on January 29, 2013, 09:53:27 pm
this my site url

http://daddyclassifieds.in/
Title: Re: flash massage
Post by: trains58554 on January 29, 2013, 10:04:50 pm
It seems as your site is missing the css for the flash messages.

Your style.css file needs this code.


/* Flash message */
.flashmessage,
.flashmessage {
    font-size: 14px;
    padding: 15px 0;
    width: 100%;
    top: 10px;
    z-index: 999;
    text-align: center;
}
.flashmessage-warning {
    background-color: #FCF8E3;
    border: solid 2px #FBEED5;
    color: #C09853;
}
.flashmessage-error {
    background-color: red;
    border: none;
    color: #fff;
}
.flashmessage-info,
.flashmessage-ok {
    background-color: #D9EDF7;
    border: solid 2px #BCE8F1;
    color: #3A87AD;
}
.flashmessage .ico-close {
    position: absolute;
    top: 14px;
    right: 17px;
    float: right;
    font-size: 18px;
    line-height: 18px;
    color: white;
    text-shadow:none;
    text-decoration:none;
    font-weight: bold;
    cursor: pointer;
}
.flashmessage-error .close {
    color: #B94A48;
}
.flashmessage-warning .close {
    color: #C09853;
}
.flashmessage-success .close,
.flashmessage-information .close {
    color: #3A87AD;
}
.forcemessages-inline{
    clear:both;
    width: 960px;
    margin-bottom:15px;
}
.forcemessages-inline .flashmessage{
    position: relative;
}


Jay
Title: Re: flash massage
Post by: jaspreet on January 29, 2013, 10:12:31 pm
now flash message show in center i want show top header  and not automatically  close
Title: Re: flash massage
Post by: jaspreet on January 30, 2013, 07:08:08 am
please help me :(
Title: Re: flash massage
Post by: trains58554 on January 30, 2013, 07:14:46 am
To make the flash messages show up at the top you have to edit the header.php file and move this code

<div class="forcemessages-inline">
<?php osc_show_flash_message(); ?>
</div>


from the end of the page to just below this line

<div class="container">


The flash messages no longer auto close in 3.0.2 which is nice. Say for example the user clicks the publish button but they are not logged in but switches tabs before the page switches with the auto hide they would not know why they where directed to the login page instead.

Jay
Title: Re: flash massage
Post by: jaspreet on January 30, 2013, 08:55:57 am
this working fine but my site layout not fine check it please
Title: Re: flash massage
Post by: jaspreet on January 30, 2013, 01:15:41 pm
sir reply me  :(
Title: Re: flash massage
Post by: marcelo63 on January 30, 2013, 05:14:45 pm
by default is "built in" on OSclass
the variable is <?php osc_show_flash_message() ; ?> that should be on the header of your theme an controlled by the css file also from your theme like stylesheet.css or style.css
below is a sample:

/* Flash message */
.flashmessage,
.flashmessage {
    font-size: 24px;
    font:red
    font-weight:600;
    padding: 25px 0;
    width: 100%;
    top: 10px;
    z-index: 999;
    text-align: center;
}
.flashmessage-warning {
    background-color: #FCF8E3;

}
.flashmessage-error {
    background-color: #F2DEDE;

}
.flashmessage-info,
.flashmessage-ok {
    background-color: #D9EDF7;

}
.flashmessage .ico-close {
    position: absolute;
    top: 14px;
    right: 17px;
    float: right;
    font-size: 18px;
    line-height: 18px;
    color: white;
    text-shadow:none;
    text-decoration:none;
    font-weight: bold;
    cursor: pointer;
}
.flashmessage-error .close {
    color: #B94A48;
}
.flashmessage-warning .close {
    color: #C09853;
}
.flashmessage-success .close,
.flashmessage-information .close {
    color: #3A87AD;
}