vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Show Thread Enhancements - Album Link in Postbit (https://vborg.vbsupport.ru/showthread.php?t=198477)

h2ojunkie 12-08-2008 10:00 PM

Album Link in Postbit
 
1 Attachment(s)
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.

SEOvB 12-09-2008 10:01 PM

isn't it going to add a query to every post on the page?

h2ojunkie 12-09-2008 10:20 PM

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.

SEOvB 12-09-2008 10:47 PM

Quote:

Originally Posted by h2ojunkie (Post 1681968)
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:

Daryn 12-09-2008 11:57 PM

Would there be a way to get this to work on the postbit_legacy?

SEOvB 12-10-2008 11:26 AM

Quote:

Originally Posted by Daryn (Post 1682010)
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

alqloob alsahya 12-11-2008 07:33 PM

1 Attachment(s)
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


https://vborg.vbsupport.ru/



Just a slight change to the participation of your themes beautiful

Thank you again :up:

joh 12-12-2008 06:58 AM

Can this be made to show the number of images the users have in his/her album/albums?

Sweeks 12-12-2008 11:44 AM

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

h2ojunkie 12-12-2008 03:37 PM

Quote:

Originally Posted by joh (Post 1683686)
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.


All times are GMT. The time now is 04:47 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.01082 seconds
  • Memory Usage 1,738KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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