PDA

View Full Version : Profile Fields


MajorKokosnuss
06-28-2014, 04:35 PM
Hello there could someone make me a little guide on how to add custom user profile fields to the left side of every post ? i saw the tutorial from lynne but it is only for the user information if someone went on thier profile :c

I mean this thing, wich shows the reputation, post counts and joindate.

i whould like to add a custom profile field to it :)

Thanks for every help!

MajorKokosnuss
07-03-2014, 01:38 PM
no one ?

ForceHSS
07-03-2014, 01:46 PM
As not many here have vb5 you will need to wait for an answer

Zachery
07-03-2014, 01:51 PM
Which specific bits do you want to add to the postbit?

MajorKokosnuss
07-05-2014, 03:40 AM
Location for example :)

Lynne
07-05-2014, 03:06 PM
i saw the tutorial from lynne but it is only for the user information if someone went on thier profile :c
The tutorial I wrote was for adding the profile fields to the postbit, not the profile page.

MajorKokosnuss
07-05-2014, 03:52 PM
:O well it is added here Lynne

http://prntscr.com/3zo75w

but not here D:

http://prntscr.com/3zo7j9

Lynne
07-05-2014, 09:33 PM
The location automatically gets added there on the profile page if you have it filled out. It should automatically get added to the posts also if you have it filled out. Location is a default profile field, it isn't a custom profile field which is what the tutorial talks about adding.

MajorKokosnuss
07-05-2014, 09:45 PM
:O well, is there away to add it to the posts too ?

//Edit

I made a custom one but it doesn't add it :o

Lynne
07-06-2014, 01:24 AM
Are you using a totally default style? Do you have your hook system enabled (it is disabled by default)? When you added a new hook, did you make sure it was enabled? We'd need to see screenshots of the new field and the template and also get a link to your site using a default style. (Also, make sure you click Clear System Cache after making any changes in the admincp.)

MajorKokosnuss
07-06-2014, 05:45 AM
boomboomforums.com

http://prntscr.com/3zv4wr
http://prntscr.com/3zv53h
http://prntscr.com/3zv56m

Lynne
07-06-2014, 03:44 PM
Can you post your conversation_fields template content. Also, make sure that template is created in the style that you are using. And, can you turn on AdminCP > Settings > Options > General Settings > Show Template Name in HTML > Yes.

MajorKokosnuss
07-06-2014, 05:53 PM
http://prntscr.com/400ehu

http://prntscr.com/400f1d

Done it is activated now

Lynne
07-06-2014, 10:17 PM
The template is being read (you can see the name in the page source), but it is totally blank.

How many styles do you have in the admincp > Style Manager? And did you add the template to each of the styles?

MajorKokosnuss
07-07-2014, 01:49 PM
Only one Style :) the default style

Lynne
07-07-2014, 08:27 PM
Can you remove the condition statements from the template and then see if it works. Are you sure the user who's post you are looking at has entered something for field5?

(Also, in the template, line 3 is a duplicate of line 1 - why do you have that line twice?)

MajorKokosnuss
07-09-2014, 01:52 PM
"Can you remove the condition statements from the template"

D: how :P ? my english is really horrible and i have no idea from scripting.

Yes i am sure because i looked on my profile :).

I removed the duplicated line :D

Lynne
07-09-2014, 04:52 PM
I mean remove the <vb:if...> and </vb:if> lines from your template, like this and then see what is in the page source:

{vb:data userInfo, user, fetchProfileInfo, {vb:raw conversation.userid}}

<li><label>{vb:phrase field5_title}:</label> <span>{vb:raw userInfo.customFields.default.field5_title.val}</span></li>

MajorKokosnuss
07-10-2014, 01:46 PM
Nothing changed :/ still not working

Lynne
07-10-2014, 03:55 PM
There is still nothing showing up in the page source which means either the template is blank or it is calling a non-existing template.

edit: I just noticed the page source is looking for the template "converstation_fields" You have spelled it wrong in your plugin (or you gave the template the wrong name - one of those). In my tutorial, I call it the "conversation_fields" template. So, double-check your template names.

MajorKokosnuss
07-10-2014, 05:49 PM
Everything is correct :s no mistake

Lynne
07-10-2014, 10:46 PM
Not according to your images.

This one says "conversation_fields" - http://prntscr.com/400ehu

This one says "converstation_fields" (as does your page source) - http://prntscr.com/3zv4wr

So, which did you change and to what?

MajorKokosnuss
07-11-2014, 11:10 AM
oh my fault.

I have changed now converstation_fields to conversation_fields

but still nothing changed

Lynne
07-11-2014, 03:53 PM
I see stuff under the Join Date now:

149727

MajorKokosnuss
07-11-2014, 05:59 PM
:o i couldn't see it while i checked :o
Maby i had a bad html again.

Now i can see it aswell :3

Thanks for your help !!