vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Adding users Location field to postbit (https://vborg.vbsupport.ru/showthread.php?t=212761)

ctimes 05-03-2009 02:46 PM

Adding users Location field to postbit
 
I would like to list my users location right under 'post count' in threads, I know Ineed to add this to the postbit but I have been unable to find the correct code to add in order to see it.

Lynne 05-03-2009 03:30 PM

It should show automatically if the user entered a location in their profile (like it does here). I listed a location, so mine shows here - you didn't list a location, so nothing shows in your postbit.

ctimes 05-03-2009 05:56 PM

I thought so too by enabling it to be required on registration or profile update but it still does not show :( I have Rep, Rep Power, Posts and Join date but no Location unfortunately.

I am using the techforums skin so I am not sure if they disabled it or not maybe?

Lynne 05-03-2009 06:01 PM

They may not have it on their skin. Go to Edit the postbit (and/or postbit_legacy) and do a View History > Compare, or hit View Default, and you should be able to find the code to add.

ctimes 05-04-2009 06:20 AM

I actually deleted the default theme before I knew you could force users to use one type :( do you know if there is a place to download the default style? I checked the members area and did not see anything unfortunately.

Quote:

Originally Posted by Lynne (Post 1803818)
They may not have it on their skin. Go to Edit the postbit (and/or postbit_legacy) and do a View History > Compare, or hit View Default, and you should be able to find the code to add.


Lynne 05-04-2009 02:39 PM

Create a new style with no parent:
  • Styles & Templates > Style Manager > Add New Style
  • Parent Style: No Parent Style
  • Title: Default vBulletin
  • Allow User Selection: Yes
  • Save

That will give you a completely default style.

ctimes 05-05-2009 08:24 PM

Quote:

Originally Posted by Lynne (Post 1804370)
Create a new style with no parent:
  • Styles & Templates > Style Manager > Add New Style
  • Parent Style: No Parent Style
  • Title: Default vBulletin
  • Allow User Selection: Yes
  • Save

That will give you a completely default style.

Ok here is a weird one, I did what you said found where it was in the default style and looked in my custom style and it is actually there so as far as I can tell should technically be showing in each post.

Here is the code

Code:

<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
                                        <if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>

So it was in the default vB style as well as my custom style I am trying to get it to show up on.

--------------- Added [DATE]1241561049[/DATE] at [TIME]1241561049[/TIME] ---------------

One thing I did notice is in my user profile manager the field is set as '6' while the postbit says '2' however upon changing that in the postbit and postbit_legacy I am having the same results.

--------------- Added [DATE]1241565159[/DATE] at [TIME]1241565159[/TIME] ---------------

ahh I figured it out :) I had to change it in two places in the postbit oops :)

thank you for your help


All times are GMT. The time now is 09:32 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.01275 seconds
  • Memory Usage 1,726KB
  • 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_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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