Skocz do zawartości
"Idzie nowe..." - o zmianach i nie tylko ×
Przeniesienie zakupów z IPS Marketplace / Moving bought items from IPS Marketplace ×

Rekomendowane odpowiedzi

Opublikowano

Witam,

Mam pytanie nie chciał bym aby w skinie mobilnym wyświetlał się Shoutbox, usunąłem z

globalTamplate

- skina mobilnego:

<!-- // Uncomment to show Shoutbox Tab
		<if test="IPSLib::appIsInstalled( 'shoutbox' )">
			{parse variable="shoutboxActive" default="" oncondition="IPS_APP_COMPONENT == 'shoutbox'" value="active"}
			<li class='{parse variable="shoutboxActive"}'><a href="{parse url="app=shoutbox" seotitle="false" base="public"}">Shoutbox</a></li>
		</if>
		// -->

Nie jestem pewny czy to to, lecz Shoutbox wyświetla się dalej.

Opublikowano

<php>$this->memberData['members_editor_choice'] = 'std';</php>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset={$this->settings['gb_char_set']}" />
<if test="strpos( strtolower( $this->member->user_agent ), 'android' ) != false">
	<meta name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>
<else />
	<meta name="viewport" content="initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>
</if>
<link rel="apple-touch-icon-precomposed" href="{$this->settings['img_url']}/mobile/icon.png" />
<title>{$header_items['title']}<if test="pagenumberintitle:|:$header_items['page']"> {$this->lang->words['page_title_page']} {$header_items['page']}</if></title>
<link rel="shortcut icon" href="{$this->settings['board_url']}/favicon.ico" />
<link rel="image_src" href='{$this->settings['meta_imagesrc']}' />
<!-- // Uncomment to make Web App
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<link rel="apple-touch-startup-image" href="{$this->settings['img_url']}/mobile/splash.png" />
// -->
<script type='text/javascript'>
	jsDebug = {parse expression="intval($this->settings['_jsDebug'])"};
	USE_RTE = 0;
	inACP   = false;
	DISABLE_AJAX = parseInt({$this->settings['disable_text_ajax']});
</script>
{parse template="includeCSS" group="global" params="$css"}
{parse template="includeMeta" group="global" params="$metaTags"}
{parse template="includeJS" group="global" params="$jsModules"}
{parse template="includeFeeds" group="global" params="$documentHeadItems"}
{parse template="includeVars" group="global" params=""}
<link rel="stylesheet" media="only screen and (-webkit-min-device-pixel-ratio: 2)" type="text/css" href="{$this->settings['public_dir']}style_css/{$this->registry->output->skin['_csscacheid']}/iphone4.css" />
<script type='text/javascript'>Loader.boot();</script>
<if test="strpos( strtolower( $this->member->user_agent ), 'webos' ) != true">
	<script type="text/javascript" src="{$this->settings['img_url']}/mobile/mobile.js"></script>
</if>
</head>
<body>
<a name="top"></a>
<if test="accessreports:|$this->memberData['g_is_supmod'] == 1 OR ( isset( $this->memberData['access_report_center'] ) AND $this->memberData['access_report_center'] ) )">
<ul id='admin-bar'>
	<if test="showacplink:|:$this->memberData['g_access_cp'] == 1 AND $this->settings['security_remove_acp_link'] == 0">
		<li class="admin-link"><a href="{$this->settings['_admin_link']}" target="_blank">{$this->lang->words['admin_cp']}</a></li>
	</if>
	<if test="rclink:|:$this->memberData['access_report_center']">
		<li <if test="numreports:|:$this->memberData['_cache']['report_num'] > 0">class='active'</if>><a href="{parse url="app=core&module=reports&do=index" base="public"}">{$this->memberData['_cache']['report_num']} {$this->lang->words['report_member_bar']}</a></li>
	</if>
</ul>
</if>

<div id="header">
<div id="header-top">
	<if test="brandingBar:|:method_exists( $this->registry->output->getTemplate( $this->registry->getCurrentApplication() . '_global' ), 'overwriteHeader' )">
		{parse template="overwriteHeader" group="{current_app}_global" params=""}
	<else />
		{parse template="defaultHeader" group="global" params=""}
	</if>
	<span id="header-links">
		<if test="memberbox:|:$this->memberData['member_id']">
			<a class="button ipbmenu" href="{parse url="app=core&module=usercp" base="public"}" id="user_link">{$this->memberData['members_display_name']}</a>
			<if test="newmessages:|:$this->memberData['msg_count_new'] != 0"><a class="button" href='{parse url="app=members&module=messaging" base="public"}' id='new_msg_count'><var>{$this->memberData['msg_count_new']}</var></a></if>
		<else />
			<a class="button" href="{parse url="app=core&module=global&section=login" base="public"}"><!--{$this->lang->words['sign_in']}--> Sign In</a>
			<a class="button" href="{parse url="app=core&module=global&section=register" base="public"}"><!--{$this->lang->words['register']}--> Register</a>
		</if>
	</span>
	<div class="clear"></div>
</div>
<div id="nav">
	<ul>
		<if test="IPSLib::appIsInstalled( 'portal' )">
			{parse variable="portalActive" default="" oncondition="IPS_APP_COMPONENT == 'portal'" value="active"}
			<li class='{parse variable="portalActive"}'><a href='{parse url="app=portal" seotitle="false" base="public"}'>Portal</a></li>
		<else />
			<if test="showhomeurl:|:$this->settings['home_url']">
				<li><a href='{$this->settings['home_url']}'>{$this->settings['home_name']}</a></li>
			</if>
		</if>
		{parse variable="forumActive" default="" oncondition="IPS_APP_COMPONENT == 'forums'" value="active"}
		<li class="{parse variable="forumActive"}"><a href="{parse url="app=forums" seotitle="false" base="public"}">Forums</a></li>
		<if test="IPSLib::appIsInstalled( 'blog' )">
			{parse variable="blogActive" default="" oncondition="IPS_APP_COMPONENT == 'blog'" value="active"}
			<li class='{parse variable="blogActive"}'><a href="{parse url="app=blog" seotitle="false" base="public"}">Blogs</a></li>
		</if>
		<!-- // Uncomment to show Shoutbox Tab
		<if test="IPSLib::appIsInstalled( 'shoutbox' )">
			{parse variable="shoutboxActive" default="" oncondition="IPS_APP_COMPONENT == 'shoutbox'" value="active"}
			<li class='{parse variable="shoutboxActive"}'><a href="{parse url="app=shoutbox" seotitle="false" base="public"}">Shoutbox</a></li>
		</if>
		// -->
	</ul>
	<div class="clear"></div>
</div>
</div>
<if test="IPS_APP_COMPONENT == 'forums'">
<if test="quicksearchform:|:! in_array( $this->settings['search_method'], array( 'traditional', 'sphinx' ) )">
	<form action="{parse url="app=core&module=search&do=quick_search&search_filter_app[all]=1" base="public"}" method="post">
<else />
	<form action="{parse url="app=core&module=search&do=quick_search&search_filter_app[<if test="searchfilterapp:|:! empty($this->request['search_app'])">{$this->request['search_app']}<else /><if test="searchfiltercurrentapp:|:IPSSearchIndex::appIsSearchable( $this->registry->getCurrentApplication() )">{$this->registry->getCurrentApplication()}<else />forums</if></if>]=1" base="public"}" method="post">
</if>
<div class="searchbar" id="search">
	{parse template="quickSearch" group="global" params=""}
</div>
</form>
</if>
<if test="IPS_APP_COMPONENT == 'members' AND $this->request['module'] == 'messaging'">
<form action='{$this->settings['base_url']}app=members&module=messaging&section=search' method='post' id='search-box'>
<div class="searchbar" id="search">
	<div id='search_wrap'>
		<span class='choice ipbmenu clickable' id='search_options' style="width:20px;"></span>
		<input type='text' id='main_search' name='searchFor' placeholder="{$this->lang->words['search_messages']}" class='text_input' size='17' tabindex='6' style="margin-left:24px" />
	</div>
</div>
</form>
</if>
<div id="content">
<if test="authenticating:|:$this->memberData['member_group_id'] == $this->settings['auth_group']">
	<ul class="buttons">
		<li><a class="arrow" href="{parse url="app=core&module=global&section=register&do=reval" base="public"}">{$this->lang->words['resend_val']}</a></li>
	</ul>
</if>
<if test="mainpageContent:|:$html">{$html}</if>
<div class="copyright">
	<p>
		<strong>
			<a href="#top">Top</a> ·
			<a href='{parse url="{$this->settings['query_string_formatted']}&unlockUserAgent=1" base="public"}'>Desktop Version</a>
			<if test="$this->settings['gl_show'] and $this->settings['gl_title']"> · <a href='<if test="$this->settings['gl_link']">{$this->settings['gl_link']}<else />{parse url="app=forums&module=extras&section=boardrules" base="public"}</if>'><if test="$this->settings['gl_title']">{$this->settings['gl_title']}<else />{$this->lang->words['board_rules']}</if></a></if>
			<if test="$this->memberData['member_id']"> · <a onclick="return logoutConfirm();" href="{parse url="app=core&module=global&section=login&do=logout&k={$this->member->form_hash}" base="public"}">{$this->lang->words['log_out']}</a></if>
		</strong>
	</p>
	{$footer_items['copyright']}
	<p><a href="http://www.aqua-soft.org/forum/">Aqua-Soft Mobile Skin</a> by Tim Kimberl</p>
	<a name="bottom"></a>
</div>
<if test="!$this->memberData['userAgentLocked'] AND $this->memberData['userAgentBypass']">
	<if test="skinchanger:|:$this->settings['allow_skins'] AND $footer_items['skin_chooser']">
		<form action='{parse url="{$this->settings['query_string_formatted']}" base="public"}' method="post">
			<div class="box">
				<ul class="form">
					<li class="field select">
						<label class="label" for='newSkin'>{$this->lang->words['theme_prefix']}</label>
						<select name="settingNewSkin" id='newSkin'>{$footer_items['skin_chooser']}</select>
					</li>
				</ul>
			</div>
			<input type='hidden' name='k' value='{$this->member->form_hash}' />
			<div class="buttons"><input type='submit' value='Change Theme' class='input_submit' id='newSkinSubmit' /></div>
		</form>
	</if>
</if>
{$stats['task']}
</div>

<if test="memberbox:|:$this->memberData['member_id']">
<ul id='user_link_menucontent' class="ipbmenu_content">
	<li id='user_profile'><a href='{parse url="showuser={$this->memberData['member_id']}" seotitle="{$this->memberData['members_seo_name']}" template="showuser" base="public"}'>{$this->lang->words['my_profile']}</a></li>
	<li id='user_ucp'><a href="{parse url="app=core&module=usercp" base="public"}">{$this->lang->words['your_cp']}</a></li>
	<li id='user_content'><a href="{parse url="app=core&module=search&do=user_activity&mid={$this->memberData['member_id']}" base="public"}" title="{$this->lang->words['my_content_link']}">{$this->lang->words['my_content_link']}</a></li>
	<if test="messengerlink:|:$this->memberData['g_use_pm'] AND $this->memberData['members_disable_pm'] == 0">
		<li id='user_msg'><a href='{parse url="app=members&module=messaging" base="public"}'>{$this->lang->words['your_messenger']} <span id='new_message'>({$this->memberData['msg_count_new']} {$this->lang->words['msg_new']})</span></a></li>
	</if>
	<if test="bloglink:|:$this->memberData['has_blog'] AND IPSLib::appIsInstalled( 'blog' )">
		<li id='user_blog'><a href='{parse url="app=blog&module=display&section=blog&mid={$this->memberData['member_id']}" base="public"}'>{$this->lang->words['my_blog']}</a></li>
	</if>
	<li><a onclick="return logoutConfirm();" href="{parse url="app=core&module=global&section=login&do=logout&k={$this->member->form_hash}" base="public"}">{$this->lang->words['log_out']}</a></li>

</ul>
<script type='text/javascript'>
	if( $('user_link_menucontent') ){
		$('user_link_menucontent').hide();
	}
</script>
</if>

<if test="includeLightboxDoReal:|:$this->settings['do_include_lightbox_real']">{parse template="include_lightbox_real" group="global" params=""}</if>
<if test="pmbox:|:is_array( $items['pmData'] )">
<script type="text/javascript">
	var answer=confirm("{$items['pmData']['authorData']['members_display_name']} <if test="newpm:|:$items['pmData']['_type'] == 'new'">{$this->lang->words['sent_new_convo']}<else />{$this->lang->words['replied_convo']}</if>")
	if(answer) window.location="{parse url="app=members&module=messaging&section=view&do=findMessage&topicID={$items['pmData']['mt_id']}&msgID=__firstUnread__" base="public"}"
</script>
</if>
<if test="memberbox:|:$this->memberData['member_id']">
<script type="text/javascript">
	function logoutConfirm() {
		return confirm("Are you sure you want to log out?");
	}
</script>
</if>

</body>
</html>

Tak wygląda orginalny globalTamplate :

Usunąłem:

<!-- // Uncomment to show Shoutbox Tab
		<if test="IPSLib::appIsInstalled( 'shoutbox' )">
			{parse variable="shoutboxActive" default="" oncondition="IPS_APP_COMPONENT == 'shoutbox'" value="active"}
			<li class='{parse variable="shoutboxActive"}'><a href="{parse url="app=shoutbox" seotitle="false" base="public"}">Shoutbox</a></li>
		</if>
		// -->

I dalej się wyświetla.

Opublikowano

Ten kod, który usunąłeś jest od wyświetlania zakładki shoutboxa w pasku pod logo, a nie od wyświetlania całego shoutboxa.

Nasz kolega już siedział za piracką wersję IPB, Ty też możesz
† Będziemy bronić SB po kres naszych sił †
Nie ma bolca na izolca!!!
Tłumaczes Power

  • Manager
Opublikowano

Automatyczna wiadomość

Ten temat został przeniesiony z forum:

"Invision Power Board -> Invision Power Board 3.x -> Skiny - pomoc"

do:

"Invision Power Board -> Aplikacje Invision Power Services -> IP.Shoutbox"

intermedia - profesjonalne rozwiązania Invision Power Board

---

Chcesz uzyskać szybko i sprawnie pomoc? Uzupełnij wersję i adres w profilu.

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...

Powiadomienie o plikach cookie

Umieściliśmy na Twoim urządzeniu pliki cookie, aby pomóc Ci usprawnić przeglądanie strony. Możesz dostosować ustawienia plików cookie, w przeciwnym wypadku zakładamy, że wyrażasz na to zgodę.