Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons

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
  #22  
Old 03-02-2008, 01:05 PM
pipedreams's Avatar
pipedreams pipedreams is offline
 
Join Date: Apr 2004
Location: Cork, Ireland.
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Barakat View Post
you should put it in a txt file .... and make update every time u make changes on ,,, so as we can know ...
Will do!
Reply With Quote
  #23  
Old 03-02-2008, 01:49 PM
AWMGolfer AWMGolfer is offline
 
Join Date: Dec 2007
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great mod...I love it!! The only two things I would add to it is one that would just show who's user gallery it is on the listing and it not show the galleries that are private. Other then that I think it's great. Simple but clean!!
Reply With Quote
  #24  
Old 03-02-2008, 02:13 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by pipedreams View Post
Nope as the u=1 ensures the code acts as an album list, when a user is not logged in.
How do we keep guests from viewing the list? Or am I missing something here?

The reason I am asking is I run a Fathers' Rights Site and I really don't want any perverts trolling the site looking for victims as we do have a few pictures of members' children in there.
Reply With Quote
  #25  
Old 03-02-2008, 04:08 PM
Brew's Avatar
Brew Brew is offline
 
Join Date: Sep 2002
Posts: 359
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When you update this could you please send out a manual notice with instructions on what has changed?

This is a cool mod I want to keep track of

Thanks!
Reply With Quote
  #26  
Old 03-02-2008, 04:16 PM
7lanet's Avatar
7lanet 7lanet is offline
 
Join Date: Aug 2007
Location: YeMeN
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

See worked the same explanation
But when the transition to a second page shows only the first page (only 10 albums)
Aita and is not available for visitors

www.7lanet.com/vb/g.php


Please give me the file that you point change

Copies 3.7.0 4, 3.7.0 5
Reply With Quote
  #27  
Old 03-02-2008, 04:55 PM
kevinfx kevinfx is offline
 
Join Date: Jan 2006
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

on the table header, it always says "admin's album" because user id = 1 is the admin

how do change that to something generic?
Reply With Quote
  #28  
Old 03-02-2008, 05:05 PM
pipedreams's Avatar
pipedreams pipedreams is offline
 
Join Date: Apr 2004
Location: Cork, Ireland.
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Xhaiden View Post
Great mod...I love it!! The only two things I would add to it is one that would just show who's user gallery it is on the listing and it not show the galleries that are private.
Have changed it, so that only public albums are viewable, , and will add to mod soon.

Quote:
Originally Posted by 7lanet View Post
See worked the same explanation
But when the transition to a second page shows only the first page (only 10 albums)
Aita and is not available for visitors
Have added a workaround for this, and will add to mod soon.

Quote:
Originally Posted by kevinfx View Post
on the table header, it always says "admin's album" because user id = 1 is the admin
Am aware of this, but template changes will be needed, and I will probably do that with the version after this one. I also hope to add the username beside the album name.
Reply With Quote
  #29  
Old 03-02-2008, 05:09 PM
pipedreams's Avatar
pipedreams pipedreams is offline
 
Join Date: Apr 2004
Location: Cork, Ireland.
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo View Post
How do we keep guests from viewing the list? Or am I missing something here?
As I'm just modifying vbulletin native code, guest viewing is controlled bu usergroup permissions found in your admincp.

Why don't you log out of your forum and see can if you view the album?

Quote:
Originally Posted by Brew View Post
When you update this could you please send out a manual notice with instructions on what has changed?
Will do
Reply With Quote
  #30  
Old 03-02-2008, 06:48 PM
unitedpunjab unitedpunjab is offline
 
Join Date: Feb 2006
Location: Scotland
Posts: 286
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would you please share your 'gallery.php'
Reply With Quote
  #31  
Old 03-02-2008, 06:57 PM
pipedreams's Avatar
pipedreams pipedreams is offline
 
Join Date: Apr 2004
Location: Cork, Ireland.
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by unitedpunjab View Post
Would you please share your 'gallery.php'
Don't know if I'm allowed to do that?
I say that as this mod modifies existing vbulletin native code, so I would imagine it would go against Jelsofts licence agreements?

Maybe someone else might let us know what is / is not allowed?
Reply With Quote
Reply

Thread Tools

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 06:32 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.05474 seconds
  • Memory Usage 2,310KB
  • Queries Executed 25 (?)
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
  • (8)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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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