The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Announcements for those logged in only?

2 posters

Go down

Announcements for those logged in only? Empty Announcements for those logged in only?

Post by randi.philleo February 10th 2011, 11:25 pm

Is it possible to have your "Announcements" display only for members?

I tried following the advice here: https://help.forumotion.com/t70791-scrolling-announcement-only-viewable-to-members-how-to

But, it just blew up. More specifically, it stopped the scrolling of the announcements (which are jpgs) and stacked them on top of each other.

Any thoughts? Here's the ticker code I can find in the overall_header.

Code:
<!-- BEGIN switch_ticker -->
    <link type="text/css" rel="stylesheet" href="{JS_DIR}jquery/ticker/ticker.css" />
    <script src="{JS_DIR}jquery/ticker/ticker.js" type="text/javascript"></script>
    <!-- END switch_ticker -->

    <!-- BEGIN switch_ticker_new -->
    <script src="{JS_DIR}jquery/jcarousel/jquery.jcarousel.js" type="text/javascript"></script>
    <script type="text/javascript">//<![CDATA[
    /* Definir le sens de direction en fonction du panneau admin */
    var tickerDirParam = "{switch_ticker.DIRECTION}";
    var slid_vert = false;
    var auto_dir  = 'next';
    var h_perso = parseInt({switch_ticker.HEIGHT});

    switch( tickerDirParam )
    {
        case 'top' :
            slid_vert = true;
            break;

        case 'left':
            break;

        case 'bottom':
            slid_vert = true;
            auto_dir  = 'prev';
            break;

        case 'right':
            auto_dir  = 'prev';
            break;

        default:
            slid_vert = true;
    }

    $(document).ready(function() {
        var w_cont = $('#fa_ticker_container').width();

        if (w_cont > 0)
        {
            $('#fa_ticker_container').width(w_cont);

            /* Affichage de la liste */
            $('#fa_ticker_content').css('display','block');

            /* Calcul des dimensions du conteneur et des �l�ments */
            var width_max  = $('ul#fa_ticker_content').width();
            var width_item = Math.floor(width_max / {switch_ticker.SIZE});
            var height_max = h_perso;

            /* Calcul de la hauteur maximale du contenur en fonction des �l�ments et de la hauteur personnalis�e dans l'admin */
            $('ul#fa_ticker_content li').each( function () {
                if ($(this).height() > height_max)
                {
                    height_max = $(this).height();
                }
            } );

            /* Redimensionnement des �l�ments et des images trop larges */
            $('ul#fa_ticker_content li').width(width_item).height(height_max).find('img').each(function () {
                if ($(this).width() > width_item)
                {
                var ratio      = $(this).width() / width_item;
                var new_height = Math.round($(this).height() / ratio);
                $(this).height(new_height).width(width_item);
                }
            });

            /* Redimensionnement et centrage du conteneur en mode vertical */
            if (slid_vert)
            {
                $('ul#fa_ticker_content').width(width_item).height(height_max).css('marginLeft','auto').css('marginRight','auto');
            }

            /* Initialisation du caroussel */
            $('#fa_ticker_content').jcarousel({
                  vertical: slid_vert,
                wrap: 'circular',
                auto: {switch_ticker.STOP_TIME},
                auto_direction: auto_dir,
                scroll: 1,
                size: {switch_ticker.SIZE},
                height_max: height_max,
                animation: {switch_ticker.SPEED}
            });
        }
        else
        {
            $('ul#fa_ticker_content li:not(:first)').css('display','none');
            $('ul#fa_ticker_content li:first').css('list-style','none').css('text-align','center');
        }
    });
    //]]>
    </script>
    <!-- END switch_ticker_new -->
avatar
randi.philleo
New Member

Female Posts : 8
Reputation : 0
Language : English

http://www.ndbrewers.com

Back to top Go down

Announcements for those logged in only? Empty Re: Announcements for those logged in only?

Post by Darren1 February 13th 2011, 3:15 am

Hi,

Do you want it in the scrolling announces, or do you want it else where?
Darren1
Darren1
Helper
Helper

Male Posts : 11853
Reputation : 566
Language : English

Back to top Go down

Announcements for those logged in only? Empty Re: Announcements for those logged in only?

Post by randi.philleo February 13th 2011, 4:24 am

Hello!

I'd like to have it on the scrolling announcements if at all possible Smile
avatar
randi.philleo
New Member

Female Posts : 8
Reputation : 0
Language : English

http://www.ndbrewers.com

Back to top Go down

Announcements for those logged in only? Empty Re: Announcements for those logged in only?

Post by randi.philleo February 21st 2011, 11:54 pm

I hate to *bump*... but maybe someone else has a thought on this.

Hello
avatar
randi.philleo
New Member

Female Posts : 8
Reputation : 0
Language : English

http://www.ndbrewers.com

Back to top Go down

Announcements for those logged in only? Empty Re: Announcements for those logged in only?

Post by Darren1 February 23rd 2011, 2:24 am

To my knowledge, it's more than possible on PunBB & PHPBB2, as well as IPB & BB3, however, as IPB & PHPBB3 will require GOOD JS/JQuery knowledge, I cannot assist you there.
I've see Dion do it before, on a specific forum

What version is it for, I'd be able to help if it's PunBB or PHPBB32



Ah, indeed; Gangstar got back at me Razz


Last edited by Darren1 on February 24th 2011, 12:55 am; edited 1 time in total
Darren1
Darren1
Helper
Helper

Male Posts : 11853
Reputation : 566
Language : English

Back to top Go down

Announcements for those logged in only? Empty Re: Announcements for those logged in only?

Post by Guest February 23rd 2011, 2:04 pm

You mean PunBB or PHPBB2 Very Happy?
avatar
Guest
Guest


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum