![]() |
Add link to user albums in postbit
////////////////////////////////
/// From Dave at Madden Strategy /////////////////////////////// This will add a link to user albums in the postbit or postbit_legacy template (depending which you use) 1.Open either your postbit or postbit_legacy template 2. Search for Code:
$post[onlinestatus] Code:
<a href="album.php?u=$post[userid]" title="View $post[username]'s Album" rel="nofollow"><img src="images/buttons/add_album.png" alt="View $post[username]'s Photo Album" border="0"/></a> Screenshot and install instruction included You are free to re-use this code for any non-commerical purposes |
Can this be set to only link if they have photos in their album?
|
I would agree with that - no point in sending most people to a page with nothing on it. I think this would need to be a plugin.
|
doesnt work. just opens a menu like when you click on the username
|
Use an <if> condition dude... Donno which yet, i'll check :D
|
Quote:
|
Quote:
Do you have a link to your site where you tried it? |
the username popup link seems to interfere
|
I added mine to the other side of the postbit in text just below the users post count and says "See username's photo albums"
Find in postbit template Code:
</td> Code:
<a href="album.php?$session[sessionurl]u=$post[userid]"> See $post[musername]'s photo albums</a> |
I suggest you to add to the <img> tag style this code:
style="vertical-align: middle" ;) |
I added mine to the other side of the postbit next to the ICQ icon
Find in postbit template Code:
$post[icqicon] Code:
<a href="album.php?u=$post[userid]" title="View $post[username]'s Album" rel="nofollow"><img src="images/buttons/add_album.png" alt="View $post[username]'s Photo Album" border="0"/></a> $post[icqicon] |
how many picture in album showing ?
what does is hack? turkce bilen arkadaslar yardımcı olsun postbıtte toplam resım sayısınıda gosteren hack yapsınlar |
Please keep responses in English.
|
Great mod, I've adapted it for use in the members list results page, now how can we add the album and picture counts like in the members' profile page stats box? Thanks, rg.
|
Any "if" statement, so we can tell who has uploaded in their album?
|
i installed this hack and it worksfine on my forum and im running 3.7.5 beta
|
good job
|
Quote:
|
thanks FRDS. any more progress on developing this further like what vbgallery is capable of?
|
Quote:
|
Photopost's vbGallery uses this code in the postbit to show the number of photos and comments for that member. I've attached a screenshot of how it displays.
Code:
<if condition="!empty($post[ppicount])"> so is there any way we can adapt this same method into vbulletin's user albums? I want to get away from vbGallery so bad. :) |
Quote:
Same here, I like this one the best too. |
Quote:
|
Has anyone figured out the variable for the number of photos for a user (if there is one)?
It would be really easy to write an if statement if this is availabe... <if condition="$post[whatever_the_var_is]>='1'"> Photos: (<a href="album.php?u=$post[userid]" title="View $post[username]'s Album" rel="nofollow">$post[whatever_the_var_is]</a>) </if> Something like this would be sweet... I slopped this together so it may or may not work once the var is found. If someone would like to create a thread on this i'd be more than happy to contribute. I've already started looking around in album.php for possible solutions. |
any news/update?
|
How can i make this only show when a user has photos in there album ?
|
I added above
Quote:
|
I added this on the same line with Yahoo, MSN icon. Great. Thanks for this! Installed.
|
Quote:
Maybe this one: $album[picturecount] |
Quote:
|
Quote:
|
I'd really like the conditional as well. I'd hate to have people excited to see someones album only to find out there isn't one...
Thanks for this mod BTW! It's great! |
Works fine on vb 3.7.0
|
nice... thank you
|
Installed, nice but if condition would be appreciated! :)
|
I don't think you can do a conditional for this without adding a query for each post.
|
is there a way to add a new entry in the album table which is set to 1 if someone adds a photo.
the actual value could be set by a scheduled taskl which runs on any that show 0 every hour or so? |
Good little MOD.
Will click installed. Be better to just put in template of a user who doesnt have an album a condition, that IF no albums, click here to go back. That could save some confusion, and any additional server requests. Ozzy |
thanks!
|
Quote:
Thanks, better than nothing anyway! :) :up: |
All times are GMT. The time now is 05:24 PM. |
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:
|