Probleme mit PhpBB3 Countdown

Du hast Probleme beim Einbau oder bei der Benutzung eines Mods? In diesem Forum bist du richtig.
Forumsregeln
phpBB 3.0 hat das Ende seiner Lebenszeit überschritten
phpBB 3.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 3.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf die neuste phpBB-Version, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Antworten
Benutzeravatar
FuGu
Mitglied
Beiträge: 217
Registriert: 16.01.2008 18:17

Probleme mit PhpBB3 Countdown

Beitrag von FuGu »

Moin Leute,
ich habe mich heute an dem genannten MOD versucht. Eigentlich nix wildes.. aber offensichtlich kommen sich die jquery.js in der overall_header.html in die Quere.
Platziere ich den Countdown Schnipsel hinter dem mChat funktionieren die Buttons und Eingabe des Chats nicht mehr aber der Countdown läuft. Ist der Countdown Schnipsel, wie jetzt, vor dem Schnipel des mChat wird der Countdown nicht angezeigt aber mChat funktioniert.
Habe schon nahezu alle Positionen ausprobiert.. immer ohne Erfolg.

Wäre toll, wenn sich das mal wer anschauen könnte.

Danke!

Hier der Kopf der overall_header

Code: Alles auswählen

<head>

<meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="content-language" content="{S_USER_LANG}" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="resource-type" content="document" />
<meta name="distribution" content="global" />
<meta name="copyright" content="2000, 2002, 2005, 2007 phpBB Group" />
<meta name="keywords" content="" />
<meta name="description" content="" />
{META}
<!-- IF S_IN_GEOMAP -->
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<!-- ENDIF -->
<title>{SITENAME} | <!-- IF S_IN_MCP -->{L_MCP} | <!-- ELSEIF S_IN_UCP -->{L_UCP} | <!-- ENDIF -->{PAGE_TITLE}</title>

<!-- IF S_ENABLE_FEEDS -->
	<!-- IF S_ENABLE_FEEDS_OVERALL --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {SITENAME}" href="{U_FEED}" /><!-- ENDIF -->
	<!-- IF S_ENABLE_FEEDS_NEWS --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FEED_NEWS}" href="{U_FEED}?mode=news" /><!-- ENDIF -->
	<!-- IF S_ENABLE_FEEDS_FORUMS --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_ALL_FORUMS}" href="{U_FEED}?mode=forums" /><!-- ENDIF -->
	<!-- IF S_ENABLE_FEEDS_TOPICS --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FEED_TOPICS_NEW}" href="{U_FEED}?mode=topics" /><!-- ENDIF -->
	<!-- IF S_ENABLE_FEEDS_TOPICS_ACTIVE --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FEED_TOPICS_ACTIVE}" href="{U_FEED}?mode=topics_active" /><!-- ENDIF -->
	<!-- IF S_ENABLE_FEEDS_FORUM and S_FORUM_ID --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FORUM} - {FORUM_NAME}" href="{U_FEED}?f={S_FORUM_ID}" /><!-- ENDIF -->
	<!-- IF S_ENABLE_FEEDS_TOPIC and S_TOPIC_ID --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_TOPIC} - {TOPIC_TITLE}" href="{U_FEED}?f={S_FORUM_ID}&t={S_TOPIC_ID}" /><!-- ENDIF -->
<!-- ENDIF -->

<!--
	phpBB style name: prosilver
	Based on style:   prosilver (this is the default phpBB3 style)
	Original author:  Tom Beddard ( http://www.subBlue.com/ )
	Modified by:	  Logitec

	NOTE: This page was generated by phpBB, the free open-source bulletin board package.
	      The phpBB Group is not responsible for the content of this page and forum. For more information
	      about phpBB please visit http://www.phpbb.com
-->

<script type="text/javascript">
// <![CDATA[
	var jump_page = '{LA_JUMP_PAGE}:';
	var on_page = '{ON_PAGE}';
	var per_page = '{PER_PAGE}';
	var base_url = '{A_BASE_URL}';
	var style_cookie = 'phpBBstyle';
	var style_cookie_settings = '{A_COOKIE_SETTINGS}';
	var onload_functions = new Array();
	var onunload_functions = new Array();

	<!-- IF S_USER_PM_POPUP and S_NEW_PM -->
		var url = '{UA_POPUP_PM}';
		window.open(url.replace(/&/g, '&'), '_phpbbprivmsg', 'height=225,resizable=yes,scrollbars=yes, width=400');
	<!-- ENDIF -->

	/**
	* Find a member
	*/
	function find_username(url)
	{
		popup(url, 760, 570, '_usersearch');
		return false;
	}

	/**
	* New function for handling multiple calls to window.onload and window.unload by pentapenguin
	*/
	window.onload = function()
	{
		for (var i = 0; i < onload_functions.length; i++)
		{
			eval(onload_functions[i]);
		}
	};

	window.onunload = function()
	{
		for (var i = 0; i < onunload_functions.length; i++)
		{
			eval(onunload_functions[i]);
		}
	};

// ]]>
</script>
<script type="text/javascript" src="{T_SUPER_TEMPLATE_PATH}/styleswitcher.js"></script>
<script type="text/javascript" src="{T_SUPER_TEMPLATE_PATH}/forum_fn.js"></script>

<!-- IF COUNTDOWN_ENABLE -->
<script src="{ROOT_PATH}script/jquery.min.js" type="text/javascript"></script>
<script src="{ROOT_PATH}script/jquery.jcountdown1.3.3.min.js" type="text/javascript"></script>
<script type="text/javascript">
// <![CDATA[
$(document).ready(function(){
	$("#time").countdown({
		date: "{COUNTDOWN_DATE}",
		onComplete: function( event ) {
		
			$(this).html("{COUNTDOWN_COMPLETE}");
		},
		leadingZero: true,
		htmlTemplate: "<span class='cd-time'>{COUNTDOWN_TEXT}</span>  %{d} <span class=\"cd-time\">{L_DAYS}</span> %{h} <span class=\"cd-time\">{L_HOURS}</span> %{m} <span class=\"cd-time\">{L_MINUTES}</span> %{s} <span class=\"cd-time\">{L_SECONDS}</span>",
		direction: "<!-- IF COUNTDOWN_DIRECTION -->down<!-- ELSE -->up<!-- ENDIF -->"
	});
});
// ]]>
</script>
<!-- ENDIF -->

<link href="{T_THEME_PATH}/print.css" rel="stylesheet" type="text/css" media="print" title="printonly" />
<!-- IF S_HAS_HOOKUP -->
<link href="{T_THEME_PATH}/hookup.css" rel="stylesheet" type="text/css" />
<link href="{T_THEME_PATH}/calendar-system.css" rel="stylesheet" type="text/css" />
<!-- ENDIF -->
<link href="{T_STYLESHEET_LINK}" rel="stylesheet" type="text/css" media="screen, projection" />
<link href="{T_THEME_PATH}/normal.css" rel="stylesheet" type="text/css" title="A" />
<link href="{T_THEME_PATH}/prime_links/prime_links.css" rel="stylesheet" type="text/css" />
<!-- IF S_CONTENT_DIRECTION eq 'rtl' -->
	<link href="{T_THEME_PATH}/bidi.css" rel="stylesheet" type="text/css" media="screen, projection" />
<!-- ENDIF -->
<!-- IF S_MPSS_ALLOW_USER and S_MPSS -->
<!-- IF S_MPSS_USER -->
<link href="{T_THEME_PATH}/mpss.css" rel="stylesheet" type="text/css" media="screen, projection" />
<!-- ENDIF -->
<!-- ELSEIF S_MPSS -->
<link href="{T_THEME_PATH}/mpss.css" rel="stylesheet" type="text/css" media="screen, projection" />
<!-- ENDIF -->
<style type="text/css">

    div.jGrowl {
       padding:          10px;
       z-index:          9999;
    }

    /** Special IE6 Style Positioning **/
    div.ie6 {
       position:          absolute;
    }

    div.ie6.top-right {
       right:             auto;
       bottom:          auto;
       left:             expression( ( 0 - jGrowl.offsetWidth + ( document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body.clientWidth ) + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );
         top:             expression( ( 0 + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' );
    }

    div.ie6.top-left {
       left:             expression( ( 0 + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );
       top:             expression( ( 0 + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' );
    }

    div.ie6.bottom-right {
       left:             expression( ( 0 - jGrowl.offsetWidth + ( document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body.clientWidth ) + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );
       top:             expression( ( 0 - jGrowl.offsetHeight + ( document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' );
    }

    div.ie6.bottom-left {
       left:             expression( ( 0 + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );
       top:             expression( ( 0 - jGrowl.offsetHeight + ( document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' );
    }

    div.ie6.center {
       left:             expression( ( 0 + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );
       top:             expression( ( 0 + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' );
       width:             100%;
    }

    /** Normal Style Positions **/
    body > div.jGrowl {
       position:         fixed;
    }

    body > div.jGrowl.top-left {
       left:             0px;
       top:             0px;
    }

    body > div.jGrowl.top-right {
       right:             0px;
       top:             0px;
    }

    body > div.jGrowl.bottom-left {
       left:             0px;
       bottom:            0px;
    }

    body > div.jGrowl.bottom-right {
       right:             0px;
       bottom:          0px;
    }

    body > div.jGrowl.center {
       top:             0px;
       width:             50%;
       left:             25%;
    }

    /** Cross Browser Styling **/
    div.center div.jGrowl-notification, div.center div.jGrowl-closer {
       margin-left:       auto;
       margin-right:       auto;
    }

    div.jGrowl div.jGrowl-notification, div.jGrowl div.jGrowl-closer {
       background-color:       #ffb600;
       color:                #000000;
       opacity:             .85;
       filter:             alpha(opacity = 85);
       zoom:                1;
       width:                350px;
       padding:             10px;
       margin-top:          5px;
       margin-bottom:          5px;
       font-family:          Verdana, Arial, Helvetica, sans-serif;
       font-size:             14px;
       text-align:          left;
       display:             none;
       -moz-border-radius:    5px;
       -webkit-border-radius:   5px;
    }

    div.jGrowl div.jGrowl-notification {
       min-height:          40px;
    }

    div.jGrowl div.jGrowl-notification div.header {
       font-weight:          bold;
       font-size:            16px;
    }

    div.jGrowl div.jGrowl-notification div.close {
       float:                right;
       font-weight:          bold;
       font-size:             14px;
       cursor:               pointer;
    }

    div.jGrowl div.jGrowl-closer {
       height:             15px;
       padding-top:          4px;
       padding-bottom:       4px;
       cursor:             pointer;
       font-size:            11px;
       font-weight:          bold;
       text-align:          center;
    }



    </style>

<script type="text/javascript" src="{ROOT_PATH}/images/jgrowl/jquery-1.4.4.js"></script>
<script type="text/javascript" src="{ROOT_PATH}/images/jgrowl/jquery.ui.all.js"></script>
<script type="text/javascript" src="{ROOT_PATH}/images/jgrowl/jquery.jgrowl.js"></script>

<link rel="stylesheet" type="text/css" href="{ROOT_PATH}/highslide/highslide.css" /> 
<script type="text/javascript" src="{ROOT_PATH}/highslide/highslide-full.js"></script>
<script type="text/javascript">
	hs.graphicsDir = '{ROOT_PATH}/highslide/graphics/';
	hs.align = 'center';
	hs.transitions = ['expand', 'crossfade'];
	hs.outlineType = 'rounded-white';
	hs.wrapperClassName = 'controls-in-heading';
	hs.fadeInOut = true;
	//hs.dimmingOpacity = 0.75;

	// Add the controlbar
	if (hs.addSlideshow) hs.addSlideshow({
		//slideshowGroup: 'group1',
		interval: 5000,
		repeat: false,
		useControls: true,
		fixedControls: false,
		overlayOptions: {
			opacity: 1,
			position: 'top right',
			hideOnMouseOut: false
		}
	});
</script> 

<!-- IF S_MCHAT_ENABLE -->
<script type="text/javascript" src="{ROOT_PATH}mchat/jquery_cookie_mini.js"></script>
<link rel="stylesheet" href="{ROOT_PATH}mchat/mchat_eraserhead2.css" type="text/css" />
<!-- ENDIF -->

<script type="text/javascript" language="javascript" src="lytebox/lytebox.js"></script>
<link rel="stylesheet" href="lytebox/lytebox.css" type="text/css" media="screen" />

<script type="text/javascript" src="snowstorm.js"></script>      
<script type="text/javascript" src="./special_chars.js"></script>  

<script type="text/javascript" src="rokbox/mootools-release-1.11.js"></script>
<script type="text/javascript" src="rokbox/rokbox.js"></script>
<link href="rokbox/themes/dark/rokbox-style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="rokbox/themes/dark/rokbox-config.js"></script>

</head>
modernist
Ehemaliges Teammitglied
Beiträge: 2202
Registriert: 12.01.2009 10:44

Re: Probleme mit PhpBB3 Countdown

Beitrag von modernist »

FuGu hat geschrieben:ich habe mich heute an dem genannten MOD versucht
Ein direkter Link zur MOD-Quelle ist immer hilfreich und erspart unnötiges Suchen im Internet.

Du rufst das JQuery-Script (mit verschiedenen Bezeichnungen, jquery-1.4.4.js, jquery.min.js) mehrmals auf. Das führt oft zu Fehlfunktionen, so vielleicht auch hier.
Benutzeravatar
FuGu
Mitglied
Beiträge: 217
Registriert: 16.01.2008 18:17

Re: Probleme mit PhpBB3 Countdown

Beitrag von FuGu »

Ach sorry... wusste ich doch, dass ich was vergessen habe: PhpBB3 Countdown
Ich bin übrigens nicht der Einzige der das Problem hat.

Ich denke auch, dass der Fehler in der Form auftritt wie du es meinst. Aber wie löse ich das Problem?
Dazu sei gesagt, dass ich in der Lage bin MODs einzubauen.. wenn es aber an das Eingemachte geht wie jetzt zum Beispiel, bin ich auf fremde Hilfe angewiesen.
modernist
Ehemaliges Teammitglied
Beiträge: 2202
Registriert: 12.01.2009 10:44

Re: Probleme mit PhpBB3 Countdown

Beitrag von modernist »

FuGu hat geschrieben:Aber wie löse ich das Problem?
Indem du JQuery nur einmal aufrufst.

<script src="{ROOT_PATH}script/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript" src="{ROOT_PATH}/images/jgrowl/jquery-1.4.4.js"></script>

Eines davon kann wohl weg, ggf. wird JQuery aber noch in einem der anderen JavaScripts oder in anderen Templates aufgerufen, ich kenne das alles nicht näher, was du da verbaut hast.
Da solltest du dir die mal genauer anschauen und einfach etwas rumprobieren. Vorher aber einmal die aktuelle Version einer Datei speichern als Backup!
Benutzeravatar
FuGu
Mitglied
Beiträge: 217
Registriert: 16.01.2008 18:17

Re: Probleme mit PhpBB3 Countdown

Beitrag von FuGu »

Hmm... aber ich kann doch nichts löschen, wenn andere MOD die jquery benötigen?
Benutzeravatar
Dr.Death
Moderator
Moderator
Beiträge: 17473
Registriert: 23.04.2003 08:22
Wohnort: Xanten
Kontaktdaten:

Re: Probleme mit PhpBB3 Countdown

Beitrag von Dr.Death »

Hi,

hast Du es denn ausprobiert? (TIAS Grundregel 1 --> Try it and see)

Da sich die jQuery Bibliothek in verschiedenen Ordnen befindet, aber dennoch zu 98% identisch sind.... lass einfach eine Weg und probiere es aus.
Glaskugeln sind uns leider ausgegangen ;-)
Benutzeravatar
FuGu
Mitglied
Beiträge: 217
Registriert: 16.01.2008 18:17

Re: Probleme mit PhpBB3 Countdown

Beitrag von FuGu »

Ja, das habe ich ausprobiert..
Habe auch mal die jgrowl und Rokbos MOD komplett entfernt. Dann laufen mChat und Countdown zusammen.
Deaktiviert man dann allerdings die Countdown MOD kann man die Buttons beim mChat nicht mehr nutzen...

Zum Haare raufen!
Antworten

Zurück zu „[3.0.x] Mod Support“