PDA

View Full Version : Get rid of the "new" box


terrymason
03-05-2008, 07:48 PM
Is it possible to get rid of the new box on the left?

Lizard King
03-06-2008, 12:21 AM
What box are you talking about ?

terrymason
03-06-2008, 02:32 PM
http://www.jeepz.com/forum/glossary.php

I don't know if it really needs to be deleted, but at least moved somewhere. Looks kinda odd.

henrikhansen
03-06-2008, 02:53 PM
It you remove the users permission to add entries, I think the box to add entries will also be removed.

terrymason
03-06-2008, 06:45 PM
I figured it out - you can see the result in the attached picture. It looks cleaner to me. Inside of gal_gdic_list_container I removed:

<if condition="$show['newbutton']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="200px">
<thead>
<tr>
<td class="tcat" style="white-space:nowrap;"><div><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('gdic_new')"><img src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_gdic_new].gif" alt="" border="0" /></a>New</div></td>
</tr>
</thead>
<tbody style="$vbcollapse[collapseobj_gar]" id="collapseobj_gar_$itemid">
<tr>
<td class="panelsurround">
<div class="panel" align="center">
<div class="fieldset">
<a href="$settings[script].php?$session[sessionurl]do=new&amp;c=$dcatid" rel="nofollow"><img src="$stylevar[imgdir_button]/new.gif" alt="$vbphrase[new]" border="0" /></a>
</div>
</div>
</td>
</tr>
</tbody>
</table>
<br />
</if>



Then, since I did want a way for them to add terms, I found this:

<td valign="top" width="100%">
<if condition="!$show['noheader']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<if condition="$alphabar">
<td<if condition="$show['filter']"> colspan="2"</if> class="tcat" width="100%">
$description
</td>
</tr>
<tr>
<td class="thead" width="100%">




and replaced it with this:

<td valign="top" width="100%">
<if condition="!$show['noheader']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<if condition="$alphabar">
<td<if condition="$show['filter']"> colspan="2"</if> class="tcat" width="80%" align="left">
$description
</td>


<if condition="$show['newbutton']">
<td align="right" class="tcat" width="20%">
<a href="$settings[script].php?$session[sessionurl]do=new&amp;c=$dcatid" rel="nofollow">Add a new term</a>
</td>
</if>

</tr>
<tr>
<td class="thead" width="100%" <if condition="$show['newbutton']">colspan="2"</if>>