Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions

Reply
 
Thread Tools Display Modes
  #11  
Old 01-04-2010, 01:02 PM
consolegaming consolegaming is offline
 
Join Date: Jan 2007
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just add <strong></strong> tags around the variable i.e.

if($post[field8]) $html .= '<dt>Wii</dt> <dd><strong>'.$post[field8].'</strong></dd>';

That should do that part. For your second question firstly I'd recommend looking at the Field Required option for the profile field (assuming you've used a profile field yea?) If you set that to yes always it forces them to set it before they can use the forums (existing/new members).
Reply With Quote
  #12  
Old 01-04-2010, 01:11 PM
Charlie98902 Charlie98902 is offline
 
Join Date: Dec 2006
Posts: 1,156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks I didn't try the <strong> but did try <b> and got a syntax error

--------------- Added [DATE]1262621512[/DATE] at [TIME]1262621512[/TIME] ---------------

Strong html didn't work either but no errors using it.
Reply With Quote
  #13  
Old 01-04-2010, 02:12 PM
Vaupell's Avatar
Vaupell Vaupell is offline
 
Join Date: Apr 2008
Location: Esbjerg, Denmark
Posts: 1,036
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i do something like this in plugins

Hook : postbit_display_complete

Code:
if (!empty($post["field9"]))
{
    $template_hook['postbit_userinfo_right_after_posts'] .= '<dd>' . 'Test : ' . $post["field9"] . '</dd>';
}
Execution Order : is just if i want it to show before or after the other plugins at same hook.
might change this number to fit your personal preferences.
Reply With Quote
  #14  
Old 01-04-2010, 02:28 PM
Charlie98902 Charlie98902 is offline
 
Join Date: Dec 2006
Posts: 1,156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice. Is there a way to have the chosen field bold or both fieldx and choice bold?
Reply With Quote
  #15  
Old 01-04-2010, 04:23 PM
Dygear's Avatar
Dygear Dygear is offline
 
Join Date: Apr 2008
Location: Levittown, NY
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Charlie98902 View Post
Thanks I didn't try the <strong> but did try <b> and got a syntax error

--------------- Added [DATE]1262621512[/DATE] at [TIME]1262621512[/TIME] ---------------

Strong html didn't work either but no errors using it.
Try editing the dd tag directly inline with this:

Code:
<dd style="font-weight: bold;">
However, I would recommend using a vb style variable as it would provide a more consistent user experience and might cause you less of a headache in the future.
Reply With Quote
  #16  
Old 01-04-2010, 08:29 PM
voglermc's Avatar
voglermc voglermc is offline
 
Join Date: Oct 2006
Location: Piedmont Triad, NC, USA
Posts: 295
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone know the correct code for users album link in their postbit?
Reply With Quote
  #17  
Old 01-06-2010, 09:17 PM
UTE304's Avatar
UTE304 UTE304 is offline
 
Join Date: Oct 2005
Location: Brisbane, Australia
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Guys,

I've been following the useful info in this topic. But I have a little more work I'd like to do on this area.

Could you look at the attached pic, and advise me on how to achieve that? RED text request only, I fixed the first problem using Dygear's code.

Thanks

Steve.
Attached Images
File Type: jpg pUForumProfilePostbit.jpg (73.3 KB, 0 views)
Reply With Quote
  #18  
Old 01-07-2010, 04:26 AM
Dygear's Avatar
Dygear Dygear is offline
 
Join Date: Apr 2008
Location: Levittown, NY
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by UTE304 View Post
Could you look at the attached pic, and advise me on how to achieve that?
That is going to be a CSS edit. I've never edited the CSS file within vB so I don't know what this entails, but baiscly I would think your looking for the dd declaration within the CSS file, and just editing the width attribute to a value that is more suitable. Hopefully that's all you will need to do.

Looks like the community really could use a guide on how to customize post bits, it seems to be in demand.
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 11:11 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.04451 seconds
  • Memory Usage 2,248KB
  • Queries Executed 12 (?)
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
  • (2)bbcode_code
  • (2)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
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (1)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)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_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
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete