vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Show Thread Enhancements - Add link to user albums in postbit (https://vborg.vbsupport.ru/showthread.php?t=168428)

SEOvB 01-21-2008 10:00 PM

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]
3. Above add
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>
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

Quote:

Originally Posted by Magnumutz (Post 1426734)
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

Quote:

Originally Posted by abroad (Post 1426485)
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
Code:

</td>
                </tr>
                </table>
                <!-- / user info -->
        </td>

Add above
Code:

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

$post[icqicon]
replacement with
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]

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

Quote:

Originally Posted by dacho (Post 1439399)
I added mine to the other side of the postbit next to the ICQ icon
Find in postbit template
Code:

$post[icqicon]
replacement with
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]

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

Quote:

Originally Posted by Triky (Post 1428760)
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.

Code:

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

Attachment 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

Quote:

Originally Posted by bugzy (Post 1475425)
i used this setup, and works great


Same here, I like this one the best too.

BigDog56 05-04-2008 03:41 PM

Quote:

Originally Posted by bugzy (Post 1475425)
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
Quote:

<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

Quote:

Originally Posted by justchil (Post 1510346)
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

Quote:

Originally Posted by DiesellMinded (Post 1513273)
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

Quote:

Originally Posted by Phaedrus (Post 1517758)
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

Quote:

Originally Posted by rhinoForums.net (Post 1519974)
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:


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
  • Page Generation 0.01255 seconds
  • Memory Usage 1,816KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (9)bbcode_code_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete