Ergebnis 1 bis 3 von 3

Thema: Darstellungsfehler im IE

  1. #1
    HTML Newbie
    Registriert seit
    31.05.2007
    Beiträge
    2
    Danke
    0
    Bekam 0 mal "Danke" in 0 Postings

    Standard Darstellungsfehler im IE

    Hi ich bin neu hier! Und ich habe gleich mal eine Frage. Und zwar:

    Ich benutze das CMS Joomla, und habe ein modul im Header. Es passt mir sehr gut eigentlich, doch im Internet Explorer wird der Text und der Button rechts neben dem Avatar UNTER dem Avatar dargestellt.

    Hier ein Bild:



    Ich poste hier mal den Quelltext vom Modul:

    Code:
     <?php
    /**
    * Community builder Login Module 1.0.1
    * $Id&#58; mod_cblogin.php 531 2006-11-12 01&#58;40&#58;44Z beat $
    *
    * @version 1.0.2
    * @package Community Builder 1.0.2 extensions
    * @copyright &#40;C&#41; 2005-2006 Beat & JoomlaJoe & parts 2000 - 2005 Miro International Pty Ltd
    * @license http&#58;//www.gnu.org/copyleft/gpl.html GNU/GPL
    *
    * Credits to&#58; Jeffrey Randall for initial implementation of avatar, and
    * to Antony Ventouris for the PMS integration &#40;he also added the cool animated image&#41;
    */
    
    defined&#40; '_VALID_MOS' &#41; or die&#40; 'Direct Access to this location is not allowed.' &#41;;
    
    global $ueConfig, $my, $mosConfig_lang, $mainframe, $mosConfig_live_site, $_SERVER, $Itemid;
    
    $absolute_path = $mainframe->getCfg&#40;'absolute_path'&#41;;
    
    $len_live_site = strlen&#40;$mosConfig_live_site&#41;;		// do not remove&#58; used further down as well
    // variant 1&#58; &#40;13 lines up to variant 2&#41;&#58;
    $request_uri = mosGetParam&#40; $_SERVER, 'REQUEST_URI', null &#41;;
    if &#40;!&#40;strncmp&#40;$request_uri, "http&#58;", 5&#41;==0&#41; && !&#40;strncmp&#40;$request_uri, "https&#58;", 6&#41;==0&#41;&#41; &#123;
    	$return = "http".&#40;&#40;isset&#40;$_SERVER&#91;'HTTPS'&#93;&#41; && &#40; !empty&#40; $_SERVER&#91;'HTTPS'&#93; &#41; &#41; && &#40;$_SERVER&#91;'HTTPS'&#93; != 'off'&#41; &#41;?"s"&#58;""&#41;
    			."&#58;//".mosGetParam&#40; $_SERVER, 'HTTP_HOST', null &#41;.&#40;&#40;strpos&#40;$request_uri, '/'&#41; !== 0&#41; ? "/"&#58;""&#41;.$request_uri;
    &#125; else &#123;
    	$return = $request_uri;
    &#125;
    if &#40;strncmp&#40;$mosConfig_live_site, $return, $len_live_site&#41; == 0&#41; &#123;
    	$return = substr&#40;$return, $len_live_site&#41;;
    	if &#40;strncmp&#40;$return,"/",1&#41; == 0&#41; &#123;
    		$return = substr&#40;$return, 1&#41;;
    	&#125;
    &#125;
    // variant 2&#58; 1 line&#58;
    // $return = 'index.php?' . mosGetParam&#40; $_SERVER, 'QUERY_STRING', '' &#41;;
    
    // avoid unauthorized page acces at very first login after registration confirmation
    if &#40;eregi&#40; 'index.php\?option=com_comprofiler&task=confirm&confirmCode=', $return&#41;&#41; $return = "index.php";
    // converts & to &amp; for xhtml compliance
    $return = str_replace&#40; '&', '&amp;', $return &#41;;
    
    // copied from comprofiler.class.php&#58;
    if &#40;!is_callable&#40;"cbLoginCheckJversion"&#41;&#41; &#123;
    	function cbLoginCheckJversion&#40;&#41; &#123;
    		global $_VERSION;
    		if &#40;$_VERSION->PRODUCT == "Mambo"&#41; &#123;
    			if &#40;strncasecmp&#40;$_VERSION->RELEASE, "4.6", 3&#41;&#41; &#123;
    				$version = 0;
    			&#125; else &#123;
    				$version = -1;
    			&#125;
    		&#125; elseif &#40;$_VERSION->PRODUCT == "Joomla!"&#41; &#123;
    			if &#40;strncasecmp&#40;$_VERSION->RELEASE, "1.0", 3&#41;&#41; &#123;
    				$version = 1;
    			&#125; else &#123;
    				$version = 0;
    			&#125;
    		&#125;
    		return $version;
    	&#125;
    &#125;
    
    // module parameter may override the system configuration setting
    $registration_enabled = $mainframe->getCfg&#40; 'allowUserRegistration' &#41;;
    if &#40;is_callable&#40;array&#40;$params,"get"&#41;&#41;&#41; &#123;				// Mambo 4.5.0 compatibility
    	$message_login 	= $params->def&#40; 'login_message', 0 &#41;;
    	$message_logout = $params->def&#40; 'logout_message', 0 &#41;;
    	$pretext 		= $params->get&#40; 'pretext' &#41;;
    	$posttext 		= $params->get&#40; 'posttext' &#41;;
    	$login 			= $params->def&#40; 'login', $return &#41;;
    	$logout 		= $params->def&#40; 'logout', "index.php" &#41;;
    	$name 			= $params->def&#40; 'name', 0 &#41;;
    	$greeting 		= $params->def&#40; 'greeting', 1 &#41;;
    	$class_sfx		= $params->get&#40; 'moduleclass_sfx', ""&#41;;
    	$horizontal		= $params->get&#40; 'horizontal', 0&#41;;
    	$show_avatar	= $params->get&#40; 'show_avatar', 0&#41;;
    	$avatar_position = $params->get&#40; 'avatar_position', "default"&#41;;
    	$pms_type		= $params->get&#40; 'pms_type', 0&#41;;
    	$show_pms		= $params->get&#40; 'show_pms', 0&#41;;
    	$remember_enabled = $params->get&#40; 'remember_enabled', 1&#41;;
    	$https_post		= $params->get&#40; 'https_post', 0&#41;;
    	$showPendingConnections = $params->get&#40; 'show_connection_notifications', 0&#41;;
    	$show_newaccount = $params->def&#40; 'show_newaccount', 1 &#41;;
    	$show_lostpass 	= $params->def&#40; 'show_lostpass', 1 &#41;;
    	$name_lenght 	= $params->def&#40; 'name_lenght', "10" &#41;;
    	$pass_lenght 	= $params->def&#40; 'pass_lenght', "10" &#41;;
    	$compact 		= $params->def&#40; 'compact', 0 &#41;;
    &#125; else &#123;
    	$message_login 	= 0;
    	$message_logout = 0;
    	$pretext 		= "";
    	$posttext 		= "";
    	$login 			= $return;
    	$logout 		= "index.php";
    	$name 			= 0;
    	$greeting 		= 1;
    	$class_sfx		= "";
    	$horizontal		= 0;
    	$show_avatar	= 0;
    	$avatar_position = "default";
    	$pms_type		= 0;
    	$show_pms		= 0;
    	$remember_enabled = 1;
    	$https_post		= 0;
    	$showPendingConnections = 0;
    	$show_newaccount = 1;
    	$show_lostpass 	= 1;
    	$name_lenght 	= "10";
    	$pass_lenght 	= "10";
    &#125;
    
    if &#40;$name&#41; &#123;
    	if &#40;$name == 2&#41; &#123;
    		$query = "SELECT firstname FROM #__comprofiler WHERE id = ". $my->id;
    	&#125; else &#123;
    		$query = "SELECT name FROM #__users WHERE id = ". $my->id;
    	&#125;
    	$database->setQuery&#40; $query &#41;;
    	$name = htmlspecialchars&#40;$database->loadResult&#40;&#41;&#41;;
    &#125; else &#123;
    	$name = htmlspecialchars&#40;$my->username&#41;;
    &#125;
    
    if &#40;&#40;&#40;$my->id&#41; && &#40;$show_pms != 0 || $show_avatar != 0 || $showPendingConnections&#41;&#41; ||
    	&#40;&#40;!$my->id&#41; && $compact&#41;&#41; &#123;
    	$UElanguagePath=$mainframe->getCfg&#40; 'absolute_path' &#41;.'/components/com_comprofiler/plugin/language';
    	if &#40;file_exists&#40;$UElanguagePath.'/'.$mosConfig_lang.'/'.$mosConfig_lang.'.php'&#41;&#41; &#123;
    		include_once&#40;$UElanguagePath.'/'.$mosConfig_lang.'/'.$mosConfig_lang.'.php'&#41;;
    	&#125; else include_once&#40;$UElanguagePath.'/default_language/default_language.php'&#41;;
    &#125;
    
    if &#40;$my->id&#41; &#123;
    	$logout = sefRelToAbs&#40; $logout &#41;;
    	if &#40;!&#40;strncmp&#40;$logout, "http&#58;", 5&#41;==0&#41; && !&#40;strncmp&#40;$logout, "https&#58;", 6&#41;==0&#41;&#41; $logout = $mosConfig_live_site . "/" . $logout;
    
    	$database->setQuery&#40;"SELECT id FROM #__menu WHERE link = 'index.php?option=com_comprofiler' AND published=1"&#41;;
    	$cbItemid = $database->loadResult&#40;&#41;;
    	if &#40;is_numeric&#40;$cbItemid&#41;&#41; $andItemid = "&amp;Itemid=".$cbItemid;
    	else $andItemid = "";
    
    	switch &#40; cbLoginCheckJversion&#40;&#41; &#41; &#123;
    	 	case 0&#58;
    		// Mambo 4.5 & Joomla 1.0&#58;
    			$urlImgPath = $mosConfig_live_site."/modules/mod_cblogin/";
    			$hiName		= _HI."%s";	 		
    	 		break;
    	 	case -1&#58;
    		// Mambo 4.6.x&#58;
    			$urlImgPath = $mosConfig_live_site."/modules/mod_cblogin/";
    			$hiName		= T_&#40;'Hi, %s'&#41;;
    			if &#40;!defined&#40;'_BUTTON_LOGOUT'&#41;&#41; &#123;
    				define&#40; '_BUTTON_LOGOUT', T_&#40;'Logout'&#41;&#41;;
    			&#125;
    			break;
    	 	case 1&#58;
    	 	default&#58;
    		// Joomla 1.5+
    			$urlImgPath = $mosConfig_live_site."/modules/mod_cblogin/mod_cblogin/";
    			$lang =& JFactory&#58;&#58;getLanguage&#40;&#41;;
    			$lang->load&#40;"mod_login"&#41;;
    			$hiName		= JText&#58;&#58;_&#40; 'HINAME' &#41;;
    			if &#40;!defined&#40;'_BUTTON_LOGOUT'&#41;&#41; &#123;
    				define&#40; '_BUTTON_LOGOUT', JText&#58;&#58;_&#40; '_BUTTON_LOGOUT' &#41;&#41;;
    			&#125;
    	 		break;
    	 &#125;
    	echo '<div style="width&#58;100%; height&#58;200px; overflow&#58; wrap; padding&#58;0px; border-width&#58;0px; margin&#58;0px;">'."\n";
    
    	$logoutPost = sefRelToAbs&#40;"index.php?option=com_comprofiler&amp;task=logout"&#41;;
    	echo '<form action="'.$logoutPost.'" method="post" id="mod_login_logoutform'.$class_sfx.'" style="margin&#58;0px;">'."\n";
    
    	$avatarDisplayed = false;
    	if &#40;$show_avatar == 0&#41; &#123;
    		if &#40;$greeting&#41; echo '<span id="mod_login_greeting'.$class_sfx.'">'.sprintf&#40; $hiName, $name &#41;.'</span>'.&#40;$horizontal ? "" &#58; ""&#41;;
    	&#125; else &#123;
    		
    		if &#40;&#40;$avatar_position=="default"&#41; and &#40;$greeting&#41;&#41; echo '<span id="mod_login_greeting'.$class_sfx.'">'.sprintf&#40; $hiName, $name &#41;.'</span>';
    
    		$query = "SELECT avatar, avatarapproved FROM #__comprofiler WHERE id = ". $my->id;
    		$database->setQuery&#40; $query &#41;;
    		$row = null;
    		if &#40;$database->loadObject&#40; $row &#41;&#41; &#123;
    			$avatar			= $row->avatar;
    			$avatarapproved	= $row->avatarapproved;
    			
    			if&#40;is_dir&#40;$absolute_path."/components/com_comprofiler/plugin/language/".$mosConfig_lang."/images"&#41;&#41; $fileLang=$mosConfig_lang;
    			else $fileLang="default_language";
    			
    			if&#40;$avatarapproved==0&#41; $oValue="components/com_comprofiler/plugin/language/".$fileLang."/images/tnpendphoto.jpg";
    			elseif&#40;&#40;$avatar=='' || $avatar==null&#41; && $avatarapproved==1&#41; $oValue = null;
    			elseif&#40;strpos&#40;$avatar,"gallery/"&#41;===false&#41; $oValue="images/comprofiler/tn".$avatar;
    			else $oValue="images/comprofiler/".$avatar;
    			if&#40;!is_file&#40;$absolute_path."/".$oValue&#41;&#41; $oValue = null;
    
    			if &#40;!$oValue and &#40;$show_avatar==2&#41;&#41; $oValue = "components/com_comprofiler/plugin/language/".$fileLang."/images/tnnophoto.jpg";
    			
    			if &#40;$oValue&#41; &#123;
    				if &#40;$class_sfx == ""&#41; &#123;
    					$attributes = 'style="margin&#58; 3px 1px 7px 1px; border&#58;0;'
    					  . &#40;&#40;$avatar_position == "left" or $avatar_position == "right"&#41; ? ' float&#58;'.$avatar_position.';"' &#58; '"' &#41;;
    				&#125; else $attributes = "";
    
    				if &#40;$avatar_position=="default"&#41; echo '<div style="text-align&#58;center; margin-left&#58;auto; margin-right&#58;auto;">';
    				else echo '<div style="float&#58;'.$avatar_position.'; margin&#58; 3px 0px 4px 0px; ">';
    				echo '<a href="'.sefRelToAbs&#40;"index.php?option=com_comprofiler&amp;task=userProfile".$andItemid&#41;.'" class="mod_login'.$class_sfx.'">';		
    				echo '[img]'.$oValue.'[/img]';
    				echo "</a></div>\n";
    				$avatarDisplayed = true;
    			&#125;
    		&#125;
    	&#125;
    
    	if &#40; !$horizontal &#41; &#123;
    		$preDiv = '<div style="text-align&#58;center; margin&#58;0px auto;"> '
    				. '<div style="margin&#58;auto; align&#58;center; width&#58;100%;"> '
    				. '<div style="display&#58;table; margin&#58;auto; align&#58;center;';
    		$postDiv = "</div></div></div>\n";
    	&#125;
    	
    	if &#40; $show_avatar and &#40;$avatar_position!="default"&#41; and &#40;$greeting&#41; &#41; &#123;
    		if &#40;$avatarDisplayed&#41; &#123;
    			if &#40; !$horizontal &#41; echo $preDiv.'" id="mod_login_greeting'.$class_sfx.'">';
    			/* if &#40;!$show_pms&#41; */ echo '
    ';
    			echo sprintf&#40; $hiName, '
    '.$name &#41;;
    			if &#40; !$horizontal &#41; echo $postDiv;
    		&#125; else &#123;
    			echo '<span id="mod_login_greeting'.$class_sfx.'">'.sprintf&#40; $hiName, $name &#41;.'</span>';
    		&#125;
    	&#125;
    	
    	$pms = 0;
    	if&#40;$show_pms != 0&#41; &#123;
    		// include_once&#40; $absolute_path."/administrator/components/com_comprofiler/ue_config.php" &#41;;
    		// if &#40;isset&#40;$ueConfig&#91;'pms'&#93;&#41;&#41; $pms = $ueConfig&#91;'pms'&#93;;
    		$pms = $pms_type;		// RC2 quick fix
    		if&#40;$pms != 0&#41;
    		&#123;
    			switch &#40;$pms&#41; &#123;
    				case 1&#58;
    					$pmsnameprefix = "";
    					$query_pms_count = "SELECT count&#40;id&#41; FROM #__".$pmsnameprefix."pms WHERE username='$my->username' AND readstate=0";
    					$database->setQuery&#40; $query_pms_count &#41;;
    					$total_pms = $database->loadResult&#40;&#41;;
    		
    					$query_pms_link = "SELECT id FROM #__menu WHERE published>=0 AND link LIKE '%com_".$pmsnameprefix."pms%'";
    					$database->setQuery&#40; $query_pms_link &#41;;
    					$pms_link_id = $database->loadResult&#40;&#41;;
    					$pms_link = "index.php?option=com_".$pmsnameprefix."pms&amp;page=index".&#40;$pms_link_id ? "&amp;Itemid=".$pms_link_id &#58; ""&#41;;
    					break;
    				case 2&#58;
    					$pmsnameprefix = "my";
    					$query_pms_count = "SELECT count&#40;id&#41; FROM #__".$pmsnameprefix."pms WHERE username='$my->username' AND readstate=0";
    					$database->setQuery&#40; $query_pms_count &#41;;
    					$total_pms = $database->loadResult&#40;&#41;;
    		
    					$query_pms_link = "SELECT id FROM #__menu WHERE published>=0 AND link LIKE '%com_".$pmsnameprefix."pms%'";
    					$database->setQuery&#40; $query_pms_link &#41;;
    					$pms_link_id = $database->loadResult&#40;&#41;;
    					$pms_link = "index.php?option=com_".$pmsnameprefix."pms&amp;task=inbox".&#40;$pms_link_id ? "&amp;Itemid=".$pms_link_id &#58; ""&#41;;
    					break;
    				case 3&#58;
    					$query_pms_count="SELECT count&#40;id&#41; FROM #__uddeim WHERE toread<1 AND toid=".$my->id;
    					$database->setQuery&#40;$query_pms_count&#41;;
    					$total_pms = $database->loadResult&#40;&#41;;	
    
    					$query_pms_link = "SELECT id FROM #__menu WHERE published>=0 AND link LIKE '%com_uddeim%'";
    					$database->setQuery&#40; $query_pms_link &#41;;
    					$pms_link_id = $database->loadResult&#40;&#41;;
    					$pms_link = "index.php?option=com_uddeim&amp;task=inbox".&#40;$pms_link_id ? "&amp;Itemid=".$pms_link_id &#58; ""&#41;;
    					break;
    				case 4&#58;		// PMS Enhanced by Stefan&#58;
    					$pmsnameprefix = "";
    					$query_pms_count = "SELECT count&#40;id&#41; FROM #__".$pmsnameprefix."pms WHERE username='$my->username' AND readstate=0 AND inbox=1";
    					$database->setQuery&#40; $query_pms_count &#41;;
    					$total_pms = $database->loadResult&#40;&#41;;
    		
    					$query_pms_link = "SELECT id FROM #__menu WHERE published>=0 AND link LIKE '%com_".$pmsnameprefix."pms%'";
    					$database->setQuery&#40; $query_pms_link &#41;;
    					$pms_link_id = $database->loadResult&#40;&#41;;
    					$pms_link = "index.php?option=com_".$pmsnameprefix."pms&amp;page=inbox".&#40;$pms_link_id ? "&amp;Itemid=".$pms_link_id &#58; ""&#41;;
    					break;
    				case 5&#58;
    					$pmsnameprefix = "my";
    					$query_pms_count = "SELECT count&#40;id&#41; FROM #__".$pmsnameprefix."pms WHERE userid='$my->id' AND readstate=0";
    					$database->setQuery&#40; $query_pms_count &#41;;
    					$total_pms = $database->loadResult&#40;&#41;;
    		
    					$query_pms_link = "SELECT id FROM #__menu WHERE published>=0 AND link LIKE '%com_".$pmsnameprefix."pms%'";
    					$database->setQuery&#40; $query_pms_link &#41;;
    					$pms_link_id = $database->loadResult&#40;&#41;;
    					$pms_link = "index.php?option=com_".$pmsnameprefix."pms&amp;task=inbox".&#40;$pms_link_id ? "&amp;Itemid=".$pms_link_id &#58; ""&#41;;
    					break;
    				case 6&#58;		// PMS Enhanced 2.x by Stefan&#58;
    					$pmsnameprefix = "";
    					$query_pms_count = "SELECT count&#40;id&#41; FROM #__".$pmsnameprefix."pms WHERE recip_id=$my->id AND readstate%2=0 AND inbox=1";
    					$database->setQuery&#40; $query_pms_count &#41;;
    					$total_pms = $database->loadResult&#40;&#41;;
    		
    					$query_pms_link = "SELECT id FROM #__menu WHERE published>=0 AND link LIKE '%com_".$pmsnameprefix."pms%'";
    					$database->setQuery&#40; $query_pms_link &#41;;
    					$pms_link_id = $database->loadResult&#40;&#41;;
    					$pms_link = "index.php?option=com_".$pmsnameprefix."pms&amp;page=inbox".&#40;$pms_link_id ? "&amp;Itemid=".$pms_link_id &#58; ""&#41;;
    					break;
    				case 7&#58;
    					$pmsnameprefix="missus";
                        $query_pms_count = "SELECT COUNT&#40;*&#41; FROM #__missus AS m JOIN #__missus_receipt AS r WHERE m.id=r.id AND r.receptorid='$my->id' AND r.rptr_rstate=0 AND r.rptr_tstate=0 AND r.rptr_dstate=0 AND m.is_draft=0";
                        $database->setQuery&#40; $query_pms_count &#41;;
                        $total_pms = $database->loadResult&#40;&#41;;
                        
                        $query_pms_link = "SELECT id FROM #__menu WHERE published>=0 AND link LIKE '%com_".$pmsnameprefix."%'";
                        $database->setQuery&#40; $query_pms_link &#41;;
                        $pms_link_id = $database->loadResult&#40;&#41;;
                        $pms_link = "index.php?option=com_".$pmsnameprefix."&amp;func=showinbox".&#40;$pms_link_id ? "&amp;Itemid=".$pms_link_id &#58; ""&#41;;
                        break;
                    case 8&#58;
                    	$pmsnameprefix="jim";
                    	$query_pms_count = "SELECT COUNT&#40;id&#41; FROM #__jim WHERE username='$my->username' AND readstate=0";
                        $database->setQuery&#40; $query_pms_count &#41;;
                        $total_pms = intval&#40;$database->loadResult&#40;&#41;&#41;;
    
    					$query_pms_link = "SELECT id FROM #__menu WHERE published>=0 AND link LIKE '%com_".$pmsnameprefix."%'";
    					$database->setQuery&#40; $query_pms_link &#41;;
    					$pms_link_id = $database->loadResult&#40;&#41;;
    					$pms_link = "index.php?option=com_".$pmsnameprefix.&#40;$pms_link_id ? "&amp;Itemid=".$pms_link_id &#58; ""&#41;;
    					break;
    				/* Test-code for SMF PMS integration&#58; to be validated with SMF team before integration !
    				case xxx&#58;
    					global $user_info;
    					$total_pms = $user_info&#91;'unread_messages'&#93;;
    					$pms_link = ???
    				*/
    				default&#58;
    					break;
    			&#125;
    
    			$pmsMsg = "";
    			if &#40;&#40;$total_pms&#41; > 0 &#41; &#123;
    				$pmsMsg .= '<a href="'.sefRelToAbs&#40;"$pms_link"&#41;.'" class="mod_login'.$class_sfx.'" id="mod_login_pmsimg'.$class_sfx.'">';
    				$pmsMsg .= '[img]'.$urlImgPath.'mail.gif[/img]</a>
    '."\n";
    				$pmsMsg .= '<a href="'.sefRelToAbs&#40;"$pms_link"&#41;.'" class="mod_login'.$class_sfx.'" id="mod_login_pmsa'.$class_sfx.'">';
    				$pmsMsg .= '<span id="mod_login_messagestext'.$class_sfx.'">'._UE_PM_MESSAGES_HAVE." ".$total_pms."".&#40;$total_pms == 1 ? _UE_PM_NEW_MESSAGE &#58; _UE_PM_NEW_MESSAGES&#41;."</span></a>\n";
    			&#125; else &#123;
    				if&#40;$show_pms >= 2 &#41; &#123;
    					$pmsMsg .= '<a href="'.sefRelToAbs&#40;"$pms_link"&#41;.'" class="mod_login'.$class_sfx.'" id="mod_login_no_pms'.$class_sfx.'">';
    					$pmsMsg .= '<span id="mod_login_nomessagestext'.$class_sfx.'">'._UE_PM_NO_MESSAGES."</span></a>\n";
    				&#125;
    			&#125;
    			if &#40;$pmsMsg&#41; &#123;
    				if &#40; !$horizontal &#41; echo $preDiv.' margin-top&#58;0.7em;" id="mod_login_pms'.$class_sfx.'">';
    				echo $pmsMsg;
    				if &#40; !$horizontal &#41; echo $postDiv;
    			&#125;
    		&#125;
    	&#125;
    
    	if&#40;$showPendingConnections&#41; &#123;
    		include_once&#40; $absolute_path."/administrator/components/com_comprofiler/ue_config.php" &#41;;
    		if&#40;isset&#40;$ueConfig&#91;'allowConnections'&#93;&#41; && $ueConfig&#91;'allowConnections'&#93;&#41; &#123;
    			$query = "SELECT count&#40;*&#41; FROM #__comprofiler_members WHERE pending=1 AND memberid=". $my->id;
    			if&#40;!$database->setQuery&#40;$query&#41;&#41; print $database->getErrorMsg&#40;&#41;;
    			$totalpendingconnections = $database->loadResult&#40;&#41;;
    			if&#40;$totalpendingconnections > 0&#41; &#123;
    				if &#40; !$horizontal &#41; echo '<div style="margin&#58;0.7em 0px 0px 0px; align&#58;center; text-align&#58;center;" id="mod_login_connections'.$class_sfx.'">';
    				echo "<span id='mod_login_pendingConn".$class_sfx."'>";
    				echo "<a href='".sefRelToAbs&#40;"index.php?option=com_comprofiler&amp;task=manageConnections".$andItemid&#41;."' class='mod_login".$class_sfx."' id='mod_login_connectimg".$class_sfx."'>";
    				echo '[img]'.$urlImgPath.'users.gif[/img]';
    				echo "</a> ";
    				echo "<a href='".sefRelToAbs&#40;"index.php?option=com_comprofiler&amp;task=manageConnections".$andItemid&#41;."' class='mod_login".$class_sfx."' id='mod_login_connect".$class_sfx."'>";
    				echo _UE_PM_MESSAGES_HAVE." ".$totalpendingconnections.""._UE_CONNECTIONREQUIREACTION."</a></span>";
    				if &#40; !$horizontal &#41; echo "</div>";
    			&#125;
    		&#125;
    	&#125;
    
    	if &#40;!$horizontal&#41; &#123;
    		if &#40;&#40;!$avatarDisplayed&#41; or &#40;$avatar_position!="default"&#41; or &#40;$pms&#41;&#41; $topMargin = "1.4em";
    		else $topMargin = "2px";
    		echo '<div style="text-align&#58;center; margin&#58;auto; margin&#58; '.$topMargin.' 0px 2px 0px;">';
    	&#125;
    	echo '<input type="submit" name="Submit" class="button'.$class_sfx.'" value="'._BUTTON_LOGOUT."\" />";
    	echo "\n".'<input type="hidden" name="op2" value="logout" />'."\n";
    	echo '<input type="hidden" name="lang" value="'.$mosConfig_lang.'" />'."\n";
    	echo '<input type="hidden" name="return" value="'.$logout.'" />'."\n";
    	echo '<input type="hidden" name="message" value="'.$message_logout.'" />'."\n";
    	if &#40; is_callable&#40;"josSpoofValue"&#41;&#41; &#123;
    		$validate = josSpoofValue&#40;&#41;;
    		echo "<input type=\"hidden\" name=\"" .  $validate . "\" value=\"1\" />\n";
    	&#125;
    	if &#40; !$horizontal &#41; echo "</div>";
    	echo "</form></div>";
    
    &#125; else &#123;	// Login Form &#58;
    	// redirect to site url &#40;so cookies are recognized correctly after login&#41;&#58;
    	if &#40;strncasecmp&#40;$mosConfig_live_site, "http&#58;//www.", 11&#41;==0 && strncasecmp&#40;$mosConfig_live_site, "http&#58;//", 7&#41;==0
    		&& strncasecmp&#40; substr&#40;$mosConfig_live_site, 11&#41;, substr&#40;$login, 7&#41;, $len_live_site - 11 &#41; == 0 &#41; &#123;
    			$login = "http&#58;//www." . substr&#40;$login, 7&#41;;
    	&#125; elseif &#40;strncasecmp&#40;$mosConfig_live_site, "https&#58;//www.", 12&#41;==0 && strncasecmp&#40;$mosConfig_live_site, "https&#58;//", 8&#41;==0
    		&& strncasecmp&#40; substr&#40;$mosConfig_live_site, 12&#41;, substr&#40;$login, 8&#41;, $len_live_site - 12 &#41; == 0 &#41; &#123;
    			$login = "https&#58;//www." . substr&#40;$login, 8&#41;;
    	&#125; elseif &#40;strncasecmp&#40;$mosConfig_live_site, "http&#58;//", 7&#41;==0 && strncasecmp&#40;$mosConfig_live_site, "http&#58;//www.", 11&#41;==0
    		&& strncasecmp&#40; substr&#40;$mosConfig_live_site, 7&#41;, substr&#40;$login, 11&#41;, $len_live_site - 7 &#41; == 0 &#41; &#123;
    			$login = "http&#58;//" . substr&#40;$login, 11&#41;;
    	&#125; elseif &#40;strncasecmp&#40;$mosConfig_live_site, "https&#58;//", 8&#41;==0 && strncasecmp&#40;$mosConfig_live_site, "https&#58;//www.", 12&#41;==0
    		&& strncasecmp&#40; substr&#40;$mosConfig_live_site, 8&#41;, substr&#40;$login, 12&#41;, $len_live_site - 8 &#41; == 0 &#41; &#123;
    			$login = "https&#58;//" . substr&#40;$login, 12&#41;;
    	&#125;
    
    	if &#40;strncmp&#40;$login, $mosConfig_live_site, $len_live_site&#41; || strncmp&#40;$login, "index.php", 9&#41;&#41; &#123;
    		$login = sefRelToAbs&#40; $login &#41;;
    	&#125;
    	if &#40;!&#40;strncmp&#40;$login, "http&#58;", 5&#41;==0&#41; && !&#40;strncmp&#40;$login, "https&#58;", 6&#41;==0&#41;&#41; $login = $mosConfig_live_site . "/" . $login;
    
    	$loginPost = sefRelToAbs&#40;"index.php?option=com_comprofiler&amp;task=login"&#41;;
    	if &#40;$https_post and &#40;substr&#40;$_SERVER&#91;"SCRIPT_URI"&#93;,0,6&#41;!="https&#58;"&#41;&#41; &#123;
    		if &#40;substr&#40;$loginPost, 0, 5&#41; != "http&#58;"&#41; $loginPost = $mosConfig_live_site."/".$loginPost;
    		$loginPost = str_replace&#40;"http&#58;//","https&#58;//",$loginPost&#41;;
    	&#125;
    	switch &#40; cbLoginCheckJversion&#40;&#41; &#41; &#123;
    	 	case -1&#58;
    		// Mambo 4.6.x&#58;
    			if &#40;!defined&#40;'_USERNAME'&#41;&#41; &#123;
    				$strings = array&#40;	'_USERNAME'			=> 'Username',
    									'_PASSWORD' 		=> 'Password',
    									'_REMEMBER_ME'		=> 'Remember me',
    									'_BUTTON_LOGIN'		=> 'Login',
    									'_LOST_PASSWORD'	=> 'Password Reminder',
    									'_NO_ACCOUNT'		=> 'No account yet?',
    									'_CREATE_ACCOUNT'	=> 'Create one' &#41;;
    				foreach &#40; $strings as $key => $value &#41; &#123;
    					define&#40; $key, T_&#40; $value &#41;&#41;;
    				&#125;
    			&#125;
    			break;
    	 	case 1&#58;
    		// Joomla 1.5+
    			if &#40;!defined&#40;'_USERNAME'&#41;&#41; &#123;
    				$lang =& JFactory&#58;&#58;getLanguage&#40;&#41;;
    				$lang->load&#40;"mod_login"&#41;;
    				$strings = array&#40;	'_USERNAME'			=> 'Username',
    									'_PASSWORD' 		=> 'Password',
    									'_REMEMBER_ME'		=> 'Remember me',
    									'_BUTTON_LOGIN'		=> 'BUTTON_LOGIN',
    									'_LOST_PASSWORD'	=> 'Lost Password?',
    									'_NO_ACCOUNT'		=> 'No account yet?',
    									'_CREATE_ACCOUNT'	=> 'Register' &#41;;
    				foreach &#40; $strings as $key => $value &#41; &#123;
    					define&#40; $key, JText&#58;&#58;_&#40; $value &#41;&#41;;
    				&#125;
    			&#125;
    			break;
    	 	default&#58;
    	 		break;
    	&#125;
    
    	echo '<form action="'.$loginPost.'" method="post" id="mod_loginform'.$class_sfx.'" ';
    /*
    	if &#40;$compact&#41; &#123;
    		echo "onsubmit=\""
    			. "return &#40; &#40; this.elements&#91;'mod_login_username" . $class_sfx . "'&#93;.value != '"._USERNAME."'&#41;"
    			. "&& &#40; this.elements&#91;'mod_login_password" . $class_sfx . "'&#93;.value != 'pasw'&#41; &#41;"
    			."\" ";
    	&#125;
    */
    	echo 'style="margin&#58;0px;">'."\n";
    	echo $pretext."\n";
    	if &#40;!$horizontal&#41; echo '<table width="100%" border="0" cellspacing="0" cellpadding="0" class="mod_login'.$class_sfx.'">'."\n"
    						."<tr><td>";
    
    	$txtusername = '<label for="mod_login_username'.$class_sfx.'">'._USERNAME."</label>";
    	$txtpassword = '<label for="mod_login_password'.$class_sfx.'">'._PASSWORD."</label>";
    	
    	if &#40;!$compact&#41;	 echo '<span id="mod_login_usernametext'.$class_sfx.'">'.$txtusername.'</span>';
    	if &#40;$horizontal&#41; echo "\n"; elseif &#40;!$compact&#41; echo "
    \n";
    	echo '<input type="text" name="username" id="mod_login_username'.$class_sfx.'" class="inputbox'.$class_sfx.'" size="'.$name_lenght.'"';
    	if &#40;$compact&#41;	 echo " alt=\""._USERNAME."\" value=\""._USERNAME."\" onfocus=\"if &#40;this.value=='"._USERNAME."'&#41; this.value=''\" onblur=\"if&#40;this.value==''&#41; &#123; this.value='"._USERNAME."'; return false; &#125;\"";
     	echo ' />';
    	if &#40;$horizontal&#41; echo "\n"; elseif &#40;!$compact&#41; echo "
    \n";
    	if &#40;!$compact&#41;	 echo '<span id="mod_login_passwordtext'.$class_sfx.'">'.$txtpassword.'</span>';
    	if &#40;$horizontal&#41; echo ""; else echo "
    ";
    	echo '<input type="password" name="passwd" id="mod_login_password'.$class_sfx.'" class="inputbox'.$class_sfx.'" size="'.$pass_lenght.'"';
    	if &#40;$compact&#41;	 echo " alt=\""._PASSWORD."\" value=\"pasw\" onfocus=\"if &#40;this.value=='pasw'&#41; this.value=''\" onblur=\"if&#40;this.value==''&#41; &#123; this.value='pasw'; return false; &#125;\"";
     	echo ' />';
    	if &#40;$horizontal&#41; echo "\n"; else echo "
    \n";
    
    	echo '<input type="hidden" name="op2" value="login" />'."\n";
    	echo '<input type="hidden" name="lang" value="'.$mosConfig_lang.'" />'."\n";
    	echo '<input type="hidden" name="force_session" value="1" />'."\n";		// makes sure to create joomla 1.0.11+12 session/bugfix
    	echo '<input type="hidden" name="return" value="'.$login.'" />'."\n";
    	echo '<input type="hidden" name="message" value="'.$message_login.'" />'."\n";
    	if &#40; is_callable&#40;"josSpoofValue"&#41;&#41; &#123;
    		$validate = josSpoofValue&#40;&#41;;
    		echo "<input type=\"hidden\" name=\"" .  $validate . "\" value=\"1\" />\n";
    	&#125;
    
    	switch &#40;$remember_enabled&#41; &#123;
    		case 1&#58;
    			echo '<input type="checkbox" name="remember" id="mod_login_remember'.$class_sfx.'" class="inputbox'.$class_sfx.'" value="yes" /> '
    				.'<span id="mod_login_remembermetext'.$class_sfx.'"><label for="mod_login_remember'.$class_sfx.'">'._REMEMBER_ME."</label></span>";
    			if &#40;$horizontal&#41; echo "\n"; else echo "
    \n";
    		break;
    		case 2&#58;
    			echo '<input type="hidden" name="remember" value="yes" />';
    		break;
    		case 3&#58;
    			echo '<input type="checkbox" name="remember" id="mod_login_remember'.$class_sfx.'" class="inputbox'.$class_sfx.'" value="yes" checked="checked" /> '
    				.'<span id="mod_login_remembermetext'.$class_sfx.'"><label for="mod_login_remember'.$class_sfx.'">'._REMEMBER_ME."</label></span>";
    			if &#40;$horizontal&#41; echo "\n"; else echo "
    \n";
    		break;
    		default&#58;
    		break;
    	&#125;
    	echo '<input type="submit" name="Submit" class="button'.$class_sfx.'" value="'._BUTTON_LOGIN.'" />';
    	if &#40;$horizontal&#41; echo "\n"; else echo "</td></tr>\n<tr><td>";
    	
    	$loginPost = sefRelToAbs&#40;"index.php?option=com_comprofiler&amp;task=lostPassword"&#41;;
    	if &#40;$https_post and &#40;substr&#40;$_SERVER&#91;"SCRIPT_URI"&#93;,0,6&#41;!="https&#58;"&#41;&#41; &#123;
    		if &#40;substr&#40;$loginPost, 0, 5&#41; != "http&#58;"&#41; $loginPost = $mosConfig_live_site."/".$loginPost;
    		$loginPost = str_replace&#40;"http&#58;//","https&#58;//",$loginPost&#41;;
    	&#125;
    	if &#40;$show_lostpass&#41; &#123;
    		echo '<a href="'.$loginPost.'" class="mod_login'.$class_sfx.'">';
    		if &#40;$compact&#41; echo _UE_FORGOT_PASSWORD;	
    		else echo _LOST_PASSWORD;
    		echo '</a>';
    		if &#40;$horizontal&#41; &#123;
    			if &#40;$compact&#41; echo "|"; 
    			else echo "\n"; 
    		&#125; else echo "</td></tr>\n";
    	&#125;
    	if &#40; ! $registration_enabled &#41; &#123;
    		include_once&#40; $absolute_path."/administrator/components/com_comprofiler/ue_config.php" &#41;;
    		if &#40; isset&#40;$ueConfig&#91;'reg_admin_allowcbregistration'&#93;&#41; && $ueConfig&#91;'reg_admin_allowcbregistration'&#93; == '1' &#41; &#123;
    			$registration_enabled = true;
    		&#125;
    	&#125;
    	if &#40;$registration_enabled && $show_newaccount&#41; &#123;
    		if &#40;$horizontal&#41; echo '<span id="mod_login_noaccount'.$class_sfx.'">'; else echo "<tr><td>";
    		if &#40;!$compact&#41;	 echo _NO_ACCOUNT." ";
    		$loginPost = sefRelToAbs&#40;"index.php?option=com_comprofiler&amp;task=registers"&#41;;
    		if &#40;$https_post and &#40;substr&#40;$_SERVER&#91;"SCRIPT_URI"&#93;,0,6&#41;!="https&#58;"&#41;&#41; &#123;
    			if &#40;substr&#40;$loginPost, 0, 5&#41; != "http&#58;"&#41; $loginPost = $mosConfig_live_site."/".$loginPost;
    			$loginPost = str_replace&#40;"http&#58;//","https&#58;//",$loginPost&#41;;
    		&#125;
    		echo '<a href="'.$loginPost.'" class="mod_login'.$class_sfx.'">';
    		if &#40;$compact&#41; echo _UE_REGISTER;
    		else echo _CREATE_ACCOUNT;
    		echo '</a>';
    		if &#40;$horizontal&#41; echo "</span>\n"; else echo "</td></tr>\n";
    	&#125;
    	if &#40;!$horizontal&#41; echo "</table>";
    	if &#40;$posttext&#41; echo $posttext."\n";
    	echo "</form>";
    &#125;
    ?>
    Kann mir wer sagen woran das liegt??

    lg und thx dexter
    Achtung: Dies ist ein alter Thread im HTML und Webmaster Forum
    Diese Diskussion ist älter als 90 Tage. Die darin enthaltenen Informationen sind möglicherweise nicht mehr aktuell. Erstelle bitte zu deiner Frage ein neues Thema im Forum !!!!!

  2. #2
    Kaiserliche Hoheit Avatar von No0ob
    Registriert seit
    02.01.2006
    Ort
    Nähe Frankfurt
    Beiträge
    1.500
    Danke
    0
    Bekam 0 mal "Danke" in 0 Postings

    Standard

    Ein Link zu deiner Seite wäre hilfreicher, da es nicht an php liegt, aber an html

  3. #3
    HTML Newbie
    Themenstarter

    Registriert seit
    31.05.2007
    Beiträge
    2
    Danke
    0
    Bekam 0 mal "Danke" in 0 Postings

    Standard

    Aber das HTML wird ja als ECHO in der php datei ausgeführt oder nicht?

    hier der link: www.aichkatzerl.at/index.php

    Danke schonmal und: Die Site ist halt im aufbau noch...

    Zum einloggen:

    Username: test
    Passwort: testpass

    DANKEEE!!

Ähnliche Themen

  1. Darstellungsfehler mit Mozilla Firefox
    Von Pacome im Forum HTML & CSS Forum
    Antworten: 9
    Letzter Beitrag: 03.02.2008, 00:33
  2. darstellungsfehler von tabelle
    Von im Forum HTML & CSS Forum
    Antworten: 1
    Letzter Beitrag: 26.10.2006, 18:04
  3. </textarea> verursacht Darstellungsfehler
    Von PHPler im Forum PHP Forum - Apache - CGI - Perl - JavaScript und Co.
    Antworten: 4
    Letzter Beitrag: 01.10.2006, 22:03
  4. Galerie darstellungsfehler
    Von drOps im Forum HTML & CSS Forum
    Antworten: 5
    Letzter Beitrag: 24.05.2006, 16:45

Stichworte

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •