The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
two <IF>???
Hi,
our users which to have an higher threadview as standard 150px. I found this in the styles at showthreadlist: PHP Code:
Then I made an extra profilfield with radio-buttons, so they can chose a standard of 150px, double height of 300px or auto height. But I don?t know how to put it into the style. I just took the above code snippet and packed it into a simple if block: PHP Code:
Is any one out here who has an idea to solve my problem? best regards Chewy |
#2
|
|||
|
|||
I think maybe the problem is that with three radio buttons the possible values of field16 would be [S]1, 2, 3[/S], ...
Edit: I think that was wrong...see below. |
#3
|
|||
|
|||
Hi,
thanks for your reply, but the first radio button has an value of 1, the second has two, the third hast 4, the fifth has 8, 16, 32, 64 and so on |
#4
|
|||
|
|||
That kind of sounds like checkboxes vs radio buttons, but maybe you're doing something I don't understand.
In either case, I think I was wrong - I think the values of a radio button field would be whatever strings are listed as the options in the profile field manger (I'm changing my mind because I went back and looked at a plugin a wrote a while back that checks the value of a custom user radio button field). But again - maybe you're doing something different. |
#5
|
|||
|
|||
I will try to explain exactly what I want to do, perhaps I am goning a totaly wrong way...
If you select thread-view or hybrid-view in a thread, then you will see a tree-structure in top of the postings in that thread. This tree structure is normaly 150 Pixels high. What I want to do is to allow users to change this height by their own. I found the height in template: "showthread_list" and I thought best way to solve my problem is adding a field for the users selection and adding some little code to this template, but I am not a real coder so I looked arround for the syntax and so on and thougt the code of my frist posting would be near to that what I need... |
#6
|
|||
|
|||
Well, it's easy enough to test what the value of field16 actually is: put this in your template:
Code:
<!-- Field16: $post[field16] --> ETA: I think you are doing the right thing, I'm just thinking that if it's not working the problem may be the "if" conditions - but I could be wrong. |
#7
|
|||
|
|||
Ok, this should be fault 1, in source it is empty: "<!-- -->"
--------------- Added [DATE]1289573415[/DATE] at [TIME]1289573415[/TIME] --------------- ok the fault was that I was using the field from the wrong user... <!-- $bbuserinfo[field13] --> outputs the value of the option exactly as you told earlier! |
#8
|
|||
|
|||
(nvm - posted this before I read the above)
|
#9
|
|||
|
|||
I got it now in a very more simple way than I thought...
PHP Code:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|