PDA

View Full Version : Show Thread Enhancements - Add link to user albums in postbit


SEOvB
01-21-2008, 10:00 PM
////////////////////////////////
/// From Dave at Madden Strategy (http://maddengods.org)
///////////////////////////////

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

$post[onlinestatus]

3. Above add

<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>

4. Save Template

Screenshot and install instruction included

You are free to re-use this code for any non-commerical purposes

BlizzardHQ
01-22-2008, 02:28 AM
Can this be set to only link if they have photos in their album?

rob30UK
01-22-2008, 07:44 AM
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.

abroad
01-22-2008, 07:46 AM
doesnt work. just opens a menu like when you click on the username

Magnumutz
01-22-2008, 04:05 PM
Use an <if> condition dude... Donno which yet, i'll check :D

SEOvB
01-22-2008, 07:46 PM
Use an <if> condition dude... Donno which yet, i'll check :D

If you find it, feel free to share it with all of us :D I'm no programmer so I didn't have a clue of where to look

SEOvB
01-22-2008, 07:47 PM
doesnt work. just opens a menu like when you click on the username

Are you sure you did the template edit correctly? There isn't any code there that would show a drop down menu.

Do you have a link to your site where you tried it?

twitch
01-22-2008, 07:50 PM
the username popup link seems to interfere

jaks
01-25-2008, 10:21 AM
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
</td>
</tr>
</table>
<!-- / user info -->
</td>

Add above
<a href="album.php?$session[sessionurl]u=$post[userid]"> See $post[musername]'s photo albums</a>

Not the prettiest thing but it works and I haven't figured out the if statement either though.

Triky
01-25-2008, 04:06 PM
I suggest you to add to the <img> tag style this code:

style="vertical-align: middle"

;)

dacho
02-09-2008, 12:35 PM
I added mine to the other side of the postbit next to the ICQ icon
Find in postbit template

$post[icqicon]


replacement with

<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]

anestetic
02-09-2008, 02:49 PM
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

davidw
02-10-2008, 02:09 AM
Please keep responses in English.

rolandogomez
02-13-2008, 07:40 AM
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.

diettalk
02-22-2008, 06:48 PM
Any "if" statement, so we can tell who has uploaded in their album?

King Fly
02-24-2008, 02:25 AM
i installed this hack and it worksfine on my forum and im running 3.7.5 beta

Gosef
03-26-2008, 10:48 AM
good job

bugzy
03-26-2008, 10:34 PM
I added mine to the other side of the postbit next to the ICQ icon
Find in postbit template

$post[icqicon]
replacement with

<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]


i used this setup, and works great

nonamer69
04-03-2008, 07:35 AM
thanks FRDS. any more progress on developing this further like what vbgallery is capable of?

Boofo
04-03-2008, 07:57 AM
I suggest you to add to the <img> tag style this code:

style="vertical-align: middle"

;)

Why not just use class="inlineimg"?

nonamer69
04-03-2008, 05:53 PM
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.


<if condition="!empty($post[ppicount])">
<div class="vb_postbit_info">
Photos: <b><a href="gallery/browseimages.php?do=member&imageuser=$post[userid]">$post[ppicount]</a></b> Comments: <b>$post[pppcount]</b>
</div>
</if>


78176

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. :)

a squared
04-21-2008, 02:33 AM
i used this setup, and works great


Same here, I like this one the best too.

BigDog56
05-04-2008, 03:41 PM
i used this setup, and works great

Same as above, works great!

justchil
05-06-2008, 12:06 PM
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.

massizero
05-08-2008, 01:51 PM
any news/update?

DieselMinded
05-09-2008, 01:35 AM
How can i make this only show when a user has photos in there album ?

BrOkEn.HaLo
05-11-2008, 01:44 PM
I added above
<if condition="$show['reputationlink']">

and it works great.

rapidphim
05-11-2008, 04:06 PM
I added this on the same line with Yahoo, MSN icon. Great. Thanks for this! Installed.

Phaedrus
05-13-2008, 12:15 AM
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.

Wouldn't it be in the Albumbit?

Maybe this one: $album[picturecount]

echo2kk5
05-13-2008, 02:37 AM
How can i make this only show when a user has photos in there album ?
I would also like to know this.

Boofo
05-13-2008, 03:15 AM
Wouldn't it be in the Albumbit?

Maybe this one: $album[picturecount]

That won't work unless you do a query to get the picturecount in the postbit and that would make a query for every post on the page. Not an option, realistically.

rhinoForums.net
05-14-2008, 11:28 PM
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!

makmak
05-25-2008, 01:42 PM
Works fine on vb 3.7.0

bmwusa
05-26-2008, 04:15 AM
nice... thank you

Ticinofelino
06-08-2008, 07:34 AM
Installed, nice but if condition would be appreciated! :)

Boofo
06-08-2008, 07:36 AM
I don't think you can do a conditional for this without adding a query for each post.

turbosatan
06-09-2008, 08:25 PM
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?

TimberFloorAu
06-10-2008, 05:12 AM
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

GrendelKhan{TSU
09-18-2008, 10:02 AM
thanks!

cirdok2
09-26-2008, 11:21 PM
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...

this would be great...

Thanks, better than nothing anyway! :) :up:

JWL
11-03-2008, 02:40 PM
I cannot use something like this, but can this be modified to or another mod created to do the following:

In new thread or Reply, can a user / member have a icon that is connected to that users albums to use the img tag for that image?

currently a user must have two pages open to take advantage of that.


88938

88939

BamaStangGuy
12-09-2008, 02:31 AM
I don't think you can do a conditional for this without adding a query for each post.
and this is why 3.7 AND 3.8 fail miserably at the NETWORKING part. Let's give you all these cool options that people can have and then make them impossible to find. Oh and brand it as 'Social Networking'.

h2ojunkie
12-09-2008, 06:57 AM
I've been able to get it working with one additional sub query. I'm still looking for a more efficient way, I'll post up what I have in the next couple days once I've run out of other ideas to test.

mattcaswell
12-14-2008, 03:25 PM
I've been able to get it working with one additional sub query. I'm still looking for a more efficient way, I'll post up what I have in the next couple days once I've run out of other ideas to test.

I would really appreciate anything you find out about how to have it not show if the user doesn't have an album. I have added the icon by the icnicon and it works well.

JWL
12-14-2008, 03:38 PM
I would really appreciate anything you find out about how to have it not show if the user doesn't have an album. I have added the icon by the icnicon and it works well.

That makes two of us :)

My site is gaining some momentum, adding these little "Corrections" to a faulty design is a must. I sure hope VBulletin develpers are listening.

Personally I am convinced the furture for talk forusm is moving more toward a social networking model. With m forum, we are trying to globalize our site and bring world peace to everyoe one Motorcycle Rider at a time :up: :D

www.sportcityrider.com
It is all about the ride

SEOvB
01-17-2009, 12:21 AM
That makes two of us :)

My site is gaining some momentum, adding these little "Corrections" to a faulty design is a must. I sure hope VBulletin develpers are listening.

Personally I am convinced the furture for talk forusm is moving more toward a social networking model. With m forum, we are trying to globalize our site and bring world peace to everyoe one Motorcycle Rider at a time :up: :D

www.sportcityrider.com
It is all about the ride

Theres a modification floating around here some where that did exactly this, if the user had a photo album it'd show the link, if not then it wouldn't show the link.

I can't seem to find it, but I know its in the 3.7 section some where and it worked like a charm. I'd advise people install that one since its better from a usability stand point ;)

buyinflatables
01-18-2009, 08:03 AM
Wish I could find the modification. :(

JWL
01-18-2009, 04:39 PM
Wish I could find the modification. :(

Me too :erm:

SEOvB
01-20-2009, 09:14 AM
Here it is: https://vborg.vbsupport.ru/showthread.php?t=198477

I suggest installing that one ;)

popowich
02-22-2009, 09:17 PM
Hello,

for anyone interested, a text link variation that looks OK under thanked posts stats looks like this:

<div>
$vbphrase[posts]: $post[posts]
</div>
$template_hook[postbit_userinfo_right_after_posts]
<div>
View <a href="album.php?u=$post[userid]">$post[username]'s photo albums</a>
</div>