Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons

Reply
 
Thread Tools
Album Link in Postbit Details »»
Album Link in Postbit
Version: 0.9, by h2ojunkie h2ojunkie is offline
Developer Last Online: Nov 2022 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.8.0 RC 1 Rating:
Released: 12-08-2008 Last Update: 12-08-2008 Installs: 235
Uses Plugins
Re-useable Code Translations  
No support by the author.

Adds a link to the userinfo section of showthread and showpost only if user has public albums.

Uses postbit_userinfo_right template hook for position of the link, so there are no template edits.

Uses one sub query.

I have not tested this on any version other than 3.8.0 RC 1

I have only tested on a small site, and while I don't expect there to be a performance issue, I can not confirm it's performance effect on large sites with a large number of user albums.

Download Now

File Type: xml product-albumpostbitlink.xml (1.9 KB, 1044 views)

Screenshots

File Type: jpg postbit.jpg (29.0 KB, 0 views)
File Type: jpg postbit_legacy.jpg (27.9 KB, 0 views)

Show Your Support

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

Comments
  #2  
Old 12-09-2008, 10:01 PM
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Location: Indianapolis
Posts: 2,451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

isn't it going to add a query to every post on the page?
Reply With Quote
  #3  
Old 12-09-2008, 10:20 PM
h2ojunkie h2ojunkie is offline
 
Join Date: Sep 2004
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, it's one query for the entire page no matter how many posts are on that page, and it's actually a left join sub query on the main VB query that grabs the posts for that page. So in theory it may actually be a little less load than a stand alone query would be.
Reply With Quote
  #4  
Old 12-09-2008, 10:47 PM
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Location: Indianapolis
Posts: 2,451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by h2ojunkie View Post
No, it's one query for the entire page no matter how many posts are on that page, and it's actually a left join sub query on the main VB query that grabs the posts for that page. So in theory it may actually be a little less load than a stand alone query would be.
Awesome job then :up:
Reply With Quote
  #5  
Old 12-09-2008, 11:57 PM
Daryn Daryn is offline
 
Join Date: Nov 2008
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would there be a way to get this to work on the postbit_legacy?
Reply With Quote
  #6  
Old 12-10-2008, 11:26 AM
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Location: Indianapolis
Posts: 2,451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Daryn View Post
Would there be a way to get this to work on the postbit_legacy?
Make sure you have: $template_hook['postbit_userinfo_right'] in your postbit_legacy template.

Works good for me in both postbit and postbit_legacy
Reply With Quote
  #7  
Old 12-11-2008, 07:33 PM
alqloob alsahya alqloob alsahya is offline
 
Join Date: Dec 2006
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent

Thank you for your beautiful theme

I've change instead of a simple text link and replace them with the adjustment method is easy, the way language and words

Search Member's Picture Albums
B replace them

Code:
<a href="album.php?u=$post[userid]" title="View $post[username]'s Album" rel="nofollow"><img src="images/buttons/add_album.png" alt="Member's Picture Albums" border="0"/></a>
And easily change the language of the text explanation as a state language only change Member's Picture Albums shown in red

Image upload to your site






Just a slight change to the participation of your themes beautiful

Thank you again :up:
Reply With Quote
  #8  
Old 12-12-2008, 06:58 AM
joh's Avatar
joh joh is offline
 
Join Date: Mar 2006
Location: NY
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can this be made to show the number of images the users have in his/her album/albums?
Reply With Quote
  #9  
Old 12-12-2008, 11:44 AM
Sweeks Sweeks is offline
 
Join Date: Jul 2008
Posts: 633
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not working in 3.7.4 PL1, tried changing the hook to $template_hook[postbit_userinfo_right_after_posts], didnt show still in postbit_legacy for me. Would appreciate if anyone else knows how to get this working in 3.7.4PL1 Thanks
________
Fix ps3
Reply With Quote
  #10  
Old 12-12-2008, 03:37 PM
h2ojunkie h2ojunkie is offline
 
Join Date: Sep 2004
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by joh View Post
Can this be made to show the number of images the users have in his/her album/albums?
It may be possible, but that would require extra queries. Not something I plan to do as I have no need for the image count at the cost of extra queries.
Reply With Quote
Reply

Thread Tools

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 11:55 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.07049 seconds
  • Memory Usage 2,318KB
  • Queries Executed 24 (?)
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
  • (1)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (3)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete