View Single Post
Old February 26th, 2005, 02:05 AM   #3 (permalink)
MorrisMcD
Member
Verified Customer
 
Join Date: Jul 2004
Posts: 48
Re: Moving "newest images"

Quote:
Originally Posted by mholtum
On the gallery index page I would like to move the "Newest images" above the catagories and leave the "Random Images" on the bottom.

Where and what must I edit?
I cut the following

Quote:
<if condition="$show['newimages']">
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<thead>
<tr>
<td class="tcat" colspan="$vba_options[gallery_columns]"><a href="#top" onclick="return toggle_collapse('gallery_newimages')" style="float:$stylevar[right]"><img alt="" border="0" id="collapseimg_gallery_newimages" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_gallery_newimages].gif" /></a><phrase 1="$vba_options[gallery_newhomeimages]">$vbphrase[newest_x_images]</phrase></td>
</tr>
</thead>
<tbody id="collapseobj_gallery_newimages" style="$vbcollapse[collapseobj_gallery_newimages]">
<tr>
$newimagebits
</tr>
</tbody>
</table>
<br />
</if>

<if condition="$show['randomimages']">
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<thead>
<tr>
<td class="tcat" colspan="$vba_options[gallery_columns]"><a href="#top" onclick="return toggle_collapse('gallery_randimages')" style="float:$stylevar[right]"><img alt="" border="0" id="collapseimg_gallery_randimages" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_gallery_randimages].gif" /></a>$vbphrase[random_images]</td>
</tr>
</thead>
<tbody id="collapseobj_gallery_randimages" style="$vbcollapse[collapseobj_gallery_randimages]">
<tr>
$randomimagebits
</tr>
</tbody>
</table>
<br />
</if>
and moved it directly under

Quote:
$gallerynav

<if condition="$show['subcats']">
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat" width="100%">$vbphrase[sub_categories]: $navinfo[title]</td>

<if condition="$show['search']">
<td class="vbmenu_control" id="dirsearch"><a href="search.php?$session[sessionurl]catid=$catid">$vbphrase[search_this_category]</a> <script type="text/javascript"> vbmenu_register("dirsearch"); </script></td>
</if>
</tr>
</table>

<div class="vbmenu_popup" id="dirsearch_menu" style="display:none">
<form action="search.php" method="post">
<input name="s" type="hidden" value="$session[sessionhash]" />
<input name="do" type="hidden" value="searchresults" />
<input name="quicksearch" type="hidden" value="1" />
<input name="catids[]" type="hidden" value="$catid" />
<table border="0" cellpadding="4" cellspacing="1">
<tr>
<td class="thead">$vbphrase[search_this_category]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<input class="bginput" name="string" size="20" type="text" /> $gobutton</td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php?catid=$catid">$vbphrase[advanced_search]</a></td>
</tr>
</table>
</form>
</div>

</if>
Worked perfect for me...

http://forums.cincybengals.com/gallery/index.php?
MorrisMcD is offline   Reply With Quote