Jump to content
WebFlake
  • 0

Remove "Free" Prefix from IP Downloads with Paid Files Enabled


Guest Duff-Man

Question

Guest Duff-Man

Hi WebFlake

 

I'm curious to know if there's a way to remove the "Free" Prefix from IP Downloads with Pad Files via IP Nexus enabled.  (The picture below is taken from the IPS Marketplace to better illustrate my point)

 

Posted Image

 

 

This is largely due to the fact that the majority of the Files made available to download on my site are Free, there are only a select few which I want to charge for and the "Free" Prefix makes the Files seems clutterred and unprofessional. It also gives one the feeling that the file labelled with a "Free" Prefix is a scaled down version, with less functionality even though this is not the case

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
Guest Duff-Man

Probably a if statement in the categoryListing template. Paste it here between spoiler and code tags.

Here Paradiizee 

{parse js_module="idmportal"}{$like}<h1 class='ipsType_pagetitle'>{$category['cname']}</h1><br /><ul class='topic_buttons'>	<if test="subcatadd:|:$permissions['canadd']">		<li><a href='{parse url="app=downloads&amp;module=post&amp;section=submit&amp;do=add_cont&amp;file_cat={$this->request['catid']}" base="public"}' title='{$this->lang->words['upload_file_alt']}' accesskey='s'>{$this->lang->words['upload_file_alt']}</a></li>	<else />		<li class='disabled'><span>{$this->lang->words['noupload_perm_alt']}</span></li>	</if></ul><br class='clear' /><div class='ipsLayout ipsLayout_withleft'>	<div class='ipsLayout_left'>		<div class='general_box'>			<php>$this->_catList = $this->registry->getClass('categories')->cat_cache[ intval($category['cid']) ];</php>			<if test="count( $this->_catList )">				<!-- If this category has subcategories -->				<h3 class='bar'>{$category['cname']}</h3>				<ul id='idm_categories'>					<foreach loop="$this->_catList as $_cid => $_cat">						<if test="$_cat['copen']"> 							<if test="in_array( $_cid, $this->registry->getClass('categories')->member_access['view']) AND in_array( $_cid, $this->registry->getClass('categories')->member_access['show'])"> 								<li>									<span class='file_count right'>{parse format_number="$_cat['cfileinfo']['total_files']"}</span>									<a href='{parse url="app=downloads&amp;showcat={$_cat['cid']}" base="public" seotitle="{$_cat['cname_furl']}" template="idmshowcat"}'>{$_cat['cname']}</a>								</li>					          </if> 					     </if> 					</foreach>				</ul>			<else />				<!-- If this category doesn't have subcats, show the parent cat -->				<php>$this->_catList2 = $this->registry->getClass('categories')->cat_cache[ $category['cparent'] ];</php>				<if test="count( $this->_catList2 )">					<if test="$category['cparent']">						<h3 class='bar'><a href='{parse url="app=downloads&amp;showcat={$category['cparent']}" base="public" seotitle="{$this->registry->getClass('categories')->cat_lookup[ $category['cparent'] ]['cname_furl']}" template="idmshowcat"}'>								{$this->registry->getClass('categories')->cat_lookup[ $category['cparent'] ]['cname']}</a></h3>					</if>					<ul id='idm_categories'>						<foreach loop="$this->_catList2 as $_cid => $_cat">							<if test="$_cat['copen']"> 								<if test="in_array( $_cid, $this->registry->getClass('categories')->member_access['view']) AND in_array( $_cid, $this->registry->getClass('categories')->member_access['show'])"> 									<li <if test="$_cid == $category['cid']">class='selected row1'</if>>										<span class='file_count right'>{parse format_number="$_cat['cfileinfo']['total_files']"}</span>										<a href='{parse url="app=downloads&amp;showcat={$_cat['cid']}" base="public" seotitle="{$_cat['cname_furl']}" template="idmshowcat"}'>{$_cat['cname']}</a>									</li>						          </if> 						     </if>						</foreach>					</ul>				</if>			</if>		</div>		<br />				<div class='general_box'>			<h3>{$this->lang->words['statistics']}</h3>			<ul class='ipsPad'>				<li><strong>{parse format_number="$category['cfileinfo']['total_files']"}</strong> {$this->lang->words['sidebar_files']}</li>				<li><strong>{parse format_number="$category['cfileinfo']['total_downloads']"}</strong> {$this->lang->words['sidebar_downloads']}</li>				<if test="subcatmod:|:$permissions['canmod']">					<li><strong>{parse format_number="$category['cfileinfo']['broken_files']"}</strong> {$this->lang->words['sidebar_broken']}</li>					<li><strong>{parse format_number="$category['cfileinfo']['pending_files']"}</strong> {$this->lang->words['sidebar_pending']}</li>				</if>			</ul>		</div>			</div>		{parse striping="blocks" classes="row1,row2"}	<div class='ipsLayout_content'>				{parse replacement="header_start"}<div class='maintitle ipsFilterbar'>			<if test="filterPaidFree:|:IPSLib::appIsInstalled('nexus') && $this->settings['idm_nexus_on']">				<a href='#filter_paid_menucontent' id='filter_paid' class='right ipsType_smaller'>					<if test="$this->request['filter_key'] == 'all' || !$this->request['filter_key']">{$this->lang->words['free_and_paid']}</if>					<if test="$this->request['filter_key'] == 'free'">{$this->lang->words['free_only']}</if>					<if test="$this->request['filter_key'] == 'paid'">{$this->lang->words['paid_only']}</if>					<img src='{$this->settings['img_url']}/useropts_arrow.png' />				</a>			</if>			<ul class='ipsList_inline'>				<li <if test="( $sort['current_key'] == 'file_updated' ) && ( strtolower( $sort['current_by'] ) == 'desc' || !$sort['current_by'] )">class='active'</if>>					<a href='{parse url="app=downloads&amp;showcat={$category['cid']}&amp;dosort=1&amp;sort_key=file_updated&amp;sort_order=desc&amp;num={$this->request['num']}&amp;filter_key={$this->request['filter_key']}" base="public" seotitle="{$category['cname_furl']}" template="idmshowcat"}'>{$this->lang->words['filter_most_recent']}</a>				</li>				<li <if test="$sort['current_key'] == 'file_downloads' && strtolower( $sort['current_by'] ) == 'desc'">class='active'</if>>					<a href='{parse url="app=downloads&amp;showcat={$category['cid']}&amp;dosort=1&amp;sort_key=file_downloads&amp;sort_order=desc&amp;num={$this->request['num']}&amp;filter_key={$this->request['filter_key']}" base="public" seotitle="{$category['cname_furl']}" template="idmshowcat"}'>{$this->lang->words['filter_most_popular']}</a>				</li>				<li <if test="$sort['current_key'] == 'file_rating' && strtolower( $sort['current_by'] ) == 'desc'">class='active'</if>>					<a href='{parse url="app=downloads&amp;showcat={$category['cid']}&amp;dosort=1&amp;sort_key=file_rating&amp;sort_order=desc&amp;num={$this->request['num']}&amp;filter_key={$this->request['filter_key']}" base="public" seotitle="{$category['cname_furl']}" template="idmshowcat"}'>{$this->lang->words['filter_highest_rated']}</a>				</li>				<if test="$category['coptions']['opt_comments']">					<li <if test="$sort['current_key'] == 'file_comments' && strtolower( $sort['current_by'] ) == 'desc'">class='active'</if>>						<a href='{parse url="app=downloads&amp;showcat={$category['cid']}&amp;dosort=1&amp;sort_key=file_comments&amp;sort_order=desc&amp;num={$this->request['num']}&amp;filter_key={$this->request['filter_key']}" base="public" seotitle="{$category['cname_furl']}" template="idmshowcat"}'>{$this->lang->words['filter_most_comments']}</a>					</li>				</if>				<if test="catsortBar:|:count($sort)">					<li <if test="strtolower( $sort['current_by'] ) != 'desc' or !in_array( strtolower( $sort['current_key'] ), array( 'file_updated', 'file_downloads', 'file_rating', 'file_comments' ) )">class='active'</if>>						<a href='#category_filter_menucontent' id='category_filter'>{$this->lang->words['cat_sort_custom']}</a>					</li>				</if>			</ul>		</div>{parse replacement="header_end"}				<if test="catsort:|:count($sort)">			<div id='category_filter_menucontent' class='ipbmenu_content ipsPad' style='display: none'>				<form id='filter_form' action="{parse url="app=downloads&amp;showcat={$category['cid']}&amp;dosort=1" base="public" seotitle="{$forum_data['name_seo']}" template="showforum"}" method="post">					<if test="filterPaidFree:|:IPSLib::appIsInstalled('nexus') && $this->settings['idm_nexus_on']">						<strong>{$this->lang->words['search_filterby']}</strong><br />						<select name='filter_key' id='filter_key' class='input_select'>							<option value='all'<if test="catkey:|:$sort['filter_key'] == 'all'"> selected='selected'</if>>{$this->lang->words['free_and_paid']}</option>							<option value='free'<if test="catkey:|:$sort['filter_key'] == 'free'"> selected='selected'</if>>{$this->lang->words['free_only']}</option>							<option value='paid'<if test="catkey:|:$sort['filter_key'] == 'paid'"> selected='selected'</if>>{$this->lang->words['paid_only']}</option>						</select>						<br /><br />					</if>										<strong>{$this->lang->words['search_sortby2']}</strong><br />					<select name='sort_key' id='sort_key' class='input_select'>						<foreach loop="sortkey:$sort['options_key'] as $k => $v">							<option value='{$k}'<if test="catkey:|:$sort['current_key'] == $k"> selected='selected'</if>>{$this->lang->words['sortby_' . $v ]}</option>						</foreach>					</select>					<br /><br />										<strong>{$this->lang->words['search_sortorder']}</strong><br />					<select name='sort_order' id='sort_order' class='input_select'>						<foreach loop="sortby:$sort['options_by'] as $k => $v">							<option value='{$v}'<if test="catby:|:$sort['current_by'] == $v"> selected='selected'</if>>{$k}</option>						</foreach>					</select>					<br /><br />										<strong>{$this->lang->words['search_limitresults']}</strong><br />					<select name='num' id='limit' class='input_select'>						<foreach loop="sortnum:$sort['options_num'] as $k => $v">							<option value='{$v}'<if test="catnum:|:$sort['current_num'] == $v"> selected='selected'</if>><if test="cathasnum:|:$v > 0">{$v}<else />{$this->lang->words['search_nolimit']}</if></option>						</foreach>					</select>					<br /><br />										<input type='submit' value="{$this->lang->words['resort_button']}" class='input_submit' />				</form>			</div>			<script type='text/javascript'>				new ipb.Menu( $('category_filter'), $('category_filter_menucontent'), { stopClose: true } );			</script>		</if>				<if test="filterPaidFree:|:IPSLib::appIsInstalled('nexus') && $this->settings['idm_nexus_on']">			<ul id='filter_paid_menucontent' class='ipbmenu_content with_checks' style='display: none'>				<li <if test="$this->request['filter_key'] == 'all' || !$this->request['filter_key']">class='selected'</if>>					<a href='{parse url="app=downloads&amp;showcat={$category['cid']}&amp;dosort=1&amp;sort_key={$this->request['sort_key']}&amp;sort_order=desc&amp;num=20&amp;filter_key=all" base="public" seotitle="{$category['cname_furl']}" template="idmshowcat"}'>{$this->lang->words['free_and_paid']}</a>				</li>				<li <if test="$this->request['filter_key'] == 'free'">class='selected'</if>>					<a href='{parse url="app=downloads&amp;showcat={$category['cid']}&amp;dosort=1&amp;sort_key={$this->request['sort_key']}&amp;sort_order=desc&amp;num=20&amp;filter_key=free" base="public" seotitle="{$category['cname_furl']}" template="idmshowcat"}'>{$this->lang->words['free_only']}</a>				</li>				<li <if test="$this->request['filter_key'] == 'paid'">class='selected'</if>>					<a href='{parse url="app=downloads&amp;showcat={$category['cid']}&amp;dosort=1&amp;sort_key={$this->request['sort_key']}&amp;sort_order=desc&amp;num=20&amp;filter_key=paid" base="public" seotitle="{$category['cname_furl']}" template="idmshowcat"}'>{$this->lang->words['paid_only']}</a>				</li>			</ul>			<script type='text/javascript'>				new ipb.Menu( $('filter_paid'), $('filter_paid_menucontent') );			</script>		</if>				<if test="catnorows:|:!count($file_rows) OR !$category['coptions']['opt_disfiles']">			<div class='no_messages<if test="!$category['coptions']['opt_disfiles']"> ipsType_sectiontitle with_files</if>'>				<if test="!$category['coptions']['opt_disfiles']">					{$this->lang->words['no_direct_files']}				<else />					{$this->lang->words['no_files_in_category']}				</if>			</div>		</if>		<if test="catrows:|:count($file_rows)">			<div id='idm_category' class='<if test="catscreenshot:|:$category['coptions']['opt_catss'] || !$category['coptions']['opt_disfiles']">with_screenshots<else />no_screenshots</if>'>				{parse striping="downloadsTable" classes="row1,row2"}				<foreach loop="file_rows:$file_rows as $data">					<div class='idm_category_row clearfix {parse striping="downloadsTable"} <if test="catfileopen:|:!$data['file_open']">moderated</if>' id='filerow_{$data['file_id']}'>						<a href='{parse url="app=downloads&amp;showfile={$data['file_id']}" base="public" template="idmshowfile" seotitle="{$data['file_name_furl']}"}' title='{$data['file_name']}'><img src='{$this->registry->idmFunctions->returnScreenshotUrl( $recordIds[ $data['file_id'] ], true, true )}' class='screenshot' alt='{$this->lang->words['catdis_ssalt']}' /></a>												<div class='file_info right'>							<if test="catapprove:|:$permissions['canapp']">								<input type='checkbox' class='input_check topic_mod right' id='file_{$data['file_id']}' />							</if>							<span class='mini_rate'>								<foreach loop="ratingLoop:array(1,2,3,4,5) as $_rating">									<if test="filerate:|:$data['file_rating'] >= $_rating">{parse replacement="rate_on"}<else />{parse replacement="rate_off"}</if>								</foreach>							</span>							<if test="$category['coptions']['opt_comments']">								<strong><a href='{parse url="app=downloads&amp;showfile={$data['file_id']}" base="public" template="idmshowfile" seotitle="{$data['file_name_furl']}"}#commentsStart' title='{$this->lang->words['view_comments']}'>{$data['file_comments']} {$this->lang->words['reviews']}</a></strong>							</if>							<br />														<if test="catpendingcomments:|:$data['file_pendcomments'] > 0 AND $permissions['cancomments']">								<a href='{parse url="app=downloads&amp;showfile={$data['file_id']}&amp;filter=que#commentsStart" base="public" template="idmshowfile" seotitle="{$data['file_name_furl']}"}' title='{$this->lang->words['view_pending_comments']}'><img src='{$this->settings['img_url']}/bullet_error.png' alt='' /></a>							</if>														<if test="showPurchaseOrDL:|:IPSLib::appIsInstalled('nexus') && $this->settings['idm_nexus_on'] && $data['file_cost']">								{parse format_number="$data['file_purchases']"} 								<if test="catpurchaseslang:|:intval($data['file_purchases']) == 1">									{$this->lang->words['purchase_singular']}								<else />									{$this->lang->words['purchase_plural']}								</if>							<else />								<if test="canviewdownloads:|:$this->settings['idm_logalldownloads'] AND $this->memberData['idm_view_downloads']">									<a href='#' class='view-downloads' id='view-downloads-{$data['file_id']}'>								</if>								{parse format_number="$data['file_downloads']"} 								<if test="catdownloadslang:|:intval($data['file_downloads']) == 1">									{$this->lang->words['download_singular']}								<else />									{$this->lang->words['download_plural']}								</if>								<if test="canviewdownloadsclose:|:$this->settings['idm_logalldownloads'] AND $this->memberData['idm_view_downloads']">									</a>								</if>							</if>							({$data['file_views']} {$this->lang->words['catinfo_totalviews']})														<br />														<span class='date'>								<if test="catfileupdated:|:$data['file_updated'] > $data['file_submitted']">									{$this->lang->words['catdis_updated']} {parse date="$data['file_updated']" format="date"}								<else />									{$this->lang->words['catdis_added']} {parse date="$data['file_submitted']" format="date"}								</if>							</span>						</div>												<if test="$data['file_pinned']">							<span class='ipsPad_half right'><span class='ipsBadge ipsBadge_purple'>{$this->lang->words['listing_pinned']}</span></span>						</if>						<if test="$data['file_featured']">							<span class='ipsPad_half right'><span class='ipsBadge ipsBadge_grey'>{$this->lang->words['listing_featured']}</span></span>						</if>						<div class='basic_info'>							<h3 class='ipsType_subtitle'>								<if test="$data['file_broken']">									<span class='ipsBadge ipsBadge_red'>{$this->lang->words['listing_broken']}</span>								</if>								<if test="hasPrefix:|:!empty($data['tags']['formatted']['prefix'])">									{$data['tags']['formatted']['prefix']}								</if>								<if test="checkForNexus:|:IPSLib::appIsInstalled('nexus') && $this->settings['idm_nexus_on'] && !$data['file_nexus']">									<span class='ipsBadge ipsBadge_green'>										<if test="!$data['file_cost']">											{$this->lang->words['free']}</span>										<else />											{parse expression="ipsRegistry::getClass('class_localization')->formatMoney( $data['file_cost'], false )"}										</if>									</span>								</if>								<a href='{parse url="app=downloads&amp;showfile={$data['file_id']}" base="public" template="idmshowfile" seotitle="{$data['file_name_furl']}"}' title='{$this->lang->words['view_file_named_title']} {$data['file_name']}'>{parse expression="IPSText::truncate( $data['file_name'], 55)"} <if test="hasversion:|:$data['file_version']"><span class='ipsType_small'>{$data['file_version']}</span></if></a>							</h3>							<if test="showingBreadcrumb:|:!$category['coptions']['opt_disfiles']">								<span class='cat_name'>									{$this->lang->words['catdis_in']} 									<php>										if( count($data['_breadcrumb']) ){											$bc = array_pop( $data['_breadcrumb'] );										}									</php>									<a href='{parse url="$bc[1]" base="public" template="idmshowcat" seotitle="$bc[2]"}'>{$bc[0]}</a>								</span>							</if>														<div class='desc lighter'>								{$this->lang->words['_by']} <if test="catusername:|:$data['member_id']">{parse template="userHoverCard" group="global" params="$data"}<else />{$this->lang->words['global_guestname']}</if>								<if test="hasTags:|:isset($data['tags']) AND $data['tags']">									&nbsp; <img src='{$this->settings['img_url']}/icon_tag.png' /> <span class='desc lighter blend_links'>{$data['tags']['formatted']['truncatedWithLinks']}</span>								</if>							</div>														<if test="hasDescription:|:$data['file_desc']">								<br /><span class='desc'>{parse expression="IPSText::truncate( strip_tags( IPSText::getTextClass('bbcode')->stripAllTags( $data['file_desc'] ), '<br />' ), 70 )"}</span>							</if>						</div>					</div>					</foreach>			</div>		</if>				<if test="catcanapprove:|:$permissions['canapp']">			<div id='category_mod' class='moderation_bar rounded with_action clear'>				<form action='{parse url="app=downloads&amp;module=moderate" base="public"}' method='post' id='modform'>				<input type='hidden' name='do' value='multimod' />				<input type='hidden' name='catid' value='{$this->request['showcat']}' />				<input type="hidden" name="secure_key" value="{$this->member->form_hash}" />				<input type="hidden" value="{$this->request['selectedfileids']}" name="selectedfileids" id="selectedfileids" />					<select name='doaction' id='doaction' class='input_select'>						<option value=''>{$this->lang->words['modact_select']}</option>						<option value='app'>{$this->lang->words['modact_approve']}</option>						<option value='unapp'>{$this->lang->words['modact_unapprove']}</option>						<option value='move'>{$this->lang->words['modact_move']}</option>						<option value='del'>{$this->lang->words['modact_delete']}</option>						<option value='pin'>{$this->lang->words['modact_pinfile']}</option>						<option value='unpin'>{$this->lang->words['modact_unpinfile']}</option>					</select>&nbsp;					<input type="submit" name="gobutton" value="{$this->lang->words['mod_button']}" class="input_submit alt" id='mod_submit' />				</form>			</div>			<div class='moderation_bar ipsType_small' style='text-align: center;'>				<a href='#' id='moderator_toggle'><img src='{$this->settings['img_url']}/moderation_cog.png' />&nbsp; {$this->lang->words['show_moderation_tools']}</a>			</div>			<script type='text/javascript'>				ipb.vars['lang_suredelete'] = '{$this->lang->words['idm_suredelete']}';								$('modform').observe('submit', ipb.downloads.submitModForm);				$('category_mod').hide();								$('moderator_toggle').up('div').show().observe('click', function(e){					Event.stop(e);					$('moderator_toggle').up('div').hide();					$('category_mod').show();				});			</script>		</if>		<br class='clear' />{parse replacement="box_end"}		<if test="hasPagesBottom:|:$page_links">			{$page_links}			<br class='clear' />		</if>	</div>	</div><br class='clear' />

But you see I want to completely remove the "Free" Prefix from view, i.e. not just in the category listing but in all the templates. Thus completely removing the "Free" Prefix from view in any scenario. Would you want me to post the other templates here as well Paradiizee? Thanks again,Duff-Man

Edited by Duff-Man
Link to comment
Share on other sites

  • 0
  • Administrator
The question(s) in this support topic have been answered and the owner has been able to solve the problem. Because of this, the support topic has been closed and moved.If you have other questions, please open a new topic.
  • Upvote 1
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...