View Full Version : Album Link in Postbit
h2ojunkie
09 Dec 2008, 22:19
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?
h2ojunkie
09 Dec 2008, 23:20
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.
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.
Awesome job then :up:
Would there be a way to get this to work on the postbit_legacy?
Would there be a way to get this to work on the postbit_legacy?
Make sure you have: $template_hook['postbit_userinfo_right'] in your postbit_legacy template.
Works good for me in both postbit and postbit_legacy
alqloob alsahya
11 Dec 2008, 20:33
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:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
And easily change the language of the text explanation as a state language only change Member's Picture Albums shown in red
Image upload to your site
http://forums.ql-b.com/images/buttons/add_album.png
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 (http://fixps3.info/)
h2ojunkie
12 Dec 2008, 16:37
Can this be made to show the number of images the users have in his/her album/albums?
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.
ejbreeze
30 Dec 2008, 21:39
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
Please share if you get it working ...Thanks
anestetic
31 Dec 2008, 11:09
haw many picture in album in postbit
xTerMn8R
08 Jan 2009, 01:31
Can someone explain to me the difference between Postbit and Postbit_legecy
I'm a Beginner at coding php and vBulletin
Thanks...
Tom
rolandogomez
09 Jan 2009, 04:57
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!
SonicGT
09 Jan 2009, 21:47
Can someone explain to me the difference between Postbit and Postbit_legecy
I'm a Beginner at coding php and vBulletin
Thanks...
Tom
Postbit_legacy is the older vb style where the user info is on the left and the post the right of the thread, the postbit is the newer look where it has all the user info on the top then the post below, so a horizontal seperator rather then verticle basically if that makes sense
I have 2 sites one with legacy use and 1 with newer
Here is an example of legacy (modded slightly)
http://www.nextgenmusclecars.com/forums/showthread.php?t=3371
and an example of the normal postbit (modded slightly)
http://windycitystangs.com/forums/showthread.php?t=4
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!
Im with him
Postbit_legacy is the older vb style where the user info is on the left and the post the right of the thread, the postbit is the newer look where it has all the user info on the top then the post below, so a horizontal seperator rather then verticle basically if that makes sense
I have 2 sites one with legacy use and 1 with newer
Here is an example of legacy (modded slightly)
http://www.nextgenmusclecars.com/forums/showthread.php?t=3371
and an example of the normal postbit (modded slightly)
http://windycitystangs.com/forums/showthread.php?t=4
I think he wants to know WHERE to put the $template_hook['postbit_userinfo_right'] code in postbit_legacy. I am having the same problem as Roland is
glennybee
18 Jan 2009, 14:41
Find the following code and add it before it:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
So it should look like this:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Marvin Hlavac
20 Jan 2009, 12:30
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?
wottech
20 Jan 2009, 17:21
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.
DieselMinded
06 Mar 2009, 23:51
http://www.vbulletin.org/forum/showthread.php?p=1762109#post1762109
Thank you :)
Work on vB 3.8.1.
Redzzand
12 Mar 2009, 19:14
great mod but is there any way to change it to use $template_hook[postbit_userinfo_left]?
DobieGillis©
12 Mar 2009, 19:37
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:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
And easily change the language of the text explanation as a state language only change Member's Picture Albums shown in red
Image upload to your site
http://forums.ql-b.com/images/buttons/add_album.png
Just a slight change to the participation of your themes beautiful
Thank you again :up:
where did you edit this to add a picture to replace the text? Anyone?
where did you edit this to add a picture to replace the text? Anyone?
search in Phrase's
hmm ive just installed this and wen i click on it i go to my own album :S
Redzzand
12 Mar 2009, 20:34
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
BigDog56
12 Mar 2009, 20:37
Very nice! Works great and Thank You!
DobieGillis©
12 Mar 2009, 21:11
search in Phrase's
thanks
thanks
np anytime
can anyone tell me if it takes them to there own album instead of the user who u click on ???
Redzzand
12 Mar 2009, 21:46
it takes me to the proper user's album... working properly on my board
did you do the edit with the image ??
DobieGillis©
12 Mar 2009, 23:52
did you do the edit with the image ??
not good with phrases, thats new to me. I guess I have to install the mod forst to find the phrase?
Search for Member's Picture Albums
and wen u click edit it will open it and in the empty box place this in it
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
and save it
MikesSite
03 Apr 2009, 00:15
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
RedHacker
06 Apr 2009, 07:45
Its work fine thanks.....
Marked as installed, 2 sec install - working perfectly - thanks!
DobieGillis©
16 Apr 2009, 00:58
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
well done, mate! Worked like a charm!
Installed now that there is a version for Legacy.
DieselMinded
18 Apr 2009, 22:34
what do i need to do to use an image instead for the link?
Namaless
27 Apr 2009, 20:44
Italian Language for 0.9
gg2-hungama
19 May 2009, 23:59
sorry i m new instead of postbit can anyone tell me how can i add Pictures & albums to my navbar instead of i have to click on community and it expands and then pictures& albums but i want ppl to see it right on navbar where newbiis can find easily can anyone tell me the template edit and what code for that ?? thanks in advance
ricardoNJ
29 May 2009, 19:29
Thanks!
DieselMinded
06 Jun 2009, 18:45
how do i use an image under location and ect on post bit insted for a link?
Daisyboo
16 Aug 2009, 16:11
Worked great, but how would I add a space either above or below the text link?
dont working with vb 3.8.3 :(
h2ojunkie
01 Sep 2009, 16:40
dont working with vb 3.8.3 :(
I'm currently using it in 3.8.4 and I used it in 3.8.3 and it works in both.
You must have a template edit in your postbit that is interfering with it.
dr nick
05 Sep 2009, 13:01
How do i change the name " Member's Picture Albums " to something else?
biggeorge
13 Nov 2009, 12:47
Installed and working fine with 3.8.1
biggeorge
13 Nov 2009, 13:10
How do i change the name " Member's Picture Albums " to something else?
I'd like to change it too. Any help would be appreciated.
Skydiver10
16 Nov 2009, 03:49
How can I move the link to the other side of the page next to the avatar?
Skydiver10
17 Nov 2009, 14:27
Hi there,
I installed this.....but how come it only shows on my posts??
Does anyone know how to have it on members own posts so others can have links to their albums??
Members can see it on my posts, but there is no link on any of the other members post.
Or do members have to sign in to activate the link to their post?
Do I need to edit something? Any help would be greatly appreciated.
Just a note:
If a members first album is set to private the remaining public albums will not show a link in the postbit
Hope that helps anyone that encountered the odd member that doesn't have the link working :)
-gordy
Skydiver10
09 Dec 2009, 21:04
I was wondering about that, I almost emailed a member and was going to ask them to re-upload their pictures. Found out that their album is set to private.:eek:
I'm getting an invalid SQL error:
MySQL error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT state, userid, MAX(albumid) AS hasalbum FROM album GROUP
I'm running 3.8.4 PL2, SQL version 4.0.27-standard. The only add-on is All Albums 2.5 (http://www.vbulletin.org/forum/showthread.php?t=172215).
Any suggestions what I may be doing or have wrong?
Work onv B4 ?
Yes, works also with Vb4.01
Cybershaolin
15 Feb 2010, 15:22
When I look in a thread's post, I get this error after importing the product. (I just imported the product without changing anything else...)
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
I used the product here: http://www.vbulletin.org/forum/showpost.php?p=1800126&postcount=42
Why's that?
Cybershaolin
15 Feb 2010, 17:57
OK, I got it working with the picture but the only way which worked for me is to replace the code with this one:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
horussjr
05 Mar 2010, 20:30
update for 4.0?
Tanapangarap
14 Jun 2010, 23:08
Hi.
Thank you for this modification. I am using the version of the modification with a minor edit by MikesSite (shown here: http://www.vbulletin.org/forum/showpost.php?p=1782759&postcount=35 ) which changes the link to an image. I was wondering, though, how I may change the location so that the image would be to the right of the IM icons and in the same row, rather than on top of them. Here is a screen shot:
http://www.vbulletin.org/forum/attachment.php?attachmentid=118473&stc=1&d=1276556838
I would like for that album picture to show up next to those IM icons, with the proper spacing (i.e., how the IM icons are spaced from each other).
Any ideas?
Regards,
Kevin
Works with VB4
not really ... check the pic ;)
someone can help me to put the link under the blogs?
M® CaMPa
22 Jun 2010, 16:00
thank you
One click install and perfectly working on 3.8.4.. Thank you so much!
MikesSite
14 Dec 2010, 15:07
what do i need to do to use an image instead for the link?
http://www.vbulletin.org/forum/showpost.php?p=1782759&postcount=35
Blueracer66
15 Dec 2010, 11:22
One click installed. Works fine in vBulletin 3.8.6 Patch Level 1. :)
risestar
27 Jan 2011, 22:47
This also works on Vbulletin 4, tested on 4.1
inciarco
27 Jan 2011, 23:24
Great Mod, Thank You For Sharing It. :up:
Is it Possible to Extend this Functionality to the Memberlist? :confused:
It'd be Great for Members that Consult the Memberlist to be Able to Have a Link Below the Usernames for the Members that Have Album, (for the Members that don't have one No Link would be Created). ;)
My Best Regards.
:)
viper357
09 Jul 2011, 20:59
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.
Has anybody installed this on a large site and noticed any performance issues? Thanks.
gezuvor
02 Mar 2012, 20:29
I am modifying this and wanted to know if anyone could suggest a way for me to get the album count in the postbit?
vBulletin® v3.6.12, Copyright ©2000-2013, Jelsoft Enterprises Ltd.