Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
  #31  
Old 06-23-2010, 01:50 AM
noppid noppid is offline
 
Join Date: Mar 2003
Location: Florida
Posts: 1,875
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very generous. Thank you.
Reply With Quote
  #32  
Old 06-23-2010, 04:12 PM
ChopSuey ChopSuey is offline
 
Join Date: Jun 2009
Location: Alaska
Posts: 2,140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DieselMinded View Post
Thanks Again $ Sent , More people should donate to people who help them and maybe more people would help others on here
Just thinkg about how many people i and other's have helped.
Reply With Quote
  #33  
Old 06-23-2010, 04:31 PM
noppid noppid is offline
 
Join Date: Mar 2003
Location: Florida
Posts: 1,875
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Right on, that's what this site is supposed to be about. I don't post here for the money. It's just something to do to pay it forward. That's not to say I don't do professional work though. I'm picky about who I work with either way. Some appreciate it and you can tell, others, not so much.
Reply With Quote
  #34  
Old 06-23-2010, 09:24 PM
DieselMinded's Avatar
DieselMinded DieselMinded is offline
 
Join Date: Mar 2007
Posts: 1,655
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works great but users still have to go to there edit options and hit save for the bar to show , how can i fix that?
Reply With Quote
  #35  
Old 06-23-2010, 10:04 PM
noppid noppid is offline
 
Join Date: Mar 2003
Location: Florida
Posts: 1,875
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

We need to look at which of the options is the default. Look in the user profile field editor and check the "Set Default" options for that custom field.

I don't know how it works code wise, hopefully it will update all users to the default when changed. The worse case scenario is having to delete it and create it again with a default which will hopefully set the default in their profile and not just the form.
Reply With Quote
  #36  
Old 06-23-2010, 10:06 PM
DieselMinded's Avatar
DieselMinded DieselMinded is offline
 
Join Date: Mar 2007
Posts: 1,655
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Default is yes , its showing clicked , all they do is hit save
Reply With Quote
  #37  
Old 06-23-2010, 10:09 PM
noppid noppid is offline
 
Join Date: Mar 2003
Location: Florida
Posts: 1,875
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So it is for the form only and not the actual setting in the DB for each user? It's actually no unless they go click? I didn't mock it up for a test, so I don't know what it's doing code wise.
Reply With Quote
  #38  
Old 06-23-2010, 10:15 PM
DieselMinded's Avatar
DieselMinded DieselMinded is offline
 
Join Date: Mar 2007
Posts: 1,655
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

User Profile Fields in Area: Options: Messaging / Notification

Enable Cometchat Software? Single-Selection Radio Buttons Editable, Searchable field15

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

Do i need to move if from edit options ? maybe it don't autoupdate or something

Maybe <if condition="$bbuserinfo['field15'] != 'No' ">
Reply With Quote
  #39  
Old 06-23-2010, 10:21 PM
noppid noppid is offline
 
Join Date: Mar 2003
Location: Florida
Posts: 1,875
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I went in the DB with PHPMyAdmin. Seems like it's gonna take a query to pull off. This will opt everyone in as Yes and they will have to go to the cp to turn it to no instead of Yes.

Here's a query you can run in PHPMyAdmin from the SQL tab...

update `userfield` set `field15` = 'Yes' where `field15` = '';

If you have table prefixes, adjust the userfield table name. Take note of backtics and single quote usage in the query.

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

Quote:
Originally Posted by DieselMinded View Post
User Profile Fields in Area: Options: Messaging / Notification

Enable Cometchat Software? Single-Selection Radio Buttons Editable, Searchable field15

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

Do i need to move if from edit options ? maybe it don't autoupdate or something

Maybe <if condition="$bbuserinfo['field15'] != 'No' ">
Changing the condition to No won't help. The DB has empty fields.
Reply With Quote
  #40  
Old 06-23-2010, 10:26 PM
DieselMinded's Avatar
DieselMinded DieselMinded is offline
 
Join Date: Mar 2007
Posts: 1,655
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

testing

PHP Code:
<if condition="$bbuserinfo[field15] != 'No' AND THIS_SCRIPT != 'addonchat' AND is_member_of($bbuserinfo, 5, 7, 6, 16, 12, 11, 17, 10, 13, 9)">
<!-- 
CometChat Footer Code Start -->
<
link type="text/css" rel="stylesheet" media="all" href="/cometchat/cometchatcss.php" charset="utf-8" />
<
script type="text/javascript" src="/cometchat/cometchatjs.php" charset="utf-8"></script>
<!-- 
CometChat Footer Code End -->
</if> 
--------------- Added [DATE]1277335715[/DATE] at [TIME]1277335715[/TIME] ---------------

Quote:
Originally Posted by noppid View Post
I went in the DB with PHPMyAdmin. Seems like it's gonna take a query to pull off. This will opt everyone in as Yes and they will have to go to the cp to turn it to no instead of Yes.

Here's a query you can run in PHPMyAdmin from the SQL tab...

update `userfield` set `field15` = 'Yes' where `field15` = '';

If you have table prefixes, adjust the userfield table name. Take note of backtics and single quote usage in the query.

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



Changing the condition to No won't help. The DB has empty fields.
what about future members?
Reply With Quote
Reply

Thread Tools
Display Modes

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 07: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.04230 seconds
  • Memory Usage 2,248KB
  • Queries Executed 11 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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