vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Member number in profile (https://vborg.vbsupport.ru/showthread.php?t=279450)

I.G.O.T.A. 03-07-2012 06:26 PM

So would the whole code look like this? Or am I missing something. I tried it and nothing. I'm still learning, lol. Thanks for all the help everyone.

{vb:raw prepared.userid}<vb:if condition="$prepared['userid']"><dt>{vb:rawphrase member_number}</dt> <dd>{vb:raw userinfo.userid}</dd></vb:if>

Lynne 03-08-2012 03:36 AM

As I asked before..

Have you even tried it without the condition to see if that part is correct?

cellarius 03-08-2012 06:15 AM

Also: Where exactly do you put that code?

I.G.O.T.A. 03-08-2012 12:28 PM

Quote:

Originally Posted by Lynne (Post 2307337)
As I asked before..

Have you even tried it without the condition to see if that part is correct?

Yes I did and doesn't work.

Quote:

Originally Posted by cellarius (Post 2307361)
Also: Where exactly do you put that code?

Styles/templates/style manager/edit templates/postbit templates/postbit legacy

cellarius 03-08-2012 02:13 PM

So you're in postbit after all? :confused:

In your first post, you wrote you would want to show it in the member's profile! As has been pointed out, the code needs to be different for profile (the memper's page you get taken to if you click on a username) and postbit (the information field on top or on the left of every post in threadview).

Try this:
Code:

<dt>{vb:rawphrase member_number}</dt> <dd>{vb:raw post.userid}</dd>
Make sure you have created a phrase "member_number" and have put it into an appropriate phrase group (global or, preferably if not used anywhere else, postbit). Note that you do not need the condition you have put around your code - the whole userinfo block in postbit is already wrapped in the exact same condition.

If you ask questions like that, please provide as much information on what you want to achieve where - makes it a lot easier to help :)

I.G.O.T.A. 03-08-2012 06:28 PM

I want it underneath the avatar. Like where it says join date, real name and so on. Sorry again for the confusion.

cellarius 03-08-2012 08:40 PM

Have you tried the code I provided?

I.G.O.T.A. 03-08-2012 10:55 PM

Awesome! Thank you for your time. If you need anything just ask!


All times are GMT. The time now is 04:57 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.00985 seconds
  • Memory Usage 1,728KB
  • 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
  • (2)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
  • (8)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