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

Reply
 
Thread Tools
Add Link to User Albums in Member List Details »»
Add Link to User Albums in Member List
Version: 1.00, by rolandogomez rolandogomez is offline
Developer Last Online: Feb 2012 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.7.0 Beta 4 Rating:
Released: 02-15-2008 Last Update: Never Installs: 24
Template Edits
Re-useable Code  
No support by the author.

Well first, I'm no programmer and taking what FRDS has in his mod to add a user's link to their albums in the postbit, https://vborg.vbsupport.ru/showthread.php?t=168428

I've come up with using FRDS's helpful mod and modifying it for the member's list. So one hand, I'm hoping this code is not wrong, as it works for me, but also I can't take full credit either.

Again, no programmer, and this is my first attempt at posting a mod, but it's working on my new site,

DEMO
http://www.shotcritic.com/forums/memberlist.php

Basically it's only one edit, find the memberlist template, memberlist_resultsbit by doing the following:

1. In AdminCP, find Styles and Templates>>Style Manager>>Select Style>>Edit Templates>>Member List Templates>>memberlist_resultsbit

2. In memberlist_resultsbit, find this:
Code:
<a href="member.php?$session[sessionurl]u=$userinfo[userid]">$userinfo[musername]</a>
				<if condition="$show['usertitlecol']"><div class="smallfont">$userinfo[usertitle]</div></if>
and under it put this:
Code:
<a href="album.php?$session[sessionurl]u=$userinfo[userid]" title="View $userinfo[username]'s Album" rel="nofollow"><font color="red"><i>Member's Photo Albums</i></font><img src="images/buttons/add_album.png" alt="View $userinfo[username]'s Photo Album" border="0"/></a>
Note, you can remove the italics and font tags if you don't want the linking text to stand out, or change the color to what you want, but it works! Thanks again to FRDS for his inspiration for me to go out and try something as a non-programmer. If anyone thinks the code could be better, let me know! Thanks, rg sends!

Show Your Support

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

Comments
  #2  
Old 02-16-2008, 05:01 AM
abroad abroad is offline
 
Join Date: Mar 2007
Posts: 231
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would be great if it would also show if a member has created a photos/album at all or how many pictures the member has (e.g. link should only appear if the member has an album).

Otherwise I have many links to empty albums/pages.
Reply With Quote
  #3  
Old 02-16-2008, 05:45 AM
rolandogomez's Avatar
rolandogomez rolandogomez is offline
 
Join Date: Jan 2006
Location: San Antonio
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I agree, and since I'm no programmer, I'm open for ideas and would love this too. I know this function is available in the member's profile under the album stats. Wish I knew how to use that code on the member's list.

Another thing I hope for is for someone to come up with a mod that will give you a link in the tool bar for the reply boxes that would be [image] that linked to a pop-out panel with mini-thumbs of the user's albums, then the user clicks on the album mini-thumb which takes them to their mini-thumbs of the album's content. Once the user/poster selects and image, it would then drop the code in the posting area.

We have this already with PhotoPost and PhotoPlog, not sure why we can't have it with VB. Wish I was a programmer. Thanks, rg sends!
Reply With Quote
  #4  
Old 02-16-2008, 12:54 PM
Mike-D Mike-D is offline
 
Join Date: Jan 2006
Location: Cologne / Germany
Posts: 270
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rolandogomez View Post
Another thing I hope for is for someone to come up with a mod that will give you a link in the tool bar for the reply boxes that would be [image] that linked to a pop-out panel with mini-thumbs of the user's albums, then the user clicks on the album mini-thumb which takes them to their mini-thumbs of the album's content. Once the user/poster selects and image, it would then drop the code in the posting area.
Rolando,
because I'm a convinced PhotoPlog customer and member in that forum, we have exactly what you'd like to have. It's called 'Popup Selector' and does exactly what you wrote. See my Attachments. That what you meant? -Mike
Reply With Quote
  #5  
Old 02-16-2008, 03:37 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 Mike-D View Post
Rolando,
because I'm a convinced PhotoPlog customer and member in that forum, we have exactly what you'd like to have. It's called 'Popup Selector' and does exactly what you wrote. See my Attachments. That what you meant? -Mike
Mike,

Hi. I too am a proud member of several PhotoPlog Pro licenses. I love that software, but my newest site, I'm using only VB for the simplicity of the site. I still will use PhotoPlog where I need it though, and yes, not only is it great, but great support from them too.

On the other hand, yes, that's exactly what I want, but how do I modify that to work with the albums feature here on VB? That would be the ultimate because I run photo intensive sites. Thanks, rg sends!
Reply With Quote
  #6  
Old 02-24-2008, 08:29 AM
masons masons is offline
 
Join Date: Jan 2007
Posts: 150
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great . I actualy use this in my postbit_legacy as it makes it nice and clear..
Reply With Quote
  #7  
Old 03-06-2008, 10:52 AM
jayjenxi jayjenxi is offline
 
Join Date: Nov 2007
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good job, Rolando.

It's good to see people who are willing to contribute to the best of their abilities. I salute your spirit!
Reply With Quote
  #8  
Old 03-06-2008, 05:15 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 jayjenxi View Post
Good job, Rolando.

It's good to see people who are willing to contribute to the best of their abilities. I salute your spirit!
Thanks, again, I'm a photographer and author, not a programmer, though webmaster of sorts. I just hope someone can create the pop-out selector of mini-thumbs for the albums in the quick reply and advanced reply box area like they have for PhotoPlog. Thanks, rg.
Reply With Quote
  #9  
Old 05-06-2008, 12:11 PM
justchil justchil is offline
 
Join Date: Sep 2005
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rolandogomez View Post
Thanks, again, I'm a photographer and author, not a programmer, though webmaster of sorts. I just hope someone can create the pop-out selector of mini-thumbs for the albums in the quick reply and advanced reply box area like they have for PhotoPlog. Thanks, rg.
I'm also looking for something like this.... I'm hoping someone will make a mod that takes care of this feature. I've been using a free gallery mod for a few months now and it included this feature which my users loved.

If all else fails I'll start trying to do it myself. If I find something in the future I'll shoot you a PM... would appreciate it if you could to the same
Reply With Quote
  #10  
Old 07-05-2008, 01:28 PM
l3it3r l3it3r is offline
 
Join Date: May 2006
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was looking into this the past hour or so. It looks like it'll take a few queries to do it. Not sure it's worth the extra load to see if your user has a gallery or not on every postbit load. Maybe an addition to the user table with a null value from default (account creation), and a 'has gallery' value when one is created could be devised? I'm not terribly good with sql though. The value would have to go back to null if all of the user's galleries are deleted as well...

Then all you need to do is pull one more bit of information from the same table that the user's username, post count, location, etc is pulled from.

Not sure how to incorporate that into a vb install that has a considerable amount of galleries already though... maybe a seperate php file that 'installs' the new sql entries according to the user's id and if they have a gallery now?
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 06:06 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.08699 seconds
  • Memory Usage 2,305KB
  • 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
  • (2)bbcode_code
  • (4)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
  • (1)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