vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Default User Color? (https://vborg.vbsupport.ru/showthread.php?t=45369)

CdaKnight 11-04-2002 02:56 AM

Its still not replacing the $post[fieldx] with anything. (Yes, I changed the 'x' to a #, which is unique)

My Postbit:
<p><font face="Arial" size="2" color="$post[field42]">$post[message]</font>
</p>

Output of a post:
<p><font face="Arial" size="2" color="">
Output
</font>
</p>
I mean, please tell me if I'm being retarded and doing something wrong. I don't think I have... but I probably did.

Erwin 11-04-2002 03:15 AM

Remember, this is searching for the custom profile field content of the POSTER, not your own.

So to test this, fill out a color in your OWN custom profile field, then post something, and look at it.

If you want your color to affect ALL posts by OTHER posters, replace $post[fieldx] with $bbuserinfo[fieldx]. Otherwise, if you look at posts by other posters, and they haven't filled it out, their post will remain normal ie. color=""

Make sure you have the profile id correct too. To get the profile id, put your mouse over the link - the number at the end of the URL is the profile id number.

CdaKnight 11-04-2002 09:22 AM

I think I'm calling the field wrong, because I have filled out the field, and its not showing up in threads I've posted in.

When I made the field, I set it up as following:
Max Input, and field length are both 25, I set the display order to a number to 6 (we have 5 other custom fields), its required, visible, and editable by the user.

I think my problem is I was calling $post[field6], but that's the display #.

This may sound stupid, but how do I go about finding the field#?

CdaKnight 11-04-2002 09:26 AM

I figured it out, but I'm curious to know if there's a more conventional way than reading the output source of my profile page.

Sorry to have made this simple thing so much trouble!

Erwin 11-04-2002 09:30 AM

The custom profile field id is NOT the display number!!! That is what I was trying to tell you in my posts! :)

You get the custom profile field id number by putting your mouse over the link to the custom profile field, and looking at the number at the end of the URL. Or opening the link to that custom profile field in a new window, and looking at the number at the end of the URL.

It should work now that you are using the CORRECT field number. :)

CdaKnight 11-04-2002 09:31 AM

Sorry about that. I just woke up, and I must have scrolled past it. *bleh*

Thanks for all your help though.


All times are GMT. The time now is 04:09 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.01148 seconds
  • Memory Usage 1,721KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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