Back to vBulletin 3.0 Add-Ons

Photopost 4.8.5 - Navbar Gallery dropdown only in Gallery
Mod Version: 1.00, by kall

This modification is in the archives.
vB Version: 3.0.3 Rating: (0 vote - 0 average) Installs: 7
Released: 19 Dec 2004 Last Update: Never Downloads: 0
Not Supported  

A-la http://gallery.nzboards.com :

In photopost/index.php

Find:

PHP Code:
if ( is_numeric($argv[0]) ) {
    
header("Location: {$Globals['maindir']}/showphoto.php?photo={$argv[0]}");
    exit;

Above, add:

PHP Code:
define('THIS_SCRIPT''gallery'); 
Save and upload photopost/index.php

Then, in your navbar template add the following where you want the dropdown to appear (changing the yourdomain bit to the correct path):

PHP Code:
<if condition="THIS_SCRIPT != 'gallery'"><td class="vbmenu_control"><a href="http://www.yourdomain.com/photopost">Gallery</a></td>
<else />
<
td class="vbmenu_control" id="gallery"><a href="#gallery">Gallery Tools</a> <script type="text/javascript"vbmenu_register("gallery"); </script></td>
</if> 
Then find

PHP Code:
<!-- NAVBAR POPUP MENUS --> 
Under, add:

PHP Code:
<if condition="THIS_SCRIPT == 'gallery'">
<!-- 
Gallery Dropdown Menu -->
    <
div class="vbmenu_popup" id="gallery_menu" style="display:none">
        <
table cellpadding="4" cellspacing="1" border="0">
        
        <
tr><td class="thead">Gallery Options</td></tr>        
        <
tr><td class="vbmenu_option"><a href="http://www.yourdomain.com/photopost/index.php?$session[sessionurl]">Gallery Home</a></td></tr>
        <
tr><td class="vbmenu_option"><a href="http://www.yourdomain.com/photopost/uploadphoto.php">Upload Images</a></td></tr>
        <
tr><td class="vbmenu_option"><a href="http://www.yourdomain.com/photopost/member.php?uid=$bbuserinfo[userid]">My Gallery Profile</a></td></tr>
        <
tr><td class="vbmenu_option"><a href="http://www.yourdomain.com/photopost/showgallery.php?cat=500&ppuser=$bbuserinfo[userid]">My Gallery</a></td></tr>
        <
tr><td class="vbmenu_option"><a href="http://www.yourdomain.com/photopost/showgallery.php?cat=fav">My Favourites</a></td></tr>
<
tr><td class="vbmenu_option"><a href="http://www.yourdomain.com/photopost/search.php?$session[sessionurl]">Search Gallery</a></td></tr>
                
</
table>
        </
table>
    </
div>
    <!-- / 
Gallery Dropdown Menu -->
</if> 
This will take effect on the main Photopost gallery page. If you want it to be effective on the other pages (photo upload etc), just add the define line to the top of each of the ones you want it to happen on.

Download

No files for download.

Screenshots

 

Similar Mods

Geek Gallery Popup for vBadvanced Gallery or PhotoPost 4 or higher vBulletin 3.0 Full Releases
Photopost Gallery Menu (Navbar Dropdown) vBulletin 3.5 Template Modifications

vblts.ru supports vBulletin®, 2022-2024