The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Add Link to User Albums in Member List Details »» | |||||||||||||||||||||||||||
Add Link to User Albums in Member List
Developer Last Online: Feb 2012
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> 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> Show Your Support
|
Comments |
#2
|
|||
|
|||
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. |
#3
|
||||
|
||||
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! |
#4
|
|||
|
|||
Quote:
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 |
#5
|
||||
|
||||
Quote:
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! |
#6
|
|||
|
|||
Great . I actualy use this in my postbit_legacy as it makes it nice and clear..
|
#7
|
|||
|
|||
Good job, Rolando.
It's good to see people who are willing to contribute to the best of their abilities. I salute your spirit! |
#8
|
||||
|
||||
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.
|
#9
|
|||
|
|||
Quote:
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 |
#10
|
|||
|
|||
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? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|