The Arcive of vBulletin Modifications Site. |
|
Album Link in Postbit Details »»
|
|||||||||||||||||||||||||||||||
Adds a link to the userinfo section of showthread and showpost only if user has public albums.
Uses postbit_userinfo_right template hook for position of the link, so there are no template edits. Uses one sub query. I have not tested this on any version other than 3.8.0 RC 1 I have only tested on a small site, and while I don't expect there to be a performance issue, I can not confirm it's performance effect on large sites with a large number of user albums. Download Now
Screenshots
Show Your Support
|
|||||||||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
isn't it going to add a query to every post on the page?
|
|
#3
|
|||
|
|||
|
No, it's one query for the entire page no matter how many posts are on that page, and it's actually a left join sub query on the main VB query that grabs the posts for that page. So in theory it may actually be a little less load than a stand alone query would be.
|
|
#4
|
||||
|
||||
|
Quote:
|
|
#5
|
|||
|
|||
|
Would there be a way to get this to work on the postbit_legacy?
|
|
#6
|
||||
|
||||
|
Make sure you have: $template_hook['postbit_userinfo_right'] in your postbit_legacy template.
Works good for me in both postbit and postbit_legacy |
|
#7
|
|||
|
|||
|
Excellent
Thank you for your beautiful theme I've change instead of a simple text link and replace them with the adjustment method is easy, the way language and words Search Member's Picture Albums B replace them Code:
<a href="album.php?u=$post[userid]" title="View $post[username]'s Album" rel="nofollow"><img src="images/buttons/add_album.png" alt="Member's Picture Albums" border="0"/></a> Image upload to your site Just a slight change to the participation of your themes beautiful Thank you again :up: |
|
#8
|
||||
|
||||
|
Can this be made to show the number of images the users have in his/her album/albums?
|
|
#9
|
|||
|
|||
|
Not working in 3.7.4 PL1, tried changing the hook to $template_hook[postbit_userinfo_right_after_posts], didnt show still in postbit_legacy for me. Would appreciate if anyone else knows how to get this working in 3.7.4PL1 Thanks
________ Fix ps3 |
|
#10
|
|||
|
|||
|
It may be possible, but that would require extra queries. Not something I plan to do as I have no need for the image count at the cost of extra queries.
|
![]() |
|
|