Common Questions and Answers to vB3

Collapse
This is a sticky topic.
X
X
 
  • Time
  • Show
Clear All
new posts

  • joanne862
    replied
    Originally posted by Faruk
    The field ID is listed on the Manage Profile Fields page. Note down the ID number.
    Let's say that for this example, the field ID is 7:

    Then use $post[field7] in the templates, everywhere you want it used, ie:

    HTML Code:
    <if condition="$post['field7'] != ''"><div>$vbphrase[first_name]: $post[field7]</div></if>
    Thanks for that.
    It's half working!
    Now in the postbit, it displays as
    : Joanne (or whatever name)

    I'd like it to display as
    First name: Joanne
    But can't work out how to get it to do that.

    Thanks

    Leave a comment:


  • Faruk
    replied
    Originally posted by joanne862
    I've created a new user profile field "First name".
    I'm trying to add this to the postbit, without success.
    How do I find out the field ID?
    I've tried [firstname], but that doesn't work.
    Would I just need to add $post[fieldX] to the postbit template or the full
    <if condition="$post['firstname']"><div>$vbphrase[first_name]: $post[firstname]</div></if>

    Thanks
    The field ID is listed on the Manage Profile Fields page. Note down the ID number.
    Let's say that for this example, the field ID is 7:

    Then use $post[field7] in the templates, everywhere you want it used, ie:

    HTML Code:
    <if condition="$post['field7'] != ''"><div>$vbphrase[first_name]: $post[field7]</div></if>

    Leave a comment:


  • joanne862
    replied
    Q5. How do I add a profile field into the postbit?

    A5. All you need to do is note the field id and replace it for x in the example below, then place it into your Postbit or Postbit Legacy.
    Example: $post[fieldX]
    I've created a new user profile field "First name".
    I'm trying to add this to the postbit, without success.
    How do I find out the field ID?
    I've tried [firstname], but that doesn't work.
    Would I just need to add $post[fieldX] to the postbit template or the full
    <if condition="$post['firstname']"><div>$vbphrase[first_name]: $post[firstname]</div></if>

    Thanks

    Leave a comment:


  • merk
    replied
    In A2 you are missing where you should put the userid

    Leave a comment:


  • Zachery
    replied
    It wouldnt be that way anymore, i know that much, search for

    print_no_permission();

    Leave a comment:


  • Ashkarita
    replied
    I have a quick question.

    In vB 2, this PHP is in the index.php file, where is it located now?

    PHP Code:
    $permissions=getpermissions();
    if (!
    $permissions['canview']) {
     
    show_nopermission();

    Leave a comment:


  • Faruk
    replied
    bah, bastard, I was making it so much prettier and all!



    Ahwell, as long as it improves it's good, doesn't need me to get that done of course..

    Leave a comment:


  • Zachery
    replied
    lol atad late Kura, already updated mine for the most part, just some bad spacing now i think


    The numbers help me when i refer people to the post

    Leave a comment:


  • Faruk
    replied
    And I would like to request some editing be done on that post. It can use:
    - consistancy (ditch the number after Q and A, for starters);
    - improved legibility (make questions bold, answers plain);
    - Fix all broken, incomplete and/or cut-off sentences. Sometimes words are simply omitted, making it all a confusing mess.

    Feckit, I'll just do this myself... *makes another reply with Zach's post but improved* (someone please remove mine then after Zach updates his..)

    Leave a comment:


  • Floris
    replied
    I'll suggest to the staff to make it sticky

    Leave a comment:


  • Marula
    replied
    That should be a sticky! good one Zachery

    Leave a comment:


  • Zachery
    replied
    updated again two new things since first posted, howto restore AdminCP access and Storing CSS as a file

    Leave a comment:


  • Magicman
    replied
    Thank you!

    Leave a comment:


  • Zachery
    replied
    What version of vB3 are you using?

    Updated theyve moved it

    Leave a comment:


  • Magicman
    replied
    In regards to A11........i dont see a choice to "use Legacy (Vertical) Postbit Template in that section.........

    Leave a comment:

widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...