vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   postbit help (https://vborg.vbsupport.ru/showthread.php?t=155549)

Addict4Life 08-18-2007 06:57 AM

postbit help
 
i want to add some info in the postbit for members, how can i add my own info? for example i want to add "what do you ride" helppppp:confused:

Digital Jedi 08-18-2007 07:20 AM

Do you mean, like the user fills out a field in his User CP and it's displayed in the postbit? If so, this helped me do just that. http://www.vbulletin.com/forum/showthread.php?t=168741

It took me a while to absorb some of it, but eventually, I was able to add a multiple-choice profile field that displayed little images based on the user's selection. What you want to do is probably a bit simpler then that.

Addict4Life 08-18-2007 03:55 PM

im having trouble finding the postbit in my admin control, were is it? i have 3.6.8 only time i see a postbit is when i install a plug in. but i delated it and there is no more postbit??????

Opserty 08-18-2007 03:58 PM

Styles and Templates -> Style Manager -> (From the right) Edit Templates -> Postbit Templates -> postbit.

Addict4Life 08-18-2007 04:07 PM

Quote:

Originally Posted by Opserty (Post 1320368)
Styles and Templates -> Style Manager -> (From the right) Edit Templates -> Postbit Templates -> postbit.

got it thanks

Quote:

Originally Posted by Digital Jedi (Post 1320101)
Do you mean, like the user fills out a field in his User CP and it's displayed in the postbit? If so, this helped me do just that. http://www.vbulletin.com/forum/showthread.php?t=168741

It took me a while to absorb some of it, but eventually, I was able to add a multiple-choice profile field that displayed little images based on the user's selection. What you want to do is probably a bit simpler then that.

umm i cant figure that out at all. is there any other way to do it, or a better explaination?

Digital Jedi 08-18-2007 05:24 PM

Well, let me ask you this. Are you trying so get users to fill out a form "What do you drive" to show up the postbit? If that's all your trying to do, then just refer to the first post of that thread. The second post is just if you want to get more fancy with it. What parts, specifically, do you need help figuring out?

Addict4Life 08-18-2007 05:39 PM

i guess where to put the code. i put it at the bottom of the legacy and nothing happen.

Digital Jedi 08-18-2007 05:58 PM

Did you create your custom profile field in the Admin CP?

Quote:

Originally Posted by Jack Bunce
If you haven't already, create a new profile field in your:

Admin CP -> User Profile Fields -> Add New User Profile Field

That's where you create your "What do you drive" question. In that menu you have all kinds of options for your question, even if you want to make it mandatory for users.

When your done creating it, you'll notice all the profile fields have "Names" next to them. Like field5 or field3, etc. When you paste in the code to your template, you have to replace "fieldX" with the appropriate field name.



Also, which way are your forums aligned? Are they like this one with the avatar and postbit information above each post? Or are they on the side of each post? If they're on the side you need to add the code to the postbit_legacy template instead.

Whichever template you use, try putting it below this:

HTML Code:

<if condition="$post[icqicon] or $post[aimicon] or $post[msnicon] or $post[yahooicon] or $post[skypeicon]"><div class="info">$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div></if>
Which will place it right below the messenger icons. Look around in that template and you'll begin to recognize some things and be able to tell where you want to put the code according to your own personal tastes.

Addict4Life 08-18-2007 06:11 PM

wow i got it in there, now i just have to find where to put it! thanks man i been screwing with this for 2 days lol i can just keep adding the same code for diff fields right?

Digital Jedi 08-18-2007 06:28 PM

Quote:

Originally Posted by Addict4Life (Post 1320458)
wow i got it in there, now i just have to find where to put it! thanks man i been screwing with this for 2 days lol i can just keep adding the same code for diff fields right?

No problem. Yeah, just duplicate it for the different fields using the different field names.

When you get familiar with it, give the other two posts in that thread a look through. I stayed away from them for several months, thinking it was over my head, and came back to them later. Basically, he's just trying to explain the technical reasons for why the code works, and then shows you what to add as well. But if you read through it, you'll find that what he's showing is actually just as simple as the first post, just with a couple more steps.

The second post comes in handy when you want to display something from a field you created that's multiple choice (those little radio buttons). And the third post, is when you want to display things from a field that a user can choose more then one option (those little check boxes).


All times are GMT. The time now is 10:07 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.01760 seconds
  • Memory Usage 1,740KB
  • 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_html_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