vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 5.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=259)
-   -   Mini Mods - Add custom field to postbit (https://vborg.vbsupport.ru/showthread.php?t=320914)

Aros12 02-11-2016 05:31 PM

Okay thanks so much!

Aros12 02-12-2016 06:52 PM

You are the man! Thank you!!

IggyP 02-22-2016 12:38 PM

great thanks :)

mhere21 03-22-2016 12:29 AM

Exactly what I was looking for. Thank you.

KimK 08-11-2016 07:00 PM

Quote:

Originally Posted by Replicant (Post 2564681)
I pulled the fetchProfileInfo for your user at your site and the location info is there so its just not retrieving or getting translated at the template. I've not tested this on 5.2.0 so maybe that's the issue. I'll take a look at it and report back. Give me a day or so.
Code:

"field2_title":{"val":"Maple Valley, WA","hidden":"0"}
SOLVED:I fetched your template and found your issue. It's a typo. Change the 8 below to a 2 in your template and it should work.

Code:

{vb:data postInfo, user, fetchProfileInfo, {vb:raw conversation.userid}}
<vb:if condition="$postInfo['field2']"><li><label>{vb:phrase field2_title}:</lable>
        <span>{vb:raw postInfo.customFields.default.field8_title.val}</span></li>
</vb:if>


Hi Replicant, I am using vb 5.2.2 and tried the above, but it just translates into the field 2 title Location, without pulling the actual location the member entered. My hope is to actually bring in 2 fields, occupation and location. If you have a second, can you take a look? I didn't know if I was suppose to do anything with your first code block in this post, so that could be what I am doing wrong. My location field is 2, and I copied your code above to try the second time. www.Agentlinkus.com

I tried the update tools, because these are fields my members have already filled in, they are not new fields, and perhaps that is the problem. Running update tools didn't fix. Thank you so much.

Replicant 08-11-2016 07:26 PM

This modification is obsolete and cumbersome and was more or less a workaround until a proper mod was created. Noypiscripter has a mod that is far superior to this one and much easier to implement and is up to date. You can get it here.

KimK 08-11-2016 07:43 PM

Thank you, I appreciate the direction =)

noypiscripter 08-15-2016 03:03 AM

Quote:

Originally Posted by Replicant (Post 2574622)
This modification is obsolete and cumbersome and was more or less a workaround until a proper mod was created. Noypiscripter has a mod that is far superior to this one and much easier to implement and is up to date. You can get it here.

Thanks Replicant! :)

spirit232 09-20-2017 10:26 AM

Many Thanks,

I am looking for the integration of the homepage from the profile page to the postbit

SWCForum 06-20-2021 08:09 PM

This works great for me, but I would like to move one of the fields (field5) to appear after the usertitle, and I can't make it work. Any advice?

I'd also love to add a space between each field that displays at the bottom. But <br> didn't work obviously. But that's something I can live without if I have to.

Thanks for a great mod.


All times are GMT. The time now is 01:49 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.01137 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)bbcode_code_printable
  • (2)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