Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Make a forum Gallery from User Albums Details »
Make a forum Gallery from User Albums
Mod Version: 1.02, by pipedreams (Member) pipedreams is offline
Developer Last Online: Apr 2012 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.7.0 Beta 5 Rating: (2 votes - 4.50 average) Installs: 27
Released: 01 Mar 2008 Last Update: 02 Mar 2008 Downloads: 234
Not Supported Code Changes Additional Files Re-usable Code Translations Is in Beta Stage  

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
http://www.vbulletin.org/forum/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.

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
  #16  
Old 02 Mar 2008, 11:46
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Any way to keep guests from being able to view the albums? Makie it only veiwable to members?
Reply With Quote
  #17  
Old 02 Mar 2008, 12:00
pipedreams's Avatar
pipedreams pipedreams is offline
 
Join Date: Apr 2004
Real name: JP
Originally Posted by Boofo View Post
Any way to keep guests from being able to view the albums? Makie it only veiwable to members?
Hi, that's decided by settings in usergroup permissions, where you'll find an option called "Can View Albums."
Reply With Quote
  #18  
Old 02 Mar 2008, 12:21
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
But won't the u=1 in the link bypass that?
Reply With Quote
  #19  
Old 02 Mar 2008, 12:43
pipedreams's Avatar
pipedreams pipedreams is offline
 
Join Date: Apr 2004
Real name: JP
Originally Posted by Boofo View Post
But won't the u=1 in the link bypass that?
Nope as the u=1 ensures the code acts as an album list, when a user is not logged in.
Reply With Quote
  #20  
Old 02 Mar 2008, 13:48
Barakat's Avatar
Barakat Barakat is offline
 
Join Date: Nov 2004
Real name: Barakat
you should put it in a txt file .... and make update every time u make changes on ,,, so as we can know ...

thanks
Reply With Quote
  #21  
Old 02 Mar 2008, 14:05
pipedreams's Avatar
pipedreams pipedreams is offline
 
Join Date: Apr 2004
Real name: JP
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
  #22  
Old 02 Mar 2008, 14:49
AWMGolfer AWMGolfer is offline
 
Join Date: Dec 2007
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
  #23  
Old 02 Mar 2008, 15:13
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
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
  #24  
Old 02 Mar 2008, 17:08
Brew's Avatar
Brew Brew is offline
 
Join Date: Sep 2002
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!
__________________
The Ultimate Chiller
¨˜”°º•BREW•º°”˜¨
www.politicalforums.net
www.oldhouseforums.com
Reply With Quote
  #25  
Old 02 Mar 2008, 17:16
7lanet's Avatar
7lanet 7lanet is offline
 
Join Date: Aug 2007
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

Last edited by 7lanet; 02 Mar 2008 at 17:31.
Reply With Quote
  #26  
Old 02 Mar 2008, 17:55
kevinfx kevinfx is offline
 
Join Date: Jan 2006
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
  #27  
Old 02 Mar 2008, 18:05
pipedreams's Avatar
pipedreams pipedreams is offline
 
Join Date: Apr 2004
Real name: JP
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.

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.

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
  #28  
Old 02 Mar 2008, 18:09
pipedreams's Avatar
pipedreams pipedreams is offline
 
Join Date: Apr 2004
Real name: JP
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?

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
  #29  
Old 02 Mar 2008, 19:48
unitedpunjab's Avatar
unitedpunjab unitedpunjab is offline
 
Join Date: Feb 2006
Real name: Dhillon
Would you please share your 'gallery.php'
Reply With Quote
  #30  
Old 02 Mar 2008, 19:57
pipedreams's Avatar
pipedreams pipedreams is offline
 
Join Date: Apr 2004
Real name: JP
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


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 05:45.

Layout Options | Width: Wide Color: