Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Default User Color? Details »»
Default User Color?
Version: , by CdaKnight CdaKnight is offline
Developer Last Online: Oct 2004 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 11-04-2002 Last Update: Never Installs: 0
 
No support by the author.

I've started to make a hack that will allow a user to have a default post color, and not have to set it in the actual post everytime.

I'm kind of a hacking n00b, so all I've been able to do is make the profile field.

Is there any way I can make a tag similar to normalfont, that is just like normalfont, except it is used only to display post test, with the specified color? (I just need to know where it's defined so I can copy it and make something new.)

Thanks,
CdaKnight

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 11-04-2002, 02:56 AM
CdaKnight CdaKnight is offline
 
Join Date: Jan 2002
Location: Houston
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #13  
Old 11-04-2002, 03:15 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #14  
Old 11-04-2002, 09:22 AM
CdaKnight CdaKnight is offline
 
Join Date: Jan 2002
Location: Houston
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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#?
Reply With Quote
  #15  
Old 11-04-2002, 09:26 AM
CdaKnight CdaKnight is offline
 
Join Date: Jan 2002
Location: Houston
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #16  
Old 11-04-2002, 09:30 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #17  
Old 11-04-2002, 09:31 AM
CdaKnight CdaKnight is offline
 
Join Date: Jan 2002
Location: Houston
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Thanks for all your help though.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:33 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04011 seconds
  • Memory Usage 2,252KB
  • Queries Executed 21 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete