Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 08-18-2007, 06:57 AM
Addict4Life Addict4Life is offline
 
Join Date: Aug 2007
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 08-18-2007, 07:20 AM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 08-18-2007, 03:55 PM
Addict4Life Addict4Life is offline
 
Join Date: Aug 2007
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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??????
Reply With Quote
  #4  
Old 08-18-2007, 03:58 PM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Styles and Templates -> Style Manager -> (From the right) Edit Templates -> Postbit Templates -> postbit.
Reply With Quote
  #5  
Old 08-18-2007, 04:07 PM
Addict4Life Addict4Life is offline
 
Join Date: Aug 2007
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Opserty View Post
Styles and Templates -> Style Manager -> (From the right) Edit Templates -> Postbit Templates -> postbit.
got it thanks

Quote:
Originally Posted by Digital Jedi View Post
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?
Reply With Quote
  #6  
Old 08-18-2007, 05:24 PM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #7  
Old 08-18-2007, 05:39 PM
Addict4Life Addict4Life is offline
 
Join Date: Aug 2007
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i guess where to put the code. i put it at the bottom of the legacy and nothing happen.
Reply With Quote
  #8  
Old 08-18-2007, 05:58 PM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 08-18-2007, 06:11 PM
Addict4Life Addict4Life is offline
 
Join Date: Aug 2007
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #10  
Old 08-18-2007, 06:28 PM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Addict4Life View Post
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).
Reply With Quote
Reply

Thread Tools
Display Modes

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 06:44 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.04105 seconds
  • Memory Usage 2,246KB
  • Queries Executed 13 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_html
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (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_postinfo_query
  • fetch_postinfo
  • 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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete