vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Add-On Releases - Picture and Album Gallery (https://vborg.vbsupport.ru/showthread.php?t=237931)

bad2dbone 05-23-2011 03:11 AM

Quote:

Originally Posted by Videx (Post 2198817)
Maybe you just installed your forum into the root of your server. Not a good idea IMHO, but at any rate it's the folder with showpost.php and showthread.php.

Thanks it worked thanks a bunch

clubvr4 05-23-2011 07:37 AM

Does this mod allow for the following situation.

Admin creates album.
All Members can add to that album?

For example, i create a album for a car show our club went to, then all the people who attended can add their images (but not delete) to the same album, keeping everything uniform.

Cheers.

KW802 05-23-2011 03:48 PM

Quote:

Originally Posted by clubvr4 (Post 2198994)
Does this mod allow for the following situation.

Admin creates album.
All Members can add to that album?

For example, i create a album for a car show our club went to, then all the people who attended can add their images (but not delete) to the same album, keeping everything uniform.

Cheers.

No. This mod does not change the basic functionality of the stock vB "Albums" but rather presents the data in a different fashion.

KW802 05-23-2011 03:56 PM

Quote:

Originally Posted by Wayne Luke (Post 2190070)
... I didn't like that the Navtab presentation was a dropdown menu and different than my other tabs. So I edited the system to work like other tabs. ...

Mind if I run with your idea and post an update? :) I started with your original post but ran into a few issues (some missing curly braces to close the phrase names, sessionurl instead of sessionurl_q, etc.) and before I knew it I ended up adding code to cache the template (that will eliminate an extra query on every page) and also added a link for "Latest Albums" on the "What's New" tab.

Wayne Luke 05-23-2011 10:43 PM

Quote:

Originally Posted by KW802 (Post 2199146)
Mind if I run with your idea and post an update? :) I started with your original post but ran into a few issues (some missing curly braces to close the phrase names, sessionurl instead of sessionurl_q, etc.) and before I knew it I ended up adding code to cache the template (that will eliminate an extra query on every page) and also added a link for "Latest Albums" on the "What's New" tab.

That is fine.

Actually have the template cached in another plugin assigned to the cache_templates hook. Would be good to have it assigned to the product though. I have a product just for the site that contains the plugin currently.

PHP Code:

if (THIS_SCRIPT == 'vbcms')
{
    
$cache[] = 'forumhome_loggedinuser';
}

if (
THIS_SCRIPT == 'index')
{
    
$cache[] = 'block_users_online';
}

$cache[] = 'gallery_navbar_link'

Have a plugin to group the templates as well. It is assigned to the template_groups hook.

PHP Code:

$only['gallery_'] = $vbphrase['group_gallery']; 


KW802 05-24-2011 01:07 AM

Quote:

Originally Posted by Wayne Luke (Post 2199291)
...Have a plugin to group the templates as well. It is assigned to the template_groups hook. ...

One ahead of you. :D


I'll post the product XML in a minute.

KW802 05-24-2011 01:21 AM

1 Attachment(s)
Quote:

Originally Posted by Wayne Luke (Post 2190070)
... I didn't like that the Navtab presentation was a dropdown menu and different than my other tabs. So I edited the system to work like other tabs. ...

Attached is a vB product XML (done with vB 4.1.3) that started off as a result of Wayne posting his original alternate navbar idea (see the past few posts above for the rest of the details :p).

This product will do the following for you...
  • Add a new "Gallery" button to your navbar in the same style as the stock vB buttons. The new templates will be cached.
    • After clicking "Gallery" you will then get links for "Album Gallery", "Picture Gallery", "Latest Albums", "My Albums", and "Add Album" in the sub-menu area.
  • Add a new "Latest Albums" link to your "What's New" button menu.
  • Group the various "Gallery" templates together.
Yep, just some very minor little things but it gives a clean overall integration feel. Attached are screen shots of what a logged in user will see.


EDIT: For those that may not have a lot of uploads, I recommend increasing the number of days for uploads to show up in the "Latest Albums" search results so that you're less likely to get a blank page when hitting that link (ACP => Settings => Options => User Profile: Album Options => Recent Album Update Days).

doctorsexy 05-24-2011 07:10 PM

i just get a white screen... all installed ok..

lyalybagdad 05-24-2011 07:38 PM

<a href="http://www.lyalybagdad.com/albumall" target="_blank">http://www.lyalybagdad.com/albumall</a>

nurga 05-24-2011 09:45 PM

This plugin is working great for me, I'd like to display a random image from the gallery on my home page. I'm curious where the plugin stores these images on the server for me to pull from?


All times are GMT. The time now is 03:09 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.01999 seconds
  • Memory Usage 1,752KB
  • 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
  • (2)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete