The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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 |
#2
|
||||
|
||||
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> |
Благодарность от: | ||
scottkoz20 |
#3
|
|||
|
|||
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> |
#4
|
|||
|
|||
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> |
#5
|
||||
|
||||
Try
Code:
<vb:if condition="in_array($GLOBALS['forumid'], array(86,87,88,89))"> |
#6
|
|||
|
|||
:up: Thank you very much
now to work with the profile fields - I think I'll just use a single select option |
#7
|
|||
|
|||
screenshots added
|
#8
|
||||
|
||||
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 |
#9
|
|||
|
|||
hmmmm - that explains why it was reporting 15 earlier
|
#10
|
||||
|
||||
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?
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|