Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Make a forum Gallery from User Albums Details »»
Make a forum Gallery from User Albums
Version: 1.02, by pipedreams pipedreams is offline
Developer Last Online: Dec 2022 Show Printable Version Email this Page

Category: Social Group and Album Enhancements - Version: 3.7.0 Beta 5 Rating:
Released: 02-29-2008 Last Update: 03-01-2008 Installs: 28
Re-useable Code Code Changes Additional Files Translations Is in Beta Stage  
No support by the author.

UPDATE:
Well, there is another hack been released which is more or less the same as my initial hack, so I recommend that you all use that from now on
https://vborg.vbsupport.ru/showthread.php?t=172215

INTRO:

This is a crude attempt at making a forum gallery from all the user albums on your vb 3.7.x forum.

I can imagine that there are many other better ways to achieve this, but I think my method is quick and easy enough to be shared with other users on this forum.

It is also my first attempt at a vbulletin hack, so forgive my naivety re all this.

STEPS:
  1. Copy the default vbulletin album.php file and rename to (say) gallery.php
  2. Open this new file in a text / php editor and follow the instructions found in the attached galleryFromAlbumsMod.txt file.
  3. That's it!
DEMO:HISTORY:
  • 02.03.2008: 1.02 - Changed code to make sure only public albums are shown, added clause for guest navigation when paging, and hide username from top navbar.
    ==
  • 02.03.2008: 1.01 - Changed code in order to page through all forum public user albums
    ==
  • 01.03.2008: 1.00 - Initial basic gallery
NOTES:
  • You need to set "Can View Albums" to yes in usergroup permissions. The amount of albums per page is decided by the value in "Albums Per Page" in "User Profile: Album Options" in adminCP options.
    ===
  • The amount of albums per page is decided by the value in "Albums Per Page" in "User Profile: Album Options" in adminCP options.
    ==
  • User css has an effect on the gallery look. (I have defaulted it to userid 1)
COMING SOON:
  • Separate template for the gallery listing, which will enable the username to be displayed beside each respective album.

Show Your Support

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

Comments
  #2  
Old 03-01-2008, 09:09 PM
pipedreams's Avatar
pipedreams pipedreams is offline
 
Join Date: Apr 2004
Location: Cork, Ireland.
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

* reserved *
Reply With Quote
  #3  
Old 03-01-2008, 09:13 PM
Itworx4me's Avatar
Itworx4me Itworx4me is offline
 
Join Date: Feb 2002
Posts: 210
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Get the following error when you click your link for demo

Quote:
You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:
You are not logged in. Fill in the form at the bottom of this page and try again.
You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Reply With Quote
  #4  
Old 03-01-2008, 09:16 PM
pipedreams's Avatar
pipedreams pipedreams is offline
 
Join Date: Apr 2004
Location: Cork, Ireland.
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Apologies re this, I forgot the user albums were set to private on that forum.

Here is another instead:
http://www.badminton.ie/forum/gallery.php?u=1

Need to have the ?u=1 on the url, for the gallery to be available for guest viewing - (will work on sorting this out.)
Reply With Quote
  #5  
Old 03-01-2008, 09:48 PM
7lanet's Avatar
7lanet 7lanet is offline
 
Join Date: Aug 2007
Location: YeMeN
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks

very nice ^_^

but
Please activate visitors
Reply With Quote
  #6  
Old 03-01-2008, 10:15 PM
ChurchMedia's Avatar
ChurchMedia ChurchMedia is offline
 
Join Date: Dec 2002
Location: Las Cruces, NM
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was hoping someone would do this! It works great. Good job!
Reply With Quote
  #7  
Old 03-02-2008, 12:31 AM
Zaiaku's Avatar
Zaiaku Zaiaku is offline
 
Join Date: Jul 2007
Location: 3rd Level of Hell
Posts: 502
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome mod. No extra files just a copy of an existing one and nothing to import. Thx!
Reply With Quote
  #8  
Old 03-02-2008, 03:18 AM
kevinfx kevinfx is offline
 
Join Date: Jan 2006
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice idea
but it doesn't show all available album, only shows 10 albums ...
Reply With Quote
  #9  
Old 03-02-2008, 04:25 AM
Brew's Avatar
Brew Brew is offline
 
Join Date: Sep 2002
Posts: 359
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The mod seems to pull in any custom CSS from the users profile.

http://www.oldhouseforums.com/forums/gallery.php?u=1

This could be a really good mod if you keep working on it. There's a lot you can do
Reply With Quote
  #10  
Old 03-02-2008, 09:26 AM
pipedreams's Avatar
pipedreams pipedreams is offline
 
Join Date: Apr 2004
Location: Cork, Ireland.
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kevinfx View Post
nice idea
but it doesn't show all available album, only shows 10 albums ...
I was thinking that this might happen, its obviously due to the limits set in admincp for user albums.

Quote:
Originally Posted by Brew View Post
The mod seems to pull in any custom CSS from the users profile.
Was thinking that that would happen to....

Anyway I promise to keep working on this, and may even write some stand alone code altogether...
Reply With Quote
Reply


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 01:23 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.07860 seconds
  • Memory Usage 2,297KB
  • Queries Executed 23 (?)
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_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete