vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Album Link in Postbit (https://vborg.vbsupport.ru/showthread.php?t=311241)

spiritaces 05-10-2014 07:07 PM

Album Link in Postbit
 
I'm surprised to find only a couple of threads that talk about this - with no conclusive way to add a users album link in the postbit. Can anybody advise? Thanks

tbworld 05-10-2014 07:17 PM

Please post the links to the threads you are referring to. :)

Found this... have no idea if it works.

(New Link)
https://vborg.vbsupport.ru/showthread.php?t=198477

DemOnstar 05-11-2014 01:17 AM

Does the link above take you to the same page?

tbworld 05-11-2014 01:33 AM

Quote:

Originally Posted by DemOnstar (Post 2497221)
Does the link above take you to the same page?

Oops! ... It does. Let me see what went wrong. I rarely make a mistake (jk). :)

--------------- Added 10 May 2014 at 20:47 ---------------

Link Replaced, thanks @DemOnstar! :)

spiritaces 05-11-2014 12:12 PM

Quote:

Originally Posted by tbworld (Post 2497192)
Please post the links to the threads you are referring to. :)

Found this... have no idea if it works.

(New Link)
https://vborg.vbsupport.ru/showthread.php?t=198477

For example, here is one that doesn't work:
https://vborg.vbsupport.ru/showthread.php?t=282053

Thanks for the new link - only problem with that one is, it shows up adjacent to the user avatars and I can't edit the link text. Further, it would be nice if it auto calculated the # of albums per user.

DemOnstar 05-11-2014 12:42 PM

I have it at the bottom of the postbit, at the opposite end of the avatar and have already edited the text.

The text is in phrases and can be changed. 4.2.1

spiritaces 05-11-2014 01:03 PM

Quote:

Originally Posted by DemOnstar (Post 2497272)
I have it at the bottom of the postbit, at the opposite end of the avatar and have already edited the text.

The text is in phrases and can be changed. 4.2.1

That's the end result I'd like. Mind sharing the code you used and where you placed it?

DemOnstar 05-11-2014 02:14 PM

I didn't use any code, it just happened that way. Perhaps it is due to differences in our styles?
I would gladly share the code with you, if I knew which template you wanted.

spiritaces 05-11-2014 07:08 PM

Quote:

Originally Posted by DemOnstar (Post 2497286)
I didn't use any code, it just happened that way. Perhaps it is due to differences in our styles?
I would gladly share the code with you, if I knew which template you wanted.

Thanks! I'm using 4.2.1 and the standard postbit (not legacy postbit).

spiritaces 05-11-2014 07:50 PM

1 Attachment(s)
The plug in wants to put the album link in the 'postbit_userinfo_left' - which places it adjacent to the users avatar. If I use 'postbit_userinfo_left' - it moves inline with the other text but sits above the avatar. I'd like this to sit below everything in the postbit & user info section.

Here's the default code:
Code:

$template_hook['postbit_userinfo_left'] .= '<div><a href="album.php?' . $vbulletin->session->vars['sessionurl'] . 'u=' . $post['userid'] . '" rel="nofollow">' . $vbphrase['members_picture_albums'] . '</a></div>';
I was trying to change the hook location to something like this (but didn't work):
Code:

$template_hook['postbit_userinfo_right'"><dl class="userinfo_extra"]
Any ideas?

Attached is a pic of where the link is and where I'd like to place it (would like it on the bottom).


All times are GMT. The time now is 01:59 AM.

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.01624 seconds
  • Memory Usage 1,735KB
  • 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
  • (2)bbcode_code_printable
  • (4)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
  • (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