Version: 1.00, by Replicant
Developer Last Online: Jun 2022
Category: Mini Mods -
Version: 5.1.9
Rating:
Released: 11-27-2015
Last Update: Never
Installs: 9
Template Edits
No support by the author.
There have been a few questions regarding adding location to the postbit on vb.com lately. Lynne had a write-up here in 2013 using the Product/Hook system which is the best way to do it as the mod will survive an upgrade and there is a hook exactly where it's needed. I'm not going to go into creating a product with this mod.This is an example of a template edit to add a field to the postbit that only takes a few minutes. Keep in mid, this will be overwritten during an upgrade and will need to be re-applied. Since this requires editing templates, it will not work on the cloud. I am currently working on a jquery/ajax version for the cloud, but it's a little ways down the road when I'm not so busy.
Here's how to do it.
Step 1)Go to AdminCP >> User Profile fields >> Add new user profile field
Select single line textbox > then click "continue"
Fill out the title, description and other relevant info on that page and click save. This will also create the necessary phrases for the field.
Go to AdminCP >> User Profile fields >> User Profile fields Manager. Here you will see the new field you created and the field number used in step 2. I used field8 (Location) for this example.
Step 2) Edit conversation_userinfo template. Add this code after {vb:hook 'conversation_userstats'} on or about line 53 and click save.
Step 3) Goto your user profile and click edit settings. Scroll down on the profile tab and fill the new field with the info.
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.
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.
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.
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.
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.