View Single Post
  #668  
Old 04-30-2004, 11:26 AM
SVTOA SVTOA is offline
 
Join Date: Oct 2002
Location: In a fishbowl
Posts: 301
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by djnth
You know, thinking about it you're right. It definitely is nice that users can add their own touches with the code. I still would like to have the option of adding some custom fields because there is some information I would like to make sure that everyone includes and I'm definitely not a PHP coder so going in and adding my own fields would just be asking for trouble.

I would like to have one field be a checkbox asking the user if they are a DJ and then I would like to create a menu item that would take someone to a page that shows a listing of everyone that checked YES to the DJ question. Is this sort of thing possible?

Thanks!!

djnth
What you are saying is that when the garage is created by the end user, if they check off this box they get a different display action in the finished product? You need to explain a little better what you are trying to do. It would be possible to use a conditional statement so that "if" that checkbox="yes" than "this style is displayed". That would actually be rather easy. Example- in my performance stats hack, "if" the et field = "0.00" then the text "this member has not entered any et info..." displays. You can make that text into a hyperlink or even display an image or an entire different block of data. So, using your request, say you want to display a header on any "garage" (using garage as a reference, your idea may have nothing to do with cars) where the member has checked off "yes" to "DJ? YES/NO" then a hyperlink leading to to a separate page displays, or a graphic that pertains to the subject displays, etc.

You have given me an idea... I could alter my own code so that "if" et field="12." then display graphic "12secondclub.gif"

As far as being a PHP coder- that's a state of mind. Take some code and play with it to see what the effect of your changes has on the end result. That's how you can learn.

These guys like Magnus and Evil LS1 are TRUE coders, I'm the kind who knows a little about a lot and just enough to get myself in trouble. :nervous:
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01041 seconds
  • Memory Usage 1,768KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete