vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Photopost 4.8.5 - Navbar Gallery dropdown only in Gallery (https://vborg.vbsupport.ru/showthread.php?t=73063)

kall 12-18-2004 10:00 PM

Photopost 4.8.5 - Navbar Gallery dropdown only in Gallery
 
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.

Osterling 12-19-2004 06:09 AM

Any screen shots?

HiDeo 12-19-2004 10:07 AM

Yes, a screen could be fine !

SVTOA 12-19-2004 03:39 PM

I added something similar to the USERCPSHELL template so that the upload photos link appears in the user's CPANEL options...

kall 12-19-2004 04:32 PM

Quote:

Originally Posted by HiDeo
Yes, a screen could be fine !

Attached to first post.

Actually, it might be even better if in the Gallery, the link becomes 'Gallery Tools' or suchlike.

*edits it*

tteal 12-23-2004 11:08 AM

Nice mod mate!


All times are GMT. The time now is 11:35 AM.

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.00994 seconds
  • Memory Usage 1,750KB
  • 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
  • (5)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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