Thread:Project:Support desk/Drop down user menu/reply (4)

Yes here http://en.random-wikisaur.tk/wiki/Main_Page wikieditor doesent show on any page search bar wont work.

it has to do with these codes

class MetrolookTemplate extends BaseTemplate { /* Members */

/**	 * @var Skin Cached skin object */	var $skin;

/* Functions */

/**	 * Outputs the entire contents of the (X)HTML page */	public function execute { global $wgLang, $wgVectorUseIconWatch;

$this->skin = $this->data['skin'];

// Build additional attributes for navigation urls //$nav = $this->skin->buildNavigationUrls; $nav = $this->data['content_navigation'];

if ( $wgVectorUseIconWatch ) { $mode = $this->getSkin->getUser->isWatched( $this->getSkin->getRelevantTitle ) ? 'unwatch' : 'watch';

if ( isset( $nav['actions'][$mode] ) ) { $nav['views'][$mode] = $nav['actions'][$mode]; $nav['views'][$mode]['class'] = rtrim( 'icon ' . $nav['views'][$mode]['class'], ' ' ); $nav['views'][$mode]['primary'] = true; unset( $nav['actions'][$mode] ); }		}

$xmlID = ''; foreach ( $nav as $section => $links ) { foreach ( $links as $key => $link ) { if ( $section == 'views' && !( isset( $link['primary'] ) && $link['primary'] ) ) { $link['class'] = rtrim( 'collapsible ' . $link['class'], ' ' ); }

$xmlID = isset( $link['id'] ) ? $link['id'] : 'ca-'. $xmlID; $nav[$section][$key]['attributes'] = ' id="' . Sanitizer::escapeId( $xmlID ) . '"'; if ( $link['class'] ) { $nav[$section][$key]['attributes'] .= ' class="' . htmlspecialchars( $link['class'] ) . '"'; unset( $nav[$section][$key]['class'] ); }				if ( isset( $link['tooltiponly'] ) && $link['tooltiponly'] ) { $nav[$section][$key]['key'] = Linker::tooltip( $xmlID ); } else { $nav[$section][$key]['key'] = Xml::expandAttributes( Linker::tooltipAndAccesskeyAttribs( $xmlID ) ); }			}		}		$this->data['namespace_urls'] = $nav['namespaces']; $this->data['view_urls'] = $nav['views']; $this->data['action_urls'] = $nav['actions']; $this->data['variant_urls'] = $nav['variants'];

// Reverse horizontally rendered navigation elements if ( $wgLang->isRTL ) { $this->data['view_urls'] = array_reverse( $this->data['view_urls'] ); $this->data['namespace_urls'] = array_reverse( $this->data['namespace_urls'] ); $this->data['personal_urls'] = array_reverse( $this->data['personal_urls'] ); }		// Output HTML Page $this->html( 'headelement' ); ?>       body { height:100%; }       html { height:100%; }		html, body { margin: 0px 0px 0px 0px ; padding: 0px 0px 0px 0px ; height:100%; }		#top-tile-bar { background:transparent ; left: 0px ; height: 200px; position: fixed ; z-index:100 ; } .tilebar { position: fixed; left: 0px; top: 0px; right: 0px; bottom: 0px; align:right; color:#fff;background:#1D1D1D;width:100%;height:400px; display:block; z-index:102; } .tile:hover { outline: 3px #4A4A4A solid; } .onhoverbg:hover { background: #9F6F40; } .topleft { display: inline; position: relative; }   .topright .hover { display: none; position: absolute; left:0; z-index: 2000; height:200px; }

var openDiv; function toggleDiv(divID) { $("#" + divID).fadeToggle(150, function {       openDiv = $(this).is(':visible') ? divID : null;    }); } $(document).click(function(e) {   if (!$(e.target).closest('#'+openDiv).length) {        toggleDiv(openDiv);    } }); $(function {  $('.usermenu > div').toggleClass('no-js js');  $('.usermenu .js div').hide;  $('.usermenu .js').click(function(e) { $('.usermenu .js div').fadeToggle(150); $('.usermenu').toggleClass('active'); e.stopPropagation; }); $(document).click(function { if ($('.usermenu .js div').is(':visible')) { $('.usermenu .js div', this).fadeOut(150); $('.usermenu').removeClass('active'); } }); });

$(function {  $('.actionmenu > div').toggleClass('no-js js');  $('.actionmenu .js div').hide;  $('.actionmenu .js').click(function(e) { $('.actionmenu .js div').fadeToggle(150); $('.clicker').toggleClass('active'); e.stopPropagation; }); $(document).click(function { if ($('.actionmenu .js div').is(':visible')) { $('.actionmenu .js div', this).fadeOut(150); $('.clicker').removeClass('active'); } }); });      html( 'userlangattributes' ) ?>> data['newtalk'] ): ?> html( 'newtalk' ) ?> 

data['sitenotice'] ): ?> html( 'sitenotice' ) ?>  html( 'title' ) ?> html( 'userlangattributes' ) ?>>html( 'subtitle' ) ?> data['undelete'] ): ?> <?php $this->html( 'undelete' ) ?> <?php endif; ?> <?php if ( $this->data['showjumplinks'] ): ?> <?php $this->msg( 'jumpto' ) ?> <?php $this->msg( 'jumptonavigation' ) ?></a>, <?php $this->msg( 'jumptosearch' ) ?></a> <?php endif; ?> <?php $this->html( 'bodycontent' ) ?> <?php if ( $this->data['printfooter'] ): ?> <?php $this->html( 'printfooter' ); ?> <?php endif; ?> <?php if ( $this->data['catlinks'] ): ?> <?php $this->html( 'catlinks' ); ?> <?php endif; ?>

<div id="footer"<?php $this->html( 'userlangattributes' ) ?>> <?php foreach( $this->getFooterLinks as $category => $links ): ?> <ul id="footer-<?php echo $category ?>"> <?php foreach( $links as $link ): ?> <li id="footer-<?php echo $category ?>-<?php echo $link ?>"><?php $this->html( $link ) ?></li> <?php endforeach; ?> </ul> <?php endforeach; ?> <?php $footericons = $this->getFooterIcons("icononly"); if ( count( $footericons ) > 0 ): ?> <ul id="footer-icons" class="noprint"> <?php			foreach ( $footericons as $blockName => $footerIcons ): ?> <li id="footer-<?php echo htmlspecialchars( $blockName ); ?>ico"> <?php				foreach ( $footerIcons as $icon ): ?> <?php echo $this->skin->makeFooterIcon( $icon ); ?> <?php				endforeach; ?> </li> <?php			endforeach; ?> </ul> <?php endif; ?> <?php if ( $this->data['dataAfterContent'] ): ?> <?php $this->html( 'dataAfterContent' ); ?> <?php endif; ?> <?php $this->html( 'debughtml' ); ?> <div class="vectorMenu usermenu" style="float:right;background-image:none;vertical-align:middle;height:40px;padding-left:10px;padding-right:10px;position:absolute;top:0px;right:10px;width:auto;text-align:right;">  <?php if ($_SERVER["REMOTE_ADDR"] == htmlspecialchars($this->getSkin->getUser->getName)) { echo "Guest"; } else { echo htmlspecialchars( $this->getSkin->getUser->getName ); } ?> <img style="position:relative;top:-1px;" src="<?php $default = 'http://www.pidgi.net/wiki/skins/metrolook/images/user-icon.png'; $grav_url = 'http://www.gravatar.com/avatar/' . md5( strtolower( trim( $this->getSkin->getUser->getEmail ) ) ) . '?d=' . urlencode ( $default ) . '&s=' . 20; echo $grav_url; ?>" /> </a> <?php $this->renderNavigation( 'PERSONAL' ); ?> <img src="http://images.pidgi.net/pidgiwiki.png" /></a> <img src="http://images.pidgi.net/line.png" style="float:left;" /> <img src="http://images.pidgi.net/downarrow.png" style="cursor:pointer;" onclick="toggleDiv('bartile');"> <div style="align:left;margin-left:auto;margin-right:auto;display:none;height:200px;" class="tilebar" id="bartile"> <img src="http://images.pidgi.net/pidgiwikitiletop.png" /></a>  <img src="http://images.pidgi.net/pidgipresstiletop.png" /></a>   <img src="http://images.pidgi.net/jcctiletop.png" /></a>   <img src="http://images.pidgi.net/pwntiletop.png" /></a>

<div class="onhoverbg" style="padding-left:0.8em;padding-right:0.8em;float:left;height:40px;font-size:10pt;"><img src="http://images.pidgi.net/uploadlogo.png" /> Upload </a><?php $this->renderNavigation( array( 'NAMESPACES', 'VARIANTS', 'VIEWS', 'ACTIONS' ) ); ?> <?php $this->renderNavigation( array( 'SEARCH' ) ); ?> <?php $this->renderNavigation( array( 'SEARCH' ) ); ?> <br style="clear:both;line-height:0%;" /> <div style="width:142px;margin-left:10px;margin-top:4px;margin-bottom:4px;padding:8px;text-align:center;color:#fff;font-size:80%;" class="hoverbox">Send in a request </a> <?php $this->renderPortals( $this->data['sidebar'] ); ?>

Featured media <ul style="padding-right:20px;"> msg('sidebar-feature-url') ?>"> <img width="100%" title="<?php $this->msg('sidebar-feature-alttext') ?>" alt="<?php $this->msg('sidebar-feature-alttext') ?>" src="<?php $this->msg('sidebar-feature-imgsrc') ?>" /></a> </ul>

<?php }

and

case 'ACTIONS': ?>					<div id="p-cactions" role="navigation" class="vectorMenu actionmenu<?php					if ( count( $this->data['action_urls'] ) == 0 ) {						echo ' emptyPortlet';					}					?>" aria-labelledby="p-cactions-label"> <h5 id="p-cactions-label"> <?php $this->msg( 'actions' ) ?> </a>

<ul<?php $this->html( 'userlangattributes' ) ?>> <?php foreach ( $this->data['action_urls'] as $link ) { ?>									<li<?php echo $link['attributes'] ?>>										" <?php echo $link['key'] ?>><?php echo htmlspecialchars( $link['text'] ) ?></a> </li> <?php }								?>							</ul> <?php break; case 'PERSONAL':

the second one is because I added something to make it drop down on action because it woulden work without the code because javascript is broken because of the following codes on top.