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

Reply
 
Thread Tools
All Albums Details »»
All Albums
Version: 2.5, by Abe1 Abe1 is offline
Developer Last Online: Jun 2010 Show Printable Version Email this Page

Category: Social Group and Album Enhancements - Version: 3.8.x Rating:
Released: 03-05-2008 Last Update: 10-23-2008 Installs: 1742
Uses Plugins Auto-Templates
Additional Files  
No support by the author.

All Albums 2.5

This hack lets you view an index of all user albums on one page. Looks like a user's index but just has all users instead of just one.

You have to upload the all_albums.php file to your root vBulletin folder. This is the file that you have to access to see all the albums.

ENJOY!

Version 1.1 (03/06/08):
  • PHP file only.
  • Doesn't show albums that a user can't view.
Version 1.2 (03/09/08):
  • PHP file only.
  • Fixed Image count if you have vb3.7.0 Beta 6.
Version 2.0 (03/15/08):
  • Product MUST be installed now.
  • Shows username
  • Phrases are normal now.
Version 2.1 (03/19/08):
  • PHP file only.
  • Fixed Image count if you have vb3.7.0 RC 1.
Version 2.2 (03/21/08):
  • Cache Templates
  • Fixed some issues with extra queries running.
  • Added "Add Album" links.
  • album_all_album_list template updated.
  • File updated.
Version 2.3 (05/05/08):
  • Changed definition of THIS_SCRIPT to all_albums
  • Link in navbar is now phrase along with a template.
  • all_albums phrase switched to global phrase
  • Added all albums link to navbits when on an album page.
  • Added who's online location.
  • Added sort
  • New option: Default Sortfield
  • New option: Default Sortorder
  • Added link to quick links.
  • New option: Show Navbar Link
  • New Option: Show Quick-Links Link
  • New Option: Show Link in Navbits of Albums
Version 2.4 (10/24/08):
  • Added Search
Version 2.5 (10/24/08):
  • Added Search text right near search box
  • Fixed a prefix bug when using search.
  • If a user knows that to put into a URL to do a search, if search is turned off, it will not work.
MAKE SURE YOU CLICK INSTALL!
You will get an email when a new version is released.

Download Now

File Type: zip all_albums_2_5.zip (5.7 KB, 4306 views)

Screenshots

File Type: jpg 1.jpg (28.8 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
matrex722

Comments
  #42  
Old 03-10-2008, 04:32 AM
JazzleBug JazzleBug is offline
 
Join Date: Feb 2004
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good stuff. Super simple, but good stuff. Thanks!
Reply With Quote
  #43  
Old 03-10-2008, 03:41 PM
furst furst is offline
 
Join Date: Dec 2005
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It would be nice if the Add Album button was on all_albums.php too.
Reply With Quote
  #44  
Old 03-12-2008, 11:53 PM
KingAdora KingAdora is offline
 
Join Date: Oct 2003
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great script, would also love to see the 'add' link included, and also be able to see the username for the album - which clicks to the user profile.

Great job, keep it up
Reply With Quote
  #45  
Old 03-13-2008, 01:25 AM
7lanet's Avatar
7lanet 7lanet is offline
 
Join Date: Aug 2007
Location: YeMeN
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you add another established by the Photo Album Members of the Home of the Forum?
Reply With Quote
  #46  
Old 03-13-2008, 08:33 AM
katilkuzu's Avatar
katilkuzu katilkuzu is offline
 
Join Date: Feb 2006
Location: Istanbul
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by 7lanet View Post
Can you add another established by the Photo Album Members of the Home of the Forum?
yeah really good idea, i need also something like
Reply With Quote
  #47  
Old 03-13-2008, 09:45 AM
BBF BBF is offline
 
Join Date: Dec 2006
Location: Israel, Netanya.
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for this one

only one little problem:

change

PHP Code:
    $navbits construct_navbits(array(
        
'all_albums.php' $vbulletin->session->vars['sessionurl_q'] => construct_phrase($vbphrase['xs_profile'], $userinfo['username']),
        
'' => $vbphrase['albums']
    )); 
to:

PHP Code:
        $navbits construct_navbits(array(
        
'all_albums.php' $vbulletin->session->vars['sessionurl_q'] => construct_phrase($vbphrase['xs_albums'], $userinfo['username']),
        
'' => $vbphrase['albums']
    )); 
Reply With Quote
  #48  
Old 03-13-2008, 12:54 PM
rolandogomez's Avatar
rolandogomez rolandogomez is offline
 
Join Date: Jan 2006
Location: San Antonio
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BBF View Post
thanks for this one

only one little problem:

change

PHP Code:
    $navbits construct_navbits(array(
        
'all_albums.php' $vbulletin->session->vars['sessionurl_q'] => construct_phrase($vbphrase['xs_profile'], $userinfo['username']),
        
'' => $vbphrase['albums']
    )); 
to:

PHP Code:
        $navbits construct_navbits(array(
        
'all_albums.php' $vbulletin->session->vars['sessionurl_q'] => construct_phrase($vbphrase['xs_albums'], $userinfo['username']),
        
'' => $vbphrase['albums']
    )); 
What does this do? Do we have to change this in the php file? Thanks, rg.
Reply With Quote
  #49  
Old 03-14-2008, 01:24 AM
Abe1's Avatar
Abe1 Abe1 is offline
 
Join Date: Feb 2004
Location: I LOVE New York!
Posts: 2,886
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BBF View Post
thanks for this one

only one little problem:

change

PHP Code:
    $navbits construct_navbits(array(
        
'all_albums.php' $vbulletin->session->vars['sessionurl_q'] => construct_phrase($vbphrase['xs_profile'], $userinfo['username']),
        
'' => $vbphrase['albums']
    )); 
to:

PHP Code:
        $navbits construct_navbits(array(
        
'all_albums.php' $vbulletin->session->vars['sessionurl_q'] => construct_phrase($vbphrase['xs_albums'], $userinfo['username']),
        
'' => $vbphrase['albums']
    )); 
Thanks. Will be in next version.
Reply With Quote
  #50  
Old 03-14-2008, 09:19 AM
Enclave Enclave is offline
 
Join Date: Jun 2005
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rolandogomez View Post
What does this do? Do we have to change this in the php file? Thanks, rg.
No you don't have to, that is in the product!
Reply With Quote
  #51  
Old 03-14-2008, 11:41 PM
Spingo Spingo is offline
 
Join Date: Jul 2002
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's not too difficult to customise this add-on to provide User Names with each Album, but as the Author has said, these modiications turn the mod into more of a "product" than simply adding a simple PHP file. I have done the following modifications in order to accomplish this on one of my sites (and the author may feel free to use any of this code to provide this feature if he/she so wishes):

In all_albums.php, change:
PHP Code:
    $albums $db->query_read("
        SELECT album.*,
            picture.pictureid, picture.extension, picture.idhash,
            picture.thumbnail_dateline, picture.thumbnail_width, picture.thumbnail_height,
        FROM " 
TABLE_PREFIX "album AS album
        LEFT JOIN " 
TABLE_PREFIX "picture AS picture ON (album.coverpictureid = picture.pictureid AND picture.thumbnail_filesize > 0)
        WHERE album.state IN ('" 
implode("', '"$state) . "')
        ORDER BY album.lastpicturedate DESC
        LIMIT 
$start$perpage
    "
); 
to:
PHP Code:
    $albums $db->query_read("
        SELECT album.*,
            picture.pictureid, picture.extension, picture.idhash,
            picture.thumbnail_dateline, picture.thumbnail_width, picture.thumbnail_height,
            user.username
        FROM " 
TABLE_PREFIX "album AS album
        LEFT JOIN " 
TABLE_PREFIX "picture AS picture ON (album.coverpictureid = picture.pictureid AND picture.thumbnail_filesize > 0)
        LEFT JOIN " 
TABLE_PREFIX "user AS user ON (album.userid = user.userid)
        WHERE album.state IN ('" 
implode("', '"$state) . "')
        ORDER BY album.lastpicturedate DESC
        LIMIT 
$start$perpage
    "
); 
Next, change:
PHP Code:
            eval('$albumbits .= "' fetch_template('albumbit') . '";'); 
to:
PHP Code:
            eval('$albumbits .= "' fetch_template('all_albumbit') . '";'); 
and then, change:
PHP Code:
    eval('print_output("' fetch_template('album_list') . '");'); 
to:
PHP Code:
    eval('print_output("' fetch_template('all_album_list') . '");'); 
Next, go into Style Manager in the admincp and copy the contents of the albumbit template into a new template and call it all_albumbit. Then copy the contents of the album_list template into a new template called all_album_list. For there, you can edit these two new templates to add a User Name column. For instance, in all_album_list, I have changed:
Code:
<tr>
	<td class="thead">Thumbnail</td>
	<td class="thead" width="80%">$vbphrase[album_title]</td>
	<td class="thead" width="5%" align="center">$vbphrase[pictures]</td>
	<td class="thead" width="15%" nowrap="nowrap">$vbphrase[last_picture]</td>
</tr>
to:
Code:
<tr>
	<td class="thead">Thumbnail</td>
	<td class="thead" width="80%">$vbphrase[album_title]</td>
	<td class="thead">Author</td>
	<td class="thead" width="5%" align="center">$vbphrase[pictures]</td>
	<td class="thead" width="15%" nowrap="nowrap">$vbphrase[last_picture]</td>
</tr>
and in all_albumbit, I have changed:
Code:
		<div class="smallfont">
			$album[description_html]
			<if condition="$show['personalalbum']"><span class="shade">$albumtype</span></if>
		</div>
	</td>
	<td class="alt1" valign="middle" align="center">$album[picturecount]</td>
	<td class="alt2" valign="middle" nowrap="nowrap">
to:
Code:
		<div class="smallfont">
			$album[description_html]
			<if condition="$show['personalalbum']"><span class="shade">$albumtype</span></if>
		</div>
	</td>
	<td class="alt2" valign="middle" align="center">
		$album[username]
	</td>
	<td class="alt1" valign="middle" align="center">$album[picturecount]</td>
	<td class="alt2" valign="middle" nowrap="nowrap">
After some tidying up with the class tags (so as to make the colour alternate as intended, I have a pretty good looking result, as shown in the attachment.

Of course, you could customise the order of the columns if you'd like, or even add avatars to the user name without too much difficulty.

I should say that I whipped this mod up in about 15 minutes - so the usual caveat applies - I take no responsibility if something goes awry and it's possible that the code in all_almbums.php after my modifications could require some additional optimisation (specifically, I have not benchmarked what impact my additional JOIN has on the SQL side of things).

Enjoy.
Attached Images
File Type: jpg gallery_author.jpg (39.0 KB, 0 views)
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 11:53 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.14414 seconds
  • Memory Usage 2,397KB
  • Queries Executed 27 (?)
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
  • (4)bbcode_code
  • (12)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete