PDA

View Full Version : How do I disable news title links?


ZGeek
06-15-2008, 07:20 PM
I am trying to remove the link from the news post title. I've removed the link code around $mods[title] in my template but it still shows. Any idea? This is my current adv_portal_module_wrapper$mods[formcode]

<div style="padding-bottom:$vba_style[portal_vspace]px">
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<thead>
<tr>
<td bgcolor="#e3e0dc" colspan="$mods[colspan]">
<if condition="$vba_style['portal_collapsemods']">
<a href="#top" onclick="return toggle_collapse('module_$mods[collapse]')" style="float:$stylevar[right]"><img alt="" border="0" id="collapseimg_module_$mods[collapse]" src="$stylevar[imgdir_button]/collapse_tcat$modimgcollapse.gif" /></a>
</if>
<span class="smallfont"><strong>$vba_style[portal_blockbullet] $mods[title]</strong></span></td>
</tr>
</thead>
<tbody id="collapseobj_module_$mods[collapse]" style="$modcollapse">
<if condition="$show['tablerow']">
<tr>
<td class="$bgclass">
$modulehtml
</td>
</tr>
<else />
$modulehtml
</if>
</tbody>
</table>
</div>
<if condition="$mods['formcode']"></form></if>

KW802
06-15-2008, 08:20 PM
Check in your adv_portal_newsbits template.

Our Sponsors
 

ZGeek
06-16-2008, 12:49 AM
I've done that one as well.<if condition="!$mod_options['portal_news_legacy']">
<tr>
<td bgcolor="#e3e0dc"><if condition="$mod_options['portal_news_showicon']">$vba_style[portal_blockbullet]</if> $news[prefix] $news[title]</td>
</tr>
</if>
<tr>
<td align="$stylevar[left]" valign="top">
<if condition="$show['paperclip']">
<span style="float:$stylevar[right]">
<a href="#" onclick="vba_attach_win($news[threadid]); return false"><img class="inlineimg" src="$stylevar[imgdir_misc]/paperclip.gif" border="0" title="<phrase 1="$news[attach]">$vbphrase[x_attachments]</phrase>" alt="" /></a>
</span>
</if>
<if condition="$news['avatarpath']">
<img align="$stylevar[left]" style="padding:6px" alt="" border="0" src="$news[avatarpath]" title="$news[postusername]'s $vbphrase[avatar]" />
</if>
$news[message]

<if condition="$show['signature']">
<div>__________________<br />
$news[signature]</div>
</if>

</td>
</tr>

<if condition="$news['attachment']">
<tr>
<td>
<fieldset class="fieldset">
<legend>Attached Files</legend>
<div style="padding:$stylevar[formspacer]px">
$news[attachment]
</div>
</fieldset>
</td>
</tr>
</if>

<tr valign="middle">
<td valign="middle">
<span style="float:right"><span class="smallfont">
<if condition="$show['editbutton']">
<a href="$vboptions[bburl]/editpost.php?$session[sessionurl]do=editpost&amp;p=$news[postid]">Edit</a> |
</if> $news[dateposted]
</span>
</td>
</tr>

Brian
06-16-2008, 03:26 PM
The best way to do that is probably going to be to edit your 'adv_portal_module_wrapper' template to replace this code:
<span class="smallfont"><strong>$vba_style[portal_blockbullet] <if condition="$mods['link']"><a href="$mods[link]">$mods[title]</a><else />$mods[title]</if></strong></span>

With this:
<span class="smallfont"><strong>$vba_style[portal_blockbullet] <if condition="$mods['link']"><a href="$mods[link]">$mods[title]</a><else /><if condition="$mods['identifier'] == 'news'">$news[title]<else />$mods[title]</if></if></strong></span>

Our Sponsors
 

ZGeek
06-17-2008, 05:50 PM
Thank you Brian. Very much appreciated.