Back to vBulletin 3.5 Template Modifications

Current Galleries on Top for vBPicGallery
Mod Version: 1.00, by nonamer69

This modification is in the archives.
vB Version: 3.5.4 Rating: (0 vote - 0 average) Installs: 2
Released: 05 Jun 2006 Last Update: Never Downloads: 0
Not Supported Template Edits Code Changes  

Mod Description:
This template change will modify your "Manage My Gallery" page. It will move your current galleries to the top of the page instead of scrolling past the Add Gallery box to see your galleries.

This mod is for the Latest Version 9.3.1 but may work for past versions. Please back up your template before editing.

Replace All Contents of your vbpicgallery_editgallery template with below.

Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle] - $vbphrase[vbpicgallery]</title>
<script type="text/javascript">
<!--
function confirm_del()
{
	ht = document.getElementsByTagName("html");
	if (confirm('Delete the Selected Item?'))
	{
		return true;
	}
	else
	{
		return false;
	}
}
//-->
</script>
</head>
<body$onload>
$header
$navbar
$vbpg_navbar
<table cellpadding="5" cellspacing="0" border="0" class="tborder" width="$stylevar[tablewidth]" align="center"  style="border-style: solid;border-bottom-width: 1px;border-top-width: 1px;border-left-width: 1px;border-right-width: 1px;">
		<tr>
			<td class="tcat" colspan="6"><b>$vbphrase[edit] $vbphrase[vbpicgallery](s)</b></td>
		</tr>
		<tr><td>
	<table cellpadding="5" class="tborder" cellspacing="$stylevar[cellspacing]" border="0" width="100%" style="border-style: solid;border-bottom-width: 1px;border-top-width: 1px;border-left-width: 1px;border-right-width: 1px;">
		<tr>
			<td class="thead" align="left">$vbphrase[vbpicgallery_type]</td>
			<td class="thead" align="center">Images</td>
			<td class="thead" align="center">Comments</td>
			<td class="thead" align="center">$vbphrase[views]</td>
			<td class="thead" align="center">Created</td>
			<td class="thead" align="center">$vbphrase[last_activity]</td>
			<td class="thead" align="center">Edit</td>
		    <td class="thead" align="center">Delete</td>
		</tr>
		$edithallsbits
	</table>
</td></tr>
</table>
<br />
<!-- Begin multi gallery -->
<if condition="!$g">
<table cellpadding="5" cellspacing="0" border="0" class="tborder" width="$stylevar[tablewidth]" align="center"  style="border-style: solid;border-bottom-width: 1px;border-top-width: 1px;border-left-width: 1px;border-right-width: 1px;">
	<tr>
		<td class="tcat"><b>Add $vbphrase[vbpicgallery]</b></td>
	</tr>	
<tr><td>
	<table cellpadding="5" cellspacing="$stylevar[cellspacing]" class="tborder" border="0" width="100%" style="border-style: solid;border-bottom-width: 1px;border-top-width: 1px;border-left-width: 1px;border-right-width: 1px;">
	<tr>
		<td class="alt2" align="center">
			<form action="vbpicgallery.php" method="post" >
			<input type="hidden" name="s" value="$session[sessionhash]" />
			<table cellpadding="5" cellspacing="0" border="0" class="tborder" width="$stylevar[tablewidth]" align="center"><tr><td>
				<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
					<tr>
						<td class="thead" colspan="2"><b>$vbphrase[vbpicgallery_title]</b></td>
					</tr>
					<tr>
						<td class="alt1" width="25%"><b>$vbphrase[vbpicgallery_desc1]:</b><br />
<span class="smallfont">$vbphrase[vbpicgallery_required]</span>
</td>
						<td class="alt2"><input type="text" class="bginput" name="desc1" size="50" maxlength="50" value="$data[desc1]" /></td>
					</tr>
					<tr>
						<td class="alt1" width="25%"><b>$vbphrase[vbpicgallery_desc2]:</b></td>
						<td class="alt2"><input type="text" class="bginput" name="desc2" size="50" maxlength="50" value="$data[desc2]" /></td>
					</tr>
					<tr>
						<td class="alt1" width="25%"><b>$vbphrase[vbpicgallery_desc3]:</b></td>
						<td class="alt2"><input type="text" class="bginput" name="desc3" size="50" maxlength="50" value="$data[desc3]" /></td>
					</tr>
				</table>
<!-- begin custom -->
<if condition="$custombits">
<br />
			<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
					<tr>
						<td class="thead" colspan="2"><b>$vbphrase[vbpicgallery_text]</b></td>
					</tr>
					$custombits
				</table>
</if>
<!-- end custom -->
			</td></tr></table>
			<br />
			<table cellpadding="2" cellspacing="0" border="0" width="$stylevar[tablewidth]" align="center">
				<tr>
					<td align="center">
					<input type="submit" class="button" value="$vbphrase[submit]" accesskey="s" />
<br /><br />
$vbphrase[vbpicgallery_nextpage]<br />
					<input type="hidden" name="do" value="newgallery" />
					<input type="hidden" name="u" value="$id" />	
					</td>
				</tr>
			</table>
			</form>
		</td>
	</tr>
	</table>
</td></tr>
<tr>
	<td class="tcat" align="right">$vbphrase[vbpicgallery_footer]</td>
</tr>
</table>
<else />
<!-- End Multi gallery -->
<form action="vbpicgallery.php" method="post" enctype="multipart/form-data" name="vbform"<if condition="!is_browser('webtv')"> onsubmit="return vB_Editor['$editorid'].prepare_submit(0, 0)"</if>>
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="max_file_size" value="$vboptions[vbpgmaxfilesize]">
<if condition="$preview">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" style="border-style: solid;border-bottom-width: 0px;border-top-width: 1px;border-left-width: 1px;border-right-width: 1px;">
	<tr>
		<td class="tcat" colspan="2">$vbphrase[preview]</td>
	</tr>
	<tr>
	<td class="alt2">
		<if condition="$show_errors">
		<ol>$errorlist</ol>
		<hr />
		</if>
		$previewtext
	</td>
	</tr>
</table>
</if>
<table cellpadding="5" cellspacing="0" border="0" class="tborder" width="$stylevar[tablewidth]" align="center"  style="border-style: solid;border-bottom-width: 1px;border-top-width: 1px;border-left-width: 1px;border-right-width: 1px;">
<tr>
		<td class="tcat" colspan="2"><b>$data[username]s $vbphrase[vbpicgallery]</b></td>
</tr>
<tr>
	<td>
		<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" style="border-style: solid;border-bottom-width: 1px;border-top-width: 1px;border-left-width: 1px;border-right-width: 1px;">
			<tr>
				<td class="thead" colspan="2"><b>$vbphrase[edit_options]</b></td>
			</tr>
			<if condition="$bbuserinfo[userid] == $id">$logincode</if>
			<tr>
				<td class="alt1"><b>$vbphrase[vbpicgallery_desc1]:</b><br />
<span class="smallfont">$vbphrase[vbpicgallery_required]</span>
</td>
				<td class="alt2"><input type="text" class="bginput" name="desc1" size="50" maxlength="50" value="$data[desc1]" /></td>
			</tr>
			<tr>
				<td class="alt1"><b>$vbphrase[vbpicgallery_desc2]:</b></td>
				<td class="alt2"><input type="text" class="bginput" name="desc2" size="50" maxlength="50" value="$data[desc2]" /></td>
			</tr>
			<tr>
				<td class="alt1"><b>$vbphrase[vbpicgallery_desc3]:</b></td>
				<td class="alt2"><input type="text" class="bginput" name="desc3" size="50" maxlength="50" value="$data[desc3]" /></td>
			</tr>
			<tr>
				<td class="alt1">
					<b>$vbphrase[vbpicgallery_text]:</b><br /><br /><br /><br />
					<span class="smallfont">$vbphrase[vbpicgallery_text_desc]</span>
				</td>
				<td class="alt2">
					<if condition="$vboptions[vbpgwysiwyg]">
					<div style="width:$stylevar[formwidth_usercp]" align="$stylevar[left]">
					$messagearea
					&nbsp;<input type="submit" class="button" name="tpreview" value="$vbphrase[preview]" accesskey="p" />&nbsp;<input type="submit" class="button" value="$vbphrase[submit]" accesskey="s" />&nbsp;
					</div>
				</td>
				</tr>
				<else />
				<textarea name="message" rows="20" cols="70">$data[text]</textarea>
				</td>
				</tr>
				</if>
			<tr>
				<td class="alt1"><b>$vbphrase[vbpicgallery_uploaded_images]:</b><br />
				<span class="smallfont">$vbphrase[vbpicgallery_allowed_total] $maxuploads<br />
				$vbphrase[vbpicgallery_allowed_size] $maxfilesize</span></td>
				<td class="alt2">$editimagebits</td>
			</tr>
			<if condition="$count < $maxuploads">
			<tr>
				<td class="alt1"><b>$vbphrase[vbpicgallery_file]:</b><br /><br />
				<b>$vbphrase[vbpicgallery_photo_desc]:</b>
				</td>
				<td class="alt2"><input type="file" class="bginput" name="src" size="30" /><br /><br />
				<input type="text" class="bginput" name="srcdesc" size="50" />
				</td>
			</tr>
			</if>
			<tr>
				<td class="alt2" align="center" colspan="2">
				<input type="submit" name="more_photos" class="button" value="$vbphrase[submit] $vbphrase[upload] $vbphrase[more]" accesskey="m" />
				<br /><br />
				<input type="submit" class="button" value="$vbphrase[submit] $vbphrase[done]" accesskey="s" />
				&nbsp;
				<input type="hidden" name="do" value="edit" />
				<input type="hidden" name="u" value="$id" />	
				<input type="hidden" name="g" value="$g" />	
				</td>
			</tr>
		</table>
	</td>
</tr>
<tr>
	<td class="tcat" align="right">$vbphrase[vbpicgallery_footer]</td>
</tr>
</table>
</form>
</if>
$footer
</body>
</html>
Change Phrase: vbpicgallery_notaddedyet

Find:
Code:
You have not added a gallery yet. Add one using the form above
Change it to:
Code:
You have not added a gallery yet. Add one using the form below.

ScreenShot:
http://img254.imageshack.us/my.php?image=screengalleries5fv.jpg http://img352.imageshack.us/my.php?image=sceennogalleries8ug.jpg

Enjoy!!!

Download

No files for download.

Similar Mods

vBPicGallery + Lightbox/Thickbox vBulletin 3.6 Template Modifications

vblts.ru supports vBulletin®, 2022-2025