News Flash:
New Version of ShopClass theme 1.4.0 is Released on 13 JUNE 2018, Please upgrade your installation.

Change Width of Flash Message Warning

Use this forum if you need help installing and/or setting up your instance of Tuffclassified theme. This is not the place for customization requests.
bgcnustart
Beginner
Posts: 15
Joined: Sun Jun 07, 2015 6:17 am

Change Width of Flash Message Warning

Post by bgcnustart » Thu Jun 25, 2015 6:04 am

Where can we change the width of the Flash Message Warning so it does not cover the entire top menu or how to make it popup below the top menu?

Thanks.

User avatar
tuffadmin
Site Admin
Posts: 1236
Joined: Tue Jan 29, 2013 7:31 pm
Has thanked: 33 times
Been thanked: 111 times

Re: Change Width of Flash Message Warning

Post by tuffadmin » Mon Jun 29, 2015 6:51 pm

You can edit flashmessage related css code in custom.css file and place flashmessage tag from footer.php file to header.php file.
No support for unnecessary PM, use forum for support queries.
Please give us good review if you bought our theme from Osclass Market

bgcnustart
Beginner
Posts: 15
Joined: Sun Jun 07, 2015 6:17 am

Re: Change Width of Flash Message Warning

Post by bgcnustart » Wed Jul 27, 2016 3:19 am

Ok Thanks.

We amended CSS and the width has changed. Problem is when the user click the X the message does NOT close?

So this is the footer code?

<div class="modal-footer">
<button type="button" class="btn btn-danger btn-xs" data-dismiss="modal"><?php _e("Close", 'tuffclassified') ; ?></button>
</div>

Where in the header_1.php do we place it?

We are using 3.5.0 now.

Thanks.

User avatar
tuffadmin
Site Admin
Posts: 1236
Joined: Tue Jan 29, 2013 7:31 pm
Has thanked: 33 times
Been thanked: 111 times

Re: Change Width of Flash Message Warning

Post by tuffadmin » Thu Jul 28, 2016 1:49 am

share your site url please.
No support for unnecessary PM, use forum for support queries.
Please give us good review if you bought our theme from Osclass Market

bgcnustart
Beginner
Posts: 15
Joined: Sun Jun 07, 2015 6:17 am

Re: Change Width of Flash Message Warning

Post by bgcnustart » Thu Jul 28, 2016 3:01 am

bestgayclassifieds.com Note: it is an adult site.

User avatar
tuffadmin
Site Admin
Posts: 1236
Joined: Tue Jan 29, 2013 7:31 pm
Has thanked: 33 times
Been thanked: 111 times

Re: Change Width of Flash Message Warning

Post by tuffadmin » Thu Jul 28, 2016 7:21 am

It is working for me.
No support for unnecessary PM, use forum for support queries.
Please give us good review if you bought our theme from Osclass Market

bgcnustart
Beginner
Posts: 15
Joined: Sun Jun 07, 2015 6:17 am

Re: Change Width of Flash Message Warning

Post by bgcnustart » Fri Jul 29, 2016 8:45 pm

Thanks for looking. I have done some more checking / testing and it only seems to happen when the ad is being moderated eg. In Blocked Mode.

So Alerts like the following example will NOT close, also new user register alerts:

"The listing hasn't been enabled. Please enable it in order to make it public"

"Your ad needs to be approved by the administrator, it could take a while until it appear on the website"

"Your ad will needed to be moderated by an admin after you edit. Until if gets approved it will not be visible to the rest of the users."

I will PM test user & cPanel details. Please check.

Thank you

User avatar
tuffadmin
Site Admin
Posts: 1236
Joined: Tue Jan 29, 2013 7:31 pm
Has thanked: 33 times
Been thanked: 111 times

Re: Change Width of Flash Message Warning

Post by tuffadmin » Tue Aug 02, 2016 11:07 am

Give me a list of pages where these alert does not work.(After redirection where these alert shows.)
No support for unnecessary PM, use forum for support queries.
Please give us good review if you bought our theme from Osclass Market

bgcnustart
Beginner
Posts: 15
Joined: Sun Jun 07, 2015 6:17 am

Re: Change Width of Flash Message Warning

Post by bgcnustart » Wed Aug 03, 2016 4:51 am

Most of the warnings will close when clicking the X eg;

/user/login (incorrect username or password)

The user doesn't exist - (Does Close)

---------------------------------------

/item/new

Category invalid (won't close)

after submitting

Your ad needs to be approved by the administrator (won't close)

User avatar
tuffadmin
Site Admin
Posts: 1236
Joined: Tue Jan 29, 2013 7:31 pm
Has thanked: 33 times
Been thanked: 111 times

Re: Change Width of Flash Message Warning

Post by tuffadmin » Thu Aug 04, 2016 3:21 am

Functions.php file remove old flashmessage js (In the beginning of file.) and use this.

Code: Select all

    if( !OC_ADMIN ) {
        if( !function_exists('add_close_button_action') ) {
            function add_close_button_action(){
                echo '<script type="text/javascript">';
                    echo '$(document).ready(function(){';
                    echo '$(".flashmessage .ico-close").click(function(){';
                        echo '$(this).parent().hide();';
                    echo '});});';
                echo '</script>';
            }
            osc_add_hook('footer_scripts_loaded', 'add_close_button_action') ;
        }
    }
In main.php file
make this

Code: Select all

<?php osc_show_flash_message() ; ?>
below this line

Code: Select all

<?php osc_run_hook('footer'); ?>
No support for unnecessary PM, use forum for support queries.
Please give us good review if you bought our theme from Osclass Market

Locked