Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Template Modifications
Current Galleries on Top for vBPicGallery Details »»
Current Galleries on Top for vBPicGallery
Version: 1.00, by nonamer69 nonamer69 is offline
Developer Last Online: Mar 2009 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 06-04-2006 Last Update: Never Installs: 2
Template Edits
Code Changes  
No support by the author.

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:


Enjoy!!!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 06-05-2006, 03:54 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome! I'll install this later...
Reply With Quote
  #3  
Old 06-05-2006, 04:51 PM
noppid noppid is offline
 
Join Date: Mar 2003
Location: Florida
Posts: 1,875
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This may very well become the default. With alot of galleries, this looks and feels better.

Thanks!
Reply With Quote
  #4  
Old 05-09-2007, 04:38 PM
kevcj's Avatar
kevcj kevcj is offline
 
Join Date: Mar 2007
Location: East Texas
Posts: 334
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can not find where to Change Phrase: vbpicgallery_notaddedyet

Also, when I changed the code on "vbpicgallery_editgallery" to yours, the gallery page went blank. I had copied the original code to notepad so restoring it to the original was no problem.

My site is running VB 3.6.5 and VBpicgallery 10.0.3.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:13 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03936 seconds
  • Memory Usage 2,244KB
  • Queries Executed 17 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (3)postbit
  • (4)postbit_onlinestatus
  • (4)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete