Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Add link to user albums in postbit Details »»
Add link to user albums in postbit
Version: 1.00, by SEOvB SEOvB is offline
Developer Last Online: May 2015 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.7.0 Rating:
Released: 01-21-2008 Last Update: Never Installs: 102
Template Edits
Re-useable Code  
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 04-03-2008, 05:53 PM
nonamer69 nonamer69 is offline
 
Join Date: Nov 2005
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #23  
Old 04-21-2008, 02:33 AM
a squared's Avatar
a squared a squared is offline
 
Join Date: Jul 2005
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bugzy View Post
i used this setup, and works great

Same here, I like this one the best too.
Reply With Quote
  #24  
Old 05-04-2008, 03:41 PM
BigDog56 BigDog56 is offline
 
Join Date: Jan 2007
Posts: 430
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bugzy View Post
i used this setup, and works great
Same as above, works great!
Reply With Quote
  #25  
Old 05-06-2008, 12:06 PM
justchil justchil is offline
 
Join Date: Sep 2005
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #26  
Old 05-08-2008, 01:51 PM
massizero massizero is offline
 
Join Date: Apr 2008
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any news/update?
Reply With Quote
  #27  
Old 05-09-2008, 01:35 AM
DieselMinded's Avatar
DieselMinded DieselMinded is offline
 
Join Date: Mar 2007
Posts: 1,655
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How can i make this only show when a user has photos in there album ?
Reply With Quote
  #28  
Old 05-11-2008, 01:44 PM
BrOkEn.HaLo BrOkEn.HaLo is offline
 
Join Date: Mar 2007
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I added above
Quote:
<if condition="$show['reputationlink']">
and it works great.
Reply With Quote
  #29  
Old 05-11-2008, 04:06 PM
rapidphim rapidphim is offline
 
Join Date: Feb 2007
Posts: 733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I added this on the same line with Yahoo, MSN icon. Great. Thanks for this! Installed.
Reply With Quote
  #30  
Old 05-13-2008, 12:15 AM
Phaedrus Phaedrus is offline
 
Join Date: Jul 2006
Location: Colorado
Posts: 617
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by justchil View Post
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]
Reply With Quote
  #31  
Old 05-13-2008, 02:37 AM
echo2kk5 echo2kk5 is offline
 
Join Date: Dec 2004
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DiesellMinded View Post
How can i make this only show when a user has photos in there album ?
I would also like to know this.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:08 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05948 seconds
  • Memory Usage 2,301KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete