vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=263)
-   -   Profile Fields (https://vborg.vbsupport.ru/showthread.php?t=312528)

MajorKokosnuss 06-28-2014 04:35 PM

Profile Fields
 
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

Quote:

Originally Posted by MajorKokosnuss (Post 2504307)
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:

HTML Code:

{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

1 Attachment(s)
I see stuff under the Join Date now:

Attachment 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 !!


All times are GMT. The time now is 08:05 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.01163 seconds
  • Memory Usage 1,755KB
  • 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_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (25)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