View Full Version : Brainstorm Help - Best Spot to show information
scottkoz20
05-23-2018, 06:41 PM
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
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)
<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.
scottkoz20
05-24-2018, 12:58 PM
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
<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>
scottkoz20
05-24-2018, 02:18 PM
did try the following with no luck on the array
<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>
Try
<vb:if condition="in_array($GLOBALS['forumid'], array(86,87,88,89))">
scottkoz20
05-24-2018, 03:46 PM
:up: Thank you very much
now to work with the profile fields - I think I'll just use a single select option :)
scottkoz20
05-24-2018, 04:02 PM
screenshots added
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
scottkoz20
05-24-2018, 04:14 PM
hmmmm - that explains why it was reporting 15 earlier
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?
scottkoz20
05-24-2018, 05:50 PM
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?
I had added the paypal.me into the postbit a couple months ago, but I think it's worth adding this information as well - I'll have to look at this in a bit as I broke something else
:erm:
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.