vb.org Archive

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

AWithers04 05-26-2011 10:34 PM

Postbit Questions
 
I made some custom profile fields and have them displayed in the postbit but was wondering if there is a way to make the title of the postbit title fields bold and also how I can make the multiple line fields go below each other instead of side by side. see below

How it is now

Example Title: word1 word2 word3 word 4

How I want it

Example Title:
Word1
Word2
Word3

Lynne 05-27-2011 12:30 AM

I'm sure there is, but without seeing the code you wrote, and what template or hook you used, along with a link to see the results, we can't really suggest anything.

AWithers04 05-27-2011 01:41 AM

1 Attachment(s)
I created a new profile field, then created a plugin with the below code on the postbit_display_complete hook

Code:

if ($post['field10'])
{
    $template_hook['postbit_userinfo_right_after_posts'] .= '<dt>Fav Artists</dt><br /><dd>' .$post[field10]. '</dd>';
}

Photo of results is attached. They are in a multi line text box one under another but they always display in a row

Lynne 05-27-2011 02:08 PM

Then if you want "Fav Artists" to be bold, but <b> tags around it:
PHP Code:

if ($post['field10']) {
     
$template_hook['postbit_userinfo_right_after_posts'] .= '<dt><b>Fav Artists</b></dt><br /><dd>' .$post[field10]. '</dd>';
 } 


AWithers04 05-27-2011 02:36 PM

Thanks that worked for the customs title. What about the default title put there by vbulletin such as join date, posts, etc?

Also any idea on the multi line issue?

Lynne 05-27-2011 02:48 PM

You'll have to edit the template to add bold to those. Or, instead of that, just write some custom CSS to do it.

As for multiline items, I'd need to see the actual page source to make a suggestion. You'd either use CSS or you'll have to create another plugin to change it. Or just do a str_replace on it. It depends on the page source though.


All times are GMT. The time now is 11:51 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.01739 seconds
  • Memory Usage 1,716KB
  • 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete