Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-23-2018, 06:41 PM
scottkoz20 scottkoz20 is offline
 
Join Date: Dec 2015
Location: Lewiston, NY
Posts: 344
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Brainstorm Help - Best Spot to show information

I have a question on how you would potentially build this out.

Background: I allow members to Buy/sell and trade sports cards on the forums; however, the members themselves have the right to designate which countries they want to ship to or not ship to. Sometimes that information is not known until the very end or worse when the negotiations have started.

Suggestion that given by a member was to indicate this somewhere on the thread of on the members profile.

My dilemma is simply the best spot to show this information.

What I would love to do it to have a "pre-signature" at the top of the thread indicating which countries they would be willing to ship to; however, this is probably not an option.

I am not sure I want to add anymore on the postbit as I have a TON of information there already.

My question, is there another spot that would be good to show this information

Thanks,
Scott
Reply With Quote
  #2  
Old 05-24-2018, 07:44 AM
z3r0's Avatar
z3r0 z3r0 is offline
 
Join Date: Apr 2005
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If they have the countries that they don't want to ship to saved in a custom profile field then you could add something like this to the top of your postbit_legacy template (you would need to set the field ID to whatever your field is)

Code:
<vb:if condition="$post['isfirstshown'] AND $post[field7]"><div style="border:1px solid #ccc; padding:7px;background-color:#ffeb90;">Not shipping to the following counties: {vb:raw post.field7} </div><br /></vb:if>
I'm assuming the sales post would be the first in a thread and if so the notice would show above.
Reply With Quote
Благодарность от:
scottkoz20
  #3  
Old 05-24-2018, 12:58 PM
scottkoz20 scottkoz20 is offline
 
Join Date: Dec 2015
Location: Lewiston, NY
Posts: 344
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I like this a lot!

I was trying to use a Multi-select option but it does not report the field names, just a numeric value - I would not want to make this a free-form text as I do want to have some consistency.

Also, I need to make sure that this only appears in certain forums, so I am taking this would be an additional AND clause with an array of the forum ID's to be included for this.


Thanks Z3r0

EDIT - Code at this point

Code:
<vb:if condition="$post['isfirstshown'] AND $post[field54]"><div style="border:1px solid #ccc; padding:7px;background-color:#ffeb90;">{vb:raw post.username} will ship to the following countries: {vb:raw post.field54} </div><br /></vb:if>
Attached Images
File Type: png thread_sale.PNG (12.5 KB, 0 views)
Reply With Quote
  #4  
Old 05-24-2018, 02:18 PM
scottkoz20 scottkoz20 is offline
 
Join Date: Dec 2015
Location: Lewiston, NY
Posts: 344
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

did try the following with no luck on the array

Code:
<vb:if condition="in_array($forum['forumid'], array(86,87,88,89))">
<vb:if condition="$post['isfirstshown'] AND $post[field54]"><div style="border:1px solid #ccc; padding:7px;background-color:#ffeb90;">{vb:raw post.username} will ship to the following countries: {vb:raw post.field54} </div><br />
</vb:if>
</vb:if>
Reply With Quote
  #5  
Old 05-24-2018, 03:30 PM
z3r0's Avatar
z3r0 z3r0 is offline
 
Join Date: Apr 2005
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try

Code:
<vb:if condition="in_array($GLOBALS['forumid'], array(86,87,88,89))">
Reply With Quote
  #6  
Old 05-24-2018, 03:46 PM
scottkoz20 scottkoz20 is offline
 
Join Date: Dec 2015
Location: Lewiston, NY
Posts: 344
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

:up: Thank you very much

now to work with the profile fields - I think I'll just use a single select option
Reply With Quote
  #7  
Old 05-24-2018, 04:02 PM
scottkoz20 scottkoz20 is offline
 
Join Date: Dec 2015
Location: Lewiston, NY
Posts: 344
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

screenshots added
Attached Images
File Type: png shipping_1.png (8.1 KB, 0 views)
File Type: png shipping_2.png (28.1 KB, 0 views)
Reply With Quote
  #8  
Old 05-24-2018, 04:06 PM
z3r0's Avatar
z3r0 z3r0 is offline
 
Join Date: Apr 2005
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks great

I've just been doing some reading and there may be a way to do the multiple selections - https://vborg.vbsupport.ru/showthread.php?t=250418
Reply With Quote
  #9  
Old 05-24-2018, 04:14 PM
scottkoz20 scottkoz20 is offline
 
Join Date: Dec 2015
Location: Lewiston, NY
Posts: 344
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmmmm - that explains why it was reporting 15 earlier
Reply With Quote
  #10  
Old 05-24-2018, 04:25 PM
z3r0's Avatar
z3r0 z3r0 is offline
 
Join Date: Apr 2005
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just a thought - I had a quick look at your forum and noticed in the first trade thread I looked at that the user didn't take PayPal - is it worth extending this to show accepted payment methods?
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 06:22 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.07875 seconds
  • Memory Usage 2,285KB
  • Queries Executed 14 (?)
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
  • (4)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (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_postinfo_query
  • fetch_postinfo
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete