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)

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.


All times are GMT. The time now is 03:13 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.03830 seconds
  • Memory Usage 1,739KB
  • 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
  • (1)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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