vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Current Galleries on Top for vBPicGallery (https://vborg.vbsupport.ru/showthread.php?t=117696)

nonamer69 06-04-2006 10:00 PM

Current Galleries on Top for vBPicGallery
 
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/img254/4...ries5fv.th.jpg http://img352.imageshack.us/img352/5...ries8ug.th.jpg

Enjoy!!!

Snake 06-05-2006 03:54 PM

Awesome! I'll install this later... ;)

noppid 06-05-2006 04:51 PM

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

Thanks!

kevcj 05-09-2007 04:38 PM

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.


All times are GMT. The time now is 04:53 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01954 seconds
  • Memory Usage 1,796KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete