Announcements for those logged in only?
2 posters
Page 1 of 1
Announcements for those logged in only?
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.
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 -->
Re: Announcements for those logged in only?
Hi,
Do you want it in the scrolling announces, or do you want it else where?
Do you want it in the scrolling announces, or do you want it else where?
Darren1- Helper
- Posts : 11853
Reputation : 566
Language : English
Re: Announcements for those logged in only?
Hello!
I'd like to have it on the scrolling announcements if at all possible
I'd like to have it on the scrolling announcements if at all possible
Re: Announcements for those logged in only?
I hate to *bump*... but maybe someone else has a thought on this.
Re: Announcements for those logged in only?
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
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 PHPBB
Ah, indeed; Gangstar got back at me
Last edited by Darren1 on February 24th 2011, 12:55 am; edited 1 time in total
Darren1- Helper
- Posts : 11853
Reputation : 566
Language : English
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum