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

Przycisk 'Pobierz' a otwieranie '_blank' (w nowej karcie)


KabukiYo

Rekomendowane odpowiedzi

Potrzebuję małej modyfikacji (a właściwie naprowadzenia mnie gdzie tego szukać...)

Mianowicie, chcę by po naciśnięciu przycisku 'pobierz' w ip.downloads przycisk otwierał się w nowej karcie - poprawiłem to dla wrzucanych linków (opcja 'file link submissions') jednak nie wiem gdzie szukać standardowego przekierowania jak jest tylko 1 dostępny link który przenosi użytkownika dalej do hostingu, który przetrzymuje plik.

 

Mam nadzieję, że zrozumiecie o co mi chodzi...urodziny wczoraj miałem i jakoś tak ciężko klawiarutę widzę.

Odnośnik do komentarza
Udostępnij na innych stronach

Moje filedisplay;

{parse js_module="rating"}
{parse template="include_lightbox" group="global" params=""}
{parse template="include_highlighter" group="global" params="1"}
<div class='ipsBox clear'>
	<div class='<if test="fileUnapprovedClass:|:!$file['file_open']">moderated<else />ipsBox_container</if> ipsPad'>
		<div class='ipsLayout ipsLayout_withright ipsLayout_bigright clearfix'>
			<div class='ipsLayout_right'>
				<h3 class='bar'>{$this->lang->words['submitter']}</h3>
				<div class='ipsPad clearfix ipsSideBlock' id='submitter_info'>
					{parse template="userSmallPhoto" group="global" params="$file"}
					
					<span class='ipsType_subtitle ipsPad'>
						<if test="guestsubmitter:|:$file['file_submitter'] == 0 OR !$file['members_display_name']">{$this->lang->words['global_guestname']}<else />{parse template="userHoverCard" group="global" params="$file"}</if>
						<if test="canchangeauthor:|:$this->registry->getClass('idmFunctions')->checkPerms( $file, 'modchangeauthor' )">
							<a href='#' id='change_author' rel='{$file['file_id']}' title='{$this->lang->words['change_author']}'><img src='{$this->settings['img_url']}/display_name.png' alt='' title='{$this->lang->words['change_author']}' /></a>
						</if>
					</span>
					<if test="filesearchauthor:|:$file['file_submitter']">
						<br /><a class='ipsPad' href='{parse url="app=core&module=search&do=user_activity&search_app=downloads&mid={$file['file_submitter']}" base="public"}'>{$this->lang->words['viewmember_other_files']}</a>
					</if>
				</div>
				<if test="canchangeauthorform:|:$this->registry->getClass('idmFunctions')->checkPerms( $file, 'modchangeauthor' )">
					<div class='pad clearfix' id='change_author_box' style='display: none'>
						<form style='display:inline;' action='{parse url="app=downloads&module=moderate&section=moderate&do=updateAuthor&id={$file['file_id']}&secure_key={$this->member->form_hash}" base="public"}' method='post'>
							<label for="change_author_input"><strong>{$this->lang->words['change_author_name']}</strong></label>
							<input type='text' class='input_text' name='change_author_input' id='change_author_input' />
							<input type='submit' class='input_submit' value='{$this->lang->words['change_author_submit']}' />
						</form>
					</div>
				</if>
				<h3 class='bar'>
					<if test="filehastopic:|:$category['coptions']['opt_topice'] && $file['file_topicid']">
						<span class='right'>
							<a href='{parse url="showtopic={$file['file_topicid']}" base="public" template="showtopic" seotitle="{$file['file_topicseoname']}"}' data-tooltip="{$this->lang->words['file_support_tooltip']}">
								<span class='ipsBadge ipsBadge_grey'>{$this->lang->words['file_support']}</span>
							</a>
						</span>
					</if>
					{$this->lang->words['file_information']}
				</h3>
				<div class='ipsPad ipsSideBlock'>
					<ul class='ipsList_data'>
						<li>
							<strong class='title'>{$this->lang->words['submittedon']}:</strong>
							{parse date="$file['file_submitted']" format="short"}
						</li>
						<li>
							<strong class='title'>{$this->lang->words['lastupdated']}:</strong>
							{parse date="$file['file_updated']" format="short"}
						</li>
						
						
						<li>
							<strong class='title'>{$this->lang->words['fileviews']}:</strong>
							{$file['file_views']}
						</li>
						<if test="hasNexus:|:IPSLib::appIsInstalled('nexus') && $this->settings['idm_nexus_on'] && $file['file_cost']">
							<li>
								<strong class='title'>{$this->lang->words['filepurchases']}:</strong>
								{$file['file_purchases']}
							</li>
						</if>
						<li>
							<strong class='title'>{$this->lang->words['filedownloads']}:</strong>
							<if test="fileviewdownloads:|:$this->settings['idm_logalldownloads'] AND ( $this->memberData['idm_view_downloads'] OR ( $this->settings['submitter_view_dl'] && $this->memberData['member_id'] == $file['file_submitter'] ) )"><a href='{parse url="app=downloads&module=display&section=downloaders&id={$file['file_id']}" base="public"}' class='view-downloads' id='view-downloads-{$file['file_id']}'></if>
								{parse format_number="$file['file_downloads']"}
							<if test="fileviewdownloadsclose:|:$this->settings['idm_logalldownloads'] AND ( $this->memberData['idm_view_downloads'] OR ( $this->settings['submitter_view_dl'] && $this->memberData['member_id'] == $file['file_submitter'] ) )"></a></if>
						</li>
						<if test="fileshowapprover:|:$this->settings['idm_show_approver'] OR $permissions['can_approve']">
							<if test="filehasapprover:|:$file['file_approver']">
								<li>
									<strong class='title'>{$this->lang->words['file_approvedby']}:</strong>
									{IPSMember::makeProfileLink($file['approver_name'], $file['file_approver'], $file['file_approver_seoname'])}
								</li>
								<li>
									<strong class='title'>{$this->lang->words['file_approvedon']}:</strong>
									{parse date="$file['file_approvedon']" format="long"}
								</li>
							</if>
						</if>
						<if test="filecustomfields:|:count($file['custom_fields'])">
							<foreach loop="cfields:$file['custom_fields'] as $data">
								<li>
									<strong class='title'>{$data['title']}:</strong>
									{$data['data']}
								</li>
							</foreach>
						</if>
					</ul>
				</div>
				<if test="fileversions:|:$this->settings['idm_versioning'] && is_array($old_versions) && count($old_versions)">
					<h3 class='bar'>{$this->lang->words['previous_versions']}</h3>
					<div class='ipsPad ipsSideBlock'>
						<ul class='ipsList_data' id='versions'>
							<foreach loop="file_rows:$old_versions as $data">
								<li<if test="fileversionhidden:|:$data['b_hidden']"> class='moderated'</if>>
								<span class='desc right'>{parse date="$data['b_updated']" format="date"}</span>
								<span class='version_control right'>
									<a href='{parse url="app=downloads&module=display&section=download&do=version_download&id={$data['b_id']}" base="public"}' title='{$this->lang->words['bversion_alt_download']}'><img src='{$this->settings['img_url']}/downloads/idm_down.png' alt='{$this->lang->words['bversion_alt_download']}' /></a>
									<if test="versionscandelete:|:$permissions['can_delete']==1">
										<a href='{parse url="app=downloads&module=moderate&section=moderate&do=versions&id={$data['b_fileid']}&process=restore&rid={$data['b_id']}&secure_key={$this->member->form_hash}" base="public"}' title='{$this->lang->words['bversion_alt_restore']}'><img src='{$this->settings['img_url']}/downloads/idm_refresh.png' alt='{$this->lang->words['bversion_alt_restore']}' /></a>
										<a href='{parse url="app=downloads&module=moderate&section=moderate&do=versions&id={$data['b_fileid']}&process=delete&rid={$data['b_id']}&secure_key={$this->member->form_hash}" base="public"}' title='{$this->lang->words['bversion_alt_delete']}' onclick='return confirm("{$this->lang->words['revision_delete_confirm']}");'><img src='{$this->settings['img_url']}/downloads/idm_delete.png' alt='{$this->lang->words['bversion_alt_delete']}' /></a>
									</if>
									<if test="versionscanapp:|:$permissions['can_approve']">
										<if test="versionshidden:|:$data['b_hidden']==1">
											<a href='{parse url="app=downloads&module=moderate&section=moderate&do=versions&id={$data['b_fileid']}&process=unhide&rid={$data['b_id']}&secure_key={$this->member->form_hash}" base="public"}' title='{$this->lang->words['bversion_alt_unhide']}'><img src='{$this->settings['img_url']}/downloads/idm_unhide.png' alt='{$this->lang->words['bversion_alt_unhide']}' /></a>
										<else />
											<a href='{parse url="app=downloads&module=moderate&section=moderate&do=versions&id={$data['b_fileid']}&process=hide&rid={$data['b_id']}&secure_key={$this->member->form_hash}" base="public"}' title='{$this->lang->words['bversion_alt_hide']}'><img src='{$this->settings['img_url']}/downloads/idm_hide.png' alt='{$this->lang->words['bversion_alt_hide']}' /></a>
										</if>
									</if>
								</span>
								<strong>{$data['b_filetitle']} <if test="previousversion:|:$data['b_version']">{$data['b_version']}</if></strong>							
							</foreach>
						</ul>
					</div>
				</if>
			</div>
		
			<div class='ipsLayout_content'>
				<if test="fileisbroke:|:$file['file_broken']">
					<php>
						$brokenInfo = explode( "|", $file['file_broken_info'] );
						$date       = "{parse date="$brokenInfo[2]" format="short"}";
					</php>
					<div class='message error'>
						<h3>{$this->lang->words['file_broken_text']}: {$file['file_broken_reason']}</h3>
						<if test="filetestbroken:|:$permissions['can_broken']">
							{parse expression="sprintf( $this->lang->words['file_broken_info'], IPSMember::makeProfileLink( $brokenInfo[1], $brokenInfo[0] ), $date )"}
						</if>
					</div>
					<br class='clear' />
				</if>
				
				<h1 class='ipsType_pagetitle'>
					<if test="paidFile:| $file['file_cost'] or $file['file_nexus'] ) AND $this->memberData['member_id'] != $file['file_submitter']">
						<if test="hasPurchases:|:count($purchases)">
							<a href='#' id='purchasesmenu' class='download_button rounded right ipbmenu'>{$this->lang->words['manage_file_purchases']}</a>
							<ul class="ipbmenu_content" id='purchasesmenu_menucontent' style='display: none'>
								<li><a href='{parse url="app=downloads&module=display&section=download&do=buy&id={$file['file_id']}" base="public" template="idmbuy" seotitle="{$file['file_name_furl']}"}'>{$this->lang->words['dpage_buy_another']}</a></li>
								<foreach loop="$purchases as $purchase">
									<if test="isDownloadsPurchase:|:$purchase['ps_app'] == 'downloads'">
										<if test="isActive:|:$purchase['ps_active']">
											<if test="$this->hasActivePurchase=true"></if>
											<if test="$purchase['ps_renewals']">
												<li><a data-confirmaction="{parse expression="sprintf( $this->lang->words['cancel_confirm'], $this->lang->getDate( $purchase['ps_expire'], 'SHORT' ) )"}" href='{parse url="app=downloads&module=display&section=purchases&do=cancel&secure_key={$this->member->form_hash}&id={$purchase['ps_id']}" base="public""}'>{$this->lang->words['file_cancelpurchase']} {parse expression="sprintf($this->lang->words['file_purchid'], $this->lang->getDate( $purchase['ps_expire'], 'SHORT' ))"}</a></li>
											</if>
										</if>
										<if test="isCancelled:|:$renewal_terms and !$purchase['ps_renewals'] and $purchase['ps_can_reactivate']">
											<li><a data-confirmaction="{$this->lang->words['reactivate_confirm']}" href='{parse url="app=downloads&module=display&section=purchases&do=reactivate&secure_key={$this->member->form_hash}&id={$purchase['ps_id']}" base="public""}'>{$this->lang->words['file_reactivate']} {parse expression="sprintf($this->lang->words['file_purchid'], $this->lang->getDate( $purchase['ps_expire'], 'SHORT' ))"}</a></li>
										<else />
											<if test="showRenew:|:!$purchase['ps_active']">
												<li><a href='{parse url="app=nexus&module=clients&section=purchases&do=renew&secure_key={$this->member->form_hash}&id={$purchase['ps_id']}" base="public""}'>{$this->lang->words['file_renew']} {parse expression="sprintf($this->lang->words['file_purchid'], $this->lang->getDate( $purchase['ps_expire'], 'SHORT' ))"}</a></li>
											</if>
										</if>
									<else />
										<if test="isNexusActive:|:$purchase['ps_active']">
											<if test="$this->hasActivePurchase=true"></if>
										</if>
										<li><a href='{parse url="app=nexus&module=clients&section=purchases&do=view&id={$purchase['ps_id']}" base="public""}'>{parse expression="sprintf( $this->lang->words['file_nexus_manage'], $purchase['ps_name'] )"}<if test="nexusexpirep:|:$purchase['ps_expire']"> {parse expression="sprintf($this->lang->words['file_purchid'], $this->lang->getDate( $purchase['ps_expire'], 'SHORT' ))"}</if></a></li>
									</if>
								</foreach>
							</ul>
						<else />
							<a href='{parse url="app=downloads&module=display&section=download&do=buy&id={$file['file_id']}" base="public" template="idmbuy" seotitle="{$file['file_name_furl']}"}' class='download_button rounded right'>
								{$this->lang->words['dpage_buy']}
							</a>
						</if>
					</if>
					<if test="canDownload:|:!($file['file_cost'] or $file['file_nexus']) OR $this->hasActivePurchase OR $this->memberData['idm_bypass_paid'] OR $this->memberData['member_id'] == $file['file_submitter']">
						<if test="dynUrls:|:$this->settings['idm_dynamic_urls']">
							<a href='{parse url="app=downloads&module=display&section=download&do=confirm_download&hash={$hash}" base="public" template="idmdd" seotitle="{$file['file_name_furl']}"}' class='download_button rounded right'>
						<else />
							<a href='{parse url="app=downloads&module=display&section=download&do=confirm_download&id={$file['file_id']}" base="public" template="idmdownload" seotitle="{$file['file_name_furl']}"}' class='download_button rounded right'>
						</if>
							{$this->lang->words['dpage_button_short']}
						</a>
					</if>
					{$file['file_name']} <if test="hasversion:|:$file['file_version']">{$file['file_version']}</if>
				</h1>
				<if test="canRate:|:$this->registry->getClass('categories')->cat_lookup[ $category['cid'] ]['perm_6']">
					<foreach loop="filerateCycle:array(1,2,3,4,5) as $_rating">
						<if test="memberRateStart:|:$this->memberData['member_id'] && ( !$this->settings['must_dl_rate'] OR $downloaded ) && in_array( $category['cid'], $this->registry->getClass('categories')->member_access['rate'] )">
							<a href='{parse url="app=downloads&module=ajax&section=rate&id={$file['file_id']}&rating={$_rating}&secure_key={$this->member->form_hash}" base="public"}' id='file_rate_{$_rating}' title='{$this->lang->words['rate_file_'.$_rating]}'>
						</if>
						<if test="filerate:|:$file['file_rating'] >= $_rating">
							{parse replacement="rate_on"}
						<else />
							{parse replacement="rate_off"}
						</if>
						<if test="memberRateEnd:|:$this->memberData['member_id'] && ( !$this->settings['must_dl_rate'] OR $downloaded ) && in_array( $category['cid'], $this->registry->getClass('categories')->member_access['rate'] )">
							</a>
						</if>
					</foreach>
					<span id='rating_text' class='desc'>
						<if test="filevotes:|:$file['_rate_cnt'] > 0">{$file['_rate_cnt']} {$this->lang->words['votes_cnt']}</if>
						<if test="fileyourvote:|:$file['_rating_value']">({$this->lang->words['you_voted']} {$file['_rating_value']})</if>
					</span>
					<if test="checkGuestRate:|:$this->memberData['member_id']">
						<if test="mustHaveDownloaded:|:!$this->settings['must_dl_rate'] OR $downloaded">
							<script type='text/javascript'>
								rating = new ipb.rating( 'file_rate_', { 
													url:		ipb.vars['base_url'] + 'app=downloads&module=ajax&section=rate&id={$file['file_id']}&xml=1&md5check=' + ipb.vars['secure_hash'],
													cur_rating:	{$file['file_rating']},
													rated:		<if test="filejsvotes:|:$file['_rating_value']">1<else />0</if>,
													allow_rate:	<if test="filejsallowvote:|:in_array( $category['cid'], $this->registry->getClass('categories')->member_access['rate'] )">1<else />0</if>
												  } );
							</script>
						</if>
					</if>
				</if>
				<if test="fileCost:|:$file['file_cost']">
						<br />
						<span class='purchase_price right'>
							{parse expression="ipsRegistry::getClass('class_localization')->formatMoney( $file['file_cost'], false )"}
							<if test="renewals:|:$renewal_terms">
								 ( {$renewal_terms} )
							</if>
						</span>
						<br />
					</if>
				<if test="hasTags:|:is_array($file['tags'])">
					<br />
					{$file['tags']['formatted']['parsedWithoutComma']}
				</if>
				<br class='clear' />
				{$like}
				<br class='clear' />
				
				<br /><br />
				<if test="allowss:|:$category['coptions']['opt_allowss']">
					<if test="hasssssss:|:count($screenshots)">
						<foreach loop="p_eachscreenshot:$screenshots as $screenshot">
							<if test="p_findprimary:|:$screenshot['record_default']">
								<if test="p_ssupload:|:$screenshot['record_type'] == 'ssupload'">
									<a class='screenshot primary' href='{$this->registry->idmFunctions->returnScreenshotUrl( $screenshot, false )}' <if test="p_fileinfolightbox:|:$this->settings['idm_ss_popup'] == 'l'">rel='lightbox[screenshot]'<else />rel='external'</if>><img src='{$this->registry->idmFunctions->returnScreenshotUrl( $screenshot )}' alt='{$this->lang->words['filescreenshot']}' /></a>
								<else />
									<if test="p_getremotesize:|:$ssurl = @getimagesize($screenshot['record_location']) AND $category['coptions']['opt_thumb_x'] AND $ssurl[0] > $category['coptions']['opt_thumb_x']">
										<a class='screenshot primary' href='{$screenshot['record_location']}' <if test="p_fileinfolightbox2:|:$this->settings['idm_ss_popup'] == 'l'">rel='lightbox[screenshot]'<else />rel='external'</if>><img src='{$screenshot['record_location']}' width='{$category['coptions']['opt_thumb_x']}' alt='{$this->lang->words['filescreenshot']}' /></a>
									<else />
										<if test="p_getremotesize2:|:$ssurl = @getimagesize($screenshot['record_location']) AND !$category['coptions']['opt_thumb_x'] AND $ssurl[0] > $this->settings['idm_default_dimensions']">
											<a class='screenshot primary' href='{$screenshot['record_location']}' <if test="p_fileinfolightbox3:|:$this->settings['idm_ss_popup'] == 'l'">rel='lightbox[screenshot]'<else />rel='external'</if>><img src='{$screenshot['record_location']}' width='{$this->settings['idm_default_dimensions']}' alt='{$this->lang->words['filescreenshot']}' /></a>
										<else />
											<a class='screenshot primary' href='{$screenshot['record_location']}' <if test="p_fileinfolightbox4:|:$this->settings['idm_ss_popup'] == 'l'">rel='lightbox[screenshot]'<else />rel='external'</if>><img src='{$screenshot['record_location']}' alt='{$this->lang->words['filescreenshot']}' /></a>
										</if>
									</if>
								</if>
							</if>
						</foreach>
					</if>
				</if>
								
				<div class='ipsType_textblock ipsPad_half description_content'>
					{$file['file_desc']}
				</div>
				<br />
				<if test="haschangelog:|:$file['file_changelog']">
					<php>$this->_whatsnew = explode( "\n", $file['file_changelog'] );</php>
					<if test="haschanges:|:is_array($this->_whatsnew) AND count($this->_whatsnew)">
						<if test="changelogversion:|:$file['file_version']"><h3>{$this->lang->words['whats_new_in_v']} {$file['file_version']} (<a href='{parse url="app=downloads&module=display&section=changelog&file={$file['file_id']}" base="public"}' id='full-changelog'>{$this->lang->words['see_full_changelog']}</a>)</h3><else /><h3>{$this->lang->words['changelog']} (<a href='{parse url="app=downloads&module=display&section=changelog&file={$file['file_id']}" base="public"}' id='full-changelog'>{$this->lang->words['see_full_changelog']}</a>)</h3></if>
						<div class='description'>
							<ul class='bullets'>
								<foreach loop="changes:$this->_whatsnew as $_new">
									<if test="hasChangelog2:|:$_new"><li>{$_new}</li></if>
								</foreach>
							</ul>
						</div>
						<br />
					</if>
				</if>
				<br />
				
				<if test="allowsss:|:$category['coptions']['opt_allowss']">
					<if test="hassss:|:count($screenshots) > 1">
						<h3>{$this->lang->words['filescreenshot']}</h3>
						<div id='file_screenshots'>
							<foreach loop="eachscreenshot:$screenshots as $screenshot">
								<if test="notPrimary:|:!$screenshot['record_default']">
									<if test="ssupload:|:$screenshot['record_type'] == 'ssupload'">
										<a class='screenshot' href='{$this->registry->idmFunctions->returnScreenshotUrl( $screenshot, false )}' <if test="fileinfolightbox:|:$this->settings['idm_ss_popup'] == 'l'">rel='lightbox[screenshot]'<else />rel='external'</if>><img src='{$this->registry->idmFunctions->returnScreenshotUrl( $screenshot )}' alt='{$this->lang->words['filescreenshot']}' /></a>
									<else />
										<if test="getremotesize:|:$ssurl = @getimagesize($screenshot['record_location']) AND $category['coptions']['opt_thumb_x'] AND $ssurl[0] > $category['coptions']['opt_thumb_x']">
											<a class='screenshot' href='{$screenshot['record_location']}' <if test="fileinfolightbox2:|:$this->settings['idm_ss_popup'] == 'l'">rel='lightbox[screenshot]'<else />rel='external'</if>><img src='{$screenshot['record_location']}' width='{$category['coptions']['opt_thumb_x']}' alt='{$this->lang->words['filescreenshot']}' /></a>
										<else />
											<if test="getremotesize2:|:$ssurl = @getimagesize($screenshot['record_location']) AND !$category['coptions']['opt_thumb_x'] AND $ssurl[0] > $this->settings['idm_default_dimensions']">
												<a class='screenshot' href='{$screenshot['record_location']}' <if test="fileinfolightbox3:|:$this->settings['idm_ss_popup'] == 'l'">rel='lightbox[screenshot]'<else />rel='external'</if>><img src='{$screenshot['record_location']}' width='{$this->settings['idm_default_dimensions']}' alt='{$this->lang->words['filescreenshot']}' /></a>
											<else />
												<a class='screenshot' href='{$screenshot['record_location']}' <if test="fileinfolightbox4:|:$this->settings['idm_ss_popup'] == 'l'">rel='lightbox[screenshot]'<else />rel='external'</if>><img src='{$screenshot['record_location']}' alt='{$this->lang->words['filescreenshot']}' /></a>
											</if>
										</if>
									</if>
								</if>
							</foreach>
						</div>
					</if>
				</if>
				
				<br />
				
				<if test="hasmemberid:|:$this->memberData['member_id']">
					<br /><br />
					<ul class='post_controls'>
						<if test="filenotbroken:|:!$file['file_broken'] AND $this->memberData['idm_report_files']">
							<li class='report'><a href='{parse url="app=downloads&module=moderate&section=moderate&do=broken&id={$file['file_id']}&secure_key={$this->member->form_hash}" base="public"}'>{$this->lang->words['reportbroken']}</a></li>
						</if>
						<if test="filerestorelink:|:$permissions['can_delete'] AND $this->settings['idm_versioning'] AND $file['_last_revision']">
							<li class='post_del'><a href='{parse url="app=downloads&module=moderate&section=moderate&do=versions&id={$file['file_id']}&process=restore&rid={$file['_last_revision']['b_id']}&secure_key={$this->member->form_hash}" base="public"}'>{$this->lang->words['restorefile']}</a></li>
						</if>
	
						<if test="fileeditlink:|:$permissions['can_edit']">
							<if test="canversion:|:$this->settings['idm_versioning'] AND $this->settings['idm_filestorage'] == 'disk'">
								<li class='post_edit'><a href='#' onclick='return ipb.downloads.editLink( "{parse url="app=downloads&module=post&section=submit&do=edit_main&id={$file['file_id']}" base="public"}" );'>{$this->lang->words['newversion']}</a></li>
							</if>
							
							<if test="norevision:|:$this->memberData['idm_bypass_revision'] OR !$this->settings['idm_versioning'] OR $this->settings['idm_filestorage'] != 'disk'">
								<li class='post_edit'><a href='#' onclick='return ipb.downloads.editLink( "{parse url="app=downloads&module=post&section=submit&do=edit_main&id={$file['file_id']}&bypass_revision=1" base="public"}" );'>{$this->lang->words['editfile']}</a></li>
							</if>
						</if>
	
						<if test="filedeletelink:|:$permissions['can_delete']">
							<li class='post_del'><a class='delete_link' href='{parse url="app=downloads&module=moderate&section=moderate&do=delete&return=1&id={$file['file_id']}&secure_key={$this->member->form_hash}" base="public"}'>{$this->lang->words['deletefile']}</a></li>
						</if>
	
						<if test="fileapprovelink:|:$permissions['can_approve'] AND $file['file_open']">
							<li class='post_toggle'><a href='{parse url="app=downloads&module=moderate&section=moderate&do=togglefile&return=1&id={$file['file_id']}&secure_key={$this->member->form_hash}" base="public"}'>{$this->lang->words['unnapprovefile']}</a></li>
						<else />
							<if test="fileunapprovelink:|:$permissions['can_approve'] AND !$file['file_open']">
								<li class='post_toggle'><a href='{parse url="app=downloads&module=moderate&section=moderate&do=togglefile&return=1&id={$file['file_id']}&secure_key={$this->member->form_hash}" base="public"}'>{$this->lang->words['approvefile']}</a></li>
							</if>
						</if>
						
						<if test="filepinlink:|:$permissions['can_pin'] AND $file['file_pinned']">
							<li class='post_toggle'><a href='{parse url="app=downloads&module=moderate&section=moderate&do=unpin&id={$file['file_id']}&secure_key={$this->member->form_hash}" base="public"}'>{$this->lang->words['unpin_file']}</a></li>
						<else />
							<if test="fileunpinlink:|:$permissions['can_pin'] AND !$file['file_pinned']">
								<li class='post_toggle'><a href='{parse url="app=downloads&module=moderate&section=moderate&do=pin&id={$file['file_id']}&secure_key={$this->member->form_hash}" base="public"}'>{$this->lang->words['pin_file']}</a></li>
							</if>
						</if>
	
						<if test="filefeature:|:$permissions['can_feature'] AND $this->settings['idm_use_portal']">
							<if test="fileisfeatured:|:$file['file_featured']">
								<li class='post_toggle'><a href='{parse url="app=downloads&module=moderate&section=moderate&do=setFeatured&id={$file['file_id']}&secure_key={$this->member->form_hash}" base="public"}'>{$this->lang->words['unset_featured_file']}</a></li>
							<else />
								<li class='post_toggle'><a href='{parse url="app=downloads&module=moderate&section=moderate&do=setFeatured&id={$file['file_id']}&secure_key={$this->member->form_hash}" base="public"}'>{$this->lang->words['set_featured_file']}</a></li>
							</if>
						</if>
	
						<if test="fileunbreak:|:$permissions['can_broken'] AND $file['file_broken']">
							<li class='report'><a href='{parse url="app=downloads&module=moderate&section=moderate&do=notbroken&id={$file['file_id']}&secure_key={$this->member->form_hash}" base="public"}'>{$this->lang->words['unreportbroken']}</a></li>
						</if>
					</ul>
				</if>
			</div>
		</div>
	</div>
</div>
<if test="hasShareLinks:|:$this->settings['sl_enable']">
	<div class='ipsPad'>
		{IPSLib::shareLinks( $file['file_name'] )}
	</div>
</if>
<if test="hasComments:|:$category['coptions']['opt_comments']">
	<br />
	{$comments['html']}
</if>
<if test="hasSimilar:|:count($similar['results'])">
	<br />
	<div class='ipsBox'>
		<div class='ipsBox_container ipsPad download_pane'>
			<h2 class='ipsType_subtitle'>{$this->lang->words['similarfiles_header']}</h2>
			<br />
			<div class='pane_wrap four_column' id='similar-files_wrap'>
				<ul id='similar-files'>
					<foreach loop="similarFiles:$similar['results'] as $data">
						{parse template="portalPaneItem" group="downloads" params="$data, 'new', $similar['records']"}
					</foreach>
				</ul>
			</div>
		</div>
	</div>
</if>
{parse template="include_highlighter" group="global" params=""}

Jednak po mojej modyfikacji co prawda otwiera linki '_blank' jednak otwiera w nowym oknie również te znane z 'file link submissions' (ten wybór, co tam jest) a tego chciałbym uniknąć.

Edytowane przez DawPi
Dodano spoiler.
Odnośnik do komentarza
Udostępnij na innych stronach

  • Manager

No to kombinuj. Sprawdź jak takie pliki są rozpoznawane, dodaj warunek na to i jazda. Samo się nie zrobi. Chciałeś wskazania miejsca to Ci pokazałem.

intermedia - profesjonalne rozwiązania Invision Power Board

---

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

Odnośnik do komentarza
Udostępnij na innych stronach

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
  • 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ę.