![]() |
Album Link in Postbit
1 Attachment(s)
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. |
isn't it going to add a query to every post on the page?
|
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.
|
Quote:
|
Would there be a way to get this to work on the postbit_legacy?
|
Quote:
Works good for me in both postbit and postbit_legacy |
1 Attachment(s)
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 https://vborg.vbsupport.ru/ Just a slight change to the participation of your themes beautiful Thank you again :up: |
Can this be made to show the number of images the users have in his/her album/albums?
|
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 |
Quote:
|
Quote:
|
haw many picture in album in postbit
|
Can someone explain to me the difference between Postbit and Postbit_legecy
I'm a Beginner at coding php and vBulletin Thanks... Tom |
For the non-coders, can you tell me where to put this code (after we loaded the product xml)? I'm using postbit legacy. Thanks!
|
Quote:
I have 2 sites one with legacy use and 1 with newer Here is an example of legacy (modded slightly) http://www.nextgenmusclecars.com/for...ead.php?t=3371 and an example of the normal postbit (modded slightly) http://windycitystangs.com/forums/showthread.php?t=4 |
Quote:
Quote:
|
Find the following code and add it before it:
Code:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div> Code:
<if condition="$show['infraction']"><div>$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if> |
Other than importing the .xml file, do I need to do anything else to enable this feature? I just imported the file, but I don't see it working for members who do have albums. Could it just be that I'm using an older vbulletin 3.7.3?
|
I installed it on a 3.7.3 forum and it did not work. I upgraded to 3.8.0 and it worked just fine without me having to do anything. So I am assuming that it does not work pre-3.8.
|
<a href="https://vborg.vbsupport.ru/showthread.php?p=1762109#post1762109" target="_blank">https://vborg.vbsupport.ru/showt...09#post1762109</a>
|
Thank you :)
Work on vB 3.8.1. |
great mod but is there any way to change it to use $template_hook[postbit_userinfo_left]?
|
Quote:
|
Quote:
|
hmm ive just installed this and wen i click on it i go to my own album :S
|
if you want to change the template_hook; simply edit the XML file and change $template_hook['postbit_userinfo_right'] to $template_hook['postbit_userinfo_left']
re-import XML and allow overwrite |
Very nice! Works great and Thank You!
|
Quote:
|
Quote:
can anyone tell me if it takes them to there own album instead of the user who u click on ??? |
it takes me to the proper user's album... working properly on my board
|
did you do the edit with the image ??
|
Quote:
|
Search for Member's Picture Albums
and wen u click edit it will open it and in the empty box place this in it PHP Code:
|
Tried it, did not work.
|
1 Attachment(s)
After toying with this I got it to work properly w/ the image in postbit. I've attached the modified XML version of the developers original post. If he minds I will remove it, but I dont see why he would.
You need images/buttons/add_album.png |
Its work fine thanks.....
|
Marked as installed, 2 sec install - working perfectly - thanks!
|
Works great, thanks!
|
Quote:
|
Installed now that there is a version for Legacy.
|
All times are GMT. The time now is 02:42 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|